Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #118 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

soap encoding is used for rpc/literal services

Reported by: nahi Assigned to: nahi
Priority: high Milestone: 1.5.5
Component: soap4r Version: 1.5
Keywords: Cc:

Description

Hi Nahi,

It appears that soap encoding is used for rpc/literal services.

Consider the service with wsdl at
http://www.whitemesa.net/wsdl/test-rpc-lit.wsdl
Sample messages for it can be invked from
http://www.whitemesa.net/test-rpc-lit/rpc-lit-clients-index.htm
(for some reason works only with IE browser)

The message for the operation 'echoStringArray' is:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<m:echoStringArray xmlns:m="http://soapbuilders.org/rpc-lit-test">
<inputStringArray xmlns:z='http://soapbuilders.org/rpc-lit-test/types'>
<z:stringItem>The</z:stringItem>
<z:stringItem>quick</z:stringItem>
<z:stringItem>brown</z:stringItem>
<z:stringItem>fox</z:stringItem>
<z:stringItem>jumped</z:stringItem>
<z:stringItem>over</z:stringItem>
<z:stringItem>the</z:stringItem>
<z:stringItem>lazy</z:stringItem>
<z:stringItem>dog.</z:stringItem>
</inputStringArray>
</m:echoStringArray>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

...while the message produced by soap4r is:

<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <env:Body>
    <n1:echoStringArray xmlns:n1="http://soapbuilders.org/rpc-lit-test"
        env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <inputStringArray n2:arrayType="xsd:string[2]"
          xmlns:n2="http://schemas.xmlsoap.org/soap/encoding/"
          xsi:type="n2:Array">
        <item>aaaa</item>
        <item>bbbb</item>
      </inputStringArray>
    </n1:echoStringArray>
  </env:Body>
</env:Envelope>

That is then rejected by the service.

Change History

07/13/05 23:01:33 changed by nahi

  • milestone changed from undefined to 1.5.5.

07/21/05 22:38:39 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

(In [1584]) rpc/literal support. closes #118.