ServiceClient client = new ServiceClient(); OperationClient operationClient = client.createClient(ServiceClient.ANON_OUT_IN_OP); MessageContext outMsgCtx = new MessageContext(); Options opts = outMsgCtx.getOptions(); opts.setTimeOutInMilliSeconds(2000); opts.setTo(new EndpointReference(<<URL PATH>>)); opts.setAction(<<ACTION METHOD NAME>>); outMsgCtx.setEnvelope(<<INPUT SOAP ENVELOP>>); operationClient.addMessageContext(outMsgCtx); operationClient.execute(true); MessageContext inMsgtCtx = operationClient.getMessageContext("In"); SOAPEnvelope response = inMsgtCtx.getEnvelope(); return response;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)