File: client.vba

package info (click to toggle)
ruby-soap4r 2.0.5-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,032 kB
  • sloc: ruby: 52,729; xml: 266; sh: 42; javascript: 20; makefile: 13; perl: 10
file content (19 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Public Function testStockQuoteService(ticker As String) As Variant
    On Error GoTo ErrorHandler
    
    Dim soapClient
    Set soapClient = CreateObject("MSSoap.SoapClient")

    soapClient.mssoapinit("http://localhost/cgi-bin/stockQuoteService.cgi?wsdl")
        
    r = soapClient.getQuote(ticker)
    testStockQuoteService = r
    
Exit Function

ErrorHandler:
MsgBox Err.Description + vbCrLf + soapClient.faultactor + vbCrLf +
soapClient.faultcode + vbCrLf + soapClient.faultstring + vbCrLf +
soapClient.detail

End Function