Tech Tip: How to save the content of a WSDL file with 4D
PRODUCT: 4D | VERSION: 11.6 | PLATFORM: Mac & Win
Published On: April 29, 2010
A WSDL contains the syntax and information needed for a proxy method in 4D to connect to the web services it describes. It is visible in a browser window by typing the IP address of your 4D web services server followed by "/4DWSDL". For example:
https://www.databaseName.com/4DWSDL
A Web Area object can be used to get the contents of a WSDL into 4D. First open the url of the WSDL into a Web Area as shown here:
` wa is a reference to a Web Area object C_TEXT($url) $url:="https://www.databaseName.com/4dwsdl" WA OPEN URL(wa;$url) |
Once the WSDL content is loaded into the Web Area, call the WA Get page content command to save it in a text variable, as shown here:
` wa is a reference to a Web Area object C_TEXT($wsdlContent) $wsdlContent:=WA Get page content(wa) |
Commented by Chris Norman on May 4, 2010 at 3:52 PM
Might help to explain what the parameter "wa" is, rather than assuming we know based on experience with Web Areas.