I have a program Customer Maintenance, in the program I have set a flag to call my javascript to open a new window to my web service (PRTSERVICE).
// Load WSDL
var wsdUrl = urlPrefix "PRTSERVICE.wsdl";
var xmlHttp = SOAPClient._getXmlHttp();
xmlHttp.open("GET", wsdlUrl, true):
xmlHttp.onreadystatechange = function() {
If (xmlHttp.readystate == 4){
SOAPClient_cacheWsdl[soapUrl] = xmlHttp.responseXML;
var hostname = location.hostname;
soap - new SOAPClientParameters()*;
soap.add("logon-user-name", $("#bis-userid).val());
soap.add("logon-host", hostName);
SOAPClient.invoke(soapUrl, "logonuser", soap, true, function (r, xml){
var resp = r["logon-user-result"];
if (resp!= "0"){
var v = xml.getElementsByTagName("faultstring");
var str = "Unable to logon!";
for (var i = 0; i < v.length; i ){
str = "\\n" v.textContent;
}
alert(str);
return;
}
isLoggedOn = true;
}
}
What I see in my logs for the web service:
service PRTSERVICE-PATH: \\inetput\\wwwroot\\LiantBIS\\MBS\\temp/PRTSERVICE_mark
Service LOGON Host myhost
Service LOGON-USER-RESULT 00
XMLEXCHANGE Received exchange reponse form service
BIS Processing{{ContentType(tex/xml)}} tab
XMLEXCHANGE NO {{FormActionTarget}} in this exchange, sequence checking suppressed
BIS Page Rendering Complete: service program remains active, Session remains active!
When I change the name for a customer on the Customer Maintenance Screen and click continue, it gives me an error.
The trace file for Customer Maintenance is showing that a new session started.
Here are my srf:
Maintenance.srf
{{ Handler * }}{{//}}
{{ Trace(start, file, dir=C:\\temp)}}{{//}}
{{ContentType(text/html; charset=UTF-8) }}{{//}}
{{ Runpath(bin,..\\common) }}{{//}}
{{ XMLEchange(onExit="Goodbye.srf") }}
Webservice.srf
{{ Handler * }}{{//}}
{{ Trace (start,file,dir=C:\\temp) }}{{//}}
{{RunPath(..\\bin;..\\common) }}{{//}}
{{SessionParms(ServiceTimeout=90,InactivityTimeout=90,Scope=ISOLATE,Path="/liantibs/mbs_devel/WebServices/")}}{{//}}
{{StartService(PRTSERVICE) }}{{//}}
{{XMLExchange }}
How do I keep the Maintenance Screen at it's current session without losing its connection and starting a new session?
#BIS
#RMCOBOL