Hi all, I finally got my client to work by changing the underlying mechanism to send the message to the server. I was operation on a HTTP connection making a POST request in my previous examples. I decided to see if I could get the system working by using the Axis2 ServiceClient class to make the request. I created an OMElement with the following contents:
<ns:echoResponse xmlns:ns="http://jeff.scudder/xsd"><return><example1:Text xmlns:example1="http://jeff.scudder/xsd">Hello Axis2 </example1:Text></return></ns:echoResponse> And the echo service worked correctly. I am wondering if the service client wraps the message in a SOAP envelope. If not, I wanted my service to only accept SOAP envelopes, so I used org.apache.axis2.rpc.receivers.RPCMessageReceiver as the messageReceiver in my services.xml specification. Is this the correct receiver class? Or should I have specified a different one. Thanks to all for your help. Thank you, Jeff Scudder -----Original Message----- From: Scudder, Jeffrey W Sent: Friday, June 02, 2006 9:37 AM To: [email protected] Subject: RE: Axis 2 example web service fails Hi Kinichiro, Thank you for the idea, but I'm afraid it made no difference. -Jeff -----Original Message----- From: Kinichiro Inoguchi [mailto:[EMAIL PROTECTED] Sent: Thursday, June 01, 2006 9:37 PM To: [email protected] Subject: RE: Axis 2 example web service fails Jeff, Seeing your WSDL, I think "echo" should have "element". like this, <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header /> <soapenv:Body> <jst:echo xmlns:jst="http://jeff.scudder"> <element>HelloAxis2</element> </jst:echo> </soapenv:Body> </soapenv:Envelope> How about this ? Regards, kinichiro __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
