Results 1 to 9 of 9

Thread: Dynamic WSDL Generation and specifying SOAP Headers

  1. #1
    Join Date
    Jan 2008
    Posts
    13

    Default Dynamic WSDL Generation and specifying SOAP Headers

    I have developed a web service and configured it to use the DynamicWsdl11Definition class to generate the wsdl. While invoking the web service I require the user credentials to be specified in the SOAP header. I am performing my own authentication and authorization.

    When the wsdl is generated the requirements for the soap header are not specified in the wsdl since there is no place to specify that in the schema file. The client code (running in php) needs the soap header definition to be placed in the wsdl file as well. Is there any way I can use the Dynamic wsdl definition feature and get this ability as well? If thats not possible then I am guessing that I might have to fall back to the SimpleWsdlDefinition or maybe somehow extend the builder class to add the required feature. Anyone else run into this issue.

    Thanks

  2. #2
    Join Date
    Oct 2004
    Posts
    4

    Default

    Previous posts indicate this can be accomplished by hand coding changes to XsdBasedSoap11Wsdl4jDefinitionBuilder. If same can be accomplished through configuration it would be a huge plus for the framework.

    Is this feature in the Roadmap?

  3. #3
    Join Date
    Jan 2008
    Posts
    4

    Default

    This is something we need in our project also. Having a way to dynamically generate a wsdl with the required headers would be a huge improvement

  4. #4
    Join Date
    Jan 2008
    Posts
    1

    Default

    I´m also locking for a way to define header elements in WSDL.

    Does anybody knows a way to integrate header information during the WSDL generation?

  5. #5
    Join Date
    Aug 2009
    Posts
    4

    Default

    Hi

    I am in badly need of it. Does anybody found the solution for this


    How to expose the wsdl which includes soapheader elements(to be set) while sending the request to the webservice?

    Thanks in advance.

  6. #6
    Join Date
    Dec 2008
    Posts
    13

    Default

    have no solutions been found for this? This could be very useful.

  7. #7
    Join Date
    Apr 2009
    Posts
    9

    Default

    Hello,

    I'm also looking for method to add header definition to the generated WSDL. E.g:

    Code:
    <wsdl:binding name="ServiceSoap11" type="tns:Service">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
        <wsdl:operation name="Operation">
            <soap:operation soapAction="" />
            <wsdl:input>
                 <soap:body parts="request" use="literal"/>
    	     <soap:header message="tns:HeaderMessage" part="SomePart" use="literal"/>
            </wsdl:input>
    	<wsdl:output>
    	    ...
            </wsdl:output>
    </wsdl:operation>
    I don't know how to customize DefaultWsdl11Definition bean for soap:header element in the binding part.

    Any help will be appreciated. I would like to avoid editing WSDL by hand.

    Marcin

  8. #8
    Join Date
    Apr 2009
    Posts
    9

    Default

    Does anyone know how to add custom header definition to the generated WSDL?

    Thanks in advance,
    Marcin

  9. #9

    Default Wishs someone addressed this.

    I really wish someone addressed this. I implemented WS-Security, however there just seems no way to make it show up in the WSDL.

    Regards,
    Franklin

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •