Unable to Import WebService - From Axis server - please help!

Discussion in 'ASP .Net Web Services' started by Nayt Grochowski, Mar 2, 2004.

  1. I'm a newbie to web services, all of my experiance has been with the simple
    asmx files in .NET...



    I have a client I need that uses Apache Axis and I have to connect to their
    WSDL files - I have no problems browsing to the service in VS.NET when
    adding a new web reference, but when I go to actually create the reference
    it failes, even on a the most basic EchoHost service - I am at a loss on
    where to start fixing the problem!



    Here is the error I get in my Task list:



    Custom tool error: Unable to import WebService/Schema. Unable to import
    binding 'EchoHeadersSoapBinding' from namespace
    'http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws'. Unable to import operation
    'list'. The datatype 'string' is missing.

    Here is their WSDL file I am using:



    <?xml version="1.0" encoding="utf-8"?>
    <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:s0="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    targetNamespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
    <s:schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws">
    <s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    <s:complexType name="ArrayOf_tns2_string">
    <s:complexContent mixed="false">
    <s:restriction base="soapenc:Array">
    <s:attribute xmlns:q1="http://www.w3.org/2003/05/soap-encoding"
    d7p1:arrayType="q1:string[]" ref="soapenc:arrayType"
    xmlns:d7p1="http://schemas.xmlsoap.org/wsdl/" />
    </s:restriction>
    </s:complexContent>
    </s:complexType>
    </s:schema>
    </types>
    <message name="echoRequest">
    <part name="param" type="s:string" />
    </message>
    <message name="throwAxisFaultResponse" />
    <message name="throwRuntimeExceptionRequest">
    <part name="param" type="s:string" />
    </message>
    <message name="throwAxisFaultRequest">
    <part name="param" type="s:string" />
    </message>
    <message name="whoamiRequest" />
    <message name="whoamiResponse">
    <part name="whoamiReturn" type="s:string" />
    </message>
    <message name="listResponse">
    <part name="listReturn" type="s0:ArrayOf_tns2_string" />
    </message>
    <message name="throwRuntimeExceptionResponse" />
    <message name="throwExceptionRequest">
    <part name="param" type="s:string" />
    </message>
    <message name="throwExceptionResponse" />
    <message name="echoResponse">
    <part name="echoReturn" type="s:string" />
    </message>
    <message name="listRequest" />
    <portType name="EchoHeaders">
    <operation name="echo" parameterOrder="param">
    <input name="echoRequest" message="s0:echoRequest" />
    <output name="echoResponse" message="s0:echoResponse" />
    </operation>
    <operation name="list">
    <input name="listRequest" message="s0:listRequest" />
    <output name="listResponse" message="s0:listResponse" />
    </operation>
    <operation name="throwAxisFault" parameterOrder="param">
    <input name="throwAxisFaultRequest" message="s0:throwAxisFaultRequest"
    />
    <output name="throwAxisFaultResponse"
    message="s0:throwAxisFaultResponse" />
    </operation>
    <operation name="throwException" parameterOrder="param">
    <input name="throwExceptionRequest" message="s0:throwExceptionRequest"
    />
    <output name="throwExceptionResponse"
    message="s0:throwExceptionResponse" />
    </operation>
    <operation name="throwRuntimeException" parameterOrder="param">
    <input name="throwRuntimeExceptionRequest"
    message="s0:throwRuntimeExceptionRequest" />
    <output name="throwRuntimeExceptionResponse"
    message="s0:throwRuntimeExceptionResponse" />
    </operation>
    <operation name="whoami">
    <input name="whoamiRequest" message="s0:whoamiRequest" />
    <output name="whoamiResponse" message="s0:whoamiResponse" />
    </operation>
    </portType>
    <binding name="EchoHeadersSoapBinding" type="s0:EchoHeaders">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
    style="rpc" />
    <operation name="echo">
    <soap:eek:peration soapAction="" />
    <input name="echoRequest">
    <soap:body use="encoded" namespace="http://DefaultNamespace"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    <output name="echoResponse">
    <soap:body use="encoded"
    namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    <operation name="list">
    <soap:eek:peration soapAction="" />
    <input name="listRequest">
    <soap:body use="encoded" namespace="http://DefaultNamespace"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    <output name="listResponse">
    <soap:body use="encoded"
    namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    <operation name="throwAxisFault">
    <soap:eek:peration soapAction="" />
    <input name="throwAxisFaultRequest">
    <soap:body use="encoded" namespace="http://DefaultNamespace"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    <output name="throwAxisFaultResponse">
    <soap:body use="encoded"
    namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    <operation name="throwException">
    <soap:eek:peration soapAction="" />
    <input name="throwExceptionRequest">
    <soap:body use="encoded" namespace="http://DefaultNamespace"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    <output name="throwExceptionResponse">
    <soap:body use="encoded"
    namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    <operation name="throwRuntimeException">
    <soap:eek:peration soapAction="" />
    <input name="throwRuntimeExceptionRequest">
    <soap:body use="encoded" namespace="http://DefaultNamespace"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    <output name="throwRuntimeExceptionResponse">
    <soap:body use="encoded"
    namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    <operation name="whoami">
    <soap:eek:peration soapAction="" />
    <input name="whoamiRequest">
    <soap:body use="encoded" namespace="http://DefaultNamespace"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    <output name="whoamiResponse">
    <soap:body use="encoded"
    namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    </binding>
    <service name="EchoHeadersService">
    <port name="EchoHeaders" binding="s0:EchoHeadersSoapBinding">
    <soap:address location="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    />
    </port>
    </service>
    </definitions>
     
    Nayt Grochowski, Mar 2, 2004
    #1
    1. Advertising

  2. Okay - nevermind - I fingured it out, finally tracked down another server on
    the internet that has Axis that I could connect to successfully - based on
    the WSDL from that site, I figured out that the xlmns being used for the
    data types is invalid, fixed the URL and poof - everything worked!


    "Nayt Grochowski" <> wrote in message
    news:...
    > I'm a newbie to web services, all of my experiance has been with the

    simple
    > asmx files in .NET...
    >
    >
    >
    > I have a client I need that uses Apache Axis and I have to connect to

    their
    > WSDL files - I have no problems browsing to the service in VS.NET when
    > adding a new web reference, but when I go to actually create the reference
    > it failes, even on a the most basic EchoHost service - I am at a loss on
    > where to start fixing the problem!
    >
    >
    >
    > Here is the error I get in my Task list:
    >
    >
    >
    > Custom tool error: Unable to import WebService/Schema. Unable to import
    > binding 'EchoHeadersSoapBinding' from namespace
    > 'http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws'. Unable to import operation
    > 'list'. The datatype 'string' is missing.
    >
    > Here is their WSDL file I am using:
    >
    >
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    > xmlns:s="http://www.w3.org/2001/XMLSchema"
    > xmlns:s0="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    > xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
    > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    > targetNamespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    > xmlns="http://schemas.xmlsoap.org/wsdl/">
    > <types>
    > <s:schema xmlns="http://www.w3.org/2001/XMLSchema"
    > targetNamespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws">
    > <s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    > <s:complexType name="ArrayOf_tns2_string">
    > <s:complexContent mixed="false">
    > <s:restriction base="soapenc:Array">
    > <s:attribute

    xmlns:q1="http://www.w3.org/2003/05/soap-encoding"
    > d7p1:arrayType="q1:string[]" ref="soapenc:arrayType"
    > xmlns:d7p1="http://schemas.xmlsoap.org/wsdl/" />
    > </s:restriction>
    > </s:complexContent>
    > </s:complexType>
    > </s:schema>
    > </types>
    > <message name="echoRequest">
    > <part name="param" type="s:string" />
    > </message>
    > <message name="throwAxisFaultResponse" />
    > <message name="throwRuntimeExceptionRequest">
    > <part name="param" type="s:string" />
    > </message>
    > <message name="throwAxisFaultRequest">
    > <part name="param" type="s:string" />
    > </message>
    > <message name="whoamiRequest" />
    > <message name="whoamiResponse">
    > <part name="whoamiReturn" type="s:string" />
    > </message>
    > <message name="listResponse">
    > <part name="listReturn" type="s0:ArrayOf_tns2_string" />
    > </message>
    > <message name="throwRuntimeExceptionResponse" />
    > <message name="throwExceptionRequest">
    > <part name="param" type="s:string" />
    > </message>
    > <message name="throwExceptionResponse" />
    > <message name="echoResponse">
    > <part name="echoReturn" type="s:string" />
    > </message>
    > <message name="listRequest" />
    > <portType name="EchoHeaders">
    > <operation name="echo" parameterOrder="param">
    > <input name="echoRequest" message="s0:echoRequest" />
    > <output name="echoResponse" message="s0:echoResponse" />
    > </operation>
    > <operation name="list">
    > <input name="listRequest" message="s0:listRequest" />
    > <output name="listResponse" message="s0:listResponse" />
    > </operation>
    > <operation name="throwAxisFault" parameterOrder="param">
    > <input name="throwAxisFaultRequest"

    message="s0:throwAxisFaultRequest"
    > />
    > <output name="throwAxisFaultResponse"
    > message="s0:throwAxisFaultResponse" />
    > </operation>
    > <operation name="throwException" parameterOrder="param">
    > <input name="throwExceptionRequest"

    message="s0:throwExceptionRequest"
    > />
    > <output name="throwExceptionResponse"
    > message="s0:throwExceptionResponse" />
    > </operation>
    > <operation name="throwRuntimeException" parameterOrder="param">
    > <input name="throwRuntimeExceptionRequest"
    > message="s0:throwRuntimeExceptionRequest" />
    > <output name="throwRuntimeExceptionResponse"
    > message="s0:throwRuntimeExceptionResponse" />
    > </operation>
    > <operation name="whoami">
    > <input name="whoamiRequest" message="s0:whoamiRequest" />
    > <output name="whoamiResponse" message="s0:whoamiResponse" />
    > </operation>
    > </portType>
    > <binding name="EchoHeadersSoapBinding" type="s0:EchoHeaders">
    > <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
    > style="rpc" />
    > <operation name="echo">
    > <soap:eek:peration soapAction="" />
    > <input name="echoRequest">
    > <soap:body use="encoded" namespace="http://DefaultNamespace"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </input>
    > <output name="echoResponse">
    > <soap:body use="encoded"
    > namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </output>
    > </operation>
    > <operation name="list">
    > <soap:eek:peration soapAction="" />
    > <input name="listRequest">
    > <soap:body use="encoded" namespace="http://DefaultNamespace"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </input>
    > <output name="listResponse">
    > <soap:body use="encoded"
    > namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </output>
    > </operation>
    > <operation name="throwAxisFault">
    > <soap:eek:peration soapAction="" />
    > <input name="throwAxisFaultRequest">
    > <soap:body use="encoded" namespace="http://DefaultNamespace"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </input>
    > <output name="throwAxisFaultResponse">
    > <soap:body use="encoded"
    > namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </output>
    > </operation>
    > <operation name="throwException">
    > <soap:eek:peration soapAction="" />
    > <input name="throwExceptionRequest">
    > <soap:body use="encoded" namespace="http://DefaultNamespace"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </input>
    > <output name="throwExceptionResponse">
    > <soap:body use="encoded"
    > namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </output>
    > </operation>
    > <operation name="throwRuntimeException">
    > <soap:eek:peration soapAction="" />
    > <input name="throwRuntimeExceptionRequest">
    > <soap:body use="encoded" namespace="http://DefaultNamespace"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </input>
    > <output name="throwRuntimeExceptionResponse">
    > <soap:body use="encoded"
    > namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </output>
    > </operation>
    > <operation name="whoami">
    > <soap:eek:peration soapAction="" />
    > <input name="whoamiRequest">
    > <soap:body use="encoded" namespace="http://DefaultNamespace"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </input>
    > <output name="whoamiResponse">
    > <soap:body use="encoded"
    > namespace="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    > </output>
    > </operation>
    > </binding>
    > <service name="EchoHeadersService">
    > <port name="EchoHeaders" binding="s0:EchoHeadersSoapBinding">
    > <soap:address location="http://xxx.xxx.xxx.xxx/axis/EchoHeaders.jws"
    > />
    > </port>
    > </service>
    > </definitions>
    >
    >
    >
    >
     
    Nayt Grochowski, Mar 2, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joey Vendetta
    Replies:
    0
    Views:
    3,512
    Joey Vendetta
    Apr 1, 2004
  2. Stefan
    Replies:
    0
    Views:
    775
    Stefan
    May 6, 2004
  3. Replies:
    0
    Views:
    1,000
  4. Cyril
    Replies:
    2
    Views:
    4,560
    Cyril
    Jun 1, 2006
  5. MarkN
    Replies:
    0
    Views:
    587
    MarkN
    Mar 23, 2006
Loading...

Share This Page