aspose file tools*
The moose likes Web Services and the fly likes Must I create new file when client invoke soap method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Must I create new file when client invoke soap method?" Watch "Must I create new file when client invoke soap method?" New topic
Author

Must I create new file when client invoke soap method?

Yashnoo lyo
Ranch Hand

Joined: Feb 17, 2003
Posts: 152
Hi friends:
I want to create a soap method on server.It can query database and create a ArrayList using java. But I have seen the Apache soap and Axis.But they must create a xml file and send the xml to client.But the problem is that I shouldn't create xml on server. There are many people view the data everyday.If I create a new file when client invoke the soap method,it will be millions of file be created every hours!
How do I create a xml stream and send it to client without a xml file on server?
I must create a new xml file if I use soap webservices?
thks!


When I face C# and Java I choose Java.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
SOAP servers don't usually work by creating files, instead they create the response as an XML formatted character stream as a response. I think you should work through some of the AXIS examples until you understand whats going on instead of jumping into the middle of your own project design.
Bill
Yashnoo lyo
Ranch Hand

Joined: Feb 17, 2003
Posts: 152
Thks.

What you say is what I want to get.I have seen Axis example some times but no luck. I can seen a xml file in several example.I don't find without create xml's example .Could you tell me where is the file or these example's URL? Thks in advanced!
Yashnoo lyo
Ranch Hand

Joined: Feb 17, 2003
Posts: 152
Any idea?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
I don't understand what you mean by
I have seen Axis example some times but no luck.

Did you download the AXIS package, install it and get the examples running?
Next pick one of the examples that is close to what you want to do, get your environment set up so you can compile and run that example without changes.
Next move that example into your own package/ application server and get it working.
Finally you are ready to write your own code, using that example as a guide.
Bill
Yashnoo lyo
Ranch Hand

Joined: Feb 17, 2003
Posts: 152
How to return a List in webservice if I use Axis? :roll:
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Yashnoo lyo:
How to return a List in webservice if I use Axis?

Have you read the Axis User's Guide? Take a look at at least "Java Collections" and "When Beans Are Not Enough".


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Must I create new file when client invoke soap method?