[WSIFException]:invoking service method

"rizwan patel" <[email protected]> Sat, 26 Jan 2008 22:54:17 +0530
Newsgroups gmane.comp.apache.webservices.wsif.user
Message-ID <[email protected]>
------=_Part_6286_3027566.1201368257928
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Please help me out. I have to invoke the web services dynamically. I gone
thru the WSIF concepts and it will be helpful for me to invoke the services
with this framework. I had written  webservice "HelloWorld" and also
generated the client code for that in WSIF but i am not succeded in invoking
the webservice.
Please help me to come out of this problem it is on urgent priority as i
have to give the presentation on dynamic invocation.
Your help is very worth valuable for me.The detail is as below.
I am sending you the complete details such as WSDL, Client code ,Output, and
also the web-service method server side.
I had deploy the HelloWorld.aar file into jakarta-tomcat-5.
The location of service is  :
http://<localhost>:8080/axis2/services/listServices
Service code :
*HelloInterface.java*

package hello;
public interface HelloInterface
{
 public int sayHello(java.lang.String str_1);
}

*HelloWorld.java*

package hello;

public class HelloWorld implements HelloInterface, java.rmi.Remote
{
 public int sayHello(java.lang.String str_1)
 {
  System.out.println("Welcome in HelloWorld :"+str_1);
  return 10;
 }

}

*Service.xml :*

<service name="HelloWorld" scope="application" targetNamespace="http://hello
">
    <description>
        Say Hello
    </description>
    <messageReceivers>
       <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
            class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
    </messageReceivers>
    <schema schemaNamespace="http://hello/xsd"/ <http://hello/xsd%22/>>
    <parameter name="ServiceClass">hello.HelloWorld</parameter>
</service>

*build.xml*

<project basedir="." default="generate.service">

    <property environment="env"/>
    <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>

    <property name="build.dir" value="build"/>

    <path id="axis2.classpath">
        <fileset dir="${AXIS2_HOME}/lib">
            <include name="*.jar"/>
        </fileset>
    </path>

    <target name="compile.service">
        <mkdir dir="${build.dir}"/>
        <mkdir dir="${build.dir}/classes"/>

        <!--First let's compile the classes-->
        <javac debug="on"
               fork="true"
               destdir="${build.dir}/classes"
               srcdir="${basedir}/src"
               classpathref="axis2.classpath">
        </javac>
    </target>

    <target name="generate.wsdl" depends="compile.service">
        <taskdef name="java2wsdl"
                 classname="org.apache.ws.java2wsdl.Java2WSDLTask"
                 classpathref="axis2.classpath"/>
        <java2wsdl className="hello.HelloWorld"
                   outputLocation="${build.dir}"
                   targetNamespace="http://hello"
                   schemaTargetNamespace="http://hello/xsd">
            <classpath>
                <pathelement path="${axis2.classpath}"/>
                <pathelement location="${build.dir}/classes"/>
            </classpath>
        </java2wsdl>
    </target>

    <target name="generate.service" depends="compile.service">
        <!--aar them up -->
        <copy toDir="${build.dir}/classes" failonerror="false">
            <fileset dir="${basedir}/resources">
                <include name="**/*.xml"/>
            </fileset>
        </copy>
        <jar destfile="${build.dir}/HelloWorld.aar">
            <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
        </jar>
    </target>

    <target name="clean">
        <delete dir="${build.dir}"/>
    </target>
</project>

*HelloWorld.wsdl*

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:axis2="http://hello" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:ns0="http://hello/xsd" xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="
http://org.apache.axis2/xsd" xmlns:wsaw="
http://www.w3.org/2006/05/addressing/wsdl" xmlns:xs="
http://www.w3.org/2001/XMLSchema" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://hello">
    <wsdl:types>
        <xs:schema xmlns:xsd="http://hello/xsd" targetNamespace="
http://hello/xsd" attributeFormDefault="qualified"
elementFormDefault="qualified">
            <xs:element name="sayHello">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="str_1" minOccurs="0"
type="xs:string" nillable="true"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="sayHelloResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="return" minOccurs="0"
type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="sayHelloRequest">
        <wsdl:part name="parameters" element="ns0:sayHello"/>
    </wsdl:message>
    <wsdl:message name="sayHelloResponse">
        <wsdl:part name="parameters" element="ns0:sayHelloResponse"/>
    </wsdl:message>
    <wsdl:portType name="HelloWorldPortType">
        <wsdl:operation name="sayHello">
            <wsdl:input message="axis2:sayHelloRequest"
wsaw:Action="urn:sayHello"/>
            <wsdl:output message="axis2:sayHelloResponse"
wsaw:Action="urn:sayHelloResponse"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="HelloWorldSOAP11Binding"
type="axis2:HelloWorldPortType">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
        <wsdl:operation name="sayHello">
            <soap:operation soapAction="urn:sayHello" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="HelloWorldSOAP12Binding"
type="axis2:HelloWorldPortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
        <wsdl:operation name="sayHello">
            <soap12:operation soapAction="urn:sayHello" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="HelloWorldHttpBinding"
type="axis2:HelloWorldPortType">
        <http:binding verb="POST"/>
        <wsdl:operation name="sayHello">
            <http:operation location="HelloWorld/sayHello"/>
            <wsdl:input>
                <mime:content type="text/xml" part="sayHello"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="sayHello"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="HelloWorld">
        <wsdl:port name="HelloWorldSOAP11port_http"
binding="axis2:HelloWorldSOAP11Binding">
            <soap:address location="
http://localhost:8080/axis2/services/HelloWorld"/<http://localhost:8080/axis2/services/HelloWorld%22/>
>
        </wsdl:port>
        <wsdl:port name="HelloWorldSOAP12port_http"
binding="axis2:HelloWorldSOAP12Binding">
            <soap12:address location="
http://localhost:8080/axis2/services/HelloWorld"/<http://localhost:8080/axis2/services/HelloWorld%22/>
>
        </wsdl:port>
        <wsdl:port name="HelloWorldHttpport"
binding="axis2:HelloWorldHttpBinding">
            <http:address location="
http://localhost:8080/axis2/services/HelloWorld"/<http://localhost:8080/axis2/services/HelloWorld%22/>
>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

*xsd  file is* :
 *-* <http://localhost:8080/axis2/services/HelloWorld?xsd#> <xs:schema
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://hello/xsd" xmlns:axis2="http://hello" xmlns:ns="
http://hello/xsd" xmlns:ns0="http://hello/xsd" xmlns:ns1="
http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="sayHello">
- <xs:complexType>
- <xs:sequence>
  <xs:element name="str_1" nillable="true" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="sayHelloResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element name="return" nillable="true" type="xs:int" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:schema>


*And my client side code is : client is developed using eclips 3.1 *
**
*HelloWorld.java*

import java.util.Iterator;
import org.apache.wsif.WSIFMessage;
import org.apache.wsif.WSIFOperation;
import org.apache.wsif.WSIFPort;
import org.apache.wsif.WSIFService;
import org.apache.wsif.WSIFServiceFactory;

import javax.xml.namespace.QName;
public class HelloWorld {

 /**
  * @param args
  *
  */

 public static void main(String[] args) throws Exception {
  System.out.println("Start -- 1");
  String str1="Rizwan";



  WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
  String wsdlloc="http://localhost:8080/axis2/services/HelloWorld?wsdl";
  System.out.println(" -- 2 --");
  WSIFService service = factory.getService(wsdlloc,null,null ,"
http://hello","HelloWorldPortType");
  service.mapType(new QName("
http://hello/xsd","HelloWorld"),Class.forName("clientsidecode.HelloClient.HelloWorld<http://hello/xsd%22,%22HelloWorld%22),Class.forName(%22clientsidecode.HelloClient.HelloWorld>
"));
  WSIFPort port = service.getPort("HelloWorldSOAP11port_http");
  System.out.println("-- 3--");
  WSIFOperation operation=port.createOperation("sayHello");
  WSIFMessage input = operation.createInputMessage("str_1");
  WSIFMessage output =operation.createOutputMessage();
  WSIFMessage fault = operation.createFaultMessage();
  input.setObjectPart("str_1",str1);
  String str_2="Hi";
  System.out.println("Input Message"+input);
  System.out.println("Input parts : "+input.getObjectPart("str_1"));
  //input.setObjectPart("part1",str_2);

  if(operation.executeRequestResponseOperation(input,output,fault))
  {
   System.out.println("Result : "+output.getIntPart("return"));
  }
  // TODO Auto-generated method stub
  System.out.println("End");

 }

}

All the pre-required jar of the WSIF are being installed.

When i run the client the following error occured. Please suggest me where
will be the exact problem is.




*OUTPUT :*

Start -- 1

Exception in thread "main"
*org.apache.wsif.WSIFException*: exception on AXIS invoke: Exception
occurred while trying to invoke service method sayHello; nested exception
is:

Exception occurred while trying to invoke service method sayHello

at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeAXISDocStyle(Unknown
Source)

-- 2 --

- WSIF0006W: Multiple WSIFProvider found supporting the same namespace URI '
http://schemas.xmlsoap.org/wsdl/soap/'. Found ('
org.apache.wsif.providers.soap.apacheaxis.WSIFDynamicProvider_ApacheAxis,
org.apache.wsif.providers.soap.apachesoap.WSIFDynamicProvider_ApacheSOAP')

- WSIF0007I: Using WSIFProvider '
org.apache.wsif.providers.soap.apacheaxis.WSIFDynamicProvider_ApacheAxis'
for namespaceURI 'http://schemas.xmlsoap.org/wsdl/soap/'

-- 3--

Input Messageorg.apache.wsif.base.WSIFDefaultMessage@c2a132 name:str_1

Input parts : Rizwan

at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(Unknown
Source)

at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(Unknown
Source)

at clientsidecode.HelloClient.HelloWorld.main(
*HelloWorld.java:41*)

Caused by: Exception occurred while trying to invoke service method sayHello

at org.apache.axis.message.SOAPFaultBuilder.endElement(
*SOAPFaultBuilder.java:135*)

at org.apache.axis.encoding.DeserializationContextImpl.endElement(
*DeserializationContextImpl.java:942*)

at org.apache.crimson.parser.Parser2.maybeElement(
*Parser2.java:1528*)

at org.apache.crimson.parser.Parser2.content(
*Parser2.java:1779*)

at org.apache.crimson.parser.Parser2.maybeElement(
*Parser2.java:1507*)

at org.apache.crimson.parser.Parser2.content(
*Parser2.java:1779*)

at org.apache.crimson.parser.Parser2.maybeElement(
*Parser2.java:1507*)

at org.apache.crimson.parser.Parser2.parseInternal(
*Parser2.java:500*)

at org.apache.crimson.parser.Parser2.parse(
*Parser2.java:305*)

at org.apache.crimson.parser.XMLReaderImpl.parse(
*XMLReaderImpl.java:442*)

at javax.xml.parsers.SAXParser.parse(
*SAXParser.java:375*)

at org.apache.axis.encoding.DeserializationContextImpl.parse(
*DeserializationContextImpl.java:232*)

at org.apache.axis.SOAPPart.getAsSOAPEnvelope(
*SOAPPart.java:546*)

at org.apache.axis.Message.getSOAPEnvelope(
*Message.java:377*)

at org.apache.axis.client.Call.invokeEngine(
*Call.java:2132*)

at org.apache.axis.client.Call.invoke(
*Call.java:2102*)

at org.apache.axis.client.Call.invoke(
*Call.java:1851*)

at org.apache.axis.client.Call.invoke(
*Call.java:1777*)

at org.apache.axis.client.Call.invoke(
*Call.java:1315*)

... 4 more

------=_Part_6286_3027566.1201368257928
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<br><font size=3D"2">
<div>Please help me out. I have to invoke the web services dynamically. I g=
one thru the WSIF concepts and it will be helpful for me to invoke the serv=
ices with&nbsp;this framework.&nbsp;I had written&nbsp; webservice &quot;He=
lloWorld&quot; and also generated the client code for that in WSIF but i am=
 not succeded in invoking the webservice.</div>

<div>Please help me to come out of this problem it is on urgent priority as=
 i have to give the presentation on dynamic invocation.</div>
<div>Your help&nbsp;is&nbsp;very&nbsp;worth valuable&nbsp;for me.The detail=
 is as below.</div>
<div>I am sending you the complete details such as WSDL, Client code ,Outpu=
t, and also the web-service method server side.</div>
<div>I had deploy the HelloWorld.aar file into jakarta-tomcat-5.</div>
<div>The location of service is&nbsp; : <a>http://&lt;localhost&gt;:8080/ax=
is2/services/listServices</a>&nbsp;</div>
<div>Service code : </div>
<div><strong>HelloInterface.java</strong></div>
<div>&nbsp;</div>
<div>package hello;<br>public interface HelloInterface<br>{<br>&nbsp;public=
 int sayHello(java.lang.String str_1);<br>}</div>
<div>
<p><strong>HelloWorld.java</strong></p>
<p>package hello;</p>
<p>public class HelloWorld implements HelloInterface, java.rmi.Remote<br>{<=
br>&nbsp;public int sayHello(java.lang.String str_1)<br>&nbsp;{<br>&nbsp;&n=
bsp;System.out.println(&quot;Welcome in HelloWorld :&quot;+str_1);<br>&nbsp=
;&nbsp;return 10;<br>&nbsp;}</p>

<p>}</p>
<p><strong>Service.xml :</strong></p>
<p>&lt;service name=3D&quot;HelloWorld&quot; scope=3D&quot;application&quot=
; targetNamespace=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window,ev=
ent,this)" href=3D"http://hello/" target=3D"_blank">http://hello</a>&quot;&=
gt;<br>
&nbsp;&nbsp;&nbsp; &lt;description&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; Say Hello<br>&nbsp;&nbsp;&nbsp; &lt;/description&gt;<br>&nbsp;&nb=
sp;&nbsp; &lt;messageReceivers&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;messageReceiver mep=3D&quot;<a onclick=3D"return top.js.OpenExtLink(win=
dow,event,this)" href=3D"http://www.w3.org/2004/08/wsdl/in-out" target=3D"_=
blank">http://www.w3.org/2004/08/wsdl/in-out</a>&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class=3D=
&quot;org.apache.axis2.rpc.receivers.RPCMessageReceiver&quot;/&gt;<br>&nbsp=
;&nbsp;&nbsp; &lt;/messageReceivers&gt;<br>&nbsp;&nbsp;&nbsp; &lt;schema sc=
hemaNamespace=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window,event,=
this)" href=3D"http://hello/xsd%22/" target=3D"_blank">http://hello/xsd&quo=
t;/</a>&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;parameter name=3D&quot;ServiceClass&quot;&gt;hello.H=
elloWorld&lt;/parameter&gt;<br>&lt;/service&gt;</p>
<p><strong>build.xml</strong></p>
<p>&lt;project basedir=3D&quot;.&quot; default=3D&quot;generate.service&quo=
t;&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;property environment=3D&quot;env&quot;/&gt;<br>&n=
bsp;&nbsp;&nbsp; &lt;property name=3D&quot;AXIS2_HOME&quot; value=3D&quot;$=
{env.AXIS2_HOME}&quot;/&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;property name=3D&quot;build.dir&quot; value=3D&qu=
ot;build&quot;/&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;path id=3D&quot;axis2.classpath&quot;&gt;<br>&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fileset dir=3D&quot;${AXIS2_HOME=
}/lib&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; &lt;include name=3D&quot;*.jar&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp; &lt;/fileset&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/path&gt=
;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;target name=3D&quot;compile.service&quot;&gt;<br>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mkdir dir=3D&quot;${build.di=
r}&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mkdir dir=
=3D&quot;${build.dir}/classes&quot;/&gt;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--First let&#39;s compil=
e the classes--&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;javac=
 debug=3D&quot;on&quot; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fork=3D&quot;true&quot;<br>&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
destdir=3D&quot;${build.dir}/classes&quot; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srcdir=3D&quot;${b=
asedir}/src&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; classpathref=3D&quot;axis2.classpath&quot;&gt;<br>&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/javac&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/targe=
t&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;target name=3D&quot;generate.wsdl&quot; depends=
=3D&quot;compile.service&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; &lt;taskdef name=3D&quot;java2wsdl&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cla=
ssname=3D&quot;org.apache.ws.java2wsdl.Java2WSDLTask&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp; classpathref=3D&quot;axis2.classpath&quot;/&gt;<br>&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;java2wsdl className=3D&quot;he=
llo.HelloWorld&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; outputLocation=3D=
&quot;${build.dir}&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; targetNamespa=
ce=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=
=3D"http://hello/" target=3D"_blank">http://hello</a>&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; schemaTargetNamespace=3D&quot;<a onclick=
=3D"return top.js.OpenExtLink(window,event,this)" href=3D"http://hello/xsd"=
 target=3D"_blank">http://hello/xsd</a>&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;classpath&gt;<br>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; &lt;pathelement path=3D&quot;${axis2.classpath}&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; &lt;pathelement location=3D&quot;${build.dir}/classes&quot;=
/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 &lt;/classpath&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/java=
2wsdl&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/target&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;target name=3D&quot;generate.service&quot; depend=
s=3D&quot;compile.service&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; &lt;!--aar them up --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; &lt;copy toDir=3D&quot;${build.dir}/classes&quot; failonerror=3D&quot;f=
alse&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;file=
set dir=3D&quot;${basedir}/resources&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;inclu=
de name=3D&quot;**/*.xml&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fileset&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp; &lt;/copy&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; &lt;jar destfile=3D&quot;${build.dir}/HelloWorld.aar&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;file=
set excludes=3D&quot;**/Test.class&quot; dir=3D&quot;${build.dir}/classes&q=
uot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/jar&gt;<br>&nb=
sp;&nbsp;&nbsp; &lt;/target&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;target name=3D&quot;clean&quot;&gt;<br>&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;delete dir=3D&quot;${build.dir}&quot;/=
&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/target&gt;<br>&lt;/project&gt;<br></p>
<p><strong>HelloWorld.wsdl</strong></p>
<p>&lt;?xml version=3D&quot;1.0&quot; encoding=3D&quot;UTF-8&quot;?&gt;<br>=
&lt;wsdl:definitions xmlns:wsdl=3D&quot;<a onclick=3D"return top.js.OpenExt=
Link(window,event,this)" href=3D"http://schemas.xmlsoap.org/wsdl/" target=
=3D"_blank">http://schemas.xmlsoap.org/wsdl/</a>&quot; xmlns:axis2=3D&quot;=
<a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"http://=
hello/" target=3D"_blank">http://hello</a>&quot; xmlns:mime=3D&quot;<a oncl=
ick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"http://schemas=
.xmlsoap.org/wsdl/mime/" target=3D"_blank">http://schemas.xmlsoap.org/wsdl/=
mime/</a>&quot; xmlns:ns0=3D&quot;<a onclick=3D"return top.js.OpenExtLink(w=
indow,event,this)" href=3D"http://hello/xsd" target=3D"_blank">http://hello=
/xsd</a>&quot; xmlns:soap12=3D&quot;<a onclick=3D"return top.js.OpenExtLink=
(window,event,this)" href=3D"http://schemas.xmlsoap.org/wsdl/soap12/" targe=
t=3D"_blank">http://schemas.xmlsoap.org/wsdl/soap12/</a>&quot; xmlns:http=
=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=
=3D"http://schemas.xmlsoap.org/wsdl/http/" target=3D"_blank">http://schemas=
.xmlsoap.org/wsdl/http/</a>&quot; xmlns:ns1=3D&quot;<a onclick=3D"return to=
p.js.OpenExtLink(window,event,this)" href=3D"http://org.apache.axis2/xsd" t=
arget=3D"_blank">http://org.apache.axis2/xsd</a>&quot; xmlns:wsaw=3D&quot;<=
a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"http://w=
ww.w3.org/2006/05/addressing/wsdl" target=3D"_blank">http://www.w3.org/2006=
/05/addressing/wsdl</a>&quot; xmlns:xs=3D&quot;<a onclick=3D"return top.js.=
OpenExtLink(window,event,this)" href=3D"http://www.w3.org/2001/XMLSchema" t=
arget=3D"_blank">http://www.w3.org/2001/XMLSchema</a>&quot; xmlns:soap=3D&q=
uot;<a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D"htt=
p://schemas.xmlsoap.org/wsdl/soap/" target=3D"_blank">http://schemas.xmlsoa=
p.org/wsdl/soap/</a>&quot; targetNamespace=3D&quot;<a onclick=3D"return top=
.js.OpenExtLink(window,event,this)" href=3D"http://hello/" target=3D"_blank=
">http://hello</a>&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;wsdl:types&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp; &lt;xs:schema xmlns:xsd=3D&quot;<a onclick=3D"return top.js.OpenEx=
tLink(window,event,this)" href=3D"http://hello/xsd" target=3D"_blank">http:=
//hello/xsd</a>&quot; targetNamespace=3D&quot;<a onclick=3D"return top.js.O=
penExtLink(window,event,this)" href=3D"http://hello/xsd" target=3D"_blank">=
http://hello/xsd</a>&quot; attributeFormDefault=3D&quot;qualified&quot; ele=
mentFormDefault=3D&quot;qualified&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:e=
lement name=3D&quot;sayHello&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:complexTyp=
e&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;<br>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element=
 name=3D&quot;str_1&quot; minOccurs=3D&quot;0&quot; type=3D&quot;xs:string&=
quot; nillable=3D&quot;true&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;<br>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; &lt;/xs:complexType&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:element&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name=3D&quot;sayHello=
Response&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:sequence&gt;<br>&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xs:element name=3D&=
quot;return&quot; minOccurs=3D&quot;0&quot; type=3D&quot;xs:int&quot;/&gt;<=
br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:sequence&gt;<br>&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp; &lt;/xs:complexType&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:=
element&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xs:schema&gt=
;<br>&nbsp;&nbsp;&nbsp; &lt;/wsdl:types&gt;<br>&nbsp;&nbsp;&nbsp; &lt;wsdl:=
message name=3D&quot;sayHelloRequest&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; &lt;wsdl:part name=3D&quot;parameters&quot; element=3D&qu=
ot;ns0:sayHello&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/wsdl:message&gt;<br>&nbsp;&nbsp;&nbsp; &lt;wsdl:mes=
sage name=3D&quot;sayHelloResponse&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; &lt;wsdl:part name=3D&quot;parameters&quot; element=3D&quot=
;ns0:sayHelloResponse&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/wsdl:message&gt=
;<br>&nbsp;&nbsp;&nbsp; &lt;wsdl:portType name=3D&quot;HelloWorldPortType&q=
uot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:operation name=3D&quot;=
sayHello&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; &lt;wsdl:input message=3D&quot;axis2:sayHelloRequest&quot; ws=
aw:Action=3D&quot;urn:sayHello&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:output message=3D&quot;axis2:=
sayHelloResponse&quot; wsaw:Action=3D&quot;urn:sayHelloResponse&quot;/&gt;<=
br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/wsdl:operation&gt;<br>&nbsp=
;&nbsp;&nbsp; &lt;/wsdl:portType&gt;<br>&nbsp;&nbsp;&nbsp; &lt;wsdl:binding=
 name=3D&quot;HelloWorldSOAP11Binding&quot; type=3D&quot;axis2:HelloWorldPo=
rtType&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:bin=
ding transport=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window,event=
,this)" href=3D"http://schemas.xmlsoap.org/soap/http" target=3D"_blank">htt=
p://schemas.xmlsoap.org/soap/http</a>&quot; style=3D&quot;document&quot;/&g=
t;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:operation name=3D&quot;=
sayHello&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; &lt;soap:operation soapAction=3D&quot;urn:sayHello&quot; styl=
e=3D&quot;document&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:input&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:bod=
y use=3D&quot;literal&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/wsd=
l:input&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; &lt;wsdl:output&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap:body use=3D&quot;lit=
eral&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; &lt;/wsdl:output&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; &lt;/wsdl:operation&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/wsdl:binding&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;wsdl:binding name=3D&quot;HelloWorldSOAP12Binding&qu=
ot; type=3D&quot;axis2:HelloWorldPortType&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp; &lt;soap12:binding transport=3D&quot;<a onclick=3D"r=
eturn top.js.OpenExtLink(window,event,this)" href=3D"http://schemas.xmlsoap=
.org/soap/http" target=3D"_blank">http://schemas.xmlsoap.org/soap/http</a>&=
quot; style=3D&quot;document&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:operation name=3D&quot;=
sayHello&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp; &lt;soap12:operation soapAction=3D&quot;urn:sayHello&quot; st=
yle=3D&quot;document&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:input&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap12=
:body use=3D&quot;literal&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/wsd=
l:input&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; &lt;wsdl:output&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soap12:body use=3D&quot;l=
iteral&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; &lt;/wsdl:output&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; &lt;/wsdl:operation&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/wsdl:binding&gt;<br=
>
&nbsp;&nbsp;&nbsp; &lt;wsdl:binding name=3D&quot;HelloWorldHttpBinding&quot=
; type=3D&quot;axis2:HelloWorldPortType&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; &lt;http:binding verb=3D&quot;POST&quot;/&gt;<br>&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:operation name=3D&quot;sayHe=
llo&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;http=
:operation location=3D&quot;HelloWorld/sayHello&quot;/&gt;<br>&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:input&gt;<br=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp; &lt;mime:content type=3D&quot;text/xml&quot; part=3D&quot;=
sayHello&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; &lt;/wsdl:input&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl=
:output&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mime:content type=3D&quot;text/xml&quot;=
 part=3D&quot;sayHello&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/wsdl:output&gt;<br>&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; &lt;/wsdl:operation&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/wsd=
l:binding&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;wsdl:service name=3D&quot;HelloWorld&quot;&gt;<br>&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:port name=3D&quot;HelloWo=
rldSOAP11port_http&quot; binding=3D&quot;axis2:HelloWorldSOAP11Binding&quot=
;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 &lt;soap:address location=3D&quot;<a onclick=3D"return top.js.OpenExtLink(=
window,event,this)" href=3D"http://localhost:8080/axis2/services/HelloWorld=
%22/" target=3D"_blank">http://localhost:8080/axis2/services/HelloWorld&quo=
t;/</a>&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/wsdl:port&gt;<br>&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:port name=3D&quot;HelloWorldSOAP1=
2port_http&quot; binding=3D&quot;axis2:HelloWorldSOAP12Binding&quot;&gt;<br=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;soa=
p12:address location=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window=
,event,this)" href=3D"http://localhost:8080/axis2/services/HelloWorld%22/" =
target=3D"_blank">http://localhost:8080/axis2/services/HelloWorld&quot;/</a=
>&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/wsdl:port&gt;<br>&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;wsdl:port name=3D&quot;HelloWorldHttpp=
ort&quot; binding=3D&quot;axis2:HelloWorldHttpBinding&quot;&gt;<br>&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;http:address=
 location=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window,event,this=
)" href=3D"http://localhost:8080/axis2/services/HelloWorld%22/" target=3D"_=
blank">http://localhost:8080/axis2/services/HelloWorld&quot;/</a>&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/wsdl:port&gt;<br>&nbsp;&nbs=
p;&nbsp; &lt;/wsdl:service&gt;<br>&lt;/wsdl:definitions&gt;<br><br><strong>=
xsd&nbsp; file is</strong> : </p>
<div>
<div style=3D"MARGIN-LEFT: 1em; TEXT-INDENT: -2em"><a onclick=3D"return top=
.js.OpenExtLink(window,event,this)" href=3D"http://localhost:8080/axis2/ser=
vices/HelloWorld?xsd#" target=3D"_blank"><strong><font face=3D"Courier New"=
 color=3D"#ff0000">-</font></strong></a> &lt;xs:schema attributeFormDefault=
=3D&quot;qualified&quot; elementFormDefault=3D&quot;qualified&quot; targetN=
amespace=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window,event,this)=
" href=3D"http://hello/xsd" target=3D"_blank">http://hello/xsd</a>&quot; xm=
lns:axis2=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window,event,this=
)" href=3D"http://hello/" target=3D"_blank">http://hello</a>&quot; xmlns:ns=
=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=
=3D"http://hello/xsd" target=3D"_blank">http://hello/xsd</a>&quot; xmlns:ns=
0=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=
=3D"http://hello/xsd" target=3D"_blank">http://hello/xsd</a>&quot; xmlns:ns=
1=3D&quot;<a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=
=3D"http://org.apache.axis2/xsd" target=3D"_blank">http://org.apache.axis2/=
xsd</a>&quot; xmlns:xs=3D&quot;<a onclick=3D"return top.js.OpenExtLink(wind=
ow,event,this)" href=3D"http://www.w3.org/2001/XMLSchema" target=3D"_blank"=
>http://www.w3.org/2001/XMLSchema</a>&quot;&gt;<br>
- &lt;xs:element name=3D&quot;sayHello&quot;&gt;<br>- &lt;xs:complexType&gt=
;<br>- &lt;xs:sequence&gt;<br>&nbsp; &lt;xs:element name=3D&quot;str_1&quot=
; nillable=3D&quot;true&quot; type=3D&quot;xs:string&quot; /&gt; <br>&nbsp;=
 &lt;/xs:sequence&gt;<br>
&nbsp; &lt;/xs:complexType&gt;<br>&nbsp; &lt;/xs:element&gt;<br>- &lt;xs:el=
ement name=3D&quot;sayHelloResponse&quot;&gt;<br>- &lt;xs:complexType&gt;<b=
r>- &lt;xs:sequence&gt;<br>&nbsp; &lt;xs:element name=3D&quot;return&quot; =
nillable=3D&quot;true&quot; type=3D&quot;xs:int&quot; /&gt; <br>
&nbsp; &lt;/xs:sequence&gt;<br>&nbsp; &lt;/xs:complexType&gt;<br>&nbsp; &lt=
;/xs:element&gt;<br>&nbsp; &lt;/xs:schema&gt;</div></div></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><strong>And my client side code is : client is developed using eclips =
3.1 </strong></div>
<div><strong></strong>&nbsp;</div>
<div><strong>HelloWorld.java</strong></div>
<div>
<p>import java.util.Iterator;<br>import org.apache.wsif.WSIFMessage;<br>imp=
ort org.apache.wsif.WSIFOperation;<br>import org.apache.wsif.WSIFPort;<br>i=
mport org.apache.wsif.WSIFService;<br>import org.apache.wsif.WSIFServiceFac=
tory;</p>

<p>import javax.xml.namespace.QName;<br>public class HelloWorld {</p>
<p>&nbsp;/**<br>&nbsp; * @param args<br>&nbsp; * <br>&nbsp; */<br>&nbsp;<br=
>&nbsp;public static void main(String[] args) throws Exception {<br>&nbsp;&=
nbsp;System.out.println(&quot;Start -- 1&quot;);<br>&nbsp;&nbsp;String str1=
=3D&quot;Rizwan&quot;;<br>&nbsp;&nbsp;<br>&nbsp;&nbsp;<br>&nbsp;<br>&nbsp;&=
nbsp;WSIFServiceFactory factory =3D WSIFServiceFactory.newInstance();<br>
&nbsp;&nbsp;String wsdlloc=3D&quot;<a onclick=3D"return top.js.OpenExtLink(=
window,event,this)" href=3D"http://localhost:8080/axis2/services/HelloWorld=
?wsdl" target=3D"_blank">http://localhost:8080/axis2/services/HelloWorld?ws=
dl</a>&quot;;<br>
&nbsp;&nbsp;System.out.println(&quot; -- 2 --&quot;);<br>&nbsp;&nbsp;WSIFSe=
rvice service =3D factory.getService(wsdlloc,null,null ,&quot;<a>http://hel=
lo&quot;,&quot;HelloWorldPortType</a>&quot;);<br>&nbsp;&nbsp;service.mapTyp=
e(new QName(&quot;<a onclick=3D"return top.js.OpenExtLink(window,event,this=
)" href=3D"http://hello/xsd%22,%22HelloWorld%22),Class.forName(%22clientsid=
ecode.HelloClient.HelloWorld" target=3D"_blank">http://hello/xsd&quot;,&quo=
t;HelloWorld&quot;),Class.forName(&quot;clientsidecode.HelloClient.HelloWor=
ld</a>&quot;));<br>
&nbsp;&nbsp;WSIFPort port =3D service.getPort(&quot;HelloWorldSOAP11port_ht=
tp&quot;);<br>&nbsp;&nbsp;System.out.println(&quot;-- 3--&quot;);<br>&nbsp;=
&nbsp;WSIFOperation operation=3Dport.createOperation(&quot;sayHello&quot;);=
<br>&nbsp;&nbsp;WSIFMessage input =3D operation.createInputMessage(&quot;st=
r_1&quot;);<br>
&nbsp;&nbsp;WSIFMessage output =3Doperation.createOutputMessage();<br>&nbsp=
;&nbsp;WSIFMessage fault =3D operation.createFaultMessage();<br>&nbsp;&nbsp=
;input.setObjectPart(&quot;str_1&quot;,str1);<br>&nbsp;&nbsp;String str_2=
=3D&quot;Hi&quot;;<br>&nbsp;&nbsp;System.out.println(&quot;Input Message&qu=
ot;+input);<br>
&nbsp;&nbsp;System.out.println(&quot;Input parts : &quot;+input.getObjectPa=
rt(&quot;str_1&quot;));<br>&nbsp;&nbsp;//input.setObjectPart(&quot;part1&qu=
ot;,str_2);<br>&nbsp;&nbsp;<br>&nbsp;&nbsp;if(operation.executeRequestRespo=
nseOperation(input,output,fault))<br>
&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;System.out.println(&quot;Result : &quot;=
+output.getIntPart(&quot;return&quot;));<br>&nbsp;&nbsp;}<br>&nbsp;&nbsp;//=
 TODO Auto-generated method stub<br>&nbsp;&nbsp;System.out.println(&quot;En=
d&quot;);<br>&nbsp;&nbsp;<br>&nbsp;}</p>
<p>}<br></p>
<p>All the pre-required jar of the WSIF are being installed.</p>
<p>When i run the client the following error occured. Please suggest me whe=
re will be the exact problem is.</p>
<p>&nbsp;</p></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><strong>OUTPUT :</strong></div>
<div>&nbsp;</div>
<div>Start -- 1</div></font><font color=3D"#ff0000" size=3D"2">
<p>Exception in thread &quot;main&quot; </p></font><u><font color=3D"#00008=
0" size=3D"2">org.apache.wsif.WSIFException</font></u><font color=3D"#ff000=
0" size=3D"2">: exception on AXIS invoke: Exception occurred while trying t=
o invoke service method sayHello; nested exception is:=20
<p>Exception occurred while trying to invoke service method sayHello</p>
<p>at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.in=
vokeAXISDocStyle(Unknown Source)</p></font><font size=3D"2">
<p>-- 2 --</p>
<p>- WSIF0006W: Multiple WSIFProvider found supporting the same namespace U=
RI &#39;<a onclick=3D"return top.js.OpenExtLink(window,event,this)" href=3D=
"http://schemas.xmlsoap.org/wsdl/soap/" target=3D"_blank">http://schemas.xm=
lsoap.org/wsdl/soap/</a>&#39;. Found (&#39;org.apache.wsif.providers.soap.a=
pacheaxis.WSIFDynamicProvider_ApacheAxis, org.apache.wsif.providers.soap.ap=
achesoap.WSIFDynamicProvider_ApacheSOAP&#39;) </p>

<p>- WSIF0007I: Using WSIFProvider &#39;org.apache.wsif.providers.soap.apac=
heaxis.WSIFDynamicProvider_ApacheAxis&#39; for namespaceURI &#39;<a onclick=
=3D"return top.js.OpenExtLink(window,event,this)" href=3D"http://schemas.xm=
lsoap.org/wsdl/soap/" target=3D"_blank">http://schemas.xmlsoap.org/wsdl/soa=
p/</a>&#39; </p>

<p>-- 3--</p>
<p>Input Messageorg.apache.wsif.base.WSIFDefaultMessage@c2a132 name:str_1</=
p>
<p>Input parts : Rizwan</p></font><font color=3D"#ff0000" size=3D"2">
<p>at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.in=
vokeRequestResponseOperation(Unknown Source)</p>
<p>at org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.ex=
ecuteRequestResponseOperation(Unknown Source)</p>
<p>at clientsidecode.HelloClient.HelloWorld.main(</p></font><u><font color=
=3D"#000080" size=3D"2">HelloWorld.java:41</font></u><font color=3D"#ff0000=
" size=3D"2">)=20
<p>Caused by: Exception occurred while trying to invoke service method sayH=
ello</p>
<p>at org.apache.axis.message.SOAPFaultBuilder.endElement(</p></font><u><fo=
nt color=3D"#000080" size=3D"2">SOAPFaultBuilder.java:135</font></u><font c=
olor=3D"#ff0000" size=3D"2">)=20
<p>at org.apache.axis.encoding.DeserializationContextImpl.endElement(</p></=
font><u><font color=3D"#000080" size=3D"2">DeserializationContextImpl.java:=
942</font></u><font color=3D"#ff0000" size=3D"2">)=20
<p>at org.apache.crimson.parser.Parser2.maybeElement(</p></font><u><font co=
lor=3D"#000080" size=3D"2">Parser2.java:1528</font></u><font color=3D"#ff00=
00" size=3D"2">)=20
<p>at org.apache.crimson.parser.Parser2.content(</p></font><u><font color=
=3D"#000080" size=3D"2">Parser2.java:1779</font></u><font color=3D"#ff0000"=
 size=3D"2">)=20
<p>at org.apache.crimson.parser.Parser2.maybeElement(</p></font><u><font co=
lor=3D"#000080" size=3D"2">Parser2.java:1507</font></u><font color=3D"#ff00=
00" size=3D"2">)=20
<p>at org.apache.crimson.parser.Parser2.content(</p></font><u><font color=
=3D"#000080" size=3D"2">Parser2.java:1779</font></u><font color=3D"#ff0000"=
 size=3D"2">)=20
<p>at org.apache.crimson.parser.Parser2.maybeElement(</p></font><u><font co=
lor=3D"#000080" size=3D"2">Parser2.java:1507</font></u><font color=3D"#ff00=
00" size=3D"2">)=20
<p>at org.apache.crimson.parser.Parser2.parseInternal(</p></font><u><font c=
olor=3D"#000080" size=3D"2">Parser2.java:500</font></u><font color=3D"#ff00=
00" size=3D"2">)=20
<p>at org.apache.crimson.parser.Parser2.parse(</p></font><u><font color=3D"=
#000080" size=3D"2">Parser2.java:305</font></u><font color=3D"#ff0000" size=
=3D"2">)=20
<p>at org.apache.crimson.parser.XMLReaderImpl.parse(</p></font><u><font col=
or=3D"#000080" size=3D"2">XMLReaderImpl.java:442</font></u><font color=3D"#=
ff0000" size=3D"2">)=20
<p>at javax.xml.parsers.SAXParser.parse(</p></font><u><font color=3D"#00008=
0" size=3D"2">SAXParser.java:375</font></u><font color=3D"#ff0000" size=3D"=
2">)=20
<p>at org.apache.axis.encoding.DeserializationContextImpl.parse(</p></font>=
<u><font color=3D"#000080" size=3D"2">DeserializationContextImpl.java:232</=
font></u><font color=3D"#ff0000" size=3D"2">)=20
<p>at org.apache.axis.SOAPPart.getAsSOAPEnvelope(</p></font><u><font color=
=3D"#000080" size=3D"2">SOAPPart.java:546</font></u><font color=3D"#ff0000"=
 size=3D"2">)=20
<p>at org.apache.axis.Message.getSOAPEnvelope(</p></font><u><font color=3D"=
#000080" size=3D"2">Message.java:377</font></u><font color=3D"#ff0000" size=
=3D"2">)=20
<p>at org.apache.axis.client.Call.invokeEngine(</p></font><u><font color=3D=
"#000080" size=3D"2">Call.java:2132</font></u><font color=3D"#ff0000" size=
=3D"2">)=20
<p>at org.apache.axis.client.Call.invoke(</p></font><u><font color=3D"#0000=
80" size=3D"2">Call.java:2102</font></u><font color=3D"#ff0000" size=3D"2">=
)=20
<p>at org.apache.axis.client.Call.invoke(</p></font><u><font color=3D"#0000=
80" size=3D"2">Call.java:1851</font></u><font color=3D"#ff0000" size=3D"2">=
)=20
<p>at org.apache.axis.client.Call.invoke(</p></font><u><font color=3D"#0000=
80" size=3D"2">Call.java:1777</font></u><font color=3D"#ff0000" size=3D"2">=
)=20
<p>at org.apache.axis.client.Call.invoke(</p></font><u><font color=3D"#0000=
80" size=3D"2">Call.java:1315</font></u><font color=3D"#ff0000" size=3D"2">=
)=20
<p>... 4 more</p></font>

------=_Part_6286_3027566.1201368257928--