Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 使用SoapExtension调用其他webmethod_.net_Web Services_Soap_Asmx_Soap Extension - Fatal编程技术网

.net 使用SoapExtension调用其他webmethod

.net 使用SoapExtension调用其他webmethod,.net,web-services,soap,asmx,soap-extension,.net,Web Services,Soap,Asmx,Soap Extension,我有一个WSDL定义了一个名为CalendarService的web服务: <soap:address location="http://example.com/calendar"/> CalendarService未部署到任何位置。 CalendarServiceProxy是从CalendarService WSDL生成的代理 我有一个名为DummyService的web服务,可在“访问” DummyService有以下方法: String setDate(String dat

我有一个WSDL定义了一个名为CalendarService的web服务:

<soap:address location="http://example.com/calendar"/>
CalendarService未部署到任何位置。 CalendarServiceProxy是从CalendarService WSDL生成的代理


我有一个名为DummyService的web服务,可在“访问”

DummyService有以下方法:

String setDate(String date)
int setTime(int time)
String dummyMethod(String foo)
DummyService部署在IIS上



我想知道是否可以编写SoapExtension,以便从CalendarServiceProxy到CalendarService WSDL中定义的所有方法的所有调用都调用DummyService的方法dummyMethod。因此,方法dummyMethod获取序列化的传入SOAP消息作为参数。

我认为使用SOAP扩展不实用

然而,这种事情在WCF中是完全可能的


一些WCF链接:

  • 我想你会想要的

谢谢。我也不知道如何用WCF解决这个问题,你能通过列出几个链接为我指出正确的方向吗?