Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Unable to Import WebService - From Axis server - please help!

Reply
Thread Tools

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

 
 
Nayt Grochowski
Guest
Posts: n/a
 
      03-02-2004
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">
<soapperation 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">
<soapperation 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">
<soapperation 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">
<soapperation 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">
<soapperation 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">
<soapperation 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>




 
Reply With Quote
 
 
 
 
Nayt Grochowski
Guest
Posts: n/a
 
      03-02-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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">
> <soapperation 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">
> <soapperation 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">
> <soapperation 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">
> <soapperation 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">
> <soapperation 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">
> <soapperation 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>
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to import Binding "xxx" from namespace "xxx" while running the WSDL tool for a Java Webservice punit.raizada@gmail.com ASP .Net Web Services 0 06-21-2006 08:59 PM
Problem to call a WEBSERVICE in another WEBSERVICE (AXIS/ TOMCAT) Cyril Java 2 06-01-2006 06:07 PM
Custom tool error: Unable to import WebService/Schema MarkN ASP .Net Web Services 0 03-23-2006 04:43 PM
AXIS jars org.apache.axis.wsi.* and org.apache.axis.transport.jms.* unkwb@web.de Java 0 02-23-2005 04:02 PM
axis.jar does not contain org.apache.axis.client.ServiceClient? Joey Vendetta Java 0 04-01-2004 05:51 PM



Advertisments