Using COM with PHP - help please!
am 13.06.2007 16:40:21 von David FeltonDoes 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