Have you tried
    <messageReceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>  ?
-----Message d'origine-----
De : JJC [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 31 mai 2006 17:06
À : Axis Users
Objet : axis2 servlet, trouble generating wsdl


Hi All,

1)  I created a simple web service by following the user's guide from ws.apache.org -

http://ws.apache.org/axis2/0_95/userguide2.html

2)  My service basically has a method to echo back the input String array -

  public Object[] echoInput( Object[] inParams )
  {
    for ( int i=0; i<inParams.length; ++i )
    {
      log.info( i + "," + inParams[i] );
    }

    return inParams;
  }

3)  My services.xml is as below.  I left the messageReceiver the same as in the user's guide.

<service >
    <description>
    </description>
    <parameter name="ServiceClass" locked="false">edu.princeton.bb.ws.SID.puBBSIDService</parameter>
    <operation name="echoInput">
        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
    </operation>
 </service>


4)  I compiled and created the puBBSIDService.aar and deployed successfully.

5)  When I tried to access the wsdl for this service, which I think is supposed to be automatically generated I get the following error -
<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>

6) How can I fix the problem?? Any help is greatly appreciated.

Thanks...

Jennifer J. Chen

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to