xml as a parameter

1 view
Skip to first unread message

MCMoyer

unread,
May 7, 2008, 5:13:56 PM5/7/08
to soap4r
I've got a web service that's requiring 6 parameters be sent to it. 5
of them I have no trouble with, but the last one I do. It's an xml
structure that needs to be inserted as is. Originally I was passing
this as a string, but the < symbols were all getting escaped. Next I
tried running that string through REXML::Document to get an xml doc.
When I passed the xml doc in, I get something like this:

<n2:OutputSpec>
<name>UNDEFINED</name>
<whitespace>true</whitespace>
<prefix></prefix>
<namespace></namespace>
<attributes></attributes>
<elements>#&lt;REXML::Elements:0x587000&gt;</elements>
<context></context>
<children>
<
></
>
<<policy ft:status='' ft:qsid='' xmlns:ft='urn:instec-
corp.com:qsdatamodel:wcpsfieldtypes:v1' str:st


being sent when what I want is

<n2:OutputSpec>
<policy ft:sttus='' ft:qsid='' xmlns:ft='urn:instec-
corp.com:qsdatamodel:wcpsfieldtypes:vs' .....

help..please!

Thanks

marlon
Reply all
Reply to author
Forward
0 new messages