Jeff,
You are using the RawXMLINOutMessageReceiver. I believe in Axis2 1.0,
automatic WSDL generation only happens when you use the RPCMessageReceiver.
If you need to use RawXMLINOutMessageReceiver, then you have generate the
WSDL yourself and drop it in the META-INF folder.
- Junaid
"robert lazarski"
<[EMAIL PROTECTED]
mail.com> To
[email protected]
05/25/2006 01:15 cc
PM
Subject
Re: Buggy .aar deployment
Please respond to
[EMAIL PROTECTED]
he.org
Post the stack trace for the 500 error and maybe we can help. The rules
changed for displaying a wsdl in the 1.0 release - search the forums with
the message for more info.
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;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]