RE: [PHP] PHP SOAP Client formats
| From: | Bastien Koert | Date: | Thu, 10 Jan 2008 01:43:07 +0000 |
| Subject: | RE: [PHP] PHP SOAP Client formats | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266990@lists.php.net to get a copy of this message | ||
XML is case sensitive. I notice the case of the xml is different. Try making the PHP created xml the
same case.
Bastien> Date: Wed, 9 Jan 2008 13:54:36 -0800> From: tt-list@simplenet.com> To:
Bastien> php-general@lists.php.net> Subject: [PHP] PHP SOAP Client formats> > Hi all,> > ok, I
Bastien> am a little bit new to the SOAP game, but I understand it, and am > using it to talk to an
Bastien> outside API.> > The problem that I have is that the server that I am talking to (that is >
Bastien> not in my control), will accept the following SOAP call> > <?xml version="1.0"
Bastien> encoding="utf-8"?>> <soap:Envelope
Bastien> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Bastien> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
Bastien> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">>
Bastien> <soap:Body>> <AuthenticateTest
Bastien> xmlns="https://api.authorize.net/soap/v1/">>
Bastien> <merchantAuthentication>> <name>name</name>>
Bastien> <transactionKey>string</transactionKey>> </merchantAuthentication>>
Bastien> </AuthenticateTest>> </soap:Body>> </soap:Envelope>> > > But it
Bastien> refuses a call that I have made using the SOAPClient PHP classes > that look like this :> >
Bastien> <?xml version="1.0" encoding="UTF-8"?>> <SOAP-ENV:Envelope
Bastien> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
Bastien> xmlns:ns1="https://api.authorize.net/soap/v1/">>
Bastien> <SOAP-ENV:Body>> <ns1:AuthenticateTest>> <merchantAuthentication>>
Bastien> <name>name</name>> <transactionKey>string</transactionKey>>
Bastien> </merchantAuthentication>> </ns1:AuthenticateTest>> </SOAP-ENV:Body>>
Bastien> </SOAP-ENV:Envelope>> > It appears that the one that PHP creates is all in line with all
Bastien> of the > latest standards, and I know that the server is a Microsoft IIS server.> > Does
Bastien> anyone know any parameters that I can use with the PHP SOAP client > that could help me contruct
Bastien> the request like the top one???> > I don't want to have to build the text myself, and
Bastien> open a socket and > send the text manually like I did to verify that the top one works, and >
Bastien> the bottom one doesn't.> > Thanks,> > Tim.>
_________________________________________________________________
Use fowl language with Chicktionary. Click here to start playing!
http://puzzles.sympatico.msn.ca/chicktionary/index.html?icid=htmlsig