I'm using Scala + JAX-WS to build a simple SOAP server, but have run into issues with the auto generated locations in the WSDL. The service is published like this:
val endpoint = Endpoint(new MySoapServer())
endpoint.publish("http://10.2.2.100")
Which creates the following elements in the WSDL
<service name="MyService">
<port name="MyPort" binding="tns:MyPortBinding">
<soap:address location="http://10.2.2.100"/>
</port>
</service>
and
<xsd:schema>
<xsd:import schemaLocation="http://10.2.2.100/?xsd=1"/>
</xsd:schema>
However, the server sits behind a proxy that only accepts https requests, so those urls are useless...
How can I modify both the schemaLocation
and soap:address location
elements, so that they read https://10.2.2.100
?
I've tried using X-Forwarded-Proto
, as suggested here, but still no luck...