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.