SOAP: Difference between revisions
Content added Content deleted
(added Perl 6) |
|||
Line 267: | Line 267: | ||
-> service('http://example.com/soap/wsdl') |
-> service('http://example.com/soap/wsdl') |
||
-> anotherSoapFunc(34234);</lang> |
-> 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}}== |
=={{header|PHP}}== |