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