how to return .xml file from web service?

B

Bharat

Hi Everybody...

I have one web service ,which interacts with database and creates one
..xml file, now I want to pass this file to client...

can I return this file from web service to client....if yes plz tell me
how??

Thanks
Bharat
 
Z

Zaph0d

Well, baisically, you have three options:
1. Returned escaped XML as xsd:string. This is usually very easy to do.
However this denies you from checking against a schema - your client
will have to have "blind faith" in the xml you send instead of being
able to verify it against the web service schema.
2. Change your schema to include the returned xml, then return the xml
by returning it's root. This is usually much harder to do with
automatic tools, but will enable the client to know if the xml you sent
is valid.
3. Use a seperate cache and send the client the key. This should be
done only if the web service is asynchronous and then it's usually the
only option then. This can be done by either using an internal cache
and another web service request (then you're back to 1 and 2), or by
external cache (ftp/http).
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Bharat said:
I have one web service ,which interacts with database and creates one
.xml file, now I want to pass this file to client...

can I return this file from web service to client....if yes plz tell me
how??

Do you really want to send your XML embedded in SOAP XML ?

Arne
 

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,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top