Web service reference proxy in client does not display methods

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • seeIT

    Web service reference proxy in client does not display methods

    In a client application a simple webservice (add/multiply) was added to
    solution panel but proxy methods do not appear. WSDL description in solution
    panel follows:

    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitio ns xmlns:http="htt p://schemas.xmlsoap .org/wsdl/http/"
    xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
    xmlns:tns="http ://tempuri.org/WebService1/Service1"
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:mime="htt p://schemas.xmlsoap .org/wsdl/mime/"
    targetNamespace ="http://tempuri.org/WebService1/Service1"
    xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/">
    <wsdl:types>
    <s:schema elementFormDefa ult="qualified"
    targetNamespace ="http://tempuri.org/WebService1/Service1">
    <s:element name="WebAdd">
    <s:complexTyp e>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="x" type="s:int" />
    <s:element minOccurs="1" maxOccurs="1" name="y" type="s:int" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="WebAddRes ponse">
    <s:complexTyp e>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="WebAddRes ult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="WebMultip ly">
    <s:complexTyp e>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="x" type="s:int" />
    <s:element minOccurs="1" maxOccurs="1" name="y" type="s:int" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="WebMultip lyResponse">
    <s:complexTyp e>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="WebMultip lyResult"
    type="s:int" />
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:schema>
    </wsdl:types>
    <wsdl:message name="WebAddSoa pIn">
    <wsdl:part name="parameter s" element="tns:We bAdd" />
    </wsdl:message>
    <wsdl:message name="WebAddSoa pOut">
    <wsdl:part name="parameter s" element="tns:We bAddResponse" />
    </wsdl:message>
    <wsdl:message name="WebMultip lySoapIn">
    <wsdl:part name="parameter s" element="tns:We bMultiply" />
    </wsdl:message>
    <wsdl:message name="WebMultip lySoapOut">
    <wsdl:part name="parameter s" element="tns:We bMultiplyRespon se" />
    </wsdl:message>
    <wsdl:portTyp e name="Service1S oap">
    <wsdl:operati on name="WebAdd">
    <documentatio n xmlns="http://schemas.xmlsoap .org/wsdl/">This Method
    adds x and y.</documentation>
    <wsdl:input message="tns:We bAddSoapIn" />
    <wsdl:output message="tns:We bAddSoapOut" />
    </wsdl:operation>
    <wsdl:operati on name="WebMultip ly">
    <documentatio n xmlns="http://schemas.xmlsoap .org/wsdl/">this method
    multiplies x by y.</documentation>
    <wsdl:input message="tns:We bMultiplySoapIn " />
    <wsdl:output message="tns:We bMultiplySoapOu t" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="Service1S oap" type="tns:Servi ce1Soap">
    <soap:binding transport="http ://schemas.xmlsoap .org/soap/http"
    style="document " />
    <wsdl:operati on name="WebAdd">
    <soap:operati on
    soapAction="htt p://tempuri.org/WebService1/Service1/WebAdd" style="document "
    />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operati on name="WebMultip ly">
    <soap:operati on
    soapAction="htt p://tempuri.org/WebService1/Service1/WebMultiply"
    style="document " />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="Service1" >
    <documentatio n xmlns="http://schemas.xmlsoap .org/wsdl/" />
    <wsdl:port name="Service1S oap" binding="tns:Se rvice1Soap">
    <soap:address location="http://localhost/WebService1/Service1.asmx" />
    </wsdl:port>
Working...