Discussion:
How to return .xml file from web service
(too old to reply)
Bharat
2006-09-05 05:57:34 UTC
Permalink
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
Bart Van der Donck
2006-09-06 08:30:59 UTC
Permalink
Post by Bharat
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??
The web service is the 'passive' part and the client the 'active' part.
This means, your service only responds to incoming requests from
clients that build up a connection with the service. The answer of the
server depends on the client's question. The service is a so-called
'daemon', that is, a programme that is listening at the server on a
specified port to incoming requests.

This stuff is typically done using socket communication. But I've also
seen web services over plain http, ftp or even by automated e-mail
processing. Plain http/ftp is simple: just place you XML file in a
fixed location and then point the client to that location with a GET
request.

There is support in most languages. I've seen examples in Perl, Java,
VB, C++... PHP's socket communication is still beta, so I heard. Pick
your favourite API language and study its documentation on how web
service requests are done there.

Hope this helps,
--
Bart
Bharat
2006-09-13 06:11:09 UTC
Permalink
Thank you..Bart... it's working fine.

Thank You again
Bharat
Post by Bart Van der Donck
Post by Bharat
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??
The web service is the 'passive' part and the client the 'active' part.
This means, your service only responds to incoming requests from
clients that build up a connection with the service. The answer of the
server depends on the client's question. The service is a so-called
'daemon', that is, a programme that is listening at the server on a
specified port to incoming requests.
This stuff is typically done using socket communication. But I've also
seen web services over plain http, ftp or even by automated e-mail
processing. Plain http/ftp is simple: just place you XML file in a
fixed location and then point the client to that location with a GET
request.
There is support in most languages. I've seen examples in Perl, Java,
VB, C++... PHP's socket communication is still beta, so I heard. Pick
your favourite API language and study its documentation on how web
service requests are done there.
Hope this helps,
--
Bart
Continue reading on narkive:
Loading...