Jump to content

SOAP: Difference between revisions

added Perl 6
(added Perl 6)
Line 267:
-> service('http://example.com/soap/wsdl')
-> anotherSoapFunc(34234);</lang>
 
 
=={{header|Perl 6}}==
<lang perl6>#!/usr/bin/env perl6
 
# Reference:
# https://github.com/retupmoca/P6-SOAP
# http://wiki.dreamfactory.com/DreamFactory/Tutorials/Temp_Conversion_SOAP_API
 
use v6;
use SOAP::Client;
 
my $request = SOAP::Client.new('http://www.w3schools.com/xml/tempconvert.asmx?WSDL') or die;
 
say $request.call('CelsiusToFahrenheit', Celsius => 100 ) or die;
 
say $request.call('FahrenheitToCelsius', Fahrenheit => 212 ) or die;</lang>
{{out}}
<pre>{CelsiusToFahrenheitResult => [212]}
{FahrenheitToCelsiusResult => [100]}
</pre>
 
=={{header|PHP}}==
351

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.