Go to new doc!

+49 228 5552576-0


info@predic8.com

wsdlRewriter

Description

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

Can be used in

spring:beans, if, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler

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

See Also

URL Rewriting in WSDL and XML Schema