SOAP endpoint URL in Dockerized PASOE

Posted by Riverside Software on 29-Nov-2019 11:20

Hello,

I'm trying to prepare a Docker image of a PASOE instance with pre-deployed WebServices. So at build time, I use deploySOAP.sh on the WSM files, but the generated WSDL file has a reference to the hostname of the temporary container in <soap:address >, something like:

<soap:address location="e05bdd1a76ee:8810/.../>

As the URL will only be known at runtime, is there a nice and clean way to inject the URL when executing the container ?

Gilles

All Replies

Posted by Thomas Hansen on 29-Nov-2019 11:38

An option  could be environment variables on the host or a .env file with your Docker Compose file that uses this to set variable in the container when it gets created.

We do the same thing with load balancers like traefik.

Posted by Riverside Software on 29-Nov-2019 12:51

Yes, I've seen that I can change the value directly in the WSDL file at runtime, but I was wondering if there was a better way than using sed when starting the container.

This thread is closed