Which you can use to make web service calls. There's a bit of a learning curve to use it, but it handles JSON and a lot of others things as well if you need it.
The other thing you can do is reference the Windows HTTP lib and make the call yourself directly. i.e.:
' Capture the CC ' Set the correct URL110 strPostURL = "https://secure.authorize.net/gateway/transact.dll"120 strPostSting = ""130 strPostSting = strPostSting & "x_login=" & UrlEncode(strAPILogin) & "&"140 strPostSting = strPostSting & "x_tran_key=" & UrlEncode(strTransactionKey) & "&" 'For debugging. 'strPostSting = strPostSting & "x_test_request=" & URLEncode("TRUE") & "&"150 strPostSting = strPostSting & "x_version=" & UrlEncode("3.1") & "&"160 strPostSting = strPostSting & "x_delim_data=" & UrlEncode("TRUE") & "&"170 strPostSting = strPostSting & "x_delim_char=" & UrlEncode("|") & "&"180 strPostSting = strPostSting & "x_relay_response=" & UrlEncode("FALSE") & "&"190 strPostSting = strPostSting & "x_email_customer=" & UrlEncode("FALSE") & "&"200 strPostSting = strPostSting & "x_type=" & UrlEncode("PRIOR_AUTH_CAPTURE") & "&"210 strPostSting = strPostSting & "x_trans_id=" & UrlEncode(rs!CCTransactionID) & "&" ' Additional fields can be added here as outlined in the AIM integration ' guide at: http://developer.authorize.net220 strPostSting = left(strPostSting, Len(strPostSting) - 1) ' We use xmlHTTP to submit the input values and record the response Dim objRequest As New MSXML2.XMLHTTP230 objRequest.Open "POST", strPostURL, False240 objRequest.Send strPostSting250 strPostResponse = objRequest.ResponseText 'Debug.Print strPostResponse260 Set objRequest = Nothing ' the response string is broken into an array using the specified delimiting character270 arrResponse = Split(strPostResponse, "|", -1)280 If arrResponse(0) = 1 Then ' Amount was captured. ' Update order import tracking table290 strCommand = "UPDATE tblOrdImportTracking SET CCCapturedAt = '" & Now() & " ' WHERE JobNumber = " & !JobNumber & " AND ExportersOrderNumber = '" & !ExportersOrderNumber & "'"300 cnn.Execute strCommand, lngRecordsAffected, adCmdText310 If lngRecordsAffected <> 1 Then Stop
I was successful using this : Dim reader As New XMLHTTP60 '
reader.Open "GET", "https://xxxxxx1.dev-sap.cccxxx.com:55555/sap/commerce/ecompa_v2?sap-client=220", False, "cat", "mouse" ' reader.setRequestHeader "Accept", "application/json" reader.Send Do Until reader.ReadyState = 4 DoEvents Loop ' If reader.STATUS = 200 Then MsgBox (reader.responseText) Else MsgBox "Unable to get data." End If
Now, my issue is the service call I'm making needs a payload request. in this format ? <QRPPRequest> <AccountNumber>0999999</AccountNumber> <QuoteNumber>049777777</QuoteNumber> <Items> <ProductId>4R55555</ProductId> <ProductId>666TTACC6</ProductId> </Items> </QRPPRequest>
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
https://github.com/VBA-tools/VBA-Web
Which you can use to make web service calls. There's a bit of a learning curve to use it, but it handles JSON and a lot of others things as well if you need it.
The other thing you can do is reference the Windows HTTP lib and make the call yourself directly. i.e.:
Open in new window
The call you need to make of course depends on what your are interfacing to.
Jim.