Error during adding Web Reference of JAVA WSDL in .Net

Discussion in 'ASP .Net Web Services' started by Aziz, Apr 8, 2005.

  1. Aziz

    Aziz Guest

    Hi Friends,

    I have created a web service in Systinet Java. When i try to add a web
    reference to it in Visual Studio .Net It gives me the following error.

    C:\Systinet_5.0_Interoperability\Client4SystinetWS\Web
    References\tcs0461551\Reference.map(1): Custom tool error: Unable to
    import WebService/Schema. Unable to import binding 'WebSer' from
    namespace 'http://systinet.com/wsdl/com/tcs/mypak/'. Unable to import
    operation 'getMessage'. Schema with
    targetNamespace='http://systinet.com/xsd/SchemaTypes/' has invalid
    syntax. The 'minOccurs' attribute cannot be present.

    Can any one tell me what is the error. and how do i resolve it.

    Below is the contents WSDL File
    ==========================================

    <?xml version="1.0" encoding="utf-8" ?>
    - <definitions name="com.tcs.mypak.WebSer"
    targetNamespace="http://systinet.com/wsdl/com/tcs/mypak/"
    xmlns:tns="http://systinet.com/wsdl/com/tcs/mypak/"
    xmlns:ns0="http://systinet.com/xsd/SchemaTypes/"
    xmlns:ns1="http://idoox.com/interface"
    xmlns:map="http://systinet.com/mapping/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    - <types>
    - <schema elementFormDefault="qualified"
    targetNamespace="http://idoox.com/interface"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://idoox.com/interface">
    - <complexType name="serviceReference">
    - <sequence>
    <element name="service" type="QName" />
    <element name="wsdl" type="anyURI" />
    <element minOccurs="0" name="instanceID" type="string" />
    <element minOccurs="0" name="portTypeMappings"
    type="tns:ArrayOfInterfaceMapping" />
    </sequence>
    </complexType>
    - <complexType name="ArrayOfInterfaceMapping">
    - <sequence>
    <element maxOccurs="unbounded" minOccurs="0" name="item"
    type="tns:interfaceMapping" />
    </sequence>
    </complexType>
    - <complexType name="interfaceMapping">
    - <sequence>
    <element name="portType" type="QName" />
    <element name="className" type="string" />
    </sequence>
    </complexType>
    - <element name="instance">
    - <annotation>
    <documentation>this is the SOAP header schema this SOAP header
    SHOULD have soap-env:mustUnderstand set to "1" this header MUST be
    present at most once in any message</documentation>
    </annotation>
    - <complexType>
    - <choice>
    <element name="id" type="string" />
    <element name="setId" type="string" />
    <element name="notFound" type="string" />
    </choice>
    </complexType>
    </element>
    </schema>
    - <xsd:schema elementFormDefault="qualified"
    targetNamespace="http://systinet.com/xsd/SchemaTypes/"
    xmlns:tns="http://systinet.com/xsd/SchemaTypes/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element maxOccurs="1" minOccurs="0" name="string_Response"
    type="xsd:string" />
    </xsd:schema>
    </types>
    - <message name="WebSer_getMessage_Response_Soap">
    <part name="response" element="ns0:string_Response" />
    </message>
    <message name="WebSer_getMessage__Request_Soap" />
    - <message name="runtimeHeaders_0">
    <part name="header_0" element="ns1:instance" />
    </message>
    - <portType name="WebSer">
    - <operation name="getMessage">
    <input message="tns:WebSer_getMessage__Request_Soap" />
    <output message="tns:WebSer_getMessage_Response_Soap" />
    </operation>
    </portType>
    - <binding name="WebSer" type="tns:WebSer">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
    style="document" />
    - <operation name="getMessage">
    <map:java-operation name="getMessage"
    signature="KClMamF2YS9sYW5nL1N0cmluZzs=" />
    <soap:eek:peration soapAction="http://systinet.com/wsdl/com/tcs/mypak/WebSer#getMessage?KClMamF2YS9sYW5nL1N0cmluZzs="
    style="document" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body parts="response" use="literal" />
    </output>
    </operation>
    </binding>
    - <service name="WebSer">
    - <port name="WebSer" binding="tns:WebSer">
    <soap:address location="http://tcs046155:6060/WebSer/" />
    </port>
    </service>
    </definitions>
     
    Aziz, Apr 8, 2005
    #1
    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. Dark
    Replies:
    1
    Views:
    4,675
    milfar
    Nov 14, 2008
  2. Chris Bedford
    Replies:
    0
    Views:
    613
    Chris Bedford
    Aug 21, 2003
  3. traveller
    Replies:
    0
    Views:
    1,242
    traveller
    Jan 8, 2008
  4. Stephen Edgecombe

    WSDL.EXE: WSDL Import Directive

    Stephen Edgecombe, Aug 13, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    277
    Stephen Edgecombe
    Aug 13, 2003
  5. MD

    Custom WSDL, Error while adding as web reference

    MD, Nov 10, 2007, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    417
    Tiago Halm
    Dec 6, 2007
Loading...

Share This Page