3 Replies Latest reply on Oct 12, 2006 7:08 PM by Thomas Diesler

    wstools.sh process gsoap's wsdl error

    peixubin peixubin Newbie

      pxb@ygs-xxk-pxb:~/src/ws$ ~/mydownload/jbossws/bin/wstools.sh -config c2g/wstools-config.xml -dest gen-src
      =========================================================================

      WSTools Environment

      JBOSS_HOME: /usr/jboss-4.0.5.CR1

      JAVA: /usr/jdk1.5.0_06/bin/java

      JAVA_OPTS:

      CLASSPATH: :/usr/jboss-4.0.5.CR1/client/jboss-xml-binding.jar:/usr/jboss-4.0.5.CR1/client/activation.jar:/usr/jboss-4.0.5.CR1/client/javassist.jar:/usr/jboss-4.0.5.CR1/client/jbossall-client.jar:/usr/jboss-4.0.5.CR1/client/jbossretro-rt.jar:/usr/jboss-4.0.5.CR1/client/jboss-backport-concurrent.jar:/usr/jboss-4.0.5.CR1/client/jbossws14-client.jar:/usr/jboss-4.0.5.CR1/client/jbossws-client.jar:/usr/jboss-4.0.5.CR1/client/log4j.jar:/usr/jboss-4.0.5.CR1/client/mail.jar

      =========================================================================

      08:50:31,988 ERROR [JBossXSErrorHandler] JBossWS_localhost_13867.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve.4.2]::Message=src-resolve.4.2: Error resolving component 's:csbArray'. It was detected that 's:csbArray' is in namespace 'http://localhost/xsd', but components from this namespace are not referenceable from schema document 'file:/tmp/JBossWS_localhost_13867.xsd'. If this is the incorrect namespace, perhaps the prefix of 's:csbArray' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/tmp/JBossWS_localhost_13867.xsd'.

      wsdl file ,it's generated by gsoap:

      <?xml version="1.0" encoding="UTF-8"?>
      <definitions name="C2g"
      targetNamespace="http://localhost/wsdl"
      xmlns:tns="http://localhost/wsdl"
      xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
      xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:s="http://localhost/xsd"
      xmlns:ns="http://localhost/"
      xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
      xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
      xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
      xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
      xmlns="http://schemas.xmlsoap.org/wsdl/">



      <schema targetNamespace="http://localhost/xsd"
      xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
      xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:s="http://localhost/xsd"
      xmlns:ns="http://localhost/"
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="unqualified"
      attributeFormDefault="unqualified">
































      <schema targetNamespace="http://localhost/"
      xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
      xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:s="http://localhost/xsd"
      xmlns:ns="http://localhost/"
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="unqualified"
      attributeFormDefault="unqualified">






      <!-- operation request element -->

      <!-- operation request element -->

      <!-- operation response element -->











































      Service definition of function ns__getGsb




      Service definition of function ns__getSb




      Service definition of function ns__getSbmx




      Service definition of function ns__getSbPath






      <SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

      <SOAP:operation style="rpc"/>

      <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>


      <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>



      <SOAP:operation style="rpc"/>

      <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>


      <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>



      <SOAP:operation style="rpc"/>

      <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>


      <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>



      <SOAP:operation style="rpc"/>

      <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>


      <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>





      gSOAP 2.7.8c generated service definition

      <SOAP:address location="http://localhost/c2g.cgi"/>







        • 1. Re: wstools.sh process gsoap's wsdl error
          peixubin peixubin Newbie

          wsdl:

          <?xml version="1.0" encoding="UTF-8"?>
          <definitions name="C2g"
           targetNamespace="http://localhost/wsdl"
           xmlns:tns="http://localhost/wsdl"
           xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
           xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:xsd="http://www.w3.org/2001/XMLSchema"
           xmlns:s="http://localhost/xsd"
           xmlns:ns="http://localhost/"
           xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
           xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
           xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
           xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
           xmlns="http://schemas.xmlsoap.org/wsdl/">
          
          <types>
          
           <schema targetNamespace="http://localhost/xsd"
           xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
           xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:xsd="http://www.w3.org/2001/XMLSchema"
           xmlns:s="http://localhost/xsd"
           xmlns:ns="http://localhost/"
           xmlns="http://www.w3.org/2001/XMLSchema"
           elementFormDefault="unqualified"
           attributeFormDefault="unqualified">
           <import namespace="http://www.w3.org/2003/05/soap-encoding"/>
           <complexType name="csb">
           <sequence>
           <element name="id" type="xsd:int" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="mc" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="sbbm" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="dy" type="xsd:int" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="sblx" type="xsd:int" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="xsl" type="xsd:double" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="gdl" type="xsd:double" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="sdl" type="xsd:double" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="edrl" type="xsd:double" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="yhrl" type="xsd:double" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="yhsl" type="xsd:double" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="rq" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="minrq" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="maxrq" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
           <element name="glbz" type="xsd:string" minOccurs="0" maxOccurs="1" nillable="true"/>
           </sequence>
           </complexType>
           <complexType name="csbArray">
           <sequence>
           <element name="item" type="s:csb" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
           </sequence>
           </complexType>
           <complexType name="C2gException">
           <sequence>
           <element name="code" type="xsd:int" minOccurs="0" maxOccurs="1" nillable="true"/>
           </sequence>
           </complexType>
           </schema>
          
           <schema targetNamespace="http://localhost/"
           xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
           xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:xsd="http://www.w3.org/2001/XMLSchema"
           xmlns:s="http://localhost/xsd"
           xmlns:ns="http://localhost/"
           xmlns="http://www.w3.org/2001/XMLSchema"
           elementFormDefault="unqualified"
           attributeFormDefault="unqualified">
           <import namespace="http://www.w3.org/2003/05/soap-encoding"/>
           <complexType name="csbArray">
           <sequence>
           <element name="item" type="s:csb" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
           </sequence>
           </complexType>
           </schema>
          
          </types>
          
          <message name="getGsbRequest">
           <part name="dwdm" type="xsd:string"/>
           <part name="input" type="s:csbArray"/>
          </message>
          
          <message name="getGsbResponse">
           <part name="return" type="s:csbArray"/>
          </message>
          
          <message name="getSbRequest">
           <part name="dwdm" type="xsd:string"/>
           <part name="input" type="s:csbArray"/>
          </message>
          
          <message name="getSbResponse">
           <part name="return" type="s:csbArray"/>
          </message>
          
          <message name="getSbmxRequest">
           <part name="dwdm" type="xsd:string"/>
           <part name="input" type="s:csbArray"/>
          </message>
          
          <message name="getSbmxResponse">
           <part name="return" type="s:csbArray"/>
          </message>
          
          <message name="getSbPathRequest">
           <part name="dwdm" type="xsd:string"/>
           <part name="input" type="s:csbArray"/>
          </message>
          
          <message name="getSbPathResponse">
           <part name="return" type="s:csbArray"/>
          </message>
          
          <portType name="C2gPortType">
           <operation name="getGsb">
           <documentation>Service definition of function ns__getGsb</documentation>
           <input message="tns:getGsbRequest"/>
           <output message="tns:getGsbResponse"/>
           </operation>
           <operation name="getSb">
           <documentation>Service definition of function ns__getSb</documentation>
           <input message="tns:getSbRequest"/>
           <output message="tns:getSbResponse"/>
           </operation>
           <operation name="getSbmx">
           <documentation>Service definition of function ns__getSbmx</documentation>
           <input message="tns:getSbmxRequest"/>
           <output message="tns:getSbmxResponse"/>
           </operation>
           <operation name="getSbPath">
           <documentation>Service definition of function ns__getSbPath</documentation>
           <input message="tns:getSbPathRequest"/>
           <output message="tns:getSbPathResponse"/>
           </operation>
          </portType>
          
          <binding name="C2g" type="tns:C2gPortType">
           <SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
           <operation name="getGsb">
           <SOAP:operation style="rpc"/>
           <input>
           <SOAP:body use="encoded" namespace="http://localhost/" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
           </input>
           <output>
           <SOAP:body use="encoded" namespace="http://localhost/" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
           </output>
           </operation>
           <operation name="getSb">
           <SOAP:operation style="rpc"/>
           <input>
           <SOAP:body use="encoded" namespace="http://localhost/" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
           </input>
           <output>
           <SOAP:body use="encoded" namespace="http://localhost/" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
           </output>
           </operation>
           <operation name="getSbmx">
           <SOAP:operation style="rpc"/>
           <input>
           <SOAP:body use="encoded" namespace="http://localhost/" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
           </input>
           <output>
           <SOAP:body use="encoded" namespace="http://localhost/" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
           </output>
           </operation>
           <operation name="getSbPath">
           <SOAP:operation style="rpc"/>
           <input>
           <SOAP:body use="encoded" namespace="http://localhost/" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
           </input>
           <output>
           <SOAP:body use="encoded" namespace="http://localhost/" encodingStyle="http://www.w3.org/2003/05/soap-encoding"/>
           </output>
           </operation>
          </binding>
          
          <service name="C2g">
           <documentation>gSOAP 2.7.8c generated service definition</documentation>
           <port name="C2g" binding="tns:C2g">
           <SOAP:address location="http://localhost/c2g.cgi"/>
           </port>
          </service>
          
          </definitions>
          
          
          
          
          


          • 2. Re: wstools.sh process gsoap's wsdl error
            peixubin peixubin Newbie

            this wsdl file ,if I use axis1.1 or jwsdp ,wsdl2java can generate java stub,axis can call service correctly.jwsdp isn't test.