[JBossWS] - Re: java client and MS Webservice
by firestormua
After playing with ws client I came to conclusion that there is some problem with mapping file or client classes generated by wstools in my particular case(complex type enclosed into response).
Not sure how do I resolve it. Can anybody help?
anonymous wrote :
| [java] 17:37:30,460 WARN [WSDLDefinitions] Multiple WSDL bindings referrence the same interface: {http://tempuri.org/TitanWebServices/TitanService}TitanServiceSoap
| [java] 17:37:30,460 WARN [WSDLDefinitions] Multiple WSDL bindings referrence the same interface: {http://tempuri.org/TitanWebServices/TitanService}TitanServiceSoap
| [java] 17:37:30,460 WARN [SchemaBindingBuilder] Cannot obtain type binding for: {http://tempuri.org/TitanWebServices/TitanService}>TitanRunNavisionResult
| [java] 17:37:30,538 INFO [SOAP11BindingProvider] Ignore Call.SOAPACTION_USE_PROPERTY because of BP-1.0 R2745, R2745
| [java] 17:37:31,270 WARN [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://tempuri.org/TitanWebServices/TitanService
| [java] 17:37:31,629 ERROR [CallImpl] Call invocation failed with unkown Exception
| [java] javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:303)
| [java] at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
| [java] at org.jboss.ws.binding.EndpointInvocation.getReturnValue(EndpointInvocation.java:182)
| [java] at org.jboss.ws.jaxrpc.CallImpl.syncOutputParams(CallImpl.java:873)
| [java] at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:704)
| [java] at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
| [java] at com.texadasoftware.server.accounting.service.NavisionAccountingServiceBean.setUp(NavisionAccountingServiceBean.java:88)
| [java] at com.texadasoftware.server.accounting.service.NavisionAccountingServiceBean.getCustomerAccountingInfo(NavisionAccountingServiceBean.java:289)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| [java] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| [java] at com.texadasoftware.server.infra.ValidationInterceptor.intercept(ValidationInterceptor.java:37)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| [java] at com.texadasoftware.server.infra.audit.ActionAuditInterceptor.intercept(ActionAuditInterceptor.java:61)
| [java] at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| [java] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| [java] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:67)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
| [java] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:108)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| [java] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
| [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
| [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
| [java] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
| [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
| [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
| [java] Caused by: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:100)
| [java] at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:235)
| [java] ... 55 more
| [java] Caused by: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:67)
| [java] at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:92)
| [java] ... 56 more
| [java] Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:156)
| [java] at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:126)
| [java] at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:63)
| [java] ... 57 more
| [java] Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)
| [java] at org.apache.xerces.impl.xs.XMLSchemaLoader.reportDOMFatalError(Unknown Source)
| [java] at org.apache.xerces.impl.xs.XSLoaderImpl.load(Unknown Source)
| [java] at org.jboss.xb.binding.Util.loadSchema(Util.java:395)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:166)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:137)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:248)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.WildcardBinding.getElement(WildcardBinding.java:161)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1.startElement(SequenceBinding.java:295)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding$Cursor.startElement(ModelGroupBinding.java:152)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:195)
| [java] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:301)
| [java] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
| [java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| [java] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| [java] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:152)
| [java] ... 59 more
| [java] 17:37:31,691 ERROR [STDERR] java.rmi.RemoteException: Call invocation failed: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.; nested exception is:
| [java] javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,691 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718)
| [java] 17:37:31,691 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
| [java] 17:37:31,691 ERROR [STDERR] at com.texadasoftware.server.accounting.service.NavisionAccountingServiceBean.setUp(NavisionAccountingServiceBean.java:88)
| [java] 17:37:31,691 ERROR [STDERR] at com.texadasoftware.server.accounting.service.NavisionAccountingServiceBean.getCustomerAccountingInfo(NavisionAccountingServiceBean.java:289)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| [java] 17:37:31,691 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| [java] 17:37:31,691 ERROR [STDERR] at com.texadasoftware.server.infra.ValidationInterceptor.intercept(ValidationInterceptor.java:37)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| [java] 17:37:31,691 ERROR [STDERR] at com.texadasoftware.server.infra.audit.ActionAuditInterceptor.intercept(ActionAuditInterceptor.java:61)
| [java] 17:37:31,707 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
| [java] 17:37:31,707 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] 17:37:31,707 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:67)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:108)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
| [java] 17:37:31,722 ERROR [STDERR] Caused by: javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:303)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.binding.EndpointInvocation.getReturnValue(EndpointInvocation.java:182)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.syncOutputParams(CallImpl.java:873)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:704)
| [java] 17:37:31,722 ERROR [STDERR] ... 51 more
| [java] 17:37:31,722 ERROR [STDERR] Caused by: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:100)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:235)
| [java] 17:37:31,722 ERROR [STDERR] ... 55 more
| [java] 17:37:31,722 ERROR [STDERR] Caused by: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:67)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:92)
| [java] 17:37:31,722 ERROR [STDERR] ... 56 more
| [java] 17:37:31,722 ERROR [STDERR] Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:156)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:126)
| [java] 17:37:31,738 ERROR [STDERR] at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:63)
| [java] 17:37:31,738 ERROR [STDERR] ... 57 more
| [java] 17:37:31,738 ERROR [STDERR] Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.impl.xs.XMLSchemaLoader.reportDOMFatalError(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.impl.xs.XSLoaderImpl.load(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.Util.loadSchema(Util.java:395)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:166)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:137)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:248)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.WildcardBinding.getElement(WildcardBinding.java:161)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1.startElement(SequenceBinding.java:295)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding$Cursor.startElement(ModelGroupBinding.java:152)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:195)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:301)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:152)
| [java] 17:37:31,754 ERROR [STDERR] ... 59 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009082#4009082
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009082
17 years, 8 months
[JBossWS] - Re: enumerations in jboss ws...
by tejasjani
Interesting....
Here is what I have...
(1) I have written a enum type class PromotionDetailType using the enum pattern, one of the enum values is 'Ad'
(2) There is another class PromotionDetail where this enum class is being referenced and there are getters and setters for getting/setting the enum values such as
public void setDetailSubType(PerformanceDetailType detailType)
| { this.detailType=detailType; }
|
| public PerformanceDetailType getDetailType() { return detailType ;}
|
(3) Now I try to send a SOAP request with the following in the client
| <PromotionDetail>
| <PerformanceDetailType>Ad</PerformanceDetailType>
| </PromotionDetail>
|
This gives me the following error:
Caused by: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Failed
| o set value 'Ad' for property 'detailType' defined in com.demandtec.webservices.heb.PromotionDetail@1e3f2e5 on instance
| com.demandtec.webservices.heb.PromotionDetail@1e3f2e5
|
I dont have any mappings defined for the enum classes in the mapping file.
Any hints would be highly appreciated.
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008873#4008873
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008873
17 years, 8 months
[JBossWS] - Re: enumerations in jboss ws...
by mwiles
It's like when you're trying to break into a house - you assume the door is locked and can't figure out why you can't open it!
Well turns out that all that mapping stuff for the enum is surplus to requirements as far as jboss is concerned. You just remove it and it works fine!
| <java-xml-type-mapping>
| <java-type>za.co.sanlam.employeebenefits.IncomeTypeEnum</java-type>
| <root-type-qname xmlns:rtq="http://sanlam.co.za/employeebenefits/dto/1">rtq:IncomeTypeEnum</root-type-qname>
| <qname-scope>simpleType</qname-scope>
| <variable-mapping>
| <java-variable-name>pension</java-variable-name>
| <xml-element-name>pension</xml-element-name>
| </variable-mapping>
| <variable-mapping>
| <java-variable-name>salary</java-variable-name>
| <xml-element-name>salary</xml-element-name>
| </variable-mapping>
| </java-xml-type-mapping>
|
I took a simple remote interface which took as a parameter an object following the enum pattern and generated the wsdl and mapping file with jboss and no mappings for the values in the enumeration were generated.
The lines in red above are not necessary in jboss, and it uses the fromValue method to resolve the enum data type. Very impressive.
What I didn't mention is that the jaxrpc mapping file was generated by wsdl2java from WAS which generates mapping files which have this stuff included. I'm not so sure why it even bothers as that information is available from the wsdl. I removed the mapping and tested my simple web service and it behaved just fine.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008677#4008677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008677
17 years, 8 months