Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Changing SOAP RPC/Encoded to Document/Literal format

Thread Tools

Changing SOAP RPC/Encoded to Document/Literal format

Hung Nguyen
Posts: n/a
Dear All,

I am very new to RoR here and would like to know how to switch our
application over from the default RPC/Encoded to Document/Literal SOAP

The example in soap4r-1.5.8 ...\sample\howto\documentliteral appears to
use the static "echo.wsdl" file. This file appears to have the settings
for style="document" and use="literal". I guess this is where to
specify RPC/Encoded and Document/Literal format. The section of the
code I am referring to is included below.

However, in our application we use dynamic wsdl and can not set these
settings. Would anyone know how to make RoR/SOAP4R to generate the
services in Document/Literal format? Any help is welcome and


From echo.wsdl:
<binding name="echoBinding" type="tns:echoPortType">
style="document" />
<operation name="echo">
<soapperation soapAction="urn:com.example:echo" style="document"
<input><soap:body use="literal" /></input>
<output><soap:body use="literal" /></output>
Posted via

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
any library for SOAP 1.1 or SOAP 1.2? Amogh Hooshdar Python 1 03-11-2008 09:29 PM
SOAP Request is repeated in the SOAP response. comp.text.xml XML 0 09-20-2006 08:41 AM
SOAP over JMS vs SOAP over HTTP Nagesh Java 2 08-12-2006 12:31 AM
To SOAP or Not To SOAP? mooseshoes XML 3 09-21-2003 04:38 PM
SOAP Client creation in ASP.NET using MS SOAP Toolkit Sham Ramakrishnan ASP .Net 2 07-01-2003 11:29 AM