Forum Discussion
mlenosgrande
15 years agoContributor
You have to change the service endpoint with a project property.
I have this in my project :
${#Project#endPointModeles_V1}
instead of a harcoded value generated by soapui
And i have add a project custom propertu
endPointModeles_V1=http://localhost:8080/scribe-web/ws/Modeles_v1_0
So this is the default endpoint.
Let say that i want to run them against http://SERVERB:8080/scribe-web/ws/Modeles_v1_0
I have to call the runner (maven plugin or whatever) with a endPointModeles_V1=ttp://SERVERB:8080/scribe-web/ws/Modeles_v1_0
This value will override the default value.
If the ovverid sytem doesnt work, make it work with a groovy script :
I have this in my project :
${#Project#endPointModeles_V1}
instead of a harcoded value generated by soapui
And i have add a project custom propertu
endPointModeles_V1=http://localhost:8080/scribe-web/ws/Modeles_v1_0
So this is the default endpoint.
Let say that i want to run them against http://SERVERB:8080/scribe-web/ws/Modeles_v1_0
I have to call the runner (maven plugin or whatever) with a endPointModeles_V1=ttp://SERVERB:8080/scribe-web/ws/Modeles_v1_0
This value will override the default value.
If the ovverid sytem doesnt work, make it work with a groovy script :
def modelesV1=context.expand('${#Project#endPointModeles_V1}');
def modelesV1=context.expand('${#Project#endPointModeles_V1}');
///Modeles_v1_0_SOAP
if( modelesV1 != null ) {
log.info "Definition of enpoint service for ModelesV1 :"+modelesV1;
project.interfaces["Modeles_v1_0_SOAP"].definition = modelesV1;
}