Skip to main content

No corresponding wsdl operation

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
sglicker
Offline
Joined: 2010-02-22

I'm using Metro 2 to generate code from a wsdl and subsequently use the original wsdl (no wsdl generation from code) and found that when I change a WSDL operation name from lower-camel-case to upper-camel-case I get the following error when launching Jetty.
SEVERE: WSSERVLET11: failed to parse runtime descriptor: javax.xml.ws.WebServiceException: Method getServiceStatus is exposed as WebMethod, but there is no corresponding wsdl operation with name getServiceStatus in the wsdl:portType{http://interface.ticomgeo.com/2010/geonet/SimplifiedGeo/v0}SimplifiedGeoPort

However the generated code specifies operationName="GetServiceStatus" in @WebMethod, see below.

@WebMethod(operationName = "GetServiceStatus")
@WebResult(name = "GetServiceStatusOut", targetNamespace = "http://schemas.ticomgeo.com/2010/geonet/SimplifiedGeo/v0", partName = "msg")
public GetServiceStatusOut getServiceStatus(
@WebParam(name = "GetServiceStatusIn", targetNamespace = "http://schemas.ticomgeo.com/2010/geonet/SimplifiedGeo/v0", partName = "msg")
GetServiceStatusIn msg)
throws GeneralFailure, InvalidRequestFailure, InvalidURIFailure, RetriableFailure, UnresolvedIDFailure, UnsupportedMessageFailure
;
It runs fine when the WSDL operation name is lwer-camel-case. Help would be greatly appreciated!
Steven

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sglicker
Offline
Joined: 2010-02-22

Found the problem, thanks Jeff! The implementation was specified as my hand-generated impl class but I had not added the annotations to it. (Seems like a newbie problem).

sourabhbansal
Offline
Joined: 2013-10-09

Hi sglicker,

can you tell me which annotation you added to resolve this issue ?
I am stuck at the same problem.