SOAP: Difference between revisions
Content added Content deleted
(Add ColdFusion) |
m (Categorizing programming examples) |
||
Line 5: | Line 5: | ||
==[[ColdFusion]]== |
==[[ColdFusion]]== |
||
[[Category:ColdFusion]] |
|||
<cfset client = createObject("webservice","http://example.com/soap/wsdl")> |
<cfset client = createObject("webservice","http://example.com/soap/wsdl")> |
||
<cfset result = client.soapFunc("hello")> |
<cfset result = client.soapFunc("hello")> |
||
Line 10: | Line 11: | ||
==[[PHP]]== |
==[[PHP]]== |
||
[[Category:PHP]] |
|||
<?php |
<?php |
||
$client = new SoapClient('http://example.com/soap/wsdl'); |
$client = new SoapClient('http://example.com/soap/wsdl'); |
||
Line 27: | Line 28: | ||
result = proxy.anotherSoapFunc(34234) |
result = proxy.anotherSoapFunc(34234) |
||
==[[ |
==[[VBScript]]== |
||
[[Category:VBScript]] |
|||
Dim client |
Dim client |
Revision as of 02:28, 24 January 2007
SOAP
You are encouraged to solve this task according to the task description, using any language you may know.
You are encouraged to solve this task according to the task description, using any language you may know.
In this task, the goal is to create a SOAP client which accesses functions defined at http://example.com/soap/wsdl, and calls the functions soapFunc( ) and anotherSoapFunc( ).
ColdFusion
<cfset client = createObject("webservice","http://example.com/soap/wsdl")> <cfset result = client.soapFunc("hello")> <cfset result = client.anotherSoapFunc(34234)>
PHP
<?php $client = new SoapClient('http://example.com/soap/wsdl'); $result = $client->soapFunc('hello'); $result = $client->anotherSoapFunc(34234); ?>
Python
Interpreter: Python 2.4, 2.5
from SOAPpy import WSDL proxy = WSDL.Proxy("http://example.com/soap/wsdl") result = proxy.soapFunc("hello") result = proxy.anotherSoapFunc(34234)
VBScript
Dim client Dim result Set client = CreateObject("MSSOAP.SoapClient") client.MSSoapInit "http://example.com/soap/wsdl" result = client.soapFunc("hello") result = client.anotherSoapFunc(34234)