Jump to content

SOAP: Difference between revisions

74 bytes removed ,  14 years ago
m
Fixed lang tags.
(omit m4)
m (Fixed lang tags.)
Line 4:
=={{header|ActionScript}}==
{{works with|ActionScript|3.0}}
<lang actionscript>import mx.rpc.soap.WebService;
import mx.rpc.soap.WebService;
import mx.rpc.events.ResultEvent;
var ws:WebService = new WebService();
Line 20 ⟶ 19:
private function anotherSoapFunc_Result(event:ResultEvent):void {
// do another something
}</lang>
}
</lang>
=={{header|AutoHotkey}}==
using embedded vb scripting.
Line 37 ⟶ 35:
 
=={{header|ColdFusion}}==
<lang cfm> <cfset client = createObject("webservice","http://example.com/soap/wsdl")>
<cfset result = client.soapFunc("hello")>
<cfset result = client.anotherSoapFunc(34234)></lang>
 
=={{header|Perl}}==
{{libheader|SOAP::Lite}}
<lang perl> use SOAP::Lite;
 
print SOAP::Lite
-> service('http://example.com/soap/wsdl')
-> soapFunc("hello");
print SOAP::Lite
-> service('http://example.com/soap/wsdl')
-> anotherSoapFunc(34234);</lang>
 
=={{header|PHP}}==
{{works with|PHP|5.0.0+}}
<lang php> <?php
//load the wsdl file
$client = new SoapClient("http://example.com/soap/definition.wsdl");
//functions are now available to be called
$result = $client->soapFunc("hello");
$result = $client->anotherSoapFunc(34234);
 
//SOAP Information
$client = new SoapClient("http://example.com/soap/definition.wsdl");
//list of SOAP types
print_r($client->__getTypes());
//list if SOAP Functions
print_r($client->__getFunctions());
?></lang>
 
=={{header|Python}}==
{{works with|Python|2.4 and 2.5}}
<lang python> from SOAPpy import WSDL
proxy = WSDL.Proxy("http://example.com/soap/wsdl")
result = proxy.soapFunc("hello")
result = proxy.anotherSoapFunc(34234)</lang>
 
'''Note:''' SOAPpy is a third-party module and can be found at [http://pywebsvcs.sourceforge.net/ Python Web Services]
Line 105 ⟶ 103:
=={{header|VBScript}}==
 
<lang 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)</lang>
 
=={{header|Visual Objects}}==
 
<lang vobjectsvisobj> LOCAL oSoapClient AS OLEAUTOOBJECT
LOCAL cUrl AS STRING
LOCAL uResult AS USUAL
oSoapClient := OLEAutoObject{"MSSOAP.SoapClient30"}
cUrl := "http://example.com/soap/wsdl"
IF oSoapClient:fInit
oSoapClient:mssoapinit(cUrl,"", "", "" )
uResult := oSoapClient:soapFunc("hello")
uResult := oSoapClient:anotherSoapFunc(34234)
ENDIF</lang>
 
{{omit from|TI-83 BASIC}} {{omit from|TI-89 BASIC}} <!-- Does not have network access. -->
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.