It's been many, many years since I have written any ASP code and I dont recall this functionality being present in the past BUT:
In php we have a serialize() that takes an array of data and creats a single string representation of that data. The single string can then be passed as a parameter to a function (e.g. a SOAP server) and then run through an unserialize() which puts the data back in array form.
Does ASP and .NET support this and does anyone know if its compatible with php?
Just as a point of reference, our existing php client side code looks like this and we need to know if this will work in an ASP and/or .NET enviorment
<?php
$wsdl = "http://ddomain.com/dist/alarms/nwaAlarms.wsdl";
$soap = new SoapClient($wsdl);
// returns a 128 byte token or a single char error code
$sessid = $soap->nwaLogin("demo", "demo");
switch($sessid)
{
case "0":
die("Remote login failed: invalid userid/passord!");
break;
case "5":
die("Session timed out, token no longer valid!");
case "";
die("NULL response from soap server!");
break;
default:
// we got back a 128 byte token
echo "Logged in! Session ID: $sessid<br>";
}
$police = "N";
$injury = "N";
$damage = "Y";
$occured = "2010-12-04";
$message_text = "SOAP client entry no lat/lon";
$address = "1600 Amphitheatre Parkway";
$city = "Mountain View";
$state = "CA";
$zip = "94043";
$lat = '';
$lon = '';
$message = serialize(array($police, $injury, $damage, $occured, $message_text, $address, $city, $state, $zip, $lat, $lon));
$result = $soap->nwaAlarm($sessid, $message);
echo "<br>Server Response: $result<br>";
?>