Skip to content

Add SOAP header

George George

Asked Sep 10, 2008, 10:41 PM EDT7 answers
Share
LinkedInX

Hello everyone,


For some non-technical reasons, I can not change the web services implementation code at server side, but only the generated WSDL. Now I want to manipulate the WSDL of the web services to let it require client (web services consumer) to send some additional SOAP headers in each request.

My question is any reference documents about how to manipulate the WSDL so that each time when client is using the WSDL to generate the proxy, it could already have the data structures and other handy things in the proxy so that it is very convenient for the client to send request including the new SOAP headers. Any referred document to do this?


thanks in advance,
George

7 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    +1
    May be you dont have sufficient credentials to do change at the server side
    +1
  • +1

    Thanks Bechir,

     

    As I said before, for some legacy reasons, I can not change the code for the services at server side. I could only change the web services' WSDL content which could let client to refresh to generate new content. My purpose is to add a new SOAP header.

    Any ideas or reference samples?

     

    regards,

    George

    +1
  • +1

    Thanks Bechir,

     

    As I said before, for some legacy reasons, I can not change the code for the services at server side. I could only change the web services' WSDL content which could let client to refresh to generate new content. My purpose is to add a new SOAP header.

    Any ideas or reference samples?

     

    regards,

    George

    +1
  • Bechir Bejaoui
    +1
    Take a look on this sample does't it fit your needs
    +1
  • +1

    It is something Java? I need to do it in C#. :-)

     

    regards,

    George

    +1
  • Bechir Bejaoui
    +1
    A C# code sample is provided at the bottom take a look again
    +1
  • +1

    The sample is about how to add SOAP header from Web Services client, but my question is about how to add SOAP header from server side -- to add SOAP header into WSDL at server side directly. So, the input to me is a WSDL file and the output is a modified version of WSDL which adds specific SOAP header to some web services methods. Any comments?

     

    regards,

    George

    +1