wsdlRewriter
Description
The wsdlRewriter rewrites endpoint addresses of services and XML Schema locations in WSDL documents.
Can be used in
spring:beans, api, bean, if, interceptor, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler
Syntax
<wsdlRewriter port="integer" protocol="string" host="string" />
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>
Attributes
Name | Required | Default | Description | Example |
---|---|---|---|---|
host | false | Don't change the endpoint's host. | The host the endpoint should be changed to. | localhost |
port | false | Don't change the endpoint's port. | The port the endpoint should be changed to. | 4000 |
protocol | false | Don't change the endpoint's protocol. | The protocol the endpoint should be changed to. | http |
registryWSDLRegisterURL | false | - |
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>