3 Replies Latest reply on Oct 28, 2005 11:35 AM by Utah Jazz

    Help please

    Utah Jazz Newbie

      Hi all,

      I'm trying to figure out how to finish a project for a class and cannot seem to get a web service deployed on jboss-4.0.3. During the deployment process, Jboss server returns a ton of errors regarding type mapping. My guess is that my jaxrpc-mapping file is incorrect. I have attached below the wsdl, web.xml, jaxrpc-mapping.xml. Any help on what i am doing incorrectly is greatly appreciated. Thanks in advance.

      WSDL -

      <wsdl:definitions targetNamespace="urn:testsoap"
       xmlns="http://schemas.xmlsoap.org/wsdl/"
       xmlns:apachesoap="http://xml.apache.org/xml-soap"
       xmlns:impl="urn:testsoap"
       xmlns:intf="urn:testsoap"
       xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
       xmlns:tns2="http://qobjects.testsoap.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:types>
       <schema targetNamespace="http://qobjects.testsoap.com"
       xmlns="http://www.w3.org/2001/XMLSchema">
      
       <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
      
       <complexType name="Identification">
       <sequence>
       <element name="testid" type="xsd:string" />
       <element name="testpwd" type="xsd:string" />
       </sequence>
       </complexType>
      
       <complexType name="ItemDetail">
       <sequence>
       <element name="itemid" type="xsd:string" />
       <element name="itemname" nillable="true" type="xsd:string" />
       <element name="subitemid" nillable="true" type="xsd:string" />
       </sequence>
       </complexType>
       </schema>
       </wsdl:types>
      
       <wsdl:message name="TestSoapRequest">
       <wsdl:part name="in0" type="tns2:Identification" />
       <wsdl:part name="in1" type="tns2:ItemDetail" />
       </wsdl:message>
      
       <wsdl:message name="TestSoapResponse">
       <wsdl:part name="itemcount" type="xsd:integer" />
       </wsdl:message>
      
       <wsdl:portType name="TestSoapService">
       <wsdl:operation name="getItemCount" parameterOrder="in0 in1">
       <wsdl:input message="impl:TestSoapRequest" name="TestSoapRequest" />
       <wsdl:output message="impl:TestSoapResponse" name="TestSoapResponse" />
       </wsdl:operation>
       </wsdl:portType>
      
       <wsdl:binding name="TestSoapSoapBinding" type="impl:TestSoapService">
       <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
      
       <wsdl:operation name="getItemCount">
       <wsdlsoap:operation soapAction="" />
       <wsdl:input name="TestSoapRequest">
       <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:testsoap" use="encoded" />
       </wsdl:input>
       <wsdl:output name="TestSoapResponse">
       <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:testsoap" use="encoded" />
       </wsdl:output>
       </wsdl:operation>
       </wsdl:binding>
      
       <wsdl:service name="TestSoapServiceService">
       <wsdl:port binding="impl:TestSoapSoapBinding" name="TestSoapService">
       <wsdlsoap:address location="http://localhost:8080/services/TestSoap" />
       </wsdl:port>
       </wsdl:service>
      
      </wsdl:definitions>
      
      WEBSERVICES.XML
      
       <?xml version='1.0' encoding='UTF-8' ?>
       <webservices
       xmlns="http://java.sun.com/xml/ns/j2ee"
       xmlns:impl="urn:testsoap"
       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_web_services_1_1.xsd"
       version="1.1">
      
       <webservice-description>
       <webservice-description-name>TestSoapService</webservice-description-name>
       <wsdl-file>WEB-INF/wsdl/testsoap.wsdl</wsdl-file>
       <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
       <port-component>
       <port-component-name>TestSoapService</port-component-name>
       <wsdl-port>TestSoapService</wsdl-port>
       <service-endpoint-interface>testsoap.TestSoapServiceService</service-endpoint-interface>
       <service-impl-bean>
       <servlet-link>TestSoapServlet</servlet-link>
       </service-impl-bean>
       </port-component>
       </webservice-description>
       </webservices>
      
       JAXRPC-MAPPING.xml
       
       <?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"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
       http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd"
       version="1.1">
       <package-mapping>
       <package-type>testsoap</package-type>
       <namespaceURI>urn:testsoap</namespaceURI>
       </package-mapping>
       <package-mapping>
       <package-type>com.testsoap.qobjects</package-type>
       <namespaceURI>http://qobjects.testsoap.com</namespaceURI>
       </package-mapping>
       </java-wsdl-mapping>
      
      
       WEB.XML
       <?xml version="1.0" encoding="UTF-8"?>
       <web-app
       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://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
       version="2.4">
      
       <servlet>
       <servlet-name>TestSoapServlet</servlet-name>
       <servlet-class>testsoap.TestSoapSoapBindingImpl</servlet-class>
       </servlet>
      
       <servlet-mapping>
       <servlet-name>TestSoapServlet</servlet-name>
       <url-pattern>/TestSoap</url-pattern>
       </servlet-mapping>
      
       <welcome-file-list>
       <welcome-file>index.html</welcome-file>
       </welcome-file-list>
      
       </web-app>