With Tomcat 5.0.28 and Axis 1.2RC3, I try to send document-literal XML message to a web service but get the following error message: No such operation.
The XML message sent is:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<action xmlns="http://ww.xx.yy.zz">add</action>
<year xmlns="http://ww.xx.yy.zz">8</year>
</soapenv:Body>
</soapenv:Envelope>
The service Endpoint contains the following method:
public String myMethod(String x, int y)
It seems that Axis can not do the XML-Java mapping as the message does not contain the method name (since it is document literal style).
Could somebody help me what to do to solve this problem ?
Is it necessary to define a server method which use JavaBeans ?
Thanks in advance
The XML message sent is:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<action xmlns="http://ww.xx.yy.zz">add</action>
<year xmlns="http://ww.xx.yy.zz">8</year>
</soapenv:Body>
</soapenv:Envelope>
The service Endpoint contains the following method:
public String myMethod(String x, int y)
It seems that Axis can not do the XML-Java mapping as the message does not contain the method name (since it is document literal style).
Could somebody help me what to do to solve this problem ?
Is it necessary to define a server method which use JavaBeans ?
Thanks in advance