.net 不同的WSDL ASMX、WCF web服务
我有一个ASMXWeb服务,它成功地从其他客户端(.NET,Delphi)使用 我尝试使用wcf,并在wcf服务中编写相同的逻辑(用于互操作性的basicHttpBinding)。(.net客户端消费正常,但delphi 7无法调用此服务) 我开始研究两个服务(asmx、wcf)之间的差异,并检测它们的wsdl是否不同: WSDL-asmx:.net 不同的WSDL ASMX、WCF web服务,.net,wcf,web-services,delphi,wsdl,.net,Wcf,Web Services,Delphi,Wsdl,我有一个ASMXWeb服务,它成功地从其他客户端(.NET,Delphi)使用 我尝试使用wcf,并在wcf服务中编写相同的逻辑(用于互操作性的basicHttpBinding)。(.net客户端消费正常,但delphi 7无法调用此服务) 我开始研究两个服务(asmx、wcf)之间的差异,并检测它们的wsdl是否不同: WSDL-asmx: <s:element name="Test"> <s:complexType> <s:sequence> <
<s:element name="Test">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="a" type="s:int"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="TestResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="TestResult" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
wcf的wsdl有很大不同:
<wsdl:operation name="Test"> <soap:operation soapAction="http://tempuri.org/ISyncer/Test" style="document"/>
<wsdl:input> <soap:body use="literal"/> </wsdl:input>
<wsdl:output> <soap:body use="literal"/> </wsdl:output>
<wsdl:fault name="ServiceFaultExceptionFault"> <soap:fault name="ServiceFaultExceptionFault" use="literal"/> </wsdl:fault> </wsdl:operation>
我认为这是delphi无法生成正确代理的原因
我可以配置wcf以生成与asmx相同的wsdl吗
谢谢。您必须将WSDL展平。查看并获取信息。Aravind,现在我有下一个问题: