Re: Passing an XML document to a web service

From: STom (stombiztalker_at_hotmail.com)
Date: 02/05/04


Date: Thu, 5 Feb 2004 14:57:16 -0500

I believe in my case what I will have to do is convert the xml document to a
string.

The web service will be on an IBM box, either websphere or something like
that, no Microsoft libraries or anything like that.

Thanks.

STom
"Alex Feinman [MVP]" <public_news@alexfeinman.com> wrote in message
news:OvxDdLB7DHA.2676@TK2MSFTNGP10.phx.gbl...
> Web services (SOAP) will do serialization for you. There are no
> user-callable serialization methods (No LOS formatter, no binary
> serialization etc) but SOAP formatter exists inside
System.Web.Services.DLL
> although you cannot call it directly.
>
> You have two options to pass xml document between the client and the
server.
> One is using parameter (or return value) of type XML document. When you
> declare web method with return type of XmlDocument, .NET will return the
> SOAP response identical to XmlDocument contents - no extra headers at all.
I
> don't know how much is it compatible with generic SOAP, but you could give
> it a try. Write a web method on your platform that returns pure xml
> docuemnt, and on the CF side declare it as returning XmlDocument. This way
> you get the least overhead. If that fails, use string.
>
>
>
>
> "STom" <stombiztalker@hotmail.com> wrote in message
> news:eroo4U$6DHA.1716@TK2MSFTNGP10.phx.gbl...
> > My Pocket PC device will have a wireless connection to the internet and
> > there are some web services that I need to call to pass an XML document
> to.
> >
> > I will, within the Pocket PC app be reading the XML file and putting the
> > data into a dataset to use within the device with a SQL CE database.
When
> I
> > am ready to send to the web service I will just write the data to an xml
> > file and then send it.
> >
> > Now, I have heard that the CF does not support serialization but if I'm
> not
> > mistaken, web services requires data to be serialized.
> >
> > Does the web service automatically do the serialization which therefore
> > relieves the mobile device from having to worry about the serialization
> > issue?
> >
> > Also, is it best to pass the XML document as a string or as an XML
> document.
> > The web service will not be written in .Net.
> >
> > Thanks!
> >
> > STom
> >
> >
>
>



Relevant Pages

  • There was an error generating the XML document. --> Object reference not set to an instance
    ... I've written a web service that returns an xml document with some ... information about documents in a Sharepoint Server, ... Server was unable to process request. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Web Service calling RPGLE Service Program..?
    ... an XML document has no set length and with integrating a Web Service ... with RPGLE my max length is 65535 for a character ... java program that actually calls an RPGLE Service program passing the ...
    (comp.sys.ibm.as400.misc)
  • RE: XML Documents to Web service
    ... >You can pass an XML document to the web service. ... >Note When you use the wizard to create receive ... >>Publishing an Orchestration as a Web Service using the ...
    (microsoft.public.biztalk.general)
  • Re: send soap message
    ... I'm trying to find out how to create an xml document with the above ... > you using .Net or the Soap toolkit. ... > If you are developing your web service client in .Net then you can build ... > framework for an example on how to POST data over Http. ...
    (microsoft.public.dotnet.xml)
  • Creating a booking engine with Web Services
    ... Then I get an xml base response from the web service. ... So XSLT will help me parse the data, I also want to use that data i parse ... They respond back with an XML document. ... Then the customer will pick a flight ...
    (microsoft.public.dotnet.framework.aspnet.webservices)

Quantcast