Does anybody know proper syntax for sending form information with a soap script? Is it just XML format? Here is the API info sent from their IT department:
That is one of my concerns with this project. Basically we are creating our own custom front-end for a quoting service that provides a generic one. So we will be hosting the html/php files on our server but the quote generating/application process is done on their server. I talked with their IT guy and he assured me that it was a secure "channel". Personally, I was thinking that we would need to purchase a security certificate to be able to send the data securely. What are your thoughts?
The notion of a secure channel is relative. Traffic may be encrypted but, it can still depend on what things are allowed via that "secure" channel.
For a case like yours, I would generally recommend creating a little proxy that allowed REST on the browser side and let the SOAP happen between servers. The REST service could return JSON making the bowser scripting part much easier.
The light proxy code on the server would be lightweight and easy to test. It would also eliminate the cross-domain issue since the proxy would live on the same server that sends up the pages.
__________________ Please login or register to view this content. Registration is FREE
Hmmm, I'll have to look into that a bit more. Would be my first time creating a proxy but from the sound of it shouldn't be too difficult...Thank you so much for the info, I owe ya a case of beer!
I've had some rare occasions to do it but, generally, I use Java instead of javascript.
Keep in mind, due to browser security, the soap service will need to be on the same host as the page in the browser.
Do you know how I can get the form values from html into my java code (not javascript)? I am having trouble finding info on how to do this. Here is my Java class below, should this do the trick?