Sample code here:
//Create My serviceLocator recuperando l'interfaccia del service
BWProvisioningServiceServiceLocator serviceLocator =
serviceLocator.setMaintainSession(true);
BWProvisioningService service = serviceLocator.getProvisioningService();
String result = service.processOCIMessage(request);
* recupero nonce x password
*
*/
/**
String nonce =
nonce = result.substring(result.indexOf(
Stub stub = (Stub) service;
org.apache.axis.client.Call call = stub._getCall();
org.apache.axis.MessageContext msgContext = call.getMessageContext();
String prp = (String)msgContext.getProperty(
String jSessionId = prp.substring(prp.indexOf(
System.
Step2: setting jsession id for each call
Sample code
// for each following request
((javax.xml.rpc.Stub)service)._setProperty( HTTPConstants.
String result2 = service.processOCIMessage(loginRequest);
Nessun commento:
Posta un commento