开发者

Invoke other webmethod with SoapExtension

开发者 https://www.devze.com 2022-12-23 05:44 出处:网络
I\'ve a WSDL defining a web service named CalendarService: <soap:address location=\"http://example.com/calendar\"/>

I've a WSDL defining a web service named CalendarService:

<soap:address location="http://example.com/calendar"/>

The WSDL defines following methods:

String setDate(String date)
int setTime(int time)

CalendarService is not deployed anywhere. CalendarServiceProxy is a proxy generated from CalendarService WSDL.


I've a web service named DummyService accessible at "http://example.com/dummy"

DummyService has following methods:

String dummyMethod(String f开发者_如何转开发oo)

DummyService is deployed on IIS.


I wonder if it is possible to write a SoapExtension so that all calls from CalendarServiceProxy to all methods defined in the CalendarService WSDL invoke the method dummyMethod of DummyService. So that the method dummyMethod gets as parameter the serialized incoming SOAP message.


I don't believe this is practical using a SoapExtension.

This sort of thing is quite possible with WCF, however.


Some WCF Links:

  • WCF Developer's Center
  • Beginner's Guide
  • Extending WCF
  • I think you'll want Extending Dispatchers
0

精彩评论

暂无评论...
验证码 换一张
取 消