t: +44 (0)191 305 5035 e: info@unifiedsoftware.co.uk
- Home
- Products
- Developers
- Demo
- Free trial
- Site map
- About us
- Testimonials
- Contact us
A VB MSSOAP
Dim paramstring As String
Dim soapClient
Set soapClient = CreateObject("MSSOAP.SoapClient30")
On Error Resume Next
soapClient.ClientProperty("ServerHTTPRequest") = True
Call soapClient.MSSoapInit _
("http://www.unifiedsoftware.co.uk/BankValukall2.wsdl")
If Err <> 0 Then
Call soapClient.MSSoapInit _
("http://www.unifiedservices.co.uk/BankValukall2.wsdl")
If Err <> 0 Then
status.Text = Err.Description
End If
End If
paramstring = userid.Text & "|" & PIN.Text & "|" & sortcode.Text & _ "|" & account.Text
result.Text = soapClient.bankvalidate(paramstring)
Dim paramstring As String
Dim soapClient
Set soapClient = CreateObject("MSSOAP.SoapClient30")
On Error Resume Next
soapClient.ClientProperty("ServerHTTPRequest") = True
Call soapClient.MSSoapInit _
("http://www.unifiedsoftware.co.uk/BankValukall2.wsdl")
If Err <> 0 Then
Call soapClient.MSSoapInit _
("http://www.unifiedservices.co.uk/BankValukall2.wsdl")
If Err <> 0 Then
status.Text = Err.Description
End If
End If
paramstring = userid.Text & "|" & PIN.Text & "|" & sortcode.Text & _
"|" & account.Text
result.Text = soapClient.bankvalplus2(paramstring)B VB COM
MsgBox CreateObject("SOAP.Lite").new _ .service("http://www.unifiedsoftware.co.uk/BankVal.wsdl") _
.bankvalidate("userid|PIN|sortcode|account")
C VB MSXML
Dim objReturn As New MSXML2.DOMDocument30 Dim strQuery As String 'Create the SOAP Envelope strEnvelope = _ "<SOAP:Envelope xmlns:SOAP=""http://schemas.xmlsoap.org/soap/envelope/"">" & _ "<SOAP:Body>" & _ "<m:bankvalidate xmlns:m=""http://www.unifiedsoftware.co.uk/BankValSOAP"">" & _ "<params>userid|PIN|sortcode|account</params>" & _ "</m:bankvalidate>" & _ "</SOAP:Body>" & _ "</SOAP:Envelope>" objHTTP.open "post", "https://www.unifiedsoftware.co.uk/cgi-bin/bankvalSOAP.cgi", False 'Set a standard SOAP/ XML header for the content-type objHTTP.setRequestHeader "Content-Type", "text/xml" 'Set a header for the method to be called objHTTP.setRequestHeader "SOAPAction", _ "http://www.unifiedsoftware.co.uk/BankValSOAP#bankvalidate" 'Make the SOAP call objHTTP.send strEnvelope 'Get the return envelope strReturn = objHTTP.responseText 'Load the return envelope into a DOM objReturn.loadXML strReturn 'Query the return envelope strQuery = "//ValidateResult" result.Text = objReturn.selectSingleNode(strQuery).Text
Dim objHTTP As New MSXML2.XMLHTTP30 Dim strEnvelope As String Dim strReturn As String Dim objReturn As New MSXML2.DOMDocument30 Dim strQuery As String 'Create the SOAP Envelope strEnvelope = _ "<SOAP:Envelope xmlns:SOAP=""http://schemas.xmlsoap.org/soap/envelope/"">" & _ "<SOAP:Body>" & _ "<m:getbranchdetails2 xmlns:m=""http://www.unifiedsoftware.co.uk/BankValSOAP"">" & _ "<params>userid|PIN|sortcode</params>" & _ "</m:getbranchdetails2>" & _ "</SOAP:Body>" & _ "</SOAP:Envelope>" objHTTP.open "post", "https://www.unifiedsoftware.co.uk/cgi-bin/bankvalSOAP.cgi", False 'Set a standard SOAP/ XML header for the content-type objHTTP.setRequestHeader "Content-Type", "text/xml" 'Set a header for the method to be called objHTTP.setRequestHeader "SOAPAction", _ "http://www.unifiedsoftware.co.uk/BankValSOAP#getbranchdetails2" 'Make the SOAP call objHTTP.send strEnvelope 'Get the return envelope strReturn = objHTTP.responseText 'Load the return envelope into a DOM objReturn.loadXML strReturn 'Query the return envelope strQuery = "//GetBranchDetailOutput" result.Text = objReturn.selectSingleNode(strQuery).Text