Problem Calling Client Web Service

M

Mike

I am calling a web service that a client has set up for me to call. I am
using Visual Studio 2003 with C# to call the web service.

They are telling me on that on their side that the xml I send over to the
web service needs to be a single line with no line breaks. Is there any
attributes I can set in my program to send the xml as a single line? I know
its a stupid issue on their side but I have a feeling I am going to have to
find a way to code around it.

Thanks in advance.

Mike R
 
K

Keenan Newton

Honestly Mike I am nto sure but you could take the XML from the
XmlDocument.OuterXml, and using the replace command remove new line and
carriage returns. I am not to sure how clean, or efficeint that is but
it should work.
 
D

Dan Rogers

If their web service is properly processing XML, they cannot tell you to
not pass white space characters. All proper XML stacks treat the white
space (line breaks, extra spaces, carriage returns) as non-essential
information.

It sounds like the web service was created by hand, processing angle
brackets as delimiters, and not build using a cross-platform capable web
service tool kit. I'd tell them they need to make their web service XML
compliant.


--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top