-
[Axis] SOAP header parameter for web-service method (1 messages)
- Posted by: Yura Tkachenko
- Posted on: July 19 2006 05:30 EDT
Hello, I have a question about inHeader parameter question in Axis. I've configurated for my methods header parameter: <operation name="logoff" qname="operNS:logoff" xmlns:operNS="urn:mycompany" xmlns:xsd="http://www.w3.org/2001/XMLSchema"<http://www.w3.org/2001/XMLSchema> soapAction="" > <parameter qname="qlExpression" type="tns:string" xmlns:tns=" http://www.w3.org/2001/XMLSchema"/ <http://www.w3.org/2001/XMLSchema>> <parameter qname="Definition_ID" type="tns:long" xmlns:tns=" http://www.w3.org/2001/XMLSchema"/ <http://www.w3.org/2001/XMLSchema>> As you can see I have in both methods sessionHeader inHeader parameter. But I have several issues: 1) In wsdl files these parameters presents as elements sessionHeader, sessionHeader1. So on the client side I need pass both parameters to headers: binding.setHeader(locator.getServiceName().getNamespaceURI(), "sessionHeader", new SessionHeader(sessionHeaderObject)); binding.setHeader(locator.getServiceName().getNamespaceURI(), "sessionHeader1", new SessionHeader(sessionHeaderObject)); So I have duplication, but I want to use both of this methods just pass only one parameter: binding.setHeader(locator.getServiceName().getNamespaceURI(), "sessionHeader", new SessionHeader(sessionHeaderObject)); Is it possible to setup wsdd file or any other changes to use both methods with the same header parameter sessionHeader? 2) And the next issue happends when I trying to generate stubs to my web-service, for example using Axis I generated stubs and I have declaration of the method logoff: //java code void logoff(String sessionId); // how it declare in wsdd <operation name="logoff" qname="operNS:logoff" xmlns:operNS="urn:mycompany" xmlns:xsd="http://www.w3.org/2001/XMLSchema"<http://www.w3.org/2001/XMLSchema> soapAction="" > But for .NET it methods has another declaration: void logoff(); Is it possible in Axis to configurate that inHeader parameters won't shows in the method prototype? -- Thanks for any your help, Yura.Threaded Messages (1)
- [Axis] SOAP header parameter for web-service method by Sahiti Chandra on August 08 2011 17:08 EDT
-
[Axis] SOAP header parameter for web-service method[ Go to top ]
- Posted by: Sahiti Chandra
- Posted on: August 08 2011 17:08 EDT
- in response to Yura Tkachenko
Hi Yura,
I am having the same problem. Are you able to find an answer to #1.
Thanks,
Sahiti