8. SOAP based Web Services

wsdlRewriter

The wsdlRewriter rewrites endpoint addresses of services and XML Schema locations in WSDL documents.



Can be used in:

serviceProxy, api, stompProxy, swaggerProxy, if, registration, wsStompReassembler, interceptor, bean, internalProxy, transport and soapProxy

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

NameRequiredDefaultDescriptionExample
protocol false Don't change the endpoint's protocol.
The protocol the endpoint should be changed to. http
port false Don't change the endpoint's port.
The port the endpoint should be changed to. 4000
host false Don't change the endpoint's host.
The host the endpoint should be changed to. localhost
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>

See Also

URL Rewriting in WSDL and XML Schema