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
精彩评论