Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > how to return .xml file from web service?

Reply
Thread Tools

how to return .xml file from web service?

 
 
Bharat
Guest
Posts: n/a
 
      09-05-2006
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

 
Reply With Quote
 
 
 
 
Zaph0d
Guest
Posts: n/a
 
      09-05-2006
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).

 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
Posts: n/a
 
      09-05-2006
Bharat wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
what value does lack of return or empty "return;" return Greenhorn C Programming 15 03-06-2005 08:19 PM
Help: Delete a single carriage return in a file, but not a double carriage return? Steve Anderson Perl Misc 3 06-21-2004 12:48 AM
How do I return a return-code from main? wl Java 2 03-05-2004 05:15 PM
Return a return value from Perl to Javascript PvdK Perl 0 07-24-2003 09:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57