The following examples use HTML Form Encoding to send messages to the Bulletin Connect server.
Sample HTML Code
Basic HTML Form
This is a very basic HTML form that contains the minimum number of inputs required to send a message.
This sample is intended for informational and testing purposes only. It can not be used on a public web page as your Bulletin Connect userId and password must be entered when the form is submitted.
Copy and paste the following code example to your local machine, substituting your username and password in the relevant method calls in main(). The following code example sends a message to Bulletin Connect, then requests a status message, then finally checks for an incoming message.
Change the code as necessary to loop through incoming messages and status messages until the queue is cleared. Alternatively break the code into distinct sections that can be used independantly.
Sample Classic ASP code
The following is a simple example of building and submitting a wap push by HTTP post to Bulletin Connect using Classic ASP
The ASP code
The result
The resulting string posted to the server will be similar to this:
The following examples use the deprecated SOAP service to send messages to the Bulletin Connect server.
Sample .NET Code
Consuming The Bulletin Connect Web Service
The easiest way to connect to the Bulletin Connect Web Service is to create a proxy. A proxy is a substitute, or local stand-in, for the web service.
Once the proxy is created and registered with the consuming application, then method calls can be made against the web service. In actuality those method calls will be made against the local proxy. It will seem to the consuming application that the web service is local to the application.
The .NET Framework takes care of all the intricacies of consuming web services by enabling the creation of proxies, with no need to fixate on the underlying plumbing.
Download the attached zip file and familerize yourself with the readme documents.