I am trying to implement message-style web services using one of the examples provided in the Axis distribution i.e., the one in "samples/message/MessageService.java".
No matter how I change the implementation in MessageService.java, it returns the SAME SOAP request received as my SOAP response to the client.
Here is my Web service's implementation:
---------------------------------------------------------------------------------------------------------------- public Element[] echoElements(Element [] elems) throws java.lang.Exception{
Element[] elem = null;
elem[0] = XMLUtils.StringToElement("urn:foo","e1", "Hello");
return elem; } ----------------------------------------------------------------------------------------------------------------
Theoretically, this method should return an element which is as follows in the SOAP response.
<ns1:e1 xmlns:ns1="urn:foo">Hello</ns1:e1>
But, to my surprise no matter what kind of SOAP request this service receives, it is sending back the same payload as my SOAP response. Why is this happening?
I tried putting some System.out.println's in my service's implementation but they are not getting printed either. So does that mean that the control is not reaching my service ? Is that a possibility?
TIA for any pointers or suggestions!! Vivek
_________________________________________________________________
Get a FREE online computer virus scan from McAfee when you click here. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963