- or download this
sub getLanguagesForTranslate {
my ($self) = @_;
...
my $answer = $soap->GetLanguagesForTranslate("appId" => "");
return $answer->result;
}
- or download this
SOAP::Transport::HTTP::Client::send_receive: POST http://api.microsoft
+translator.com/V2/Soap.svc HTTP/1.1
Accept: text/xml
...
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Bod
+y><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/0
+5/addressing/none">a:ActionNotSupported</faultcode><faultstring xml:l
+ang="en-US">The message with Action '#GetLanguagesForTranslate' canno
+t be processed at the receiver, due to a ContractFilter mismatch at t
+he EndpointDispatcher. This may be because of either a contract misma
+tch (mismatched Actions between sender and receiver) or a binding/sec
+urity mismatch between the sender and the receiver. Check that sende
+r and receiver have the same contract and the same binding (including
+ security requirements, e.g. Message, Transport, None).</faultstring>
+</s:Fault></s:Body></s:Envelope>
- or download this
POST /V2/soap.svc HTTP/1.1
Host: api.microsofttranslator.com
...
SOAPAction: "http://api.microsofttranslator.com/V2/LanguageService/Get
+LanguagesForTranslate"
Content-Length: 1462
Authorization: Bearer http%3a%2f%2fschemas.xmlsoap.org%2fws%2f2005%2f0
+5%2fidentity%2fclaims%2fnameidentifier=BingTranslationTest&http%3a%2f
+%2fschemas.microsoft.com%2faccesscontrolservice%2f2010%2f07%2fclaims%
+2fidentityprovider=https%3a%2f%2fdatamarket.accesscontrol.windows.net
+%2f&Audience=http%3a%2f%2fapi.microsofttranslator.com&ExpiresOn=13593
+95243&Issuer=https%3a%2f%2fdatamarket.accesscontrol.windows.net%2f&HM
+ACSHA256=a7cPdve2lE7kF5n3ZMMY8byf3p5SIMfrFpJpZird2Vw%3d
- or download this
use SOAP::Lite;
$SOAP::Constants::DO_NOT_USE_CHARSET = 0;
...
return $answer->result->{string};
}
</p>