gaumont wang [http://community.jboss.org/people/gaumont] created the discussion

"Jboss web service client runtime error"

To view the discussion, visit: http://community.jboss.org/message/629952#629952

--------------------------------------------------------------
Hi,

I am working on a jax-ws client using jboss's ws client runtime to create web 
service proxy. Here is the pseudo code

//create service
HelloService service = new HelloService(wsdlurl, serviceQname);
// get web service proxy
Hello port = service.getHelloPort();
// call web service
port.sayHello(...)

but I got errors like this:

org.jboss.ws.WSException: Could not generate wrapper type: xxx(the name of a 
class defined as schema element in my wsdl)
    at 
org.jboss.ws.core.jaxws.DynamicWrapperGenerator.generate(DynamicWrapperGenerator.java:124)
    at 
org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethod(JAXWSMetaDataBuilder.java:759)
    at 
org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethods(JAXWSMetaDataBuilder.java:874)
    at 
org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:294)
    at 
org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:262)
    at 
org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:233)
    at javax.xml.ws.Service.getPort(Service.java:185)

Weird thing is if I change it to use reference implementation runtime from 
JDK(by switching proivderImpl to com.sun.xml.internal.ws.spi.ProviderImpl in 
system property), it works fine without any error. 

Does anyone know what's the cause of this problem.

Thanks a lot!

Gaumont
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/629952#629952]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to