Testing a Client Web Service
A special SOAP client helper view can be used to allow you to see what is happening with a SOAP request. This helper displays a view that shows you the SOAP request, the SOAP response, the transfer (error) status, parameters, the return value, and more. The purpose of this view is two-fold: it helps you debug SOAP client calls and provides a great way to learn about web services.
It is not expected that you would ever use this in a deployed application.
The comment code in your client object provides all of the information needed to use this helper object.
// phoSoapClientHelper
// Setting this property will pop up a view that provides information
// about the SOAP (XML) data transfer. This can be useful in debugging.
// If you use this, you must make sure you USE the test view at the top
// of your program/view by adding: Use WebClientHelper.vw // oClientWSHelper
// Set phoSoapClientHelper to oClientWSHelper
To use this helper, you need to:
- Copy the code:
Use WebClientHelper.vwand paste it at the top of your component source code. - Uncomment the line:
Set phoSoapClientHelper to oClientWSHelper.
When you do this, every web service request to this client will cause a helper view to be activated, showing you what is happening.
To disable this helper view, add the comment or set phoSoapClientHelper to 0.