3 Replies Latest reply on Jan 4, 2006 12:50 PM by Thomas Diesler

    Unexplainable SAX Parsing exceptions

    Karl de Boer Newbie

      Hi EveryBody,

      I have a problem which i cannot explain:

      Environment:
      External WebService (Oracle appserver)
      JBoss Aplication Client (4.0.2 and 4.03SP1 bot tested)
      Document/Literal style
      The stub code has been generated with wscompile -keep -import -f:wsi -f:documentliteral

      The execption i am getting is:
      Invalid element in nl.denhaag.gbd.wsclient.sport.soort.service.DhgThemaWsSptVSportsoortTSptSrtRecordAttrs - Sportsoortid

      Sportid is an element in the soap message.

      Here is the WSDL

      <wsdl:definitions targetNamespace="urn:ws.kgb.itude.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:ws.kgb.itude.com" xmlns:intf="urn:ws.kgb.itude.com" xmlns:tns1="urn:plsql.generated.ws.kgb.itude.com" xmlns:tns2="urn:generated.ws.kgb.itude.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <!--WSDL created by Apache Axis version: 1.2.1
      Built on Jun 14, 2005 (09:15:57 EDT)-->
       <wsdl:types>
       <schema elementFormDefault="qualified" targetNamespace="urn:ws.kgb.itude.com" xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="urn:generated.ws.kgb.itude.com"/>
       <import namespace="urn:plsql.generated.ws.kgb.itude.com"/>
       <element name="slctSptSrt">
       <complexType>
       <sequence>
       <element name="Sportsoortid" type="xsd:decimal"/>
       </sequence>
       </complexType>
       </element>
       <element name="slctSptSrtResponse">
       <complexType>
       <sequence>
       <element maxOccurs="unbounded" name="slctSptSrtReturn" type="tns1:DhgThemaWsSptVSportsoortTSptSrtRecordAttrs"/>
       </sequence>
       </complexType>
       </element>
       <element name="fault" type="tns2:SptVSportsoortFactoryServiceException"/>
       </schema>
       <schema elementFormDefault="qualified" targetNamespace="urn:plsql.generated.ws.kgb.itude.com" xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="urn:generated.ws.kgb.itude.com"/>
       <complexType name="DhgThemaWsSptVSportsoortTSptSrtRecordAttrs">
       <sequence>
       <element name="Sportsoortid" nillable="true" type="xsd:decimal"/>
       <element name="Naam" nillable="true" type="xsd:string"/>
       </sequence>
       </complexType>
       </schema>
       <schema elementFormDefault="qualified" targetNamespace="urn:generated.ws.kgb.itude.com" xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="urn:plsql.generated.ws.kgb.itude.com"/>
       <complexType name="SptVSportsoortFactoryServiceException">
       <sequence>
       <element name="detailMessage" nillable="true" type="xsd:string"/>
       </sequence>
       </complexType>
       </schema>
       </wsdl:types>
       <wsdl:message name="slctSptSrtResponse">
       <wsdl:part element="impl:slctSptSrtResponse" name="parameters"/>
       </wsdl:message>
       <wsdl:message name="SptVSportsoortFactoryServiceException">
       <wsdl:part element="impl:fault" name="fault"/>
       </wsdl:message>
       <wsdl:message name="slctSptSrtRequest">
       <wsdl:part element="impl:slctSptSrt" name="parameters"/>
       </wsdl:message>
       <wsdl:portType name="SptVSportsoortFactoryServiceInterface">
       <wsdl:operation name="slctSptSrt">
       <wsdl:input message="impl:slctSptSrtRequest" name="slctSptSrtRequest"/>
       <wsdl:output message="impl:slctSptSrtResponse" name="slctSptSrtResponse"/>
       <wsdl:fault message="impl:SptVSportsoortFactoryServiceException" name="SptVSportsoortFactoryServiceException"/>
       </wsdl:operation>
       </wsdl:portType>
       <wsdl:binding name="SPT_V_SPORTSOORTSoapBinding" type="impl:SptVSportsoortFactoryServiceInterface">
       <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
       <wsdl:operation name="slctSptSrt">
       <wsdlsoap:operation soapAction=""/>
       <wsdl:input name="slctSptSrtRequest">
       <wsdlsoap:body use="literal"/>
       </wsdl:input>
       <wsdl:output name="slctSptSrtResponse">
       <wsdlsoap:body use="literal"/>
       </wsdl:output>
       <wsdl:fault name="SptVSportsoortFactoryServiceException">
       <wsdlsoap:fault name="SptVSportsoortFactoryServiceException" use="literal"/>
       </wsdl:fault>
       </wsdl:operation>
       </wsdl:binding>
       <wsdl:service name="SptVSportsoortFactoryServiceInterfaceService">
       <wsdl:port binding="impl:SPT_V_SPORTSOORTSoapBinding" name="SPT_V_SPORTSOORT">
       <wsdlsoap:address location="http://172.19.254.110:7779/KgbSptWS/services/SPT_V_SPORTSOORT"/>
       </wsdl:port>
       </wsdl:service>
      </wsdl:definitions>
      
      
      


      And here is the gebnerated jax-rpc mapping
      <?xml version="1.0" encoding="UTF-8"?>
      <java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" 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>nl.denhaag.gbd.wsclient.sport.soort.service</package-type>
      <namespaceURI>urn:ws.kgb.itude.com</namespaceURI>
      </package-mapping>
      <package-mapping>
      <package-type>nl.denhaag.gbd.wsclient.sport.soort.service</package-type>
      <namespaceURI>urn:plsql.generated.ws.kgb.itude.com</namespaceURI>
      </package-mapping>
      <package-mapping>
      <package-type>nl.denhaag.gbd.wsclient.sport.soort.service</package-type>
      <namespaceURI>urn:generated.ws.kgb.itude.com</namespaceURI>
      </package-mapping>
      <java-xml-type-mapping>
      <java-type>nl.denhaag.gbd.wsclient.sport.soort.service.SlctSptSrtResponse</java-type>
      <anonymous-type-qname>urn:ws.kgb.itude.com:&gt;slctSptSrtResponse</anonymous-type-qname>
      <qname-scope>complexType</qname-scope>
      <variable-mapping>
      <java-variable-name>slctSptSrtReturn</java-variable-name>
      <xml-element-name>slctSptSrtReturn</xml-element-name>
      </variable-mapping>
      </java-xml-type-mapping>
      <java-xml-type-mapping>
      <java-type>nl.denhaag.gbd.wsclient.sport.soort.service.SptVSportsoortFactoryServiceException</java-type>
      <root-type-qname xmlns:typeNS="urn:generated.ws.kgb.itude.com">typeNS:SptVSportsoortFactoryServiceException</root-type-qname>
      <qname-scope>complexType</qname-scope>
      <variable-mapping>
      <java-variable-name>detailMessage</java-variable-name>
      <xml-element-name>detailMessage</xml-element-name>
      </variable-mapping>
      </java-xml-type-mapping>
      <java-xml-type-mapping>
      <java-type>nl.denhaag.gbd.wsclient.sport.soort.service.DhgThemaWsSptVSportsoortTSptSrtRecordAttrs</java-type>
      <root-type-qname xmlns:typeNS="urn:plsql.generated.ws.kgb.itude.com">typeNS:DhgThemaWsSptVSportsoortTSptSrtRecordAttrs</root-type-qname>
      <qname-scope>complexType</qname-scope>
      <variable-mapping>
      <java-variable-name>sportsoortid</java-variable-name>
      <xml-element-name>Sportsoortid</xml-element-name>
      </variable-mapping>
      <variable-mapping>
      <java-variable-name>naam</java-variable-name>
      <xml-element-name>Naam</xml-element-name>
      </variable-mapping>
      </java-xml-type-mapping>
      <java-xml-type-mapping>
      <java-type>nl.denhaag.gbd.wsclient.sport.soort.service.SlctSptSrt</java-type>
      <anonymous-type-qname>urn:ws.kgb.itude.com:&gt;slctSptSrt</anonymous-type-qname>
      <qname-scope>complexType</qname-scope>
      <variable-mapping>
      <java-variable-name>sportsoortid</java-variable-name>
      <xml-element-name>Sportsoortid</xml-element-name>
      </variable-mapping>
      </java-xml-type-mapping>
      <java-xml-type-mapping>
      <java-type>nl.denhaag.gbd.wsclient.sport.soort.service.DhgThemaWsSptVSportsoortTSptSrtRecordAttrs[]</java-type>
      <anonymous-type-qname>urn:ws.kgb.itude.com:&gt;slctSptSrtResponse&gt;slctSptSrtReturn[1,unbounded]</anonymous-type-qname>
      <qname-scope>complexType</qname-scope>
      </java-xml-type-mapping>
      <exception-mapping>
      <exception-type>nl.denhaag.gbd.wsclient.sport.soort.service.SptVSportsoortFactoryServiceException</exception-type>
      <wsdl-message xmlns:exMsgNS="urn:ws.kgb.itude.com">exMsgNS:SptVSportsoortFactoryServiceException</wsdl-message>
      <constructor-parameter-order>
      <element-name>detailMessage</element-name>
      </constructor-parameter-order>
      </exception-mapping>
      <service-interface-mapping>
      <service-interface>nl.denhaag.gbd.wsclient.sport.soort.service.SptVSportsoortFactoryServiceInterfaceService</service-interface>
      <wsdl-service-name xmlns:serviceNS="urn:ws.kgb.itude.com">serviceNS:SptVSportsoortFactoryServiceInterfaceService</wsdl-service-name>
      <port-mapping>
      <port-name>SPT_V_SPORTSOORT</port-name>
      <java-port-name>SPT_V_SPORTSOORT</java-port-name>
      </port-mapping>
      </service-interface-mapping>
      <service-endpoint-interface-mapping>
      <service-endpoint-interface>nl.denhaag.gbd.wsclient.sport.soort.service.SptVSportsoortFactoryServiceInterface</service-endpoint-interface>
      <wsdl-port-type xmlns:portTypeNS="urn:ws.kgb.itude.com">portTypeNS:SptVSportsoortFactoryServiceInterface</wsdl-port-type>
      <wsdl-binding xmlns:bindingNS="urn:ws.kgb.itude.com">bindingNS:SPT_V_SPORTSOORTSoapBinding</wsdl-binding>
      <service-endpoint-method-mapping>
      <java-method-name>slctSptSrt</java-method-name>
      <wsdl-operation>slctSptSrt</wsdl-operation>
      <method-param-parts-mapping>
      <param-position>0</param-position>
      <param-type>nl.denhaag.gbd.wsclient.sport.soort.service.SlctSptSrt</param-type>
      <wsdl-message-mapping>
      <wsdl-message xmlns:wsdlMsgNS="urn:ws.kgb.itude.com">wsdlMsgNS:slctSptSrtRequest</wsdl-message>
      <wsdl-message-part-name>parameters</wsdl-message-part-name>
      <parameter-mode>IN</parameter-mode>
      </wsdl-message-mapping>
      </method-param-parts-mapping>
      <wsdl-return-value-mapping>
      <method-return-value>nl.denhaag.gbd.wsclient.sport.soort.service.SlctSptSrtResponse</method-return-value>
      <wsdl-message xmlns:wsdlMsgNS="urn:ws.kgb.itude.com">wsdlMsgNS:slctSptSrtResponse</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>
      
      


      I can access the webservice, a response message is returned, but while binding the xml elements to the generated objects the above mentioned exception is thrown.

      What is wrong? I am clueless
      Thanks for helping

      Karl