Re: WSDL2Java header creation issues

2009-08-12 Thread sksalver

You can use axis client stub class methos set header to do  this.

Thanks,
Swapna

samanth marisetty wrote:
 
 Hi,
 
I am using WSDL2Java to create java stubs and want to write a client. I
 wanted to know if there is any argument that I need to use, to generate
 the
 headers.
 
   Thanks,
 Samanth.
 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL2Java-header-creation-issues-tp24940347p24941612.html
Sent from the Axis - User mailing list archive at Nabble.com.



Axis remove mustUnderstand attribute

2009-08-12 Thread sksalver

I am using Axis to generate the stub classes and using the axis client stub
method to set the header and its generating extra attribute
soapenv:mustUnderstand=0 please let me know if any of you know how to
remove this attribute.

Thank you,
Swapna
-- 
View this message in context: 
http://www.nabble.com/Axis-remove-mustUnderstand-attribute-tp24941681p24941681.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: WSDL2Java header creation issues

2009-08-12 Thread sksalver

add the following where it says _resp = _call.invoke in your stub class


//*

inputXML =
_call.getMessageContext().getRequestMessage().getSOAPPartAsString();
outputXML =
_call.getMessageContext().getResponseMessage().getSOAPPartAsString();
 

//*

samanth marisetty wrote:
 
 Hi,
 
 I tried to do this.
 
 header.addChildElement(userID).addTextNode(java);
 header.addChildElement(userPwd).addTextNode(sun);
 ((Stub) portType).setHeader(header);
 
 but the problem is, I get a null response back from the service. I used a
 tool called SoapUI to call the service, I was getting back the response.
 Is
 there a way to see what SOAP xml request is being sent? I mean a way to
 log
 or do a standard out?
 
 Thanks,
 Samanth.
 
 On Wed, Aug 12, 2009 at 1:51 PM, sksalver sksal...@gmail.com wrote:
 

 You can use axis client stub class methos set header to do  this.

 Thanks,
 Swapna

 samanth marisetty wrote:
 
  Hi,
 
 I am using WSDL2Java to create java stubs and want to write a
 client.
 I
  wanted to know if there is any argument that I need to use, to generate
  the
  headers.
 
Thanks,
  Samanth.
 
 

 --
 View this message in context:
 http://www.nabble.com/WSDL2Java-header-creation-issues-tp24940347p24941612.html
 Sent from the Axis - User mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/WSDL2Java-header-creation-issues-tp24940347p24942634.html
Sent from the Axis - User mailing list archive at Nabble.com.