Exception occurred when getting WSDL of service depolyed in Tomcat. Why?
Submitted on May 29, 2006 - 23:23. Story : Project :
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>
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.
(1 vote)
»
- Login or register to post comments
- Printer friendly version
- 2054 reads
Tag Cloud
Apache Rampart
Apache Synapse
Axis2
Axis2
Axis2/C
Rampart/C
Axis2/C
WSF/C
data services
ESB
ESB
Identity Solution
Rampart/Java
Sandesha2/Java
Synapse/Java
Axis2/Java
ESB/Java
AXIOM/Java
WSAS/Java
Mashup Server
Mule
OpenID
open source
PHP
WSF/PHP
POJO
Proxy Services
rampart
Rampart
Registry
REST
Sandesha2
security
SOA
soap
Spring
Synapse
Synapse
Training
webinar
Web Services
WS-Security
WSAS
WSAS
wsdl
wsf
WSF/C
WSF/PHP
WSO2
WSO2 WSF/PHP











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.
can you please send me your
can you please send me your service archive file , that will be help me to fix the issue
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/