metro-jax-ws icon indicating copy to clipboard operation
metro-jax-ws copied to clipboard

Canno deploy same port instance under multiple URLs

Open Tomas-Kraus opened this issue 3 years ago • 0 comments

My WSDL has one service and one port:

<wsdl:service name="QueryService">
	<wsdl:port name="QueryPort" binding="tns:QuerySoapBinding">
		<soap:address location="http://localhost:8080/soap/query" />
	</wsdl:port>
</wsdl:service>

Then wiring the stuff with Spring:

<ws:service id="queryPort">
	<ws:bean>
		<beans:bean
			class="...QueryPort" />
	</ws:bean>
</ws:service>

<wss:binding url="/soap/query" service="#queryPort" />
<wss:binding url="/auth/soap/query" service="#queryPort" />

As you can see, I am using the same instance on two URLs, so the generated ?wsdl should return the appropriate one, depending on the URL called.

The HTML overview is fine but both generated WSDLs contain the last defined URL, no matter what.

At some point, one the last definition counts. This could be either core JAX-WS RI or the Spring extension but I do not know.

Affected Versions

[2.2.8]

Source: https://github.com/javaee/metro-jax-ws/issues/1157 Author: glassfishrobot

Tomas-Kraus avatar Jun 02 '22 17:06 Tomas-Kraus