Tech Tip: Creating a SOAP method for a first time
PRODUCT: 4D | VERSION: 2003 | PLATFORM: Mac & Win
Published On: March 21, 2003
4th Dimension 2003 introduces a number of Web Services. One of them is SOAP (Simple Object Access Protocol). SOAP is a new technology that uses a simple XML-based protocol to let applications exchange information over HTTP. For those of you who are not familiar with XML, don’t worry. You don’t need to know a bit of XML to work with SOAP in 4D 2003. This tech tip will show you an example on how to create simple SOAP method.
Suppose I create a method that will receive a text value and return the same text value as a function result. The method can be created as the following:
` Project Method: GetSubmittedText
C_TEXT($0;$1)
$0:=$1
The method GetSubmittedText can be published as a SOAP method by doing the following steps:
- From the Method Editor, select Method Properties menu item from the Method menu.
- Check “Offered as a Web Service” and Published in WSDL checkbox.
- Click OK to accept this setting.