Invoke other webmethod with SoapExtension

442 Views Asked by At

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 foo)

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.

1

There are 1 best solutions below

1
On BEST ANSWER

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

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


Some WCF Links: