Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

how to return .xml file from web service?

Thread view: 
Bharat - 05 Sep 2006 06:58 GMT
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
Zaph0d - 05 Sep 2006 09:11 GMT
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).
Arne Vajhøj - 05 Sep 2006 16:34 GMT
> 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


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



©2009 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.