Namespaces matter? Savon chooses wrong namespaces...

123 views
Skip to first unread message

DerNalia

unread,
Sep 14, 2012, 8:37:13 AM9/14/12
to sav...@googlegroups.com
What soapUI gives (and this works when I submit it)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://api.echosign" xmlns:dto="http://dto.api.echosign" xmlns:dto8="http://dto8.api.echosign" xmlns:dto9="http://dto9.api.echosign">
  <soapenv:Body>
    <api:createEmbeddedWidget>
      <api:apiKey>key</api:apiKey>
      <api:senderInfo>
        <dto:email>email</dto:email>
        <dto:password>pass</dto:password>
      </api:senderInfo>
      <api:widgetInfo>
        <dto8:fileInfos>
          <dto:FileInfo>
            <dto:fileName>Copy of Copy of Copy of Copy of Copy of ... created on the herp.pdf</dto:fileName>
            <dto:url>any url to a pdf</dto:url>

          </dto:FileInfo>
        </dto8:fileInfos>
        <dto8:name>Copy of Copy of Copy of Copy of Copy of ... created on the herp</dto8:name>
      </api:widgetInfo>
    </api:createEmbeddedWidget>
  </soapenv:Body>
</soapenv:Envelope>



What Savon generates:

  <soapenv:Body>
    <ins1:createEmbeddedWidget>
      <ins1:apiKey>key</ins1:apiKey>
      <ins1:senderInfo>
        <ins0:email>email</ins0:email>
        <ins0:password>pass</ins0:password>
      </ins1:senderInfo>
      <ins1:widgetInfo>
        <ins5:fileInfos>
          <wsdl:FileInfo>
            <wsdl:fileName>Copy of Copy of Copy of Copy of Copy of ... created on the herp.pdf</wsdl:fileName>
            <wsdl:url>any url to a pdf</wsdl:url>
          </wsdl:FileInfo>
        </ins5:fileInfos>
        <ins5:name>Copy of Copy of Copy of Copy of Copy of ... created on the herp</ins5:name>
      </ins1:widgetInfo>
    </ins1:createEmbeddedWidget>
  </soapenv:Body>
</soapenv:Envelope>




notice that they are entirely the same, aside from the namespaces. Is this a bug? 
here is the WSDL:
Reply all
Reply to author
Forward
0 new messages