- Favorite Text Editor
- Endpoint for the SOAP call - should be a url
- SOAP request string
If you have all these things ready to go, the next thing we need to make sure of is that the proper headers are set on the server side. If this is not your server that your are trying to hit then you will need to ask the administrator of the server if they can fix up the proper access.
The Headers we need are
If you happen to have a PHP SOAP server you can add these lines to the top of your code. Please remember that the header functions will need to load before you start printing other text to the page.
On the server side of things you can do a SOAP request with out all the Access Control headers. These are used as security precautions on the Browser side to prevent people from possible hacks. If you use this method to get data make sure that you properly analyze the security risks.
Bonus Points : If you happen to use HTTP Auth on your web server, you can make the url look like the following and replace the username and password with your credentials
- ► 2016 ( 13 )
- ► 2014 ( 14 )