SOAP: Difference between revisions
Content added Content deleted
No edit summary |
mNo edit summary |
||
Line 10:
$result = $client->anotherSoapFunc(34234);
?>
==[[VBS]]==▼
Dim client▼
Dim result▼
Set client = CreateObject("MSSOAP.SoapClient")▼
client.MSSoapInit "http://example.com/soap/wsdl"▼
result = client.soapFunc("hello")▼
result = client.anotherSoapFunc(34234)▼
==[[Python]]==
Line 29 ⟶ 20:
result = proxy.soapFunc("hello")
result = proxy.anotherSoapFunc(34234)
▲==[[VBS]]==
▲ Dim client
▲ Dim result
▲ Set client = CreateObject("MSSOAP.SoapClient")
▲ client.MSSoapInit "http://example.com/soap/wsdl"
▲ result = client.soapFunc("hello")
▲ result = client.anotherSoapFunc(34234)
|
Revision as of 22:35, 23 January 2007
![Task](http://static.miraheze.org/rosettacodewiki/thumb/b/ba/Rcode-button-task-crushed.png/64px-Rcode-button-task-crushed.png)
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( ).
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)
VBS
Dim client Dim result Set client = CreateObject("MSSOAP.SoapClient") client.MSSoapInit "http://example.com/soap/wsdl" result = client.soapFunc("hello") result = client.anotherSoapFunc(34234)