So my assumption was correct. If you use anything other than RPCMessageReceiver then axis2 doesn’t display WSDL.

Now, people working on the development axis2 can shed some more light on it.

 

 

 

 


From: Syam Prasad [mailto:[EMAIL PROTECTED]
Sent: Monday, September 11, 2006 1:47 PM
To: Charak, Vikas
Subject: RE: Can not see wsdl

 

Charak,

 

I did it and it showing the WSDL when I chang to org.apache.axis2.rpc.receivers.RPCMessageReceiver.

 

Syam

 


From: Charak, Vikas [mailto:[EMAIL PROTECTED]
Sent: Monday, September 11, 2006 12:06 PM
To: [email protected]; [EMAIL PROTECTED]
Subject: RE: Can not see wsdl

 

Just for the sake of testing change org.apache.axis2.receivers.RawXMLINOutMessageReceiver  to org.apache.axis2.rpc.receivers.RPCMessageReceiver and deploy the service again.

And then check if you can see the WSDL now.

 


From: Syam Prasad [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 11, 2006 12:30 PM
To: [email protected]
Subject: RE: Can not see wsdl

 

Charak,

 

Here it is.

 

<service name="MyService">

    <module ref="soapmonitor"/>

            <parameter name="ServiceClass"

          locked="false">edit.webservice.test.MyService</parameter>

            <operation name="process">

                        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>

            </operation>

</service>

 


From: Charak, Vikas [mailto:[EMAIL PROTECTED]
Sent: Monday, September 11, 2006 10:59 AM
To: [email protected]; [EMAIL PROTECTED]
Subject: RE: Can not see wsdl

 

Can you post your service.xml?

 


From: Syam Prasad [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 11, 2006 11:39 AM
To: [email protected]
Subject: RE: Can not see wsdl

 

Charak,

 

I wanted to see the wsdl file that axis2 generates. An article by Deepal says the following.

 

When Axis2 finds a service what it does is first it check whether there are any WSDL files in META-INF directory. If there is give the priority to the WSDL files and using those Axis2 web service will be created. If no WSDL files are found then it goes through services.xml file to find the service implementation class. Using that class, it generates a WSDL file using a process called Java2WSDL. This will only taken place if the service class was implemented using Java. Bottom line, when some one ask for ?wsdl for that particular service it will show the generated WSDL.

 

Thanks,

Syam


From: Charak, Vikas [mailto:[EMAIL PROTECTED]
Sent: Monday, September 11, 2006 10:08 AM
To: [email protected]
Subject: RE: Can not see wsdl

 

Make sure your WSDL is in .aar file . Another thing which I found was that, if your message receivers are not RPCMessageReceiver then you get this message.

 

 


From: Syam Prasad [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 11, 2006 10:53 AM
To: [email protected]
Subject: Can not see wsdl

 

Hi,

 

I am using message style service. When I try to see the wsdl for my service using URL localhost:8080/services/MyService?wsdl, the response I get is the following.

 

      <- <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>

 

 

  Can anybody explain me how to see the wsdl?

 

  Thanks,

  Syam

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reply via email to