Considering a possible bug? in the raw soap generation I moved onto using a client created
from wsconsume. Same error so this is maybe a WSDL issue... but the WSDL looks correct and
the files are generated from the WSDL so now I'm really confused. A possible
deployment problem?
Simple client:
| package webservice;
|
| import java.net.MalformedURLException;
| import java.net.URL;
|
| import javax.xml.namespace.QName;
| import javax.xml.ws.Service;
|
| public class FindClient {
|
| public static void main(String[] args) throws MalformedURLException {
| Service service = Service.create(new
URL("http://127.0.0.1:8080/xmlapi/invoke?wsdl"),
| new QName("xmlapi_1.0", "XmlApiMethods"));
|
| FindInterface find = service.getPort(FindInterface.class);
|
| find.ping();
| }
|
| }
|
The error generated:
| Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Endpoint
{xmlapi_1.0}FindInterfacePort does not contain operation meta data for: {xmlapi_1.0}ping
| at
org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:69)
| at
org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109)
| at
org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:553)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:371)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
| at $Proxy15.ping(Unknown Source)
| at webservice.FindClient.main(FindClient.java:17)
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062775#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...