aspose file tools
The moose likes Web Services and the fly likes Message Tags generated in wsdl file using wsgen Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Message Tags generated in wsdl file using wsgen " Watch "Message Tags generated in wsdl file using wsgen " New topic
Author

Message Tags generated in wsdl file using wsgen

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234


Hi ,

I developed a sample web service using JAX WS , and this is a method in my class :




When i ran wsgen of weblogic 11 server through ANT .
It command got generated a wsdl file . There have been two Message Tga sgenerated for this .

1. add

2. addResponse .

Can anybody please let me know , what is this addResponse and why this has been generated ??
(As I am expecting only add )

Please let me know , thanks for reading .



Save India From Corruption - Anna Hazare.
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
The addResponse is a wrapper that contains the result of the add operation, that is, an integer.
It is common practice to wrap the data of requests and responses in an element since the WS-I Basic Profile only allows the body of a SOAP message to contain (at most) one single child element.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

The addResponse is a wrapper that contains the result of the add operation

Thanks Ivan for the response .

I am not sure but i think taht even if i added void to the method , why in this case also it generated the addResponse thing ??

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Message Tags generated in wsdl file using wsgen
 
Similar Threads
JAX-WS web service simple example
Where to use wsgen?
A question with respect to structure of wsdl file
JAX-WS wsgen using Maven2
Unable to generate WSDL file from Ant script.