[JBossWS] - Problem with JAX-RPC client
by myjbossid123
Hi
I have a a service running in JBoss.While trying to call a it through a JAX RPC client I am getting following error...
avax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Requested element name is not allowed in this position in the sequence. The next element should be address
My Client code goes like this..........
/*..........Other Stuff........*/
ServiceFactory factory = new ServiceFactoryImpl();
Service service = factory.createService(url, qname);
Call call = service.createCall(port, operation);
call.invoke(new Object[] {loanapp});
/*..........End........*/
It is wworking fine with a String but with a POJO object I am getting this error.Any help to resolve this is appreciated...
Thnks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076185#4076185
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076185
17 years, 4 months
[JBossWS] - Trying to install an already registered mbean:
by shankha
Hi,
When I start the jboss-4.2.1.GA version it throws the following exceptions.
Can some body help me please??
13:31:25,233 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
| 13:31:26,592 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
| 13:31:27,857 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp41603jbossws-context-exp.war/
| 13:31:28,529 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
| 13:31:31,060 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.2.1.GA/jboss-4.2.1.GA/server/default/deploy/jms/jbossmq-destinations-service.xml
| org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq.destination:service=Topic,name=securedTopic
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| at sun.reflect.GeneratedMethodAccessor20.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.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
|
| ---
| ---
anonymous wrote : --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@30d210d9 { url=file:/C:/jboss-4.2.1.GA/jboss-4.2.1.GA/server/default/deploy/jms/jbossmq-destinations-service.xml }
| deployer: org.jboss.deployment.SARDeployer@125844f
| status: Deployment FAILED reason: Trying to install an already registered mbean: jboss.mq.destination:service=Topic,name=securedTopic
| state: FAILED
| watch: file:/C:/jboss-4.2.1.GA/jboss-4.2.1.GA/server/default/deploy/jms/jbossmq-destinations-service.xml
| altDD: null
| lastDeployed: 1187683291045
| lastModified: 1187683291014
| mbeans:
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076134#4076134
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076134
17 years, 4 months
[JBossWS] - Re: JAX-WS from Sessions Bean fails due to missing org/jboss
by tschwarz
I had similar classpath problems, when I added the JBoss JAX-WS jars to the server. I guess that has something to do with mixing the JDK6 JAX-WS implementation with the JBoss JAX-WS implementation.
But if you want to invoke a web service from a stateless session bean you don't need to do that.
If you are using JBoss 4.2 and EJB3 you can do it like that:
1. Use the wsconsume tool (in JBoss/bin directory) to generate your web service class files from your wsdl file.
2. Add these files to your classpath.
3. Write a stateless session bean like that:
@Stateless
| public class WSInvoker
| {
| // Replace MyWebService with your generated web service class name here
| @WebServiceRef
| private static MyWebService service;
|
| public void invokeWS()
| {
| MyEndpoint entpoint = service.getEndpoint(MyEndpoint.class);
| // invoke the endpoint's buisness methods
| }
| }
I hope I could help you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075848#4075848
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075848
17 years, 4 months
[JBossWS] - JAX-WS from Sessions Bean fails due to missing org/jboss/log
by ejb3workshop
I have a standalone client jar which using JAX-WS in JDK1.6 is able to consume a webservice. I would like to invoke the webservice from a session bean, so I added the webservice client JAR to my ear file and updated the application.xml file.
The problem is that when I try to invoce the client from within JBoss I get the following error.
A search in the forums and the web makes suggestions to include the jboss-common-clients.jar in the classpath. I tried added this jar to the /server/default/lib folder as well as include it within the EAR / application.xml, of which neiter worked.
If JAX-WS client is not supported what other libraries can I use to consume a web service from a Session Bean.
anonymous wrote :
| java.lang.NoClassDefFoundError: org/jboss/logging/Logger
| at javax.xml.soap.FactoryLoader.(FactoryLoader.java:47)
| at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:64)
| at org.jboss.ws.core.soap.SOAPFactoryImpl.createElement(SOAPFactoryImpl.java:120)
| at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:116)
| at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:85)
| at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:254)
| at org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:75)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:472)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:304)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1550)
| at org.jboss.remoting.Client.invoke(Client.java:530)
| at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:171)
| at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:322)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:230)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075829#4075829
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075829
17 years, 4 months
[JBossWS] - Re: Deploying JDeveloper/Oracle webservices on JBossWS
by vishminiraji
Hi All,
I've been trying to deploy a webservice created in JDeveloper on JBoss.
I got the below error.
Please let me know how, If you did.
java.lang.ClassCastException: oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl cannot be cast to com.ibm.wsdl.xml.WSDLReaderImpl
at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:142)
at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273)
at org.jboss.ws.deployment.JSR109ServerMetaDataBuilder.buildMetaData(JSR109ServerMetaDataBuilder.java:94)
at org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:78)
at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:80)
at org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(DeployerInterceptorJSE.java:74)
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 $Proxy39.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.GeneratedMethodAccessor55.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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 $Proxy8.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.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:597)
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:597)
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:490)
at java.lang.Thread.run(Thread.java:619)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075762#4075762
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075762
17 years, 4 months
[JBossWS] - WS4EEDowngrade setup problem
by ambika
Hi,
I am trying to run the medrec application in jboss application platform (4.2.0.GA). I have done all the steps mentioned in the http://wiki.jboss.org/wiki/Wiki.jsp?page=WS4EEDowngrade.
But when i try to deploy , its giving following error.
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
... 81 more
Caused by: java.lang.NoClassDefFoundError: org/jboss/webservice/WebServiceClientDeployment
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
=========
This is becuase this class in not at all there in this new version of the jboss and medrec code has reffered to this. And i have seen one more thing, there is no webservice package in this new version of the jboss?
Please can any one help me regarding the same. Its urgent, please can anyone help me regarding this?
Regards,
Ambika
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075719#4075719
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075719
17 years, 4 months
[JBossWS] - Fixed the post data - read this please
by ronari2
I am using JBoss 4.2.1 with JBOSSWS 2.0.1
I have created a web service that uses a provided WSDL, when I send the WS request there are no errors on JBoss however my web service entry point does not receive in the IN parameter any data of the request (the object value is null), however, the data that I set for the response object does return in the return message.
The Web Service Entry Point:
| package com.zoomix.asbl.ws.ep.login;
|
| import javax.jws.HandlerChain;
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebService;
| import javax.xml.ws.Holder;
| import javax.xml.ws.RequestWrapper;
| import javax.xml.ws.ResponseWrapper;
|
| import com.zoomix.as.connector.Connector;
| import com.zoomix.as.context.imp.MasterContext;
| import com.zoomix.asbl.ws.ep.login.model.LoginSuccessType;
| import com.zoomix.asbl.ws.ep.login.model.RequestType;
| import com.zoomix.asbl.ws.ep.login.model.ResponseType;
| import com.zoomix.infra.log.ZLogger;
|
| /**
| * The Login web service Entry Point
| *
| */
| @WebService(wsdlLocation = "WEB-INF/ws/login/LoginG.wsdl", name = "Login", targetNamespace = "http://model.login.ep.ws.asbl.zoomix.com/")
| public class LoginEP {
|
| @WebMethod
| @RequestWrapper(localName = "message", targetNamespace = "http://model.login.ep.ws.asbl.zoomix.com/", className = "com.zoomix.asbl.ws.ep.login.model.Message")
| @ResponseWrapper(localName = "message", targetNamespace = "http://model.login.ep.ws.asbl.zoomix.com/", className = "com.zoomix.asbl.ws.ep.login.model.Message")
| public void message (
| @WebParam(name = "request", targetNamespace = "", mode = WebParam.Mode.INOUT)
| Holder<RequestType> request,
| @WebParam(name = "response", targetNamespace = "", mode = WebParam.Mode.INOUT)
| Holder<ResponseType> response) {
|
| logger.debug("LoginEP::message() --> IN");
|
| // THE request.value object I receive is null !!!
|
|
| // the data I set below DO return in the WS response
| ResponseType responseType = new ResponseType();
| LoginSuccessType s = new LoginSuccessType();
| s.setFirstName("FIRST");
| s.setLastName("LAST");
| s.setStatus(1);
| responseType.setData(s);
| response.value = responseType;
|
| }
|
| // logger
| private static ZLogger logger = ZLogger.getZLogger(LoginEP.class.getName());
| }
|
The WSDL:
| <?xml version="1.0" encoding="UTF-8"?>
| <definitions name="LoginService" targetNamespace="http://model.login.ep.ws.asbl.zoomix.com/" xmlns:tns="http://model.login.ep.ws.asbl.zoomix.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
| <types>
| <xsd:schema targetNamespace="http://model.login.ep.ws.asbl.zoomix.com/" version="1.0" xmlns:tns="http://model.login.ep.ws.asbl.zoomix.com/" xmlns:tns2="http://gen.model.infra.zoomix.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:version="2.0" jaxb:extensionBindingPrefixes="xjc">
| <xs:import namespace="http://gen.model.infra.zoomix.com/" schemaLocation="./GeneralTypes.xsd"/>
| <xs:annotation>
| <xs:appinfo>
| <jaxb:globalBindings>
| <xjc:serializable />
| </jaxb:globalBindings>
| </xs:appinfo>
| </xs:annotation>
| <xsd:element name="message">
| <xsd:complexType>
| <xsd:sequence>
| <xsd:element name="request" type="tns:requestType" />
| <xsd:element name="response" type="tns:responseType" minOccurs="0" maxOccurs="1" />
| </xsd:sequence>
| </xsd:complexType>
| </xsd:element>
| <xsd:complexType name="requestType">
| <xsd:sequence>
| <xsd:element name="data" type="tns:loginType" />
| </xsd:sequence>
| <xsd:attribute name="operation" type="tns2:operationType" use="required" />
| </xsd:complexType>
| <xsd:complexType name="loginType">
| <xsd:sequence>
| <xsd:element name="password" type="tns:passwordType" minOccurs="1" />
| </xsd:sequence>
| </xsd:complexType>
| <xsd:complexType name="responseType">
| <xsd:sequence>
| <xsd:element name="data" type="tns:loginSuccessType" />
| </xsd:sequence>
| <xsd:attribute name="status" type="tns2:statusType" use="required" />
| <xsd:attribute name="category" type="tns2:categoryType" use="optional" />
| <xsd:attribute name="msgId" type="tns:buff50" use="required" />
| <xsd:attribute name="msg" type="tns:buff255" use="required" />
| <xsd:attribute name="uid" type="tns:buff50" use="required" />
| </xsd:complexType>
| <xsd:complexType name="loginSuccessType">
| <xsd:sequence>
| <xsd:element name="firstName" type="tns:buff255" minOccurs="1" />
| <xsd:element name="lastName" type="tns:buff255" minOccurs="1" />
| <xsd:element name="status" type="xsd:int" minOccurs="1" />
| </xsd:sequence>
| </xsd:complexType>
| <xsd:simpleType name="passwordType">
| <xsd:restriction base="xsd:string" />
| </xsd:simpleType>
| <xsd:simpleType name="statusType">
| <xsd:restriction base="xsd:string">
| <xsd:enumeration value="OK" />
| <xsd:enumeration value="ERR" />
| </xsd:restriction>
| </xsd:simpleType>
|
| <xsd:simpleType name="categoryType">
| <xsd:restriction base="xsd:string">
| <xsd:enumeration value="INFRA" />
| <xsd:enumeration value="BL" />
| </xsd:restriction>
| </xsd:simpleType>
|
| <xsd:simpleType name="buff50">
| <xsd:restriction base="xsd:string">
| <xsd:minLength value="1" />
| <xsd:maxLength value="50" />
| </xsd:restriction>
| </xsd:simpleType>
|
| <xsd:simpleType name="buff255">
| <xsd:restriction base="xsd:string">
| <xsd:minLength value="1" />
| <xsd:maxLength value="255" />
| </xsd:restriction>
| </xsd:simpleType>
|
| <xsd:simpleType name="operationType">
| <xsd:restriction base="xsd:string">
| <xsd:enumeration value="LOGIN" />
| </xsd:restriction>
| </xsd:simpleType>
|
| </xsd:schema>
| </types>
| <message name="Login_messageResponse">
| <part name="message" element="tns:message">
| </part>
| </message>
| <message name="Login_message">
| <part name="message" element="tns:message">
| </part>
| </message>
| <portType name="Login">
| <operation name="message" parameterOrder="message">
| <input message="tns:Login_message">
| </input>
| <output message="tns:Login_messageResponse">
| </output>
| </operation>
| </portType>
| <binding name="LoginBinding" type="tns:Login">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
| <operation name="message">
| <soap:operation soapAction=""/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
| </binding>
| <service name="LoginEPService">
| <port name="LoginPort" binding="tns:LoginBinding">
| <soap:address location="http://127.0.0.1:8081/ws/wslogin"/>
| </port>
| </service>
| </definitions>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075666#4075666
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075666
17 years, 4 months
[JBossWS] - Strange - Entry Point not receive WS Message data
by ronari2
All,
I am using JBoss 4.2.1 with JBOSSWS 2.0.1
I have created a web service that uses a provided WSDL, when I send the WS request there are no errors on JBoss however my web service entry point does not receive in the IN parameter any data of the request (the object value is null), however, the data that I set for the response object does return in the return message.
My WSDL is:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="LoginService" targetNamespace="http://model.login.ep.ws.asbl.zoomix.com/" xmlns:tns="http://model.login.ep.ws.asbl.zoomix.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<xsd:schema targetNamespace="http://model.login.ep.ws.asbl.zoomix.com/" version="1.0" xmlns:tns="http://model.login.ep.ws.asbl.zoomix.com/" xmlns:tns2="http://gen.model.infra.zoomix.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:version="2.0" jaxb:extensionBindingPrefixes="xjc">
<xs:import namespace="http://gen.model.infra.zoomix.com/" schemaLocation="./GeneralTypes.xsd"/>
<xs:annotation>
<xs:appinfo>
<jaxb:globalBindings>
<xjc:serializable />
</jaxb:globalBindings>
</xs:appinfo>
</xs:annotation>
<xsd:element name="message">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="request" type="tns:requestType" />
<xsd:element name="response" type="tns:responseType" minOccurs="0" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="requestType">
<xsd:sequence>
<xsd:element name="data" type="tns:loginType" />
</xsd:sequence>
<xsd:attribute name="operation" type="tns2:operationType" use="required" />
</xsd:complexType>
<xsd:complexType name="loginType">
<xsd:sequence>
<xsd:element name="password" type="tns:passwordType" minOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="responseType">
<xsd:sequence>
<xsd:element name="data" type="tns:loginSuccessType" />
</xsd:sequence>
<xsd:attribute name="status" type="tns2:statusType" use="required" />
<xsd:attribute name="category" type="tns2:categoryType" use="optional" />
<xsd:attribute name="msgId" type="tns:buff50" use="required" />
<xsd:attribute name="msg" type="tns:buff255" use="required" />
<xsd:attribute name="uid" type="tns:buff50" use="required" />
</xsd:complexType>
<xsd:complexType name="loginSuccessType">
<xsd:sequence>
<xsd:element name="firstName" type="tns:buff255" minOccurs="1" />
<xsd:element name="lastName" type="tns:buff255" minOccurs="1" />
<xsd:element name="status" type="xsd:int" minOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="passwordType">
<xsd:restriction base="xsd:string" />
</xsd:simpleType>
<xsd:simpleType name="statusType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="OK" />
<xsd:enumeration value="ERR" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="categoryType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="INFRA" />
<xsd:enumeration value="BL" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="buff50">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1" />
<xsd:maxLength value="50" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="buff255">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1" />
<xsd:maxLength value="255" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="operationType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="LOGIN" />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<soap:operation soapAction=""/>
<soap:body use="literal"/>
<soap:body use="literal"/>
<soap:address location="http://127.0.0.1:8081/ws/wslogin"/>
My Web service Entry point is:
package com.zoomix.asbl.ws.ep.login;
import javax.jws.HandlerChain;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.ws.Holder;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
import com.zoomix.as.connector.Connector;
import com.zoomix.as.context.imp.MasterContext;
import com.zoomix.asbl.ws.ep.login.model.LoginSuccessType;
import com.zoomix.asbl.ws.ep.login.model.RequestType;
import com.zoomix.asbl.ws.ep.login.model.ResponseType;
import com.zoomix.infra.log.ZLogger;
/**
* The Login web service Entry Point
*
*/
@WebService(wsdlLocation = "WEB-INF/ws/login/LoginG.wsdl", name = "Login", targetNamespace = "http://model.login.ep.ws.asbl.zoomix.com/")
public class LoginEP {
@WebMethod
@RequestWrapper(localName = "message", targetNamespace = "http://model.login.ep.ws.asbl.zoomix.com/", className = "com.zoomix.asbl.ws.ep.login.model.Message")
@ResponseWrapper(localName = "message", targetNamespace = "http://model.login.ep.ws.asbl.zoomix.com/", className = "com.zoomix.asbl.ws.ep.login.model.Message")
public void message (
@WebParam(name = "request", targetNamespace = "", mode = WebParam.Mode.INOUT)
Holder request,
@WebParam(name = "response", targetNamespace = "", mode = WebParam.Mode.INOUT)
Holder response) {
logger.debug("LoginEP::message() --> IN");
// THE request.value object I receive is null !!!
// the data I set below DO return in the WS response
ResponseType responseType = new ResponseType();
LoginSuccessType s = new LoginSuccessType();
s.setFirstName("FIRST");
s.setLastName("LAST");
s.setStatus(1);
responseType.setData(s);
response.value = responseType;
}
// logger
private static ZLogger logger = ZLogger.getZLogger(LoginEP.class.getName());
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075659#4075659
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075659
17 years, 4 months