aspose file tools
The moose likes Web Services and the fly likes Problem sending XML Data in soap request Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Problem sending XML Data in soap request" Watch "Problem sending XML Data in soap request" New topic
Author

Problem sending XML Data in soap request

saravana kumar
Ranch Hand

Joined: Jun 25, 2002
Posts: 72
Hi All,

How to send xml data in soap request ?

I would like to send the following data as it is.

{{{
<data xsi:type="xsd:string"><![CDATA[<userid>dfs0000</userid><spare pno="8060-160"/>]]></data>}}}

but it sending as

{{{
<data xsi:type="xsd:string"><![CDATA[<userid>dfs0000</userid><spare pn0="8060-160"/>]]></data>
}}}

Thanks
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2300
Hi ,

I am not able to find the difference between the two.


Rahul Bhattacharjee
LinkedIn - Blog
saravana kumar
Ranch Hand

Joined: Jun 25, 2002
Posts: 72
Sorry

its sending as

& lt;data xsi:type="xsd:string"& gt;& lt;![CDATA[& lt;userid& gt;dfs0000& lt;/userid& gt;& lt;spare pnlog=& quot;8060-160& quot;/& gt;]]& gt;& lt;/data& gt;

[ June 28, 2007: Message edited by: saravana kumar ]
[ June 28, 2007: Message edited by: saravana kumar ]
Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 639
Not sure but curious to know whether you're using UTF-8 encoding in your


Raghav.
Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 639
Not sure but curious to know whether you're using UTF-8 encoding in your soap request?
saravana kumar
Ranch Hand

Joined: Jun 25, 2002
Posts: 72
Yes i am using UTF-8. i have solved this issue by generating soap requests using apache rpc.

earlier i created connection's call and parameter using apache axis. since i changed to rpc, all my issues are resolved.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem sending XML Data in soap request
 
Similar Threads
Soap Envelope not version 1.1
Array of Complex Type- item tag missing
SOAPTextElement in my SOAPBody
Soap error
storing xml fields into variables