如何消耗与WSDL文件的Web服务? [英] How to consume web service with WSDL file?
问题描述
被赋予了URL到WSDL,一块是here..not知道这是一个中肯一块与否。我知道如何添加Web引用,并在Visual Studio 2005中导入命名空间
问题...我如何通过我的价值观呢?我如何连接code二进制-64?我有方法名(GETP)...不知道如何将它作为调用一个函数传递参数,或者是即使有这种类型的引用做的正确方法。只有消费的.asmx文件previously。
< WSDL:消息名称=GET presponse>
< WSDL:部分名称=GET preturnTYPE =XSD:字符串/>
< / WSDL:消息>
< WSDL:消息名称=GET prequest>
< WSDL:部分名称=BASE64DATATYPE =XSD:base64Binary的/>
< / WSDL:消息>
< WSDL:portType的名称=DIST>
< WSDL:操作名称=GETPparameterOrder =BASE64DATA>
< WSDL:输入消息=IMPL:GET prequestNAME =GET prequest/>
< WSDL:输出消息=IMPL:GET presponseNAME =GET presponse/>
< / WSDL:运转>
< / WSDL:portType的>
只需使用添加服务Refrence,并将其指向WSDL。请参阅如何消费Web服务。
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>
Just use "Add Service Refrence" and point it to the WSDL. See "How to Consume a Web Service".
这篇关于如何消耗与WSDL文件的Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!