wsdlRewriter
The wsdlRewriter rewrites endpoint addresses of services and XML Schema locations in WSDL documents. By default URLs in WSDL documents are replaced by the protocol, host and port from the request. If the URL to retrieve the WSDL was:
http://predic8.com/material/ArticleService?WSDL
then the endpoint addresses in the WSDL document are rewritten as follows:
<wsdl:service name="ArticleService"> <wsdl:port name="ArticleServicePTPort" binding="tns:ArticleServicePTBinding"> <soap:address location="http://predic8.com/material/ArticleService"></soap:address> </wsdl:port> </wsdl:service>
Can be used in
serviceProxy, soapProxy, transport
Syntax
<wsdlRewriter port="integer" protocol="string" host="string" />
Listing 1:
wsdlRewriter Syntax
Sample
The following example shows a service proxy that rewrites URLs with values from the request.
<serviceProxy name="BLZ Service"> <wsdlRewriter /> <target host="www.thomas-bayer.com" /> </serviceProxy>
Listing 2:
wsdlRewriter Example
Attributes
Name | Mandatory | Default | Description | Example |
---|---|---|---|---|
port | no | Takes port from request URL. | Port used in replaced URL. | 4000 |
host | no | Takes host from request URL. | Host used in replaced URL. | localhost |
protocol | no | Takes protocol from request URL. | Protocol used in replaced URL. | http |