Book a Demo

Author Topic: Generate WSDL adding import statement  (Read 2391 times)

arpaniagua

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Generate WSDL adding import statement
« on: November 19, 2012, 11:13:35 pm »
Hi all,
I am using EA to model web services and generate WSDL files. The problem I am facing is that I need to use headers in the messages. I am able to generate the message binding correctly including the headers.

Code: [Select]
<wsdl:input name="operationRequest">
      <soap:body parts="request" use="literal"/>
<soap:header xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" message="headers:HeaderMessage" part="header" use="literal"/>
</wsdl:input>

However, the problem is that the message used in the header (headers:HeaderMessage) is in another WSDL file that shall be imported in the original document. Can I add an import directive anywhere so the generated file will be complete? I would like to avoid having to manually manipulate the file after the generation. Or maybe is another solution I don't know.

Thank you in advance.