Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set soap:address dynamically based on maven profile

Currently in my wsdl file i have the following address which points to dev box.

<wsdl:service name="SecurityTokenService">
    <wsdl:port name="STS_Port" binding="tns:UT_Binding">
        <soap:address location="http://DEVbox:8080/DoubleItSTS/STS" />
    </wsdl:port>
</wsdl:service>

I would like to read from maven profile and dynamically set soap:address property so i dont have to change code every time i deploy to QA or Production boxes. Is there any way this can be done?

like image 551
TastyCode Avatar asked Nov 16 '25 22:11

TastyCode


1 Answers

Yeah, try the maven velocity plugin. You can build your WSDL from a template, and inject in URL's varying on your profile.

like image 191
javamonkey79 Avatar answered Nov 19 '25 13:11

javamonkey79



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!