Hi Massimo,
Hope you are doing well.
I have gone through with your suggested links but didn't get enough help to resolve my query. Following I'm sharing our OD IVR code which is using service stub client to send web service endpoint url. Can you pls have a look and help, how I can pass user id and pwd in the same code...
IVR CODE:
String ep = (String)mySession.getVariable(IProjectVariables.ENDPOINT).getSimpleVariable().getObjectValue();
LoggerUtil.writeTrace(mySession, ITraceInfo.TRACE_LEVEL_DEBUG, track + "WS Endpoint: " + ep);
ServiceStub ss = new ServiceStub();
// Set WS Timeout
Options timeout_option = new Options();
timeout_option.setTimeOutInMilliSeconds(timeout_value);
ss._getServiceClient().setOptions(timeout_option);
// Set WS Endpoint
EndpointReference epr = new EndpointReference();
epr.setAddress(ep);
ss._getServiceClient().setTargetEPR(epr);
LoggerUtil.writeTrace(mySession, ITraceInfo.TRACE_LEVEL_DEBUG, track + "WS Endpoint: " + ep);
LoggerUtil.writeTrace(mySession, ITraceInfo.TRACE_LEVEL_DEBUG, track + "WS Timeout: " + timeout_value);
PerformOperationRequest por = new PerformOperationRequest();
ArrayOfKeyValueOfstringstring strArr = new ArrayOfKeyValueOfstringstring();
por.setRequestType(WSOperation);
//PerformOperationResponse PoRs;
PerformOperationResponse PoRs = new PerformOperationResponse();
ArrayOfKeyValueOfstringstring results;
KeyValueOfstringstring_type0[] resStr;
KeyValueOfstringstring_type0 key1 = new KeyValueOfstringstring_type0();
KeyValueOfstringstring_type0 key2 = new KeyValueOfstringstring_type0();
Thanks,
Deepak
|