开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 991|回复: 6
收起左侧

[易语言] 易语言怎么调用WSDL

[复制链接]
结帖率:36% (8/22)
发表于 2021-5-31 12:46:44 | 显示全部楼层 |阅读模式   山东省烟台市
50精币
只知道wsdl,易语言如何才能像C#一样直接调用wsdl呢?

现在我需要调用getVerifyCode这个方法,如何才能使用 网页_访问()进行访问呢?有没有大神详细指教一下。


以下为WSDL内容:

<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://wserver" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://wserver">
  <wsdl:documentation>EncryptWS</wsdl:documentation>
- <wsdl:types>
- <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://wserver">
- <xs:element name="hello">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="args0" nillable="true" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="helloResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="getVerifyCode">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="args0" nillable="true" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="getVerifyCodeResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="encrypt">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="args0" nillable="true" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="encryptResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="decrypt">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="args0" nillable="true" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
- <xs:element name="decryptResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element minOccurs="0" name="return" nillable="true" type="xs:string" />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:schema>
  </wsdl:types>
- <wsdl:message name="helloRequest">
  <wsdl:part name="parameters" element="ns:hello" />
  </wsdl:message>
- <wsdl:message name="helloResponse">
  <wsdl:part name="parameters" element="ns:helloResponse" />
  </wsdl:message>
- <wsdl:message name="encryptRequest">
  <wsdl:part name="parameters" element="ns:encrypt" />
  </wsdl:message>
- <wsdl:message name="encryptResponse">
  <wsdl:part name="parameters" element="ns:encryptResponse" />
  </wsdl:message>
- <wsdl:message name="getVerifyCodeRequest">
  <wsdl:part name="parameters" element="ns:getVerifyCode" />
  </wsdl:message>
- <wsdl:message name="getVerifyCodeResponse">
  <wsdl:part name="parameters" element="ns:getVerifyCodeResponse" />
  </wsdl:message>
- <wsdl:message name="decryptRequest">
  <wsdl:part name="parameters" element="ns:decrypt" />
  </wsdl:message>
- <wsdl:message name="decryptResponse">
  <wsdl:part name="parameters" element="ns:decryptResponse" />
  </wsdl:message>
- <wsdl:portType name="EncryptWSPortType">
- <wsdl:operation name="hello">
  <wsdl:input message="ns:helloRequest" wsaw:Action="urn:hello" />
  <wsdl:output message="ns:helloResponse" wsaw:Action="urn:helloResponse" />
  </wsdl:operation>
- <wsdl:operation name="encrypt">
  <wsdl:input message="ns:encryptRequest" wsaw:Action="urn:encrypt" />
  <wsdl:output message="ns:encryptResponse" wsaw:Action="urn:encryptResponse" />
  </wsdl:operation>
- <wsdl:operation name="getVerifyCode">
  <wsdl:input message="ns:getVerifyCodeRequest" wsaw:Action="urn:getVerifyCode" />
  <wsdl:output message="ns:getVerifyCodeResponse" wsaw:Action="urn:getVerifyCodeResponse" />
  </wsdl:operation>
- <wsdl:operation name="decrypt">
  <wsdl:input message="ns:decryptRequest" wsaw:Action="urn:decrypt" />
  <wsdl:output message="ns:decryptResponse" wsaw:Action="urn:decryptResponse" />
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="EncryptWSSoap11Binding" type="ns:EncryptWSPortType">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <wsdl:operation name="hello">
  <soap:operation soapAction="urn:hello" style="document" />
- <wsdl:input>
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="encrypt">
  <soap:operation soapAction="urn:encrypt" style="document" />
- <wsdl:input>
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="decrypt">
  <soap:operation soapAction="urn:decrypt" style="document" />
- <wsdl:input>
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="getVerifyCode">
  <soap:operation soapAction="urn:getVerifyCode" style="document" />
- <wsdl:input>
  <soap:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding name="EncryptWSSoap12Binding" type="ns:EncryptWSPortType">
  <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <wsdl:operation name="hello">
  <soap12:operation soapAction="urn:hello" style="document" />
- <wsdl:input>
  <soap12:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="encrypt">
  <soap12:operation soapAction="urn:encrypt" style="document" />
- <wsdl:input>
  <soap12:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="decrypt">
  <soap12:operation soapAction="urn:decrypt" style="document" />
- <wsdl:input>
  <soap12:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="getVerifyCode">
  <soap12:operation soapAction="urn:getVerifyCode" style="document" />
- <wsdl:input>
  <soap12:body use="literal" />
  </wsdl:input>
- <wsdl:output>
  <soap12:body use="literal" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:binding name="EncryptWSHttpBinding" type="ns:EncryptWSPortType">
  <http:binding verb="POST" />
- <wsdl:operation name="hello">
  <http:operation location="EncryptWS/hello" />
- <wsdl:input>
  <mime:content type="text/xml" part="hello" />
  </wsdl:input>
- <wsdl:output>
  <mime:content type="text/xml" part="hello" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="encrypt">
  <http:operation location="EncryptWS/encrypt" />
- <wsdl:input>
  <mime:content type="text/xml" part="encrypt" />
  </wsdl:input>
- <wsdl:output>
  <mime:content type="text/xml" part="encrypt" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="decrypt">
  <http:operation location="EncryptWS/decrypt" />
- <wsdl:input>
  <mime:content type="text/xml" part="decrypt" />
  </wsdl:input>
- <wsdl:output>
  <mime:content type="text/xml" part="decrypt" />
  </wsdl:output>
  </wsdl:operation>
- <wsdl:operation name="getVerifyCode">
  <http:operation location="EncryptWS/getVerifyCode" />
- <wsdl:input>
  <mime:content type="text/xml" part="getVerifyCode" />
  </wsdl:input>
- <wsdl:output>
  <mime:content type="text/xml" part="getVerifyCode" />
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="EncryptWS">
- <wsdl:port name="EncryptWSHttpSoap11Endpoint" binding="ns:EncryptWSSoap11Binding">
  <soap:address location="http://localhost:8090/axis2/services/EncryptWS.EncryptWSHttpSoap11Endpoint/" />
  </wsdl:port>
- <wsdl:port name="EncryptWSHttpSoap12Endpoint" binding="ns:EncryptWSSoap12Binding">
  <soap12:address location="http://localhost:8090/axis2/services/EncryptWS.EncryptWSHttpSoap12Endpoint/" />
  </wsdl:port>
- <wsdl:port name="EncryptWSHttpEndpoint" binding="ns:EncryptWSHttpBinding">
  <http:address location="http://localhost:8090/axis2/services/EncryptWS.EncryptWSHttpEndpoint/" />
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>


回答提醒:如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至 源码区 可获得加分喔。
友情提醒:本版被采纳的主题可在 申请荣誉值 页面申请荣誉值,获得 1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
快捷通道:申请荣誉值无答案申请取消悬赏投诉有答案未采纳为最佳
结帖率:100% (32/32)
发表于 2021-5-31 14:12:08 | 显示全部楼层   湖北省武汉市
就是正常的http请求
回复

使用道具 举报

结帖率:83% (5/6)
发表于 2021-5-31 15:40:23 | 显示全部楼层   广东省深圳市
  
窗口程序集名保 留  保 留备 注
(未填写程序集名)   
变量名类 型数组备 注
变量名类 型数组备 注
xmlXML树类  
xml.导入文件 (文件路径)
xml.取节点值 (节点全路径)

如果是想读取xml指定节点路径可以参考上面代码,或者用文本取中间获取。你是想获取远程xml内容可以用网页访问实现,如果想读取之后根据xml配置执行某些动作的话拿必须要根据你服务端的源代码执行的动作来写才行,一个xml说明不了什么的
回复

使用道具 举报

结帖率:36% (8/22)
 楼主| 发表于 2021-5-31 15:50:07 | 显示全部楼层   山东省烟台市
圆梦编程 发表于 2021-5-31 15:40
.版本 2
.程序集变量 xml, XML树类
xml.导入文件 (文件路径)

C#可以直接调用wsdl生成一个类,易语言咋整?我用soapui测了请求格式,但是请求头不知道咋弄
回复

使用道具 举报

结帖率:36% (8/22)
 楼主| 发表于 2021-6-2 20:06:57 | 显示全部楼层   山东省烟台市
自己解决了
回复

使用道具 举报

结帖率:100% (10/10)
发表于 2021-6-3 14:47:41 | 显示全部楼层   浙江省杭州市
xml操作最直观吧
回复

使用道具 举报

结帖率:33% (1/3)
发表于 2022-11-10 19:27:32 | 显示全部楼层   广东省惠州市
请问下怎么解决的?我也遇到这个问题了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表