Demo entry 6687828

sas

   

Submitted by anonymous on Dec 30, 2017 at 23:21
Language: Java. Code size: 734 Bytes.

import com.eviware.soapui.impl.wsdl.WsdlProject;
import com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext;
import com.eviware.soapui.impl.wsdl.WsdlInterface;
import com.eviware.soapui.model.workspace.Workspace;                                    
import com.eviware.soapui.model.workspace.WorkspaceFactory;               
import com.eviware.soapui.SoapUI;
import javax.wsdl.Definition;
                        
def projectInterface = testRunner.testCase.testSuite.project
WsdlInterface wsdlInterface = (WsdlInterface) projectInterface.getInterfaceByName("ReferencePortSoap11");
WsdlContext wsdlContext = wsdlInterface.getWsdlContext()
Definition definition = wsdlContext.getDefinition()
definition.getDocumentBaseURI()

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).