[JBossWS] - Re: problem calling webservice from client
by sashaxiv
i tried to not throw exceptions to see what happens and now i have the same
problem as when i used axis.
javax.xml.ws.WebServiceException: HTTP Status-Code 405: HTTP method POST is not supported by this URL
|
this is what i do in the client:
| URL wsdlURL = null;
| try {
| wsdlURL = new URL("http://127.0.0.1:8080/SesionSessionBeanService/SesionSessionBean?wsdl");
| } catch (MalformedURLException e1) {
| // TODO Auto-generated catch block
| e1.printStackTrace();
| }
| QName serviceName = new QName("http://localhost:8080/jbossws/services/Sesion", "LoginService");
| Service service = Service.create(wsdlURL, serviceName);
| SesionEndPointInterface sesionSession = (SesionEndPointInterface)service.getPort(SesionEndPointInterface.class);
| System.out.println("0000002 SFWSI Kike --->Creado Servicio , sessionSession ->" + sesionSession.toString() );
| System.out.println("0000002 SFWSI Kike --->Creado Servicio , service ->" + service.toString() );
|
| BindingProvider bindingProvider = (BindingProvider)sesionSession;
| Map<String, Object> reqContext = bindingProvider.getRequestContext();
| reqContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:8080/jbossws/services/Sesion/SesionSessionBean");
| reqContext.put(BindingProvider.USERNAME_PROPERTY, "kermit");
| reqContext.put(BindingProvider.PASSWORD_PROPERTY, "thefrog");
|
| try{
| // System.out.println("Conectando con... " + DataConexion.getServer() + ": " + DataConexion.getServerPort());
| FicheroLog.writeIncidencia("Conectando con... " + DataConexion.getServer() + ": " + DataConexion.getServerPort());
|
| loginVO = sesionSession.loginUsuario(idEmpresa, login, password, session);
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052009#4052009
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052009
17 years, 6 months
[JBossWS] - Re: problem calling webservice from client
by sashaxiv
when i execute the client it askes me for a class, whick does not exists.
| class: localhost.jbossws.services.Sesion.jaxws.EmpresaNotFoundExceptionBean could not be found
| at com.sun.xml.internal.ws.modeler.RuntimeModeler.getClass(Unknown Source)
| at com.sun.xml.internal.ws.modeler.RuntimeModeler.processExceptions(Unknown Source)
| at com.sun.xml.internal.ws.modeler.RuntimeModeler.processRpcMethod(Unknown Source)
| at com.sun.xml.internal.ws.modeler.RuntimeModeler.processMethod(Unknown Source)
| at com.sun.xml.internal.ws.modeler.RuntimeModeler.processClass(Unknown Source)
| at com.sun.xml.internal.ws.modeler.RuntimeModeler.buildRuntimeModel(Unknown Source)
| at com.sun.xml.internal.ws.client.ServiceContextBuilder.processAnnotations(Unknown Source)
| at com.sun.xml.internal.ws.client.ServiceContextBuilder.completeServiceContext(Unknown Source)
| at com.sun.xml.internal.ws.client.WSServiceDelegate.processServiceContext(Unknown Source)
| at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(Unknown Source)
| at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Source)
| at javax.xml.ws.Service.getPort(Unknown Source)
| at com.satdatatelecom.satdataweb.model.session.facade.webservice.SessionFacadeWSImpl.<init>(SessionFacadeWSImpl.java:47)
| at com.satdatatelecom.satdataweb.data.DataUsuario.getSessionFacade(DataUsuario.java:69)
| at com.satdatatelecom.satdataweb.gui.login.DoLogin.doLogin(DoLogin.java:182)
| at com.satdatatelecom.satdataweb.gui.login.thread.LoginThread.run(LoginThread.java:90)
| ***InternalErrorException
|
my class is named empresaNotFoundException. Why is it asking me for a class with the same name concatenating it with bean?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051988#4051988
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051988
17 years, 6 months
[JBossWS] - unable to create service endpoint error with jbossws-1.2.1.G
by vvenkatar
Hi:
I have a web service that used to work with JBOSS4.0.4. I get the following error message when I attempt to deploy this on jboss4.2.0_GA. I upgraded to jbossws1.2.1 and still see the same problem.... Anybody else having similar problem? I would appreciate any help on this issue.
Thanks,
Venkatesh
2007-06-06 11:39:32,848 DEBUG [org.jboss.ws.core.server.ServiceEndpointDeployer] create: Ejb3.ear/synappsws.war
2007-06-06 11:39:32,864 DEBUG [org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder] START buildMetaData: [name=Ejb3.ear/synappsws.war]
2007-06-06 11:39:33,036 DEBUG [org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory] parse: file:/C:/jboss-4.2.0.GA/server/default/tmp/deploy/tmp55134Ejb3.ear-contents/synappsws-exp.war/WEB-INF/wsdl/synappsws.wsdl
2007-06-06 11:39:33,849 DEBUG [org.jboss.ws.tools.JavaToXSD] Load schema: http://com.sylantro.synapps/synappsws/types=file:/C:/jboss-4.2.0.GA/serve...
2007-06-06 11:39:33,849 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=null,sysid=file:/C:/jboss-4.2.0.GA/server/default/tmp/jbossws/JBossWS_com.sylantro.synapps_synappsws_types55135.xsd]
2007-06-06 11:39:34,162 DEBUG [org.jboss.ws.core.utils.JBossWSEntityResolver] resolveEntity: [pub=http://schemas.xmlsoap.org/soap/encoding/,sysid=null]
2007-06-06 11:39:35,413 DEBUG [org.jboss.ws.core.server.ServiceEndpointManager] Using WebServicePort: 8080
2007-06-06 11:39:35,428 DEBUG [org.jboss.ws.metadata.builder.MetaDataBuilder] Replace service endpoint address 'http://65.200.90.230/synapps1/SynappsWebservice' with 'http://127.0.0.1:8080/synapps1/SynappsWebservice'
2007-06-06 11:39:35,444 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] setParameterStyle: WRAPPED
2007-06-06 11:39:35,460 ERROR [org.jboss.ws.core.server.ServiceEndpointDeployer] Cannot create service endpoint
java.lang.IllegalArgumentException: Could not determine variable name for element: parameters
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.processOutputDocElement(JAXRPCMetaDataBuilder.java:801)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildParameterMetaDataDoc(JAXRPCMetaDataBuilder.java:897)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.setupOperationsFromWSDL(JAXRPCMetaDataBuilder.java:214)
at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCServerMetaDataBuilder.buildMetaData(JAXRPCServerMetaDataBuilder.java:220)
at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:77)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127)
at org.jboss.ws.integration.jboss42.DeployerInterceptorJSE.createServiceEndpoint(DeployerInterceptorJSE.java:132)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy46.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:595)
2007-06-06 11:39:35,460 DEBUG [org.jboss.ws.integration.jboss42.DeployerInterceptorJSE] destroy: file:/C:/jboss-4.2.0.GA/server/default/tmp/deploy/tmp55134Ejb3.ear-contents/synappsws.war
2007-06-06 11:39:35,460 DEBUG [org.jboss.ws.core.server.ServiceEndpointDeployer] destroy: Ejb3.ear/synappsws.war
2007-06-06 11:39:35,460 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051880#4051880
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051880
17 years, 6 months