Consume our SOAP service within MS Office Access™ or Excel™

Help with the Esendex API

Consume our SOAP service within MS Office Access™ or Excel™

Postby Nicholas » Mon Mar 15, 2010 11:39 pm

We have been asked by a customer if it is possible to utilize our API's from within MS Excel™ and MS Access™. The answer is yes!

You will need to firstly download and install Download the Microsoft Office XP Web Services Toolkit 2.0 or Microsoft Office 2003 Web Services Toolkit 2.01

1. Open Access/Excel.

2. Open the Visual Basic Editor(Alt + F11).

3. Click the new option on your Tools menu – “Web Service References…”

4. In your newly opened Toolkit Form click the “Web Service URL” radio button and enter this address: https://www.esendex.com/secure/messenger/soap/SendServiceNoHeader.asmx?wsdl

5. Click the search button.

6. Hopefully it has found the Esendex Send Service and listed it in the “Search Results” box. Place a checkmark to select the web service and click the “Add Button”.

Image

7. Your Editor should now look something like this:

Image

8. Add this code to Module1

Sub testEsendexSoap()

Dim EsendexSoapService As New clsws_SendServiceNoHeader

Dim messageGUID As String

messageGUID = EsendexSoapService.wsm_SendMessage("username", "password", "account reference", "recipient", "message body", "Text")

End Sub

Run or Call the testEsendexSoap macro you have now created.

NB you may have to update the code within the struct_messagesubmision to remove the following declaration:

Image

the word 'type' is a reserved word in the MS VBA development language, replace this the declaration shown below:

Image

Further information on our SOAP API is available here
Nicholas
 
Posts: 3
Joined: Mon Mar 15, 2010 11:12 pm

Re: Consume our SOAP service within MS Office Access™ or Excel™

Postby frolicols » Mon Aug 23, 2010 1:25 pm

Is it possible to post the contents of the three class modules created? I do not have access to the Web Toolkit at our office.
frolicols
 
Posts: 2
Joined: Mon Aug 23, 2010 1:23 pm

Re: Consume our SOAP service within MS Office Access™ or Excel™

Postby Simon » Wed Jan 19, 2011 9:16 am

Hi,

Thanks for the examples.

Does this with Office 2010?

Simon
Simon
 
Posts: 1
Joined: Wed Jan 19, 2011 9:14 am


Return to API



cron
© Esendex Ltd 2010
Company Registration Number: 04217280