[Xml-compile] What to do when the WSDL namespaces are wrong

Kit Peters Kit.Peters at broadbean.com
Thu Mar 31 22:27:27 GMT 2016


I have this WSDL that generates the following SOAP request, which the server rejects:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Header>
    <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/03/addressing">Export-Test-0000</wsa:MessageID>
    <wsa:ReplyTo xmlns:wsa="http://www.w3.org/2005/03/addressing">
      <wsa:Address>http://www.taleo.com/ws/integration/toolkit/2005/07/addressing/queue</wsa:Address>
    </wsa:ReplyTo>
    <wsa:Action xmlns:wsa="http://www.w3.org/2005/03/addressing">http://www.taleo.com/ws/integration/toolkit/2005/07/action/export</wsa:Action>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <tns:submitDocument xmlns:ns2011_05="http://www.taleo.com/ws/integration/toolkit/2011/05" xmlns:tns="http://www.taleo.com/ws/integration/toolkit/2011/05/management" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <ns2011_05:Document>
        <ns2011_05:Attributes>
          <ns2011_05:Attribute name="locale">en</ns2011_05:Attribute>
          <ns2011_05:Attribute name="version">http://www.taleo.com/ws/tee800/2009/01</ns2011_05:Attribute>
          <ns2011_05:Attribute name="mode">T-XML</ns2011_05:Attribute>
          <ns2011_05:Attribute name="largegraph">true</ns2011_05:Attribute>
        </ns2011_05:Attributes>
        <Content xmlns="http://www.taleo.com/ws/integration/toolkit/2005/07">
          <!-- omitted for clarity -->  
        </Content>
      </ns2011_05:Document>
    </tns:submitDocument>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

However, when I change the namespaces with prefix “ns2011_05” and “tns”, the server accepts the request. At present, I’m modifying the namespaces in the transport_hook, but is there a better / more elegant way to handle this?

KP


Kit Peters
Doer of Things, ATS Integrations



Broadbean 
610 Newport Center Dr #1400, Newport Beach, CA 929660, United States
D: 949.793.8208   M: 816.200.0279
broadbean.com <http://www.broadbean.com/> | LinkedIn <https://www.linkedin.com/company/broadbean-technology> | Facebook <https://www.facebook.com/Broadbean.Technology> | Twitter <https://twitter.com/BroadbeanInc> | Google+ <https://plus.google.com/+broadbean> | Blog <http://info.broadbean.com/blog>


More information about the Xml-compile mailing list