title: Syntax for SOAP through Powershell
body: <p>I'm trying to order SSL Certificates through Globalsign's API with Powershell, using the PVOrder method.  URL is <a href="https://test-gcc.globalsign.com/kb/ws/v1/ManagedSSLService?wsdl" rel="nofollow noreferrer">https://test-gcc.globalsign.com/kb/ws/v1/ManagedSSLService?wsdl</a> and they have documentation here <a href="https://downloads.globalsign.com/acton/attachment/2674/f-092e/1/-/-/-/-/globalsign-mssl-api-user-guide-v2.3.pdf" rel="nofollow noreferrer">https://downloads.globalsign.com/acton/attachment/2674/f-092e/1/-/-/-/-/globalsign-mssl-api-user-guide-v2.3.pdf</a></p>
  
  <p>The Powershell I'm using is very simple:</p>
  
  <pre><code>$URI = "https://test-gcc.globalsign.com/kb/ws/v1/ManagedSSLService?wsdl"
  $result = (iwr $URI –infile "C:\Users\Administrator\Desktop\script_other\pvorder_soap.xml" –contentType "text/xml" –method POST)
  </code></pre>
  
  <p>And the XML looks like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xs:complexType name="PVOrder"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element minOccurs="0" name="Request" type="tns:BmV1PvOrderRequest"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:complexType name="BmV1PvOrderRequest"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="OrderRequestHeader" type="tns:OrderRequestHeader"/&gt;
  &lt;xs:element name="OrderRequestParameter" type="tns:OrderRequestParameter"/&gt;
  &lt;xs:element name="MSSLProfileID" type="xs:string"/&gt;
  &lt;xs:element name="MSSLDomainID" type="xs:string"/&gt;
  ...
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>However I'm running into difficulty trying to figure out where the parameters are supposed to be defined.  The XML design on most of the tutorials I've found looks different from the XML here.  Some searching on google lead me to try putting the parameters at the end of the xml but before the  which I tried so it looks like below, but the response didn't change at all.</p>
  
  <pre><code>...
  &lt;MSSLDomainID&gt;test.com&lt;/MSSLDomainID&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>Any ideas on what I should be doing here?  I have a decent amount of experience with Powershell but none with SOAP and none of the tutorials I've read seemed to have an answer for this.</p>