You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by simpsora <si...@gmail.com> on 2009/02/03 11:32:00 UTC
Missing value in return from autogenerated Jira SOAP service
Hi,
I'm using SOAP to interact with a Jira instance. I've generated the stubs
and a client with org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask (using
Axis 1.4).
I can connect to the remote service and interact with it just fine for the
most part, but I've run into a problem where a getter method in the client
returns null, even though the element is present in the SOAP response
(verified through the tcpmon tool).
The particular method returning null is RemoteIssue.getKey(). I've also
tested with soapUI, and can definitely confirm that the key element is being
returned in the SOAP response. A copy of the response is attached.
I looked at the generate code, and I don't see anything obviously wrong.
Has this issue come up before, or does anyone know why this might be
happening? If more detail is needed, let me know.
Thanks,
Ross
http://www.nabble.com/file/p21807302/resp.xml resp.xml
--
View this message in context: http://www.nabble.com/Missing-value-in-return-from-autogenerated-Jira-SOAP-service-tp21807302p21807302.html
Sent from the Axis - User mailing list archive at Nabble.com.
Re: Missing value in return from autogenerated Jira SOAP service
Posted by mr_greedy <Ch...@msd.govt.nz>.
I had a similar-sounding problem where axis2 was invoking my web service
method, but the request object being passed in wasn't initialised (all the
getters returned null). It turned out that axis2 was trying to match up the
elements within the request, with the request (i.e. a level out), and to fix
this I needed to add the following to the class:
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
--
View this message in context: http://www.nabble.com/Missing-value-in-return-from-autogenerated-Jira-SOAP-service-tp21807302p23436823.html
Sent from the Axis - User mailing list archive at Nabble.com.