How to consume web service with WSDL file?
asp.net, web-services, wsdl
Solution
Just use "Add Service Refrence" and point it to the WSDL. See "How to Consume a Web Service".
Problem
have been given a URL to a WSDL, a piece of it is here..not sure if this is a pertinent piece or not. I know how to add the web reference and import the namespace in Visual Studio 2005. Questions...how do I pass my values to it? How do I encode for binary-64? I have the methodname (GETP)...not sure how to invoke it as a function to pass parameters, or if that is even the correct way to do it with this type of reference. Have only consumed .asmx files previously. ``` <wsdl:message name="GETPResponse"> <wsdl:part name="GETPReturn" type="xsd:string" /> </wsdl:message> <wsdl:message name="GETPRequest"> <wsdl:part name="BASE64DATA" type="xsd:base64Binary" /> </wsdl:message> <wsdl:portType name="Dist"> <wsdl:operation name="GETP" parameterOrder="BASE64DATA"> <wsdl:input message="impl:GETPRequest" name="GETPRequest" /> <wsdl:output message="impl:GETPResponse" name="GETPResponse" /> </wsdl:operation> </wsdl:portType> ```