SOAP and Valex Authentication

At valex we use a SOAP webservice which contains a LIXI payload. An example of the soap envelope is found here soap envelope. This soap envelope needs to contain an element AuthHeader which will be used to authentication. The format of the soap header is as follows:

 <SOAP-ENV:Header>
  <ns2:AuthHeader>
   <userName>Username_you_provided_us</userName>
   <password>Password_you_provided_us</password>
  </ns2:AuthHeader>
 </SOAP-ENV:Header>

This is the soap header we expect when you send a packet to us, and the soap header we send to authenticate against your webservice

Note: We'd very much like to standardize upon one simple existing method for authentication information, as illustrated in the example above. As such, we're unable to customize the authentication we use in many cases - this would break compatibility with many other clients or valuation firms; or entail a significant amount of work for each party.

AuthHeader vs vAuthHeader:
.NET developers may find this article useful.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

If SOAP isn't working for you, it might be quick to do...


    Dim payLoad

    Dim objXMLHTTP

    Dim objOutputXMLDoc

    Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")

    dim valNode

    Dim strResponse

   

    objXMLHTTP.open "post", "https://testws.valex.com.au/soap/lixi/1.3.1/service.php?n=client&op=valuationRequest", False

    objXMLHTTP.setRequestHeader "Content-Type", "text/xml"



    payLoad = "<?xml version='1.0' encoding='utf-8'?>" & _

      "<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ns1='https://vx.valex.com.au/soap/lixi/1.3/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:ns2='https://vx.valex.com.au/soap/lixi/1.3.1/encodedTypes' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>" & _

      "<SOAP-ENV:Header>" & _

      "<ns2:AuthHeader>" & _

      "<userName>" & Application("ValexRUserName") & "</userName>" & _

      "<password>" & Application("ValexRPassword") & "</password>" & _

      "</ns2:AuthHeader>" & _

      "</SOAP-ENV:Header>" & _

      "<SOAP-ENV:Body>" & _

      "<ns1:valuationRequest>" & _

      "<valuationMessage>" & _

      "<![CDATA[" & _

      valXML & _

      "]]>" & _

      "</valuationMessage>" & _

      "</ns1:valuationRequest>" & _

      "</SOAP-ENV:Body>" & _

      "</SOAP-ENV:Envelope>"



    objXMLHTTP.send payLoad

    strResponse = objXMLHTTP.responseText


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.