I have a situation in which I must intercept all SOAP and HTTP traffic,
forward the requests to an existing legacy application and perform some
additional processing logic. I extended the SoapHttpRouter and use a simple
naming algorithm to determine the URI to forward to. This works very well
for SOAP requests. However, I also forward HTTP requests which include WSDL
gets. The problem I am having is that since I forward the wsdl HTTP GET
operations, I return a WSDL definition which includes the forwared address
in the wsdl:service/wsdl:port/soap:address @location attribute.
e.g.
<service name="OrderDataService">
<port name="OrderDataServicePort" binding="tns:OrderDataServiceBinding">
<soap:address
location="http://forwardedhost/order/OrderDataService.ashx" />
</port>
</service>
However, I nice the intial receiving host in the location uri. What is the
best way to acheieve this? Do I need to process any returned wsdl documents
in my router and replace the location?
thanks,
craig
Softwaremaker - 24 Jan 2005 12:22 GMT
> I have a situation in which I must intercept all SOAP and HTTP traffic,
> forward the requests to an existing legacy application and perform some
> additional processing logic. I extended the SoapHttpRouter and use a simple
> naming algorithm to determine the URI to forward to.
[WT] Are you using WS-Referral for that ?
This works very well
> for SOAP requests. However, I also forward HTTP requests which include WSDL
> gets. The problem I am having is that since I forward the wsdl HTTP GET
[quoted text clipped - 11 lines]
>
> However, I nice the intial receiving host in the location uri.
[WT] I am not too sure what you mean by this statement. Could you please
further elaborate ?
What is the
> best way to acheieve this? Do I need to process any returned wsdl documents
> in my router and replace the location?
>
> thanks,
> craig
>

Signature
Thank you.
Regards,
William T (Softwaremaker)
http://www.softwaremaker.net/blog
=========================================
Craig Neuwirt - 24 Jan 2005 16:44 GMT
I don't believe I can use WS-Referral for the HTTP GETs or can I?
craig
> > I have a situation in which I must intercept all SOAP and HTTP traffic,
> > forward the requests to an existing legacy application and perform some
[quoted text clipped - 33 lines]
> > thanks,
> > craig
Softwaremaker - 01 Mar 2005 20:39 GMT
Craig,
Not sure if I understood fully what you are trying to achieve ? Are you
trying to parse the WSDL ?
What do you mean with this statement ?
> This works very well
> for SOAP requests. However, I also forward HTTP requests which include WSDL
> gets. The problem I am having is that since I forward the wsdl HTTP GET
> operations, I return a WSDL definition...
and this statement as well:
> However, I nice the intial receiving host in the location uri. What is the
> best way to acheieve this?
> I have a situation in which I must intercept all SOAP and HTTP traffic,
> forward the requests to an existing legacy application and perform some
[quoted text clipped - 20 lines]
> thanks,
> craig