Hi,
I'm writting a dynamic webservice invoker with Axis2. I'm testing .NET interroperability and Axis2 give me a nullpointerexception with a sample .NET webservice parsing the response.
This is stack trace:
The 2 first lines show message is sent to the ..NET server and invokation response is received (I'have tried this web service with SOAPUI and I'heve same response than second line), so NullpointerException is throw when Axis2 parse the response. This web service works perfectly with a dynamic axis based client. I'd prefered to base my implementation on Axis2 than Axis
An Idea ?
Thanks,
Arnaud


httpclient.wire.content - DEBUG - >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header /><soapenv:Body><GetDrawings xmlns="http://lottoexchange.net/LottoDrawings";><EndDate>2006-11-05</EndDate><State>Alaska</State><StartDate>2005-11-05</StartDate><Game>Test</Game></GetDrawings></soapenv:Body></soapenv:Envelope>" httpclient.wire.content - DEBUG - << "<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:si="http://soapinterop.org/xsd";><SOAP-ENV:Body><GetDrawingsResponse><value xsi:type="xsd:string">&lt;Drawings&gt;&lt;/Drawings&gt;</value></GetDrawingsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope><!--[\n]" httpclient.wire.content - DEBUG - << "soap_server: entering parseRequest() on 00:49 2006-03-31[\n]" httpclient.wire.content - DEBUG - << "soap_server: method name: GetDrawings[\n]" httpclient.wire.content - DEBUG - << "soap_server: method 'GetDrawings' exists[\n]" httpclient.wire.content - DEBUG - << "soap_server: calling parser->get_response()[\n]"
httpclient.wire.content - DEBUG - << "soap_server: parser debug: [\n]"
httpclient.wire.content - DEBUG - << "soap_parser: Entering soap_parser()[\n]" httpclient.wire.content - DEBUG - << "soap_parser: found root struct GetDrawings, pos 3[\n]" httpclient.wire.content - DEBUG - << "soap_parser: adding data for scalar value EndDate of value 2006-11-05[\n]" httpclient.wire.content - DEBUG - << "soap_parser: adding data for scalar value State of value Alaska[\n]" httpclient.wire.content - DEBUG - << "soap_parser: adding data for scalar value StartDate of value 2005-11-05[\n]" httpclient.wire.content - DEBUG - << "soap_parser: adding data for scalar value Game of value Test[\n]" httpclient.wire.content - DEBUG - << "soap_parser: inside buildVal() for GetDrawings(pos 3) of type struct[\n]" httpclient.wire.content - DEBUG - << "soap_parser: parsed successfully, found root struct: 3 of name GetDrawings[\n]"
httpclient.wire.content - DEBUG - << "[\n]"
httpclient.wire.content - DEBUG - << "soap_server: params var dump array(4) {[\n]"
httpclient.wire.content - DEBUG - << "  ["EndDate"]=>[\n]"
httpclient.wire.content - DEBUG - << "  &string(10) "2006-11-05"[\n]"
httpclient.wire.content - DEBUG - << "  ["State"]=>[\n]"
httpclient.wire.content - DEBUG - << "  &string(6) "Alaska"[\n]"
httpclient.wire.content - DEBUG - << "  ["StartDate"]=>[\n]"
httpclient.wire.content - DEBUG - << "  &string(10) "2005-11-05"[\n]"
httpclient.wire.content - DEBUG - << "  ["Game"
org.apache.axis2.AxisFault: null; nested exception is:
   java.lang.NullPointerException
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:124) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:65) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:352) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:267) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:445) Caused by: java.lang.NullPointerException at com.ctc.wstx.io.ReaderBootstrapper.verifyXmlEncoding(ReaderBootstrapper.java:213) at com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:143) at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:503) at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:558) at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:578) at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:284) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:115)

Reply via email to