From: Peter S. <sn...@gm...> - 2008-03-20 09:43:51
|
Hi everyone, I'm using PHP5 SOAP extension to develop a web app that uses PayPal's ExpressCheckout system. The headers need to look like: <SOAP-ENV:Header> <RequesterCredentials xmlns=”urn:ebay:api:PayPalAPI” xsi:type=”ebl:CustomSecurityHeaderType”> <Credentials xmlns=”urn:ebay:apis:eBLBaseComponents” xsi:type=”ebl:UserIdPasswordType”> <Username>api_username</Username> etc.... which is no problem except I can't figure out how to add the "type" attribute to the 'RequesterCredentials element. I can use the SoapVar to get the "type" attribute into the Credentials element, but as far as I can tell no equivalent option exists for the SoapHeader method, which I need to call to create RequesterCredentials in the first place. Does anyone with more experience with the PHP SOAP extension have any ideas on how I could accomplish this? I know how to do it in NuSOAP (since you can create custom, verbatim headers there) but I can stay with the native solution and not have to rip up what I've done already. Anyway, if anyone has any thoughts or suggestions, they'd be much appreciated. Thanks! Pete |