HTH,
Robert
http://www.braziloutsource.com/
On 5/24/06, Scudder, Jeffrey W <
[EMAIL PROTECTED]> wrote:
Hi all,
I had previously deployed a web service as a .aar file in Axis2 version 0.95 and the service broke when I upgraded to 1.0
I rewrote the code for version 1.0 (libraries changed from 0.95 to 1.0) changed services.xml to fit the new example on the Axis2 website, and redeployed the .aar. Unfortunately the service I created does not work. When I attempt to view the WSDL on localhost:8080/axis2 I get the following message:
<error>
<description>Unable to generate WSDL for this service</description>
−
<reason>
Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC.
</reason>
</error>
The same message appears when I attempt to view WSDLs for most of the example web services which come with the Axis2 download. When I attempt to use my service, I receive an HTTP 500 error code.
I am using Tomcat 5.5.17 and the services.xml and code I am using are copied below. Is there something I am doing wrong, are there unresolved version compatibility issues? Any help is greatly appreciated
Thank you,
Jeff Scudder
----services.xml----
<service >
<description>
This is Jeff's sample Web Service with two operations, echo and ping.
</description>
<parameter name="ServiceClass" locked="false">JeffService</parameter>
<operation name="echo">
<messageReceiver class=" org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
<actionMapping>urn:echo</actionMapping>
</operation>
<operation name="ping">
<messageReceiver class=" org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
<actionMapping>urn:ping</actionMapping>
</operation>
</service>
----JeffService.java----
import org.apache.axiom.om.*;
public class JeffService {
public void ping(OMElement element){
return;
}
public OMElement echo(OMElement element){
return element;
}
}
