473,386 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to return .xml file from web service

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

Sep 5 '06 #1
2 1408
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??
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

Sep 6 '06 #2
Thank you..Bart... it's working fine.

Thank You again
Bharat

Bart Van der Donck wrote:
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??

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
Sep 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bruce W.1 | last post by:
The intent of my web service is an RSS feed from a blog. Originally I used a StringBuilder to make the XML and returned a string from the webmethod. But this doesn't display properly in IE. So...
2
by: Richard A. Wells | last post by:
All I wanted to do was implement a web service where I'd receive an XML document and return one in response. I'd already figured out how to use XmlReader and XmlWriter classes to do the XML work I...
12
by: Jose Fernandez | last post by:
Hello. I'm building a web service and I get this error. NEWS.News.CoverNews(string)': not all code paths return a value This is the WebMethod public SqlDataReader CoverNews(string Sport)...
4
by: JLJ | last post by:
I have a very simple webservice written in Java/Axis. It takes in a complexType with 2 string elements, userid and password. The response is a complexType containing two complexTypes each having...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
1
by: Steve | last post by:
I have a windows CE application, talking to a C# WebService. In the WebService project I have created a dataset (dsJobList), and there is a web method in there which returns a fully loaded...
1
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive...
2
by: crabsdf | last post by:
My project is a single method class which takes a xml object and, using Apache FOP, transforms it into a PDF which is returned as an output stream. Here is full code package...
5
by: TompIfe | last post by:
Hi, I have a web service that reads data from an Access database using datareader and place the data in an array that the web method returns. Now, I want to make the web service also to return an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.