Using COM with PHP - help please!

Using COM with PHP - help please!

am 13.06.2007 16:40:21 von David Felton

Does anyone have any experience with this? =0AI'm using the COM f=
unction with PHP4 and have run into problems. I can instantiate a COM =
object, and call simple function. Now I have come on to calling a more=
complicated function that returns an instance of an interface. The fu=
nction is running correctly but I can't figure out how to access the d=
ata in the instance of the interface. $xfmsObject =3D new =
COM("XFMS=5FCOM.XFMSAPIWrapper.1"); $retval = =09$xfms=
Object->xfortVerifyAndUnpackPAResMsgEx($signedPARes, =0 A =0A$paRe=
sPan, =0A"sdkCheckInstall", $avr esult, =0A=
=0A$strErrMsg); As this is a COM object $avresult an=
d $strErrMsg are manipulated by the function, $avresult contains the d=
ata I am interested in. The interface is defined as follows: =
IxfortAuthValidationResultEx { public: long SignatureCheckRe=
sult; VT=5FBSTR ECI; long AuthenticationResult; VT=5FBSTR Au=
thenticationStatusMsg; VT=5FBSTR XID; VT=5FBSTR HexXID; VT=5F=
BSTR CardholderPAN; VT=5FBSTR CardExpiryDate; VT=5FBSTR ACSVerifi=
cationID; VT=5FBSTR HexACSVerificationID; VT=5FBSTR ACSVerificati=
onFlavor; VT=5FBSTR PurchaseAmount; VT=5FBSTR AlphaAuthentication=
Result(VARIANT *pVal) }; I'm using PHP4. Any inf=
ormation or help much appreciated! =0A**=
************************************************************ ***************=
***** Disclaimer The information and attached documentation=
in this e-mail is intended for the use of the addressee only and is confid=
ential. If you are not the intended recipient please delete it and notify u=
s immediately by telephoning or e-mailing the sender. Please note that with=
out Codemastersâ€=99 prior written consent any form of distribution, co=
pying or use of this communication or the information in it is strictly pro=
hibited and may be unlawful. =0AAttachments to this e-mail may c=
ontain software viruses. You are advised to take all reasonable precautions=
to minimise this risk and to carry out a virus check on any documents befo=
re they are opened. Any offer contained in this communication is=
subject to Codemastersâ€=99 standard terms & conditions and must be si=
gned by both parties. Except as expressly provided otherwise all informatio=
n and attached documentation in this e-mail is subject to contract and Code=
mastersâ€=99 board approval. Any views or opinions expressed are s=
olely those of the author and do not necessarily represent those of Codemas=
ters. This footnote also confirms that this email message has be=
en swept by SurfControl for the presence of computer viruses. ***=
************************************************************ ***************=
****

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Using COM with PHP - help please!

am 14.06.2007 12:58:00 von Gustav Wiberg

Hi there!

Probably it's time to update your PHP-version?

Best regards
/Gustav Wiberg
=20

-----Original Message-----
From: David Felton [mailto:davidfelton@codemasters.com]=20
Sent: Wednesday, June 13, 2007 4:40 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Using COM with PHP - help please!

Does anyone have any experience with this?

I'm using the COM function with PHP4 and have run into problems. I can
instantiate a COM object, and call simple function. Now I have come on
to calling a more complicated function that returns an instance of an
interface. The function is running correctly but I can't figure out how
to access the data in the instance of the interface.


$xfmsObject =3D new COM("XFMS_COM.XFMSAPIWrapper.1");

$retval =
=09$xfmsObject->xfortVerifyAndUnpackPAResMsgEx($signedPARes, =20
=09
$paResPan,
=09
"sdkCheckInstall",=20
=09
$avresult,=20
=09
$strErrMsg);


As this is a COM object $avresult and $strErrMsg are manipulated by the
function, $avresult contains the data I am interested in. The interface
is defined as follows:

IxfortAuthValidationResultEx
{
public:
long SignatureCheckResult;
VT_BSTR ECI;
long AuthenticationResult;
VT_BSTR AuthenticationStatusMsg;
VT_BSTR XID;
VT_BSTR HexXID;
VT_BSTR CardholderPAN;
VT_BSTR CardExpiryDate;
VT_BSTR ACSVerificationID;
VT_BSTR HexACSVerificationID;
VT_BSTR ACSVerificationFlavor;
VT_BSTR PurchaseAmount;
VT_BSTR AlphaAuthenticationResult(VARIANT *pVal)
};

I'm using PHP4.

Any information or help much appreciated!




=20
************************************************************ ***************=
*******
Disclaimer

The information and attached documentation in this e-mail is intended for t=
he use of the addressee only and is confidential. If you are not the intend=
ed recipient please delete it and notify us immediately by telephoning or e=
-mailing the sender. Please note that without Codemasters=92 prior written =
consent any form of distribution, copying or use of this communication or t=
he information in it is strictly prohibited and may be unlawful.=20

Attachments to this e-mail may contain software viruses. You are advised to=
take all reasonable precautions to minimise this risk and to carry out a v=
irus check on any documents before they are opened.

Any offer contained in this communication is subject to Codemasters=92 stan=
dard terms & conditions and must be signed by both parties. Except as expre=
ssly provided otherwise all information and attached documentation in this =
e-mail is subject to contract and Codemasters=92 board approval.
Any views or opinions expressed are solely those of the author and do not n=
ecessarily represent those of Codemasters.

This footnote also confirms that this email message has been swept by
SurfControl for the presence of computer viruses.
************************************************************ ***************=
*******


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php