Hi Friends,
I am new to webservices. I've made a really simple WebService. I deploy it to the
JBoss 5 AS and JBoss automatically generates the WSDL for it. I use SAAJ API to pass the
SOAP Request Message(using an xml file) to this webservice and then I get the response. I am going to provide each of the resources below:
1. Webservice Code:
2. WSDL Generated when I deployed above webservice on JBoss AS:
3. The SAAJ Client Code that I am using:
4. The SOAP Request message (or the content of soapRequest.xml) that the above SAAJ Client Code is sending to Webservice:
5. The Response that the SAAJ Client Code gets from the Webservice:
My Question: The Response that we got from the webservice has a tag <item> under <companies> tag. I want that it should be named as <company>, and not <item>. I believe there should be an annotation for doing this which I may have to apply to the WebMethod in the Webservice code which I've listed.
Request you to let me know what should I do in order to get this done without changing the WSDL manually.
Best Regards,
Nitin