title: Using Visual Basic to make a SOAP call after importing a WSDL file
body: <p>I was asked by an external company to communicate with then via a SOAP request. They gave me four files 00000001.WSDL, request.xml, response.xml and 00000001.pfx. I could load the WSDL file into SOAPUI and use the certificate in the SSL properties and run and get a response. I tried to replicate this in code using VB but have come to a stop.</p>
  
  <p>Successfully imported my WSDL file into my VS2008 solution. How do I make a call to the server and get a response?</p>
  
  <p>The WSDL file gives me these:</p>
  
  <pre><code>Public Class _PAM999AINPUT
            Inherits System.Object
  
  Public Class _PAM999AOUTPUT
            Inherits System.Object
  
  Public Class pam999n
            Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
  
  Public Class PAM999NCompletedEventArgs
            Inherits System.ComponentModel.AsyncCompletedEventArgs
  
  Public Delegate Sub PAM999NCompletedEventHandler(ByVal sender As Object, ByVal e As MySol.MyWebRef.PAM999NCompletedEventArgs)
  </code></pre>
  
  <p>My two xml files look like this</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:com-softwareag-entirex-rpc:COMMON"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;urn:PAM999N&gt;
           &lt;_PAM999A-INPUT&gt;
              &lt;_PAM999A-I-USERNAME&gt;Test User&lt;/_PAM999A-I-USERNAME&gt;
           &lt;/_PAM999A-INPUT&gt;
        &lt;/urn:PAM999N&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  
  &lt; and
  
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xmm="http://namespace.softwareag.com/entirex/xml/mapping" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
     &lt;SOAP-ENV:Header/&gt;
     &lt;SOAP-ENV:Body&gt;
        &lt;m:PAM999NResponse xmlns:m="urn:com-softwareag-entirex-rpc:COMMON"&gt;
           &lt;_PAM999A-OUTPUT&gt;
              &lt;_PAM999A-O-RESPONSE&gt;HI  Test User        YOU HAVE INVOKED THE TEST MYCOMPANY SECURE WEBSERVICE ON (date &amp; time)&lt;/_PAM999A-O-RESPONSE&gt;
           &lt;/_PAM999A-OUTPUT&gt;
        &lt;/m:PAM999NResponse&gt;
     &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>I've seen loads of examples but none with combinations of WSDL XML PFX &amp; VB.NET</p>
  
  <p>Some guidance needed please</p>