• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Must I create new file when client invoke soap method?

 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any idea?
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to return a List in webservice if I use Axis? :roll:
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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".
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic