thank you.
Now to get the URL out of them.
On Aug 31, 2006, at 5:16 PM, Phil Wade wrote:
Roland,
A really simple way to build up a soap call is to use one of the
many WSDL validator to build it for you. A simple free tool can be
found here:
http://soapclient.com/soaptest.html
Simply type in the URL to the wsdl file and then use it to call a
method. It will automatically build the form for you and you can
get it to show you the requesting XML or the response XML.
Once you have the request XML just put it into an @URL call.
Here is some sample code using the XML from the SOAP Validator
above and this WSDL file http://www.xmethods.net/sd/
TemperatureService.wsdl Copy the code into a tml file in the Dev
Studio and call it. You will see the results come back. If you
view the page source you will see the XML of the Response. Just
load it into a DOM varialble with @DOM and you will be able to use
XPath to query it.
<@ASSIGN request$WebService "http://services.xmethods.net:80/soap/
servlet/rpcrouter">
<@ASSIGN request$SoapPayload '<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:tns="http://www.xmethods.net/sd/
TemperatureService.wsdl" xmlns:xsd="http://www.w3.org/1999/
XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-
ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<mns:getTemp xmlns:mns="urn:xmethods-Temperature"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<zipcode xsi:type="xsd:string">90210</zipcode>
</mns:getTemp>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>'>
<@ASSIGN request$response_payload VALUE="<@URL LOCATION='@@request
$WebService' USERAGENT='Witango <@VERSION>
<@PLATFORM><@CRLF>Content-Type: text/xml' POSTARGS='<@VAR request
$SoapPayload ENCODING="NONE">'>">
<@VAR request$response_payload ENCODING="NONE">
Don't feel tool overwhelmed by Web Services. They were not meant
to be used by humans which is why there are so many tools around to
assist you. With Witango Dev Studio v6 and Witango Server v6 it is
simpler again as it has a web service action and calling a web
service is as simple as calling a TCF or querying a database. WSDL
files load into the Objects workspace and appear the same as other
objects in the work space. Calling a Web Service is XML free to
the user with all the complexities hidden away and managed by the
server. The results of the call are returned in a DOM variable for
you to use in your application. This is a screenshot of the
already implemented Web Service action. All the variables you need
to fill in for the call show up in the "Soap Body" tab. Optional
header lines can be added in the "Soap Header" tab.
Regards
Phil
______________________________________________________________________
__
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
<Picture 1.png>
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf