Forum Discussion

laracroft007's avatar
laracroft007
Occasional Contributor
14 years ago

invoking request xml using groovy

Hi All,

i wanted to use some request xml file (c:\req1.xml) in groovy, below is the code but i am not getting where and how to specify request xml

WsdlProject project = new WsdlProject();
WsdlInterface iface = WsdlInterfaceFactory.importWsdl( "wsdl path", true )[0];
WsdlRequest request = operation.addNewRequest( "My request" );
request.setRequestContent( operation.createRequest( true ) );
WsdlSubmit submit = (WsdlSubmit) request.submit( new WsdlSubmitContext(), false );

please guide me

Regards,
Achyuth