• Post Reply Bookmark Topic Watch Topic
  • New Topic

Message Tags generated in wsdl file using wsgen

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 .


 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!