Re: Axis2 DII client exception : Unexpected subelement arg0
Thanks for the response. Same request works perfectly with generated code. If there are any links that i can look in will be of great help. Amila Suriarachchi wrote: On Wed, Jan 27, 2010 at 5:52 PM, Tarus pra...@gmail.com wrote: Hello All, I am facing a problem when is using DII client to invoke a webservice. Any help on this is appreciated. Thanks in advance. this seems to be a problem with the request message to send to the server. Try to access the server by generating the code for client side instead of using RPCServiceClient. thanks, Amila. env: - Axis 2.1.3, Tomcat 5.0, JDK 5.0 Trace is below: log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisService). log4j:WARN Please initialize the log4j system properly. org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement arg0 at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:99) at test.DynamicProxy.lsmsdynamicBlockInvocation(DynamicProxy.java:82) at test.DynamicProxy.main(DynamicProxy.java:207) DII sample code: -- RPCServiceClient svrClient = new RPCServiceClient(null, new URL( http://localhost:2323/TestServer/services/TestGateway?wsdl;), new QName(http://sys.com/MyGW ,TestGateway), TestGatewaySoap); Object params[] = new Object[]{test}; // Object[] returnArray= svrClient.invokeBlocking(new QName(http://sys.com/MyGW;, // testMsgRecieve), params,new Class[]{String.class}); Object[] returnArray= svrClient.invokeBlocking(new QName(http://sys.com/MyGW;, testMsgRecieve), params,new Class[]{String.class}); WSDL: -- ?xml version=1.0 encoding=utf-8? wsdl:definitions xmlns:s0=http://wsproviders.mnp.Test.com; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tm=http://microsoft.com/wsdl/mime/textMatching/; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:tns=http://sys.com/MyGW; xmlns:s=http://www.w3.org/2001/XMLSchema; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; targetNamespace=http://sys.com/MyGW; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; wsdl:types s:schema elementFormDefault=qualified targetNamespace=http://wsproviders.mnp.Test.com; s:element name=testMsgReciever s:complexType s:sequence s:element minOccurs=1 maxOccurs=1 name=testRequest nillable=true type=s:string / /s:sequence /s:complexType /s:element s:element name=testMsgRecieverResponse s:complexType s:sequence s:element minOccurs=1 maxOccurs=1 name=return nillable=true type=s:string / /s:sequence /s:complexType /s:element /s:schema s:schema elementFormDefault=qualified targetNamespace=http://sys.com/MyGW; s:element name=string nillable=true type=s:string / /s:schema /wsdl:types wsdl:message name=testMsgRecieverSoapIn wsdl:part name=parameters element=s0:testMsgReciever / /wsdl:message wsdl:message name=testMsgRecieverSoapOut wsdl:part name=parameters element=s0:testMsgRecieverResponse / /wsdl:message wsdl:message name=testMsgRecieverHttpGetIn wsdl:part name=testRequest type=s:string / /wsdl:message wsdl:message name=testMsgRecieverHttpGetOut wsdl:part name=Body element=tns:string / /wsdl:message wsdl:message name=testMsgRecieverHttpPostIn wsdl:part name=testRequest type=s:string / /wsdl:message wsdl:message name=testMsgRecieverHttpPostOut wsdl:part name=Body element=tns:string / /wsdl:message wsdl:portType name=TestGatewaySoap wsdl:operation name=testMsgReciever wsdl:input message=tns:testMsgRecieverSoapIn / wsdl:output message=tns:testMsgRecieverSoapOut / /wsdl:operation /wsdl:portType wsdl:portType name=TestGatewayHttpGet wsdl:operation name=testMsgReciever wsdl:input message=tns:testMsgRecieverHttpGetIn / wsdl:output message=tns:testMsgRecieverHttpGetOut / /wsdl:operation /wsdl:portType
Re: Axis2 DII client exception : Unexpected subelement arg0
On Wed, Jan 27, 2010 at 5:52 PM, Tarus pra...@gmail.com wrote: Hello All, I am facing a problem when is using DII client to invoke a webservice. Any help on this is appreciated. Thanks in advance. this seems to be a problem with the request message to send to the server. Try to access the server by generating the code for client side instead of using RPCServiceClient. thanks, Amila. env: - Axis 2.1.3, Tomcat 5.0, JDK 5.0 Trace is below: log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisService). log4j:WARN Please initialize the log4j system properly. org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement arg0 at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:99) at test.DynamicProxy.lsmsdynamicBlockInvocation(DynamicProxy.java:82) at test.DynamicProxy.main(DynamicProxy.java:207) DII sample code: -- RPCServiceClient svrClient = new RPCServiceClient(null, new URL( http://localhost:2323/TestServer/services/TestGateway?wsdl;), new QName(http://sys.com/MyGW ,TestGateway), TestGatewaySoap); Object params[] = new Object[]{test}; // Object[] returnArray= svrClient.invokeBlocking(new QName(http://sys.com/MyGW;, // testMsgRecieve), params,new Class[]{String.class}); Object[] returnArray= svrClient.invokeBlocking(new QName(http://sys.com/MyGW;, testMsgRecieve), params,new Class[]{String.class}); WSDL: -- ?xml version=1.0 encoding=utf-8? wsdl:definitions xmlns:s0=http://wsproviders.mnp.Test.com; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tm=http://microsoft.com/wsdl/mime/textMatching/; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:tns=http://sys.com/MyGW; xmlns:s=http://www.w3.org/2001/XMLSchema; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; targetNamespace=http://sys.com/MyGW; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; wsdl:types s:schema elementFormDefault=qualified targetNamespace=http://wsproviders.mnp.Test.com; s:element name=testMsgReciever s:complexType s:sequence s:element minOccurs=1 maxOccurs=1 name=testRequest nillable=true type=s:string / /s:sequence /s:complexType /s:element s:element name=testMsgRecieverResponse s:complexType s:sequence s:element minOccurs=1 maxOccurs=1 name=return nillable=true type=s:string / /s:sequence /s:complexType /s:element /s:schema s:schema elementFormDefault=qualified targetNamespace=http://sys.com/MyGW; s:element name=string nillable=true type=s:string / /s:schema /wsdl:types wsdl:message name=testMsgRecieverSoapIn wsdl:part name=parameters element=s0:testMsgReciever / /wsdl:message wsdl:message name=testMsgRecieverSoapOut wsdl:part name=parameters element=s0:testMsgRecieverResponse / /wsdl:message wsdl:message name=testMsgRecieverHttpGetIn wsdl:part name=testRequest type=s:string / /wsdl:message wsdl:message name=testMsgRecieverHttpGetOut wsdl:part name=Body element=tns:string / /wsdl:message wsdl:message name=testMsgRecieverHttpPostIn wsdl:part name=testRequest type=s:string / /wsdl:message wsdl:message name=testMsgRecieverHttpPostOut wsdl:part name=Body element=tns:string / /wsdl:message wsdl:portType name=TestGatewaySoap wsdl:operation name=testMsgReciever wsdl:input message=tns:testMsgRecieverSoapIn / wsdl:output message=tns:testMsgRecieverSoapOut / /wsdl:operation /wsdl:portType wsdl:portType name=TestGatewayHttpGet wsdl:operation name=testMsgReciever wsdl:input message=tns:testMsgRecieverHttpGetIn / wsdl:output message=tns:testMsgRecieverHttpGetOut / /wsdl:operation /wsdl:portType wsdl:portType name=TestGatewayHttpPost wsdl:operation name=testMsgReciever wsdl:input message=tns:testMsgRecieverHttpPostIn / wsdl:output
Axis2 DII client exception : Unexpected subelement arg0
Hello All, I am facing a problem when is using DII client to invoke a webservice. Any help on this is appreciated. Thanks in advance. env: - Axis 2.1.3, Tomcat 5.0, JDK 5.0 Trace is below: log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisService). log4j:WARN Please initialize the log4j system properly. org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement arg0 at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:99) at test.DynamicProxy.lsmsdynamicBlockInvocation(DynamicProxy.java:82) at test.DynamicProxy.main(DynamicProxy.java:207) DII sample code: -- RPCServiceClient svrClient = new RPCServiceClient(null, new URL(http://localhost:2323/TestServer/services/TestGateway?wsdl;), new QName(http://sys.com/MyGW,TestGateway;), TestGatewaySoap); Object params[] = new Object[]{test}; // Object[] returnArray= svrClient.invokeBlocking(new QName(http://sys.com/MyGW;, // testMsgRecieve), params,new Class[]{String.class}); Object[] returnArray= svrClient.invokeBlocking(new QName(http://sys.com/MyGW;, testMsgRecieve), params,new Class[]{String.class}); WSDL: -- ?xml version=1.0 encoding=utf-8? wsdl:definitions xmlns:s0=http://wsproviders.mnp.Test.com; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tm=http://microsoft.com/wsdl/mime/textMatching/; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:tns=http://sys.com/MyGW; xmlns:s=http://www.w3.org/2001/XMLSchema; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; targetNamespace=http://sys.com/MyGW; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; wsdl:types s:schema elementFormDefault=qualified targetNamespace=http://wsproviders.mnp.Test.com; s:element name=testMsgReciever s:complexType s:sequence s:element minOccurs=1 maxOccurs=1 name=testRequest nillable=true type=s:string / /s:sequence /s:complexType /s:element s:element name=testMsgRecieverResponse s:complexType s:sequence s:element minOccurs=1 maxOccurs=1 name=return nillable=true type=s:string / /s:sequence /s:complexType /s:element /s:schema s:schema elementFormDefault=qualified targetNamespace=http://sys.com/MyGW; s:element name=string nillable=true type=s:string / /s:schema /wsdl:types wsdl:message name=testMsgRecieverSoapIn wsdl:part name=parameters element=s0:testMsgReciever / /wsdl:message wsdl:message name=testMsgRecieverSoapOut wsdl:part name=parameters element=s0:testMsgRecieverResponse / /wsdl:message wsdl:message name=testMsgRecieverHttpGetIn wsdl:part name=testRequest type=s:string / /wsdl:message wsdl:message name=testMsgRecieverHttpGetOut wsdl:part name=Body element=tns:string / /wsdl:message wsdl:message name=testMsgRecieverHttpPostIn wsdl:part name=testRequest type=s:string / /wsdl:message wsdl:message name=testMsgRecieverHttpPostOut wsdl:part name=Body element=tns:string / /wsdl:message wsdl:portType name=TestGatewaySoap wsdl:operation name=testMsgReciever wsdl:input message=tns:testMsgRecieverSoapIn / wsdl:output message=tns:testMsgRecieverSoapOut / /wsdl:operation /wsdl:portType wsdl:portType name=TestGatewayHttpGet wsdl:operation name=testMsgReciever wsdl:input message=tns:testMsgRecieverHttpGetIn / wsdl:output message=tns:testMsgRecieverHttpGetOut / /wsdl:operation /wsdl:portType wsdl:portType name=TestGatewayHttpPost wsdl:operation name=testMsgReciever wsdl:input message=tns:testMsgRecieverHttpPostIn / wsdl:output message=tns:testMsgRecieverHttpPostOut / /wsdl:operation /wsdl:portType wsdl:binding name=TestGatewaySoap type=tns:TestGatewaySoap soap:binding transport=http://schemas.xmlsoap.org/soap/http; /