axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Johnson <Tim.John...@Sunquest.com>
Subject WSDL generator
Date Thu, 27 Sep 2001 17:30:01 GMT
When I try to run the MS WSDL tool against an AXIS generated WSDL file,
I get the following error.

C:\Program Files\Microsoft.NET\FrameworkSDK\Bin>wsdl /protocol:SOAP
http://sqnklab02:8080/axis/services/urn:StringService?WSDL
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 1.0.2914.16]
Copyright (C) Microsoft Corp. 1998-2001. All rights reserved.

ERROR: Unable to import binding 'StringServiceSoapBinding' from namespace
'http://sqnklab02:80/axis/services/urn:StringService'.
   -Unable to import operation 'stringBeanInOut'.
   -The datatype 'StringBean' is missing.

If you would like more help, please type "wsdl /?".

When I try to run the MS WSDL tool against a GLUE generated WSDL file,
it works just fine.

The major difference between the 2 files is in GLUE there is a TYPES
section for the Complex Types.

Am I too early in trying to use AXIS's WSDL generator for complex types?

I can continue to use GLUE's tool, but it is a pain to change the namespaces
ever time to make it work with AXIS.

IMHO if you can get this WSDL generator to work it will be a major win for
AXIS.
*****************************************************************

WSDL file generated by AXIS:

<?xml version="1.0" encoding="UTF-8" ?> 
- <definitions
targetNamespace="http://sqnklab02:8080/axis/services/urn:StringService"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:serviceNS="http://sqnklab02:8080/axis/services/urn:StringService"
xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:StringBean"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
- <message name="stringLowerResponse">
  <part name="stringLowerResult" type="xsd:string" /> 
  </message>
- <message name="stringArrayInRequest">
  <part name="arg0" type="ns2:Array" /> 
  </message>
- <message name="stringLowerRequest">
  <part name="arg0" type="xsd:string" /> 
  </message>
- <message name="stringBeanArrayOutResponse">
  <part name="stringBeanArrayOutResult" type="ns2:Array" /> 
  </message>
  <message name="stringBeanArrayOutRequest" /> 
- <message name="stringConcatRequest">
  <part name="arg0" type="xsd:string" /> 
  <part name="arg1" type="xsd:string" /> 
  </message>
- <message name="stringUpperResponse">
  <part name="stringUpperResult" type="xsd:string" /> 
  </message>
- <message name="stringBeanInOutResponse">
  <part name="stringBeanInOutResult" type="ns1:StringBean" /> 
  </message>
- <message name="stringArrayOutResponse">
  <part name="stringArrayOutResult" type="ns2:Array" /> 
  </message>
- <message name="stringArrayInResponse">
  <part name="stringArrayInResult" type="xsd:string" /> 
  </message>
- <message name="stringUpperRequest">
  <part name="arg0" type="xsd:string" /> 
  </message>
- <message name="stringConcatResponse">
  <part name="stringConcatResult" type="xsd:string" /> 
  </message>
  <message name="stringArrayOutRequest" /> 
- <message name="stringBeanInOutRequest">
  <part name="arg0" type="ns1:StringBean" /> 
  </message>
- <portType name="StringServicePortType">
- <operation name="stringConcat">
  <input message="serviceNS:stringConcatRequest" /> 
  <output message="serviceNS:stringConcatResponse" /> 
  </operation>
- <operation name="stringUpper">
  <input message="serviceNS:stringUpperRequest" /> 
  <output message="serviceNS:stringUpperResponse" /> 
  </operation>
- <operation name="stringLower">
  <input message="serviceNS:stringLowerRequest" /> 
  <output message="serviceNS:stringLowerResponse" /> 
  </operation>
- <operation name="stringBeanInOut">
  <input message="serviceNS:stringBeanInOutRequest" /> 
  <output message="serviceNS:stringBeanInOutResponse" /> 
  </operation>
- <operation name="stringArrayOut">
  <input message="serviceNS:stringArrayOutRequest" /> 
  <output message="serviceNS:stringArrayOutResponse" /> 
  </operation>
- <operation name="stringArrayIn">
  <input message="serviceNS:stringArrayInRequest" /> 
  <output message="serviceNS:stringArrayInResponse" /> 
  </operation>
- <operation name="stringBeanArrayOut">
  <input message="serviceNS:stringBeanArrayOutRequest" /> 
  <output message="serviceNS:stringBeanArrayOutResponse" /> 
  </operation>
  </portType>
- <binding name="StringServiceSoapBinding"
type="serviceNS:StringServicePortType">
  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"
/> 
- <operation name="stringConcat">
  <soap:operation soapAction="" style="rpc" /> 
- <input>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </input>
- <output>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </output>
  </operation>
- <operation name="stringUpper">
  <soap:operation soapAction="" style="rpc" /> 
- <input>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </input>
- <output>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </output>
  </operation>
- <operation name="stringLower">
  <soap:operation soapAction="" style="rpc" /> 
- <input>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </input>
- <output>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </output>
  </operation>
- <operation name="stringBeanInOut">
  <soap:operation soapAction="" style="rpc" /> 
- <input>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </input>
- <output>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </output>
  </operation>
- <operation name="stringArrayOut">
  <soap:operation soapAction="" style="rpc" /> 
- <input>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </input>
- <output>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </output>
  </operation>
- <operation name="stringArrayIn">
  <soap:operation soapAction="" style="rpc" /> 
- <input>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </input>
- <output>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </output>
  </operation>
- <operation name="stringBeanArrayOut">
  <soap:operation soapAction="" style="rpc" /> 
- <input>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </input>
- <output>
  <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:StringService" /> 
  </output>
  </operation>
  </binding>
- <service name="StringService">
- <port name="StringServicePort"
binding="serviceNS:StringServiceSoapBinding">
  <soap:address
location="http://sqnklab02:8080/axis/services/urn:StringService" /> 
  </port>
  </service>
  </definitions>
  
 
***************************************************************************
  
  WSDL generated by GLUE
  
  <?xml version="1.0" encoding="UTF-8" ?> 
  - <!-- generated by GLUE
    --> 
  - <definitions name="soaptest.StringService"
targetNamespace="http://www.themindelectric.com/wsdl/soaptest.StringService/
" xmlns:tns="http://www.themindelectric.com/wsdl/soaptest.StringService/"
xmlns:electric="http://www.themindelectric.com/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
  - <types>
  - <schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.themindelectric.com/package/java.lang/"
targetNamespace="http://www.themindelectric.com/package/java.lang/">
  - <complexType name="ArrayOfstring">
  - <complexContent>
  - <restriction base="soapenc:Array">
    <attribute ref="soapenc:arrayType" wsdl:arrayType="string[]" /> 
    </restriction>
    </complexContent>
    </complexType>
    </schema>
  - <schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.themindelectric.com/package/soaptest/"
targetNamespace="http://www.themindelectric.com/package/soaptest/">
  - <complexType name="StringBean">
  - <sequence>
    <element name="string1" nillable="true" type="string" /> 
    <element name="string2" nillable="true" type="string" /> 
    <element name="string3" nillable="true" type="string" /> 
    </sequence>
    </complexType>
  - <complexType name="ArrayOfStringBean">
  - <complexContent>
  - <restriction base="soapenc:Array">
    <attribute ref="soapenc:arrayType" wsdl:arrayType="tns:StringBean[]" /> 
    </restriction>
    </complexContent>
    </complexType>
    </schema>
    </types>
  - <message name="stringConcat0SoapIn">
    <part name="arg0" type="xsd:string" /> 
    <part name="arg1" type="xsd:string" /> 
    </message>
  - <message name="stringConcat0SoapOut">
    <part name="Result" type="xsd:string" /> 
    </message>
  - <message name="stringUpper1SoapIn">
    <part name="arg0" type="xsd:string" /> 
    </message>
  - <message name="stringUpper1SoapOut">
    <part name="Result" type="xsd:string" /> 
    </message>
  - <message name="stringLower2SoapIn">
    <part name="arg0" type="xsd:string" /> 
    </message>
  - <message name="stringLower2SoapOut">
    <part name="Result" type="xsd:string" /> 
    </message>
  - <message name="stringBeanInOut3SoapIn">
    <part name="arg0"
xmlns:ns1="http://www.themindelectric.com/package/soaptest/"
type="ns1:StringBean" /> 
    </message>
  - <message name="stringBeanInOut3SoapOut">
    <part name="Result"
xmlns:ns1="http://www.themindelectric.com/package/soaptest/"
type="ns1:StringBean" /> 
    </message>
    <message name="stringArrayOut4SoapIn" /> 
  - <message name="stringArrayOut4SoapOut">
    <part name="Result"
xmlns:ns1="http://www.themindelectric.com/package/java.lang/"
type="ns1:ArrayOfstring" /> 
    </message>
  - <message name="stringArrayIn5SoapIn">
    <part name="arg0"
xmlns:ns1="http://www.themindelectric.com/package/java.lang/"
type="ns1:ArrayOfstring" /> 
    </message>
  - <message name="stringArrayIn5SoapOut">
    <part name="Result" type="xsd:string" /> 
    </message>
    <message name="stringBeanArrayOut6SoapIn" /> 
  - <message name="stringBeanArrayOut6SoapOut">
    <part name="Result"
xmlns:ns1="http://www.themindelectric.com/package/soaptest/"
type="ns1:ArrayOfStringBean" /> 
    </message>
  - <portType name="soaptest.StringServiceSoap">
  - <operation name="stringConcat" parameterOrder="arg0 arg1">
    <input name="stringConcat0SoapIn" message="tns:stringConcat0SoapIn" /> 
    <output name="stringConcat0SoapOut" message="tns:stringConcat0SoapOut"
/> 
    </operation>
  - <operation name="stringUpper" parameterOrder="arg0">
    <input name="stringUpper1SoapIn" message="tns:stringUpper1SoapIn" /> 
    <output name="stringUpper1SoapOut" message="tns:stringUpper1SoapOut" /> 
    </operation>
  - <operation name="stringLower" parameterOrder="arg0">
    <input name="stringLower2SoapIn" message="tns:stringLower2SoapIn" /> 
    <output name="stringLower2SoapOut" message="tns:stringLower2SoapOut" /> 
    </operation>
  - <operation name="stringBeanInOut" parameterOrder="arg0">
    <input name="stringBeanInOut3SoapIn"
message="tns:stringBeanInOut3SoapIn" /> 
    <output name="stringBeanInOut3SoapOut"
message="tns:stringBeanInOut3SoapOut" /> 
    </operation>
  - <operation name="stringArrayOut">
    <input name="stringArrayOut4SoapIn" message="tns:stringArrayOut4SoapIn"
/> 
    <output name="stringArrayOut4SoapOut"
message="tns:stringArrayOut4SoapOut" /> 
    </operation>
  - <operation name="stringArrayIn" parameterOrder="arg0">
    <input name="stringArrayIn5SoapIn" message="tns:stringArrayIn5SoapIn" />

    <output name="stringArrayIn5SoapOut" message="tns:stringArrayIn5SoapOut"
/> 
    </operation>
  - <operation name="stringBeanArrayOut">
    <input name="stringBeanArrayOut6SoapIn"
message="tns:stringBeanArrayOut6SoapIn" /> 
    <output name="stringBeanArrayOut6SoapOut"
message="tns:stringBeanArrayOut6SoapOut" /> 
    </operation>
    </portType>
  - <binding name="soaptest.StringServiceSoap"
type="tns:soaptest.StringServiceSoap">
    <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" /> 
  - <operation name="stringConcat">
    <soap:operation soapAction="stringConcat" style="rpc" /> 
  - <input name="stringConcat0SoapIn">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </input>
  - <output name="stringConcat0SoapOut">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </output>
    </operation>
  - <operation name="stringUpper">
    <soap:operation soapAction="stringUpper" style="rpc" /> 
  - <input name="stringUpper1SoapIn">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </input>
  - <output name="stringUpper1SoapOut">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </output>
    </operation>
  - <operation name="stringLower">
    <soap:operation soapAction="stringLower" style="rpc" /> 
  - <input name="stringLower2SoapIn">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </input>
  - <output name="stringLower2SoapOut">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </output>
    </operation>
  - <operation name="stringBeanInOut">
    <soap:operation soapAction="stringBeanInOut" style="rpc" /> 
  - <input name="stringBeanInOut3SoapIn">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </input>
  - <output name="stringBeanInOut3SoapOut">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </output>
    </operation>
  - <operation name="stringArrayOut">
    <soap:operation soapAction="stringArrayOut" style="rpc" /> 
  - <input name="stringArrayOut4SoapIn">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </input>
  - <output name="stringArrayOut4SoapOut">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </output>
    </operation>
  - <operation name="stringArrayIn">
    <soap:operation soapAction="stringArrayIn" style="rpc" /> 
  - <input name="stringArrayIn5SoapIn">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </input>
  - <output name="stringArrayIn5SoapOut">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </output>
    </operation>
  - <operation name="stringBeanArrayOut">
    <soap:operation soapAction="stringBeanArrayOut" style="rpc" /> 
  - <input name="stringBeanArrayOut6SoapIn">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </input>
  - <output name="stringBeanArrayOut6SoapOut">
    <soap:body use="encoded"
namespace="http://tempuri.org/soaptest.StringService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 
    </output>
    </operation>
    </binding>
  - <service name="soaptest.StringService">
  - <port name="soaptest.StringServiceSoap"
binding="tns:soaptest.StringServiceSoap">
    <soap:address
location="http://149.138.16.141:8080/axis/servlet/AxisServlet" /> 
    </port>
    </service>
  </definitions>

Mime
View raw message