[Solved] XFire Error: org.codehaus.xfire.fault.XFireFault

When the client calls, the following errors are found in the package:

rg.codehaus.xfire.fault.XFireFault: There must be a method name element.
at org.codehaus.xfire.service.binding.RPCBinding.readMessage(RPCBinding.java:36)

There is a problem with the URL in the client code. Just remove ?wsdl

That is to say:

String url = "http://localhost:8080/xfire/services/AdvancedService?wsdl"; 

Amend to read:

String url = "http://localhost:8080/xfire/services/AdvancedService";

It’s OK.

Read More: