I'm a web services newbie - please help 

I'm trying to create a .NET web client to a Java (Ajax2) web service. This is 
just a test page, so see if I can do it, before I continue adding more code.
 
But when I build my client web app I get the error: Unable to import binding 
'SimpleServiceSOAP' from namespace 
'http://ttdev.com/ss'. App_WebReferences/JavaConcat/  
 
Visual Studio also has a Wsdl.exe to create a proxy class. When I run it on my 
.wsdl file I get the following error:
 
Error: Unable to import binding 'SimpleServiceSOAP' from namespace 'http://ttdev
.com/ss'.
  - Unable to import operation 'concat'.
  - The element, concatResponse, from namespace, http://ttdev.com/ss, was import
ed in two different contexts: (PrimitiveMapping, MembersMapping).
 
Here is my .wsdl file on my Tomcat server:
 
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="SimpleService" targetNamespace="http://ttdev.com/ss"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="http://ttdev.com/ss"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";>
  <wsdl:types>
    <xsd:schema targetNamespace="http://ttdev.com/ss";>
      <xsd:element name="concatRequest">
        <xsd:complexType>
          <xsd:sequence>
           <xsd:element name="s1" type="xsd:string"/>
           <xsd:element name="s2" type="xsd:string"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="concatResponse" type="xsd:string">
      </xsd:element>
    </xsd:schema>
  </wsdl:types>
  <wsdl:message name="concatResponse">
    <wsdl:part name="parameters" element="tns:concatResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="concatRequest">
    <wsdl:part name="parameters" element="tns:concatRequest">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="SimpleService">
    <wsdl:operation name="concat">
      <wsdl:input message="tns:concatRequest">
    </wsdl:input>
      <wsdl:output message="tns:concatResponse">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="SimpleServiceSOAP" type="tns:SimpleService">
    <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="concat">
      <soap:operation soapAction="http://ttdev.com/ss/NewOperation"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="SimpleService">
    <wsdl:port name="SimpleServiceSOAP" binding="tns:SimpleServiceSOAP">
      <soap:address location="http://localhost:8080/axis2/services/"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>



      

Reply via email to