GeeCON Prague 2014*
The moose likes Web Services and the fly likes XFireFault: Could not find appropriate operation for request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "XFireFault: Could not find appropriate operation for request" Watch "XFireFault: Could not find appropriate operation for request" New topic
Author

XFireFault: Could not find appropriate operation for request

Gerin Jacob
Greenhorn

Joined: Jun 11, 2009
Posts: 8

Hi,

I am exposing a webservice using xfire and xml beans.
Webservice got deployed and I am able to successfully post the xml and got the response back.

But I am not able to call the webservice using the Client java class.



I am getting the following error:
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Could not find appropriate operation for request executeTest() in service 'XXXSyncService'
org.codehaus.xfire.fault.XFireFault: Could not find appropriate operation for request executeTest() in service 'XXXSyncService'
at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Client.onReceive(Client.java:382)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
at org.codehaus.xfire.client.Client.invoke(Client.java:335)
at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy8.terminateTest(Unknown Source)


Can somebody help me here?

Regards,
Gerin Jacob


Regards,
Gerin Jacob
Gerin Jacob
Greenhorn

Joined: Jun 11, 2009
Posts: 8

I figured out the issue.
That was a dumb mistake I did.

I was sending the request object as null

I prepared a proper request object and it worked fine

Regards,
Gerin Jacob
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XFireFault: Could not find appropriate operation for request