Skip to Content
0
Nov 18, 2008 at 04:13 PM

Setting "sap-client" parameter in <mx:HTTPService> object

29 Views

Hi there,

I am having problems setting the "sap-client" parameter on a HTTPService object due to the "-" in the parameter name.

If I do it like...

<mx:HTTPService id="vmsplan" url="http://mysaphost.domain.com/sap/bc/bsp/sap/yvms1/vmsdata.xml">
	<mx:request>
		<sap-client>410</sap-client>
	</mx:request>
</mx:HTTPService>

... I get the compile time error

"1084: Syntax error: expecting colon before minus"

If I do it in ActionScript like this...

				var parameters:Object = new Object;
				parameters.sap-client = "410";
				vmsplan.request = parameters;

...the compile time error is...

"1050: Cannot assign to a non-reference value."

Can anyone help me with this one?

Thanks

Graham Robbo