Forum Discussion

krieya's avatar
12 years ago

Java program not stopping after completing the execution

Hi All,

When I ran below program, it worked fine however it is not stopping at the end, it is just in running state.

Please help me to terminate all the SOAP UI resources to terminal the program in a proper way.

public static void main(String[] args) throws Exception
{
WsdlProject project = new WsdlProject("C:/Users/krieya/Desktop/SOAP/Peretual-soapui-project.xml");

WsdlInterface iface = (WsdlInterface) project.getInterfaceByName("ReceiveRolloverTxnServiceSoap12");
WsdlOperation operation = (WsdlOperation) iface.getOperationByName( "RTRMessage" );

WsdlRequest request = operation.getRequestByName("Request 1");
WsdlSubmitContext wsdlSubmitContext = new WsdlSubmitContext(request);
WsdlSubmit<?> submit = (WsdlSubmit<?>) request.submit(wsdlSubmitContext, false);
Response response = submit.getResponse();
String content = response.getContentAsString();
System.out.println( content );
}


Thanks in advance!!

Regards,
Krieya.
No RepliesBe the first to reply