0
我正在尝试为Outlook.com邮件编写客户端。我已成功连接和验证,并下载了WSDL。但是,WSDL没有service
元素,其中specification需要。Outlook.com WSDL没有服务元素
我尽职尽责地检查了所有%的问题“wsdl has no service element”,即使他们是所谓的messages.xsd
和types.xsd
进口,并没有发现service
元素。
我正在尝试为Outlook.com邮件编写客户端。我已成功连接和验证,并下载了WSDL。但是,WSDL没有service
元素,其中specification需要。Outlook.com WSDL没有服务元素
我尽职尽责地检查了所有%的问题“wsdl has no service element”,即使他们是所谓的messages.xsd
和types.xsd
进口,并没有发现service
元素。
This page on Google Code描述了这个问题。
service
元素丢失,大概是这样他们可以分发一个Services.wsdl
,它可以在所有服务器上工作,而无需对其进行自定义。我不确定推理。
的净效应是,你必须将自己添加该元素添加到文件的末尾:
...
<wsdl:service name="ExchangeServices">
<wsdl:port name="ExchangeServicePort" binding="tns:ExchangeServiceBinding">
<soap:address location="https://my.exchange.com/EWS/Exchange.asmx"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>