Forum Discussion
I got following warning message:
Mon Sep 07 15:54:35 CST 2015:WARN:No service found for name 'SOAPService' in project com.eviware.soapui.impl.wsdl.WsdlProjectPro@4e95a079
But, I think the SOAPService should be there, since it is created in env.addNewService("SOAPService",...);
- TanyaYatskovska10 years agoSmartBear Alumni (Retired)
Hi Grrison,
Take a look at this thread posted by nmrao:
Hitting multiple endpoints with Groovy
Is this what you are looking for?
- Grrison10 years agoOccasional Contributor
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