File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Few questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Few questions" Watch "Few questions" New topic

Few questions

Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
I am not being able to understand few things and maybe someone here can help me. Been looking at the axis for the past couple of days and I am failing to find an adequate example there. I need to have my web service return a message that I will create based on the let's say string input parameter, meaning, I want to return a message that will include few xml documents in soap body and few attachments in the SOAPMessage. Only then I want to return this message to the client. However if one is using message type service, axis only accepts these method signatures:

Am I missing something really simple here or ???
Cory Wilkerson
Ranch Hand

Joined: Aug 14, 2001
Posts: 84
Can you explain a bit more? Is your issue in the return type or in the parameter? The params you're being passed with a message style service should be ample enough to allow you to pull params or generate a good response with the data you're wanting to add. SAAJ provides a full API for low-level SOAP Processing (parsing input params/adding multipe xml "documents"/adding attachments).
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
Cory, thank you for the reply. What I wanted is to have a service which will return a SOAPMessage which I will be able to manipulate just before returning. JAXM and jwsdp1.1 finally provided me with and example of what I wanted. I still don't know how can one do the same thing with axis.
Don't get me started about those stupid light bulbs.
subject: Few questions
It's not a secret anymore!