Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Php Soap

How do I send a soap envelope?



10:44 pm on Mar 28, 2012 (gmt 0)

10+ Year Member

I need to send a SOAP request. I'm running PHP 5.3 with SOAP Installed.

Can anybody advise me how I would send the following SOAP request?

POST /hAPI.asmx HTTP/1.1
Host: api.example.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<SpecialOffers xmlns="https://api.example.com/hAPI.asmx">
<productTypeLookup xmlns="http://tempuri.org/DummySchema.xsd">


9:06 am on Mar 29, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

See the SoapClient::__doRequest in php, the first argument should contain the xml part and the 2nd the target url


9:19 am on Mar 29, 2012 (gmt 0)

10+ Year Member

Thank you enigma1

Featured Threads

Hot Threads This Week

Hot Threads This Month