Solved, thanks to rlamie : The port=null problem came from the configuration
of jboss server in netbeans.
I just had to uncheck "Use IDE Proxy Settings"
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018781#4018781
Reply to the post :
http://www.jboss.com
in fact with the annotation, the problem comes from the injection :
[SOAPFaultHelperJAXWS] SOAP request exception
| java.lang.RuntimeException: Non matching type for inject of field:
org.manaty.mvno.webservice.SimuCRMBeanService
org.jboss.test.jbossWebService.simuCRMBeanService for type:
org.
"[EMAIL PROTECTED]" wrote : @WebServiceRef is supported in jbossws-1.2.0
Doesn't work better with the annotation.
Here is the ejb
|
| @Stateless()
| @WebService()
| public class jbossWebService {
| @WebServiceRef()
| org.manaty.mvno.webservice.SimuCRMBeanService simuCRMBeanS
@WebServiceRef is supported in jbossws-1.2.0
With JAXRPC you can always use
service = ServiceFactory.create(wsdl, serviceName)
port = service.getPort(MySEI.class);
port.doStuff()
Note, if you have custom types you need to pass in jaxrpc-mapping.xml
View the original post :
http://www.jboss.com
this annotation seems to be available in the next release of EJB3 only
(http://jira.jboss.com/jira/browse/EJBTHREE-477)
Is there a working example somewhere of a stateless EJB3 calling a webservice ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001888#40018
hey Michae
Perhaps, you could try to @WebServiceRef annotation.
Also, you could post the code too.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001596#4001596
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=400159
Finally I tried to install jbossws1.2.0 and use a NB generated jaxws2.0 client
and I get the same error :
| 06:50:14,060 ERROR [STDERR] org.jboss.remoting.CannotConnectException: Can
not connect http client invoker.
| 06:50:14,060 ERROR [STDERR] at
org.jboss.remoting.transport.http
Also when I use JNDI to get the service (adding fake a client application with
service-ref), I manage to get the port but obtain the exception :
| ERROR [CallImpl] Call invocation failed with unkown Exception
| javax.xml.soap.SOAPException: Could not transmit message
| at
org.jboss