Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

[SOLVED]SOAP::Lite contract mismatch error

by milovidov (Novice)
on Jan 27, 2013 at 22:02 UTC ( [id://1015590]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub getLanguagesForTranslate {
        my ($self) = @_;
    ...
        my $answer = $soap->GetLanguagesForTranslate("appId" => "");
        return $answer->result;
    }
    
  2. 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>
    
  3. 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
    
  4. or download this
    use SOAP::Lite; 
    $SOAP::Constants::DO_NOT_USE_CHARSET = 0;
    ...
        return $answer->result->{string};
    }
    </p>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1015590]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-04-23 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found