wagner
04-30-2005, 02:29 AM
Hello
If created a WebServices which uses a session for User-Management. But I can't get the sessionID. My SOAP Response looks like this:
<soapenv:Envelope>
-
<soapenv:Header>
<ns1:sessionID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" href="#id0"/>
</soapenv:Header>
-
<soapenv:Body>
-
<getUserResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<getUserReturn href="#id1"/>
</getUserResponse>
-
<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:UserRecord">
<EMail xsi:type="soapenc:string">wagseb@fh-pforzheim.de</EMail>
<aufgabengebiet xsi:type="soapenc:string">Research</aufgabengebiet>
<fax xsi:type="soapenc:string"/>
<raum xsi:type="soapenc:string">STZ</raum>
<telefon xsi:type="soapenc:string">07231-417456</telefon>
<titel xsi:type="soapenc:string">Software Developer</titel>
<userName xsi:type="soapenc:string">user1</userName>
<vorname xsi:type="soapenc:string">Sebastian</vorname>
</multiRef>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="soapenc:long">5175959334988470913</multiRef>
</soapenv:Body>
</soapenv:Envelope>
In my Laszlo-App:
<dataset name="resds" />
<soap name="STZWebService" wsdl="http://....STZWebService?wsdl" responseheaders="resds">
...
<remotecall name="login1" funcname="getUser" remotecontext="$once{canvas.STZWebService}" dataobject="UserRecord">
<param>
<method name="getValue">
return canvas.getAttribute('username');
</method>
</param>
<param>
<method name="getValue">
Debug.write(canvas.getAttribute('userpass'));
return canvas.getAttribute('userpass');
</method>
</param>
<method event="ondata" args="value">
debug.write('getUserRecord result:\n', value);
Debug.write(UserRecord.serialize());
Debug.write("Headers: ");
Debug.write(resds.serialize());
</method>
</remotecall>
But all I get in the Debuger is:
Headers:
<resds/>
Anybody able to help me to get the SessionID??
thx
Sebastian
If created a WebServices which uses a session for User-Management. But I can't get the sessionID. My SOAP Response looks like this:
<soapenv:Envelope>
-
<soapenv:Header>
<ns1:sessionID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" href="#id0"/>
</soapenv:Header>
-
<soapenv:Body>
-
<getUserResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<getUserReturn href="#id1"/>
</getUserResponse>
-
<multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:UserRecord">
<EMail xsi:type="soapenc:string">wagseb@fh-pforzheim.de</EMail>
<aufgabengebiet xsi:type="soapenc:string">Research</aufgabengebiet>
<fax xsi:type="soapenc:string"/>
<raum xsi:type="soapenc:string">STZ</raum>
<telefon xsi:type="soapenc:string">07231-417456</telefon>
<titel xsi:type="soapenc:string">Software Developer</titel>
<userName xsi:type="soapenc:string">user1</userName>
<vorname xsi:type="soapenc:string">Sebastian</vorname>
</multiRef>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="soapenc:long">5175959334988470913</multiRef>
</soapenv:Body>
</soapenv:Envelope>
In my Laszlo-App:
<dataset name="resds" />
<soap name="STZWebService" wsdl="http://....STZWebService?wsdl" responseheaders="resds">
...
<remotecall name="login1" funcname="getUser" remotecontext="$once{canvas.STZWebService}" dataobject="UserRecord">
<param>
<method name="getValue">
return canvas.getAttribute('username');
</method>
</param>
<param>
<method name="getValue">
Debug.write(canvas.getAttribute('userpass'));
return canvas.getAttribute('userpass');
</method>
</param>
<method event="ondata" args="value">
debug.write('getUserRecord result:\n', value);
Debug.write(UserRecord.serialize());
Debug.write("Headers: ");
Debug.write(resds.serialize());
</method>
</remotecall>
But all I get in the Debuger is:
Headers:
<resds/>
Anybody able to help me to get the SessionID??
thx
Sebastian