Me-thinks there might be something wrong with your WSDL. Axis should
always send payload parameters in the body, not the header.

Please post the WSDL.

Anne

On 8/23/06, ezwise <[EMAIL PROTECTED]> wrote:

Q: Is there a way to have the stub classes generated (using WSDL2Java) with
the second to last "param" argument set to 'false' instead of 'true'??

After running WSDL2Java for a given web service to generate the client java
classes, I was unable to successfully invoke the web service.  After some
investigation I found that the SOAP request contained the web service
parameters in its header, while the web service is checking for parameters
in the SOAP request body.

I modified the second to last argument of the parameter declarations of the
stub class generated by WSDL2Java, which was 'true':

        param = new org.apache.axis.description.ParameterDesc(new
javax.xml.namespace.QName("urn:testws", "OpSet"),
org.apache.axis.description.ParameterDesc.IN, new
javax.xml.namespace.QName("urn:testws", "SetInputMap"),
testws.SetInputMap.class, true, false);

and changed it to 'false':

        param = new org.apache.axis.description.ParameterDesc(new
javax.xml.namespace.QName("urn:testws", "OpSet"),
org.apache.axis.description.ParameterDesc.IN, new
javax.xml.namespace.QName("urn:testws", "SetInputMap"),
testws.SetInputMap.class, false, false);


After making the change and compiling the classes everything works as
expected!

Now, I just need to make this happen automatically.  Is there an Axis class
that generates these stubs that I could change to modify this default
WSDL2Java behavior?

Yes, I'm a newbie – so please handle w/ care.  Any assistance will be
greatly appreciated.


Regards,
Ezra
--
View this message in context: 
http://www.nabble.com/-Axis-1.2--Sending-SOAP-request-parameters-in-BODY-instead-of-HEADER-tf2154309.html#a5950916
Sent from the Axis - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to