I am using a client stub generated by Axis2 WSDL2Java. I can call a method that takes a string as an argument and returns a string fine. But I have another method that takes an array and a string as arguments and returns an array. When I use the client stub I always get an empty soap body. I have stepped through the code with the debugger as best I can and I can see that the Type class has the required getPullParser() method, which seems to be doing the right thing.
 
Does anyone who understands the internals of axis2 have any tips for me on how to debug this?
 
Here is a sample of the messages generated.
 
===============This is successful=====================
POST /axis2/services/VREXJurisdiction HTTP/1.1
 
User-Agent: Axis/2.0
 
SOAPAction: systemAvailable
 
Host: 127.0.0.1:2002
 
Transfer-Encoding: chunked
 
Content-Type: text/xml; charset=UTF-8
 
 
 
123
 
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schema
s.xmlsoap.org/soap/envelope/"><soapenv:Header /><soapenv:Body><ns1:systemAvailableRe
quest xmlns:ns1="urn:types"><jurisdiction>NSW</jurisdiction></ns1:systemAvailableReq
uest></soapenv:Body></soapenv:Envelope>
 
0
 
===============This one fails=====================
POST /axis2/services/VREXJurisdiction HTTP/1.1
 
User-Agent: Axis/2.0
 
SOAPAction: submitIncidents
 
Cookie: JSESSIONID=BE3A84AF5D4ABA3194A4B13C0819A27C
 
Cookie2: JSESSIONID=BE3A84AF5D4ABA3194A4B13C0819A27C
 
Host: 127.0.0.1:2002
 
Transfer-Encoding: chunked
 
Content-Type: text/xml; charset=UTF-8
 
 
 
Thanks,
Andrew

Reply via email to