WSO2Con 2013 CFP Banner

Exception occurred when getting WSDL of service depolyed in Tomcat. Why?

Q : I deployed my service in Tomcat and when I tried to get its WSDL it gave me the following exception:-
<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>

Date: Tue, 30th May, 2006
Level:
Reads: 3304
Discuss this article on Stack Overflow
Deepal Jayasingha

WSO2 Inc.
A : When you ask for WSDL from a service it will only show WSDL in the following cases-

1.User has added his WSDL file into META-INF directory of the service archive file.

2. Each and every operation in the service uses its message receiver as RPCMessageReceiver, RPCInOnlyMessageReceiver or RPCInOutAsyncMessageReceiver.

In all the other cases you will recieve the above error message. Even if you do get this particular error message you can still invoke the service without any problem. Service will not have any deployment problems that you have to worry about.

trampni's picture

messageReceiver

messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" or u can find it in: http://xjiong.spaces.live.com/
allanlang's picture

Another example cause

I also found that if an operation was listed in the services.xml file which did not correspond to a method on the service class (due to a typo for example), this message was also displayed.
deepal's picture

can you please send me your

can you please send me your service archive file , that will be help me to fix the issue