Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

Problem Calling Client Web Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 02 Mar 2005 18:28 GMT
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
Keenan Newton - 02 Mar 2005 23:16 GMT
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.
Dan Rogers - 07 Mar 2005 18:59 GMT
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.

--------------------
>From: "Mike" <mraeNOSPAM@NOSPAMATALLcalibrus.com>
>Subject: Problem Calling Client Web Service
[quoted text clipped - 7 lines]
>Message-ID: <OWIGhW1HFHA.2656@TK2MSFTNGP09.phx.gbl>
>Newsgroups:
microsoft.public.dotnet.framework.aspnet.webservices,microsoft.public.dotnet
.framework.webservices
>NNTP-Posting-Host: 206-169-51-163.gen.twtelecom.net 206.169.51.163
>Path:
TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGP09.phx.gbl
>Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.webservices:9570
microsoft.public.dotnet.framework.aspnet.webservices:28376
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 10 lines]
>
>Mike R

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.