SoapClient and multiple namespaces - help! |
[eluser]kilishan[/eluser]
I'm trying to communicate with the eWay server and had everything working until we ended up needing to switch to a different API. The problem is that SoapClient is creating a different namespace for the header (that includes the authentication) then from the body, which, obviously, doesn't get me any results. Instead, I get eWay's servers saying it must have the authentication information. Here's my code: Code: $client = new SoapClient($url.'?WSDL', array('trace'=>TRUE)); As you can see, I've tried it with and without using a SoapVar for the header, all with no luck. Here's the XML request that is being created: Code: <soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://www.eway.com.au/gateway/managedpayment" xmlns:ns2="http://www.eway.com.au/gateway/managedpayment"> Thanks. |
Messages In This Thread |
SoapClient and multiple namespaces - help! - by El Forum - 10-22-2010, 02:21 PM
SoapClient and multiple namespaces - help! - by El Forum - 11-26-2010, 01:57 AM
|