2 Replies Latest reply on Feb 14, 2007 4:41 PM by Thomas Diesler

    java client and MS Webservice

    Andriy Otchenash Newbie

      I am trying to make Jboss WS jaxrpc client from samples work with MS webservice. I got next error when I run client:


      [java] 12:01:12,376 WARN [WSDLDefinitions] Multiple WSDL bindings referrence the same interface: {http://tempuri.org/TitanWebServices/TitanService}TitanServiceSoap
      [java] 12:01:12,408 WARN [WSDLDefinitions] Multiple WSDL bindings referrence the same interface: {http://tempuri.org/TitanWebServices/TitanService}TitanServiceSoap
      [java] 12:01:12,423 WARN [SchemaBindingBuilder] Cannot obtain type binding for: {http://tempuri.org/TitanWebServices/TitanService}>TitanRunNavisionResult
      [java] 12:01:12,455 ERROR [STDERR] javax.xml.rpc.JAXRPCException: Cannot obtain operation meta data for: {http://tempuri.org/TitanWebServices/TitanService}TitanRunNavision
      [java] 12:01:12,455 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.getOperationMetaData(CallImpl.java:840)
      [java] 12:01:12,455 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.getOperationMetaData(CallImpl.java:820)
      [java] 12:01:12,455 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:618)
      [java] 12:01:12,455 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
      [java] 12:01:12,455 ERROR [STDERR] at
      ........
      <-------------------------skipped


      I feel there is something small I am missing here, can somebody tell me what is wrong here?

      It generated next classes in package org.tempuri.titanwebservices.titanservice;:
      TitanRunNavision.java
      TitanRunNavisionResponse.java
      TitanRunNavisionResponseTitanRunNavisionResult.java
      TitanService.java
      TitanServiceSoap.java

      here is my code
       private final String TARGET_ENDPOINT_ADDRESS1 = "http://dev4:6699/titanwebservices/service.asmx";
       private static final String TARGET_NAMESPACE1 = "http://tempuri.org/TitanWebServices/TitanService";
       private static Call call;
      
       protected void setUp() throws Exception
       {
      
       if (port == null)
       {
       ServiceFactoryImpl factory = new ServiceFactoryImpl();
       URL wsdlLocation = new URL(TARGET_ENDPOINT_ADDRESS1 + "?wsdl");
       URL mappingURL = new File("c:/tmp/ws/jaxrpc-mapping.xml").toURL();
       //service wsdl location
       QName serviceName = new QName(TARGET_NAMESPACE1, "TitanService");
       ServiceImpl service = (ServiceImpl)factory.createService(wsdlLocation, serviceName, mappingURL);
       call = service.createCall();
       }
       }
      
      
       public void testUserType() throws Exception
       {
       QName operationName = new QName(TARGET_NAMESPACE1, "TitanRunNavision");
       call.setOperationName(operationName);
       String functionName = "GetCustomer";
       String parameterList = "10000";
       Object retObj = call.invoke(new Object[]{functionName, parameterList});
       System.out.println("done");
       }
      

      here is wsdl
      <?xml version="1.0" encoding="UTF-8"?>
      <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
       xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/TitanWebServices/TitanService" xmlns:s="http://www.w3.org/2001/XMLSchema"
      xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
      xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/TitanWebServices/TitanService"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
       <wsdl:types>
       <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/TitanWebServices/TitanService">
       <s:element name="TitanRunNavision">
       <s:complexType>
       <s:sequence>
       <s:element minOccurs="0" maxOccurs="1" name="FunctionName" type="s:string"/>
       <s:element minOccurs="0" maxOccurs="1" name="ParameterList" type="s:string"/>
       </s:sequence>
       </s:complexType>
       </s:element>
       <s:element name="TitanRunNavisionResponse">
       <s:complexType>
       <s:sequence>
       <s:element minOccurs="0" maxOccurs="1" name="TitanRunNavisionResult">
       <s:complexType>
       <s:sequence>
       <s:any/>
       </s:sequence>
       </s:complexType>
       </s:element>
       </s:sequence>
       </s:complexType>
       </s:element>
       </s:schema>
       </wsdl:types>
       <wsdl:message name="TitanRunNavisionSoapIn">
       <wsdl:part name="parameters" element="tns:TitanRunNavision"/>
       </wsdl:message>
       <wsdl:message name="TitanRunNavisionSoapOut">
       <wsdl:part name="parameters" element="tns:TitanRunNavisionResponse"/>
       </wsdl:message>
       <wsdl:portType name="TitanServiceSoap">
       <wsdl:operation name="TitanRunNavision">
       <wsdl:input message="tns:TitanRunNavisionSoapIn"/>
       <wsdl:output message="tns:TitanRunNavisionSoapOut"/>
       </wsdl:operation>
       </wsdl:portType>
       <wsdl:binding name="TitanServiceSoap" type="tns:TitanServiceSoap">
       <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
       <wsdl:operation name="TitanRunNavision">
       <soap:operation soapAction="http://tempuri.org/TitanWebServices/TitanService/TitanRunNavision" style="document"/>
       <wsdl:input>
       <soap:body use="literal"/>
       </wsdl:input>
       <wsdl:output>
       <soap:body use="literal"/>
       </wsdl:output>
       </wsdl:operation>
       </wsdl:binding>
       <wsdl:binding name="TitanServiceSoap12" type="tns:TitanServiceSoap">
       <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
       <wsdl:operation name="TitanRunNavision">
       <soap12:operation soapAction="http://tempuri.org/TitanWebServices/TitanService/TitanRunNavision" style="document"/>
       <wsdl:input>
       <soap12:body use="literal"/>
       </wsdl:input>
       <wsdl:output>
       <soap12:body use="literal"/>
       </wsdl:output>
       </wsdl:operation>
       </wsdl:binding>
       <wsdl:service name="TitanService">
       <wsdl:port name="TitanServiceSoap" binding="tns:TitanServiceSoap">
       <soap:address location="http://dev4/titanwebservices/service.asmx"/>
       </wsdl:port>
       <wsdl:port name="TitanServiceSoap12" binding="tns:TitanServiceSoap12">
       <soap12:address location="http://dev4/titanwebservices/service.asmx"/>
       </wsdl:port>
       </wsdl:service>
      </wsdl:definitions>


      mapping generated by jboss wstools
      <?xml version='1.0' encoding='UTF-8'?><java-wsdl-mapping version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd'>
       <package-mapping>
       <package-type>org.tempuri.titanwebservices.titanservice</package-type>
       <namespaceURI>http://tempuri.org/TitanWebServices/TitanService</namespaceURI>
       </package-mapping>
       <java-xml-type-mapping>
       <java-type>org.tempuri.titanwebservices.titanservice.TitanRunNavision</java-type>
       <anonymous-type-qname xmlns:typeNS='http://tempuri.org/TitanWebServices/TitanService'>typeNS:>TitanRunNavision</anonymous-type-qname>
       <qname-scope>complexType</qname-scope>
       <variable-mapping>
       <java-variable-name>functionName</java-variable-name>
       <xml-element-name>FunctionName</xml-element-name>
       </variable-mapping>
       <variable-mapping>
       <java-variable-name>parameterList</java-variable-name>
       <xml-element-name>ParameterList</xml-element-name>
       </variable-mapping>
       </java-xml-type-mapping>
       <java-xml-type-mapping>
       <java-type>org.tempuri.titanwebservices.titanservice.TitanRunNavisionResult</java-type>
       <anonymous-type-qname xmlns:typeNS='http://tempuri.org/TitanWebServices/TitanService'>typeNS:>TitanRunNavisionResult</anonymous-type-qname>
       <qname-scope>complexType</qname-scope>
       </java-xml-type-mapping>
       <java-xml-type-mapping>
       <java-type>org.tempuri.titanwebservices.titanservice.TitanRunNavisionResponse</java-type>
       <anonymous-type-qname xmlns:typeNS='http://tempuri.org/TitanWebServices/TitanService'>typeNS:>TitanRunNavisionResponse</anonymous-type-qname>
       <qname-scope>complexType</qname-scope>
       <variable-mapping>
       <java-variable-name>titanRunNavisionResult</java-variable-name>
       <xml-element-name>TitanRunNavisionResult</xml-element-name>
       </variable-mapping>
       </java-xml-type-mapping>
       <service-interface-mapping>
       <service-interface>org.tempuri.titanwebservices.titanservice.TitanService</service-interface>
       <wsdl-service-name xmlns:serviceNS='http://tempuri.org/TitanWebServices/TitanService'>serviceNS:TitanService</wsdl-service-name>
       <port-mapping>
       <port-name>TitanServiceSoap</port-name>
       <java-port-name>TitanServiceSoap</java-port-name>
       </port-mapping>
       <port-mapping>
       <port-name>TitanServiceSoap12</port-name>
       <java-port-name>TitanServiceSoap12</java-port-name>
       </port-mapping>
       </service-interface-mapping>
       <service-endpoint-interface-mapping>
       <service-endpoint-interface>org.tempuri.titanwebservices.titanservice.TitanServiceSoap</service-endpoint-interface>
       <wsdl-port-type xmlns:portTypeNS='http://tempuri.org/TitanWebServices/TitanService'>portTypeNS:TitanServiceSoap</wsdl-port-type>
       <wsdl-binding xmlns:bindingNS='http://tempuri.org/TitanWebServices/TitanService'>bindingNS:TitanServiceSoap</wsdl-binding>
       <service-endpoint-method-mapping>
       <java-method-name>titanRunNavision</java-method-name>
       <wsdl-operation>TitanRunNavision</wsdl-operation>
       <method-param-parts-mapping>
       <param-position>0</param-position>
       <param-type>org.tempuri.titanwebservices.titanservice.TitanRunNavision</param-type>
       <wsdl-message-mapping>
       <wsdl-message xmlns:wsdlMsgNS='http://tempuri.org/TitanWebServices/TitanService'>wsdlMsgNS:TitanRunNavisionSoapIn</wsdl-message>
       <wsdl-message-part-name>parameters</wsdl-message-part-name>
       <parameter-mode>INOUT</parameter-mode>
       </wsdl-message-mapping>
       </method-param-parts-mapping>
       <wsdl-return-value-mapping>
       <method-return-value>org.tempuri.titanwebservices.titanservice.TitanRunNavisionResponse</method-return-value>
       <wsdl-message xmlns:wsdlMsgNS='http://tempuri.org/TitanWebServices/TitanService'>wsdlMsgNS:TitanRunNavisionSoapOut</wsdl-message>
       <wsdl-message-part-name>parameters</wsdl-message-part-name>
       </wsdl-return-value-mapping>
       </service-endpoint-method-mapping>
       </service-endpoint-interface-mapping>
       <service-endpoint-interface-mapping>
       <service-endpoint-interface>org.tempuri.titanwebservices.titanservice.TitanServiceSoap</service-endpoint-interface>
       <wsdl-port-type xmlns:portTypeNS='http://tempuri.org/TitanWebServices/TitanService'>portTypeNS:TitanServiceSoap</wsdl-port-type>
       <wsdl-binding xmlns:bindingNS='http://tempuri.org/TitanWebServices/TitanService'>bindingNS:TitanServiceSoap12</wsdl-binding>
       <service-endpoint-method-mapping>
       <java-method-name>titanRunNavision</java-method-name>
       <wsdl-operation>TitanRunNavision</wsdl-operation>
       <method-param-parts-mapping>
       <param-position>0</param-position>
       <param-type>org.tempuri.titanwebservices.titanservice.TitanRunNavision</param-type>
       <wsdl-message-mapping>
       <wsdl-message xmlns:wsdlMsgNS='http://tempuri.org/TitanWebServices/TitanService'>wsdlMsgNS:TitanRunNavisionSoapIn</wsdl-message>
       <wsdl-message-part-name>parameters</wsdl-message-part-name>
       <parameter-mode>INOUT</parameter-mode>
       </wsdl-message-mapping>
       </method-param-parts-mapping>
       <wsdl-return-value-mapping>
       <method-return-value>org.tempuri.titanwebservices.titanservice.TitanRunNavisionResponse</method-return-value>
       <wsdl-message xmlns:wsdlMsgNS='http://tempuri.org/TitanWebServices/TitanService'>wsdlMsgNS:TitanRunNavisionSoapOut</wsdl-message>
       <wsdl-message-part-name>parameters</wsdl-message-part-name>
       </wsdl-return-value-mapping>
       </service-endpoint-method-mapping>
       </service-endpoint-interface-mapping>
      </java-wsdl-mapping>
      



        • 1. Re: java client and MS Webservice
          Andriy Otchenash Newbie

          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?


          [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


          • 2. Re: java client and MS Webservice
            Thomas Diesler Master

            If its a wstools issue you could try wscompile to generate the beans and mapping file.

            Even better have a look at jbossws-1.2.0. Here is the user guide preview.

            http://tddell.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide