Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I use add_document_method in soap4r
    primarykey
    data
    text
    <p>I am looking for a complete example of how to use Soap4r to send a request to document/literal style web service request? The very same question on <a href="https://stackoverflow.com/questions/1103590/soaprpcdriver-formatting-problems-how-can-i-change-it">SOAP::RPC::Driver formatting problems. How can I change it?</a> on Stackoverflow is there, but I couldn't find the way to call the method. Below is how my current request is generated.</p> <pre><code>&lt;env:Body&gt; &lt;n1:GetUserContact xmlns:n1="xmlns:http://foo.bar.baz.com/faz" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;userID xsi:type="xsd:string"&gt; 0123456 &lt;/userID&gt; &lt;/n1:GetUserContact&gt; &lt;/env:Body&gt; </code></pre> <p>but I want my request to be in the following format, which is document/literal</p> <pre><code>&lt;env:Body&gt; &lt;n1:GetUserContact xmlns:n1="xmlns:http://foo.bar.baz.com/faz" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;n1:userID xsi:type="xsd:string"&gt; 0123456 &lt;/n1:userID&gt; &lt;/n1:GetUserContact&gt; &lt;/env:Body&gt; </code></pre> <p>Or</p> <pre><code>&lt;env:Body&gt; &lt;GetUserContact xmlns="http://foo.bar.baz.com/faz" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt; &lt;userID xsi:type="xsd:string"&gt; 0123456 &lt;/userID&gt; &lt;/GetUserContact&gt; &lt;/env:Body&gt; </code></pre> <p>I also looked at <a href="http://www.pluitsolutions.com/2007/08/10/remove-n1-namespace-for-soap4r/" rel="nofollow noreferrer">this</a> but I couldn't set the elementformdefault in my application because my Soap4r does not support this element name. I am not good at Ruby so excuse me if I am making any mistake. I am using ruby 1.8.6 on Ubuntu 8.04 and I installed soap4r-1.5.8 but even without that gem, my application runs(default soap4r library may be at work)</p> <p>I don't know how to get ruby soap4r-1.5.8 lib to work instead of default soap4r library. You might wonder what my question is, and desperately all I want is to get this working anyway by any means.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload