RE: [SOAP] SOAP "long" Question

From: Date: Tue, 25 Mar 2003 20:43:57 +0000
Subject: RE: [SOAP] SOAP "long" Question
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-507@lists.php.net to get a copy of this message
Hi all, I used this... $assetTypes[] = new SOAP_Value('','long',44); $assetTypes[] = new SOAP_Value('','long',58); to create this... <AssetTypeIdArray xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:long[2]" SOAP-ENC:offset="[0]"> <item xsi:type="xsd:long">44</item> <item xsi:type="xsd:long">58</item> </AssetTypeIdArray> Would that be considered the same as this... <AssetTypeIdArray xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:long[2]"> <xsd:long xsi:type="xsd:long">44</xsd:long> <xsd:long xsi:type="xsd:long">58</xsd:long> </AssetTypeIdArray> according to the WC3 spec? If not, does anyone know how to create the second XML snippet using the PHP SOAP functions? Thanks, Paul -----Original Message----- From: Shane Caraveo [mailto:shane@caraveo.com] Sent: Monday, March 24, 2003 12:43 PM To: Paul Miller Cc: soap@lists.php.net Subject: Re: [SOAP] SOAP "long" Question You may want to cvs checkout the PEAR::SOAP_Interop and look at the tests there. One of the basic tests is doing arrayof*. However, since php does not have long, you will have to create an array of SOAP_Value classes that have been typed to long. I think I'll try and come up with an easier way to handle that. Shane Paul Miller wrote: > Hi, > > Does anyone know how to create an ArrayOfLong (an array of values that are > cast 'Long') to send in a SOAP message. PHP does not really support the > long variable type. I am trying to use the pack() function with little > progress. > > Does anyone have an suggestions? > > Thanks, > > Paul > >

« previous php.soap (#507) next »