title: PHP SOAP HTTP Request
body: <p>Despite being a PHP developer for a while, I'm just now getting my first taste of web services. I was hoping to get a little help, as the book I am using is not much help. One of the companies we are doing business with gave me an XML document in the format in needs to be in (I'll post a chunk of it). Due to my inexperience in this particular subject, I'm not really sure what to do. I need to know how to send this message to their live POST page, how to receive the response, and do I need to create any sort of WSDL page? Any help or direction would be so greatly appreciated, and please, don't just send a link to the php manual. I've obviously been there, as it is typically the go-to place for help.</p>
  
  <pre><code>POST /sample/order.asmx HTTP/1.1
  Host: orders.sample.com
  Content-Type: application/soap+xml; charset=utf-8
  Content-Length: length
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;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"&gt;
    &lt;soap12:Header&gt;
      &lt;AuthenticationHeader xmlns="http://sample/"&gt;
        &lt;Username&gt;string&lt;/Username&gt;
        &lt;Password&gt;string&lt;/Password&gt;
      &lt;/AuthenticationHeader&gt;
      &lt;DebugHeader xmlns="http://sample/"&gt;
        &lt;Debug&gt;boolean&lt;/Debug&gt;
        &lt;Request&gt;string&lt;/Request&gt;
      &lt;/DebugHeader&gt;
    &lt;/soap12:Header&gt;
    &lt;soap12:Body&gt;
      &lt;AddOrder xmlns="http://sample/"&gt;
        &lt;order&gt;
          &lt;Header&gt;
            &lt;ID&gt;string&lt;/ID&gt;
            &lt;EntryDate&gt;dateTime&lt;/EntryDate&gt;
            &lt;OrderEntryView&gt;
              &lt;SeqID&gt;int&lt;/SeqID&gt;
              &lt;Description&gt;string&lt;/Description&gt;
            &lt;/OrderEntryView&gt;
            &lt;ReferenceNumber&gt;string&lt;/ReferenceNumber&gt;
            &lt;PONumber&gt;string&lt;/PONumber&gt;
            &lt;Comments&gt;string&lt;/Comments&gt;
            &lt;IpAddress&gt;string&lt;/IpAddress&gt;
          &lt;/Header&gt;
        &lt;/order&gt;
      &lt;/AddOrder&gt;
    &lt;/soap12:Body&gt;
  &lt;/soap12:Envelope&gt;
  </code></pre>
  
  <p>Above is the AddOrder XML document I was given (I removed most of the body). Please let me know if anymore detail is needed, as I want to be specific as possible so I'm able to figure out how send this </p>