Hello,
I've got an issue when working with a jibx axis2 client, based on the
tutorial at:
http://ws.apache.org/axis2/1_4_1/userguide-creatingclients-jibx.html
http://ws.apache.org/axis2/1_4_1/userguide-creatingclients-jibx.html
I'd appreciate if someone could tell if this is a bug or a misuse.
thanks...
My web service is a JAXWS web service, that look like this:
@WebService
public class Hello {
@WebMethod
public String testOneArg(@WebParam(mode=Mode.IN, name="testOneArg0")
String name) {
return "Hello " + name;
}
}
I can correctly invoke the method when using axis2 client with ADB. But I
cannot invoke when using jibx. I get an execption:
org.apache.axis2.AxisFault: Expected "{http://ws/}testOneArgResponse" end
tag, found "return" start tag (line -1, col -1, in SOAP-message)
at
samples.quickstart.service.adb.HelloServiceStub.fromOM(HelloServiceStub.java:641)
at
samples.quickstart.service.adb.HelloServiceStub.testOneArg(HelloServiceStub.java:215)
at
samples.quickstart.clients.ADBClient.testOneArg(ADBClient.java:57)
at samples.quickstart.clients.ADBClient.main(ADBClient.java:43)
The xsd that JAXWS generates contains:
<xs:complexType name="testOneArg">
<xs:sequence>
<xs:element name="testOneArg0" type="xs:string"
minOccurs="0"></xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="testOneArgResponse">
<xs:sequence>
<xs:element name="return" type="xs:string"
minOccurs="0"></xs:element>
</xs:sequence>
</xs:complexType>
I use this schema when creating binding.xml with the xsd2jibx utility. The
binding.xml file contains:
<mapping name="testOneArg" class="ws.TestOneArg">
<namespace uri="http://ws/" default="elements"/>
<value name="testOneArg0" field="testOneArg0" usage="optional"/>
</mapping>
<mapping name="testOneArgResponse" class="ws.TestOneArgResponse">
<namespace uri="http://ws/" default="elements"/>
<value name="return" field="_return" usage="optional"/>
</mapping>
--
View this message in context:
http://www.nabble.com/AxisFault-when-using-jibx-tp19738701p19738701.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]