/**
* @throws WsdlException
*/
public void test() throws WsdlException {
WsdlDefinitions definitions = WsdlResolver.getInstance().loadWsdl(
new File(".").toURI(), new File(SAMPLE_AWSDL).toURI());
URI dscURL = this.configuration.getDSCURL();
logger.info("dscURL: " + dscURL);
DSCUtil.convertToCWSDL(definitions, dscURL);
logger.info(definitions.xmlStringPretty());
// client
int clientPort = 0;
WSIFAsyncResponsesCorrelator correlator = new XsulSoapHttpWsaResponsesCorrelator(
clientPort);
String serverLoc = ((XsulSoapHttpWsaResponsesCorrelator) correlator)
.getServerLocation();
logger.finest("client is waiting at " + serverLoc);
// LEAD Context Header
// Create lead context.
LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
leadContextHelper.setXBayaConfiguration(this.configuration);
LeadContextHeader leadContext = leadContextHelper
.getLeadContextHeader();
leadContext.setWorkflowId(URI
.create("http://host/2005/11/09/workflowinstace"));
leadContext.setNodeId("decoder1");
leadContext.setTimeStep("5");
leadContext.setServiceInstanceId(URI.create("decoder-instance-10"));
XmlElement element3 = XMLUtil.xmlElement5ToXmlElement3(definitions
.xml());
xsul.wsdl.WsdlDefinitions definitions3 = new xsul.wsdl.WsdlDefinitions(
element3);
WSIFClient wclient = WSIFRuntime.getDefault().newClientFor(