Forum Discussion
Hi Grrison,
Take a look at this thread posted by nmrao:
Hitting multiple endpoints with Groovy
Is this what you are looking for?
it seems not exactly my issue. I would like to create Multiple Environments in one project by accessing ReadyAPI object model, such as below
ServiceImpl soapService = newEnv.addNewService(nameofService, com.eviware.soapui.config.ServiceConfig.Type.SOAP);
URL url = new URL(wsdl.getDefinition());
com.eviware.soapui.config.EnvironmentEndpointConfig epConfig = com.eviware.soapui.config.EnvironmentEndpointConfig.Factory.parse(url);
EndpointImpl epImpl = new EndpointImpl(epConfig, soapService);
soapService.setEndpoint(epImpl);
newEnv is a Environment object from WsdlProjectPro.addNewEnvironment("env_Name");
but after setting the Endpoint statement, there is nothing in the "Endpoint" column of new added SOAPService in Environment windows.
Just want to know how to set the Endpoint of SOAPService/RESTService in Environments.
Regards,
Grrison
- Grrison10 years agoOccasional Contributor
Actually, the prase ofcom.eviware.soapui.config.EnvironmentEndpointConfig.Factory.parse(url);
will get the content of the passed url, not the url itself, then the endpoint of new created SOAP/REST service will be the url content, I just want it to be urlitself.
And idea?
Thanks