These two settings are incompatible:

   style="message" provider="java:RPC"

You want to use provider="java:MESSAGE" when using message style.

Anne

On 6/9/05, Marc Rabil <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Hi All, 
> 
>   
> 
> I am having trouble calling a service of style message and was wondering if
> someone can help.    
> 
>   
> 
> 1. Here's my service definition: 
> 
>   
> 
>  <service name="TEST_SERVICE" style="message" provider="java:RPC"> 
> 
>    <parameter name="scope" value="application"/> 
> 
>    <parameter name="allowedMethods" value="invoke"/> 
> 
>    <parameter name="className" value="services.TestService"/> 
> 
>  </service> 
> 
>   
> 
> 2. Here is the service class: 
> 
>   
> 
> public class TestService { 
> 
>   
> 
>   public Element[] invoke(Element[] bodies) { 
> 
>     System.out.println("invoke called..."); 
> 
>     return null; 
> 
>   } 
> 
> } 
> 
>   
> 
> 3. Here is the SOAP I am sending (it is coming from the Axis client, but
> that should not matter right?): 
> 
>   
> 
> POST /services/servlet/AxisServlet HTTP/1.0 
> 
> Content-Type: text/xml; charset=utf-8 
> 
> Accept: application/soap+xml, application/dime, multipart/related, text/* 
> 
> User-Agent: Axis/1.1 
> 
> Host: 127.0.0.1 
> 
> Cache-Control: no-cache 
> 
> Pragma: no-cache 
> 
> SOAPAction: "" 
> 
> Content-Length: 508 
> 
>  
> 
> <?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> 
> 
>   <ns1:invoke
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:ns1="TEST_SERVICE"> 
> 
>    <authToken
> xsi:type="xsd:string">FOHENNEAKMHA</authToken> 
> 
>    <sampleNumber xsi:type="xsd:int">12345</sampleNumber> 
> 
>   </ns1:invoke> 
> 
>  </soapenv:Body> 
> 
> </soapenv:Envelope> 
> 
>   
> 
> The server is returning a fault with the message: java.lang.Exception: Body
> not found.  Clearly the inbound SOAP message has a body. It does not seem to
> be a problem with the message created as the return SOAP either since the
> invoke method never gets called. 
> 
>   
> 
> Any ideas as to what I am doing wrong? 
> 
>   
> 
> Thanks in advance for any help. 
> 
>   
> 
> Marc 
> 
>   
> 
>

Reply via email to