<?xml version="1.0" encoding="windows-1252"?>
<node id="1015658" title="Re^2: SOAP::Lite contract mismatch error" created="2013-01-28 04:33:14" updated="2013-01-28 04:33:14">
<type id="11">
note</type>
<author id="1015579">
milovidov</author>
<data>
<field name="doctext">
&lt;p&gt;
Lingua::Translate::Bing is my module :)
&lt;/p&gt;
&lt;p&gt;
Now, i want refactor it for using SOAP protocol instead of HTTP.
&lt;/p&gt;

&lt;p&gt;
I tried SOAP::Simple with this code:
&lt;p&gt;
&lt;code&gt;
sub getLanguagesForTranslate {
    my ($self) = @_; 
    my $token = $self-&gt;getAccessToken();

    my $soap = SOAP::Simple-&gt;new('http://api.microsofttranslator.com/V2/Soap.svc');
    my $answer = $soap-&gt;GetLanguagesForTranslate("appId" =&gt; "");
    return $answer-&gt;result;
}
&lt;/code&gt;
&lt;/p&gt;
&lt;/p&gt;

&lt;p&gt;
But i had this error:
&lt;p&gt;
&lt;code&gt;
Remote fetching not implemented yet at /home/Muxa/perl5/lib/perl5/SOAP/Simple/Trait.pm line 73.
	SOAP::Simple::Trait::_fetch_wsdl('Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x4332df8)', 'http://api.microsofttranslator.com/V2/Soap.svc') called at /home/Muxa/perl5/lib/perl5/SOAP/Simple/Trait.pm line 67
	SOAP::Simple::Trait::_coerce_wsdl('Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x4332df8)', 'http://api.microsofttranslator.com/V2/Soap.svc') called at /home/Muxa/perl5/lib/perl5/SOAP/Simple/Trait.pm line 12
	SOAP::Simple::Trait::add_wsdl('Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x4332df8)', 'http://api.microsofttranslator.com/V2/Soap.svc') called at /home/Muxa/perl5/lib/perl5/SOAP/Simple.pm line 29
	SOAP::Simple::new('SOAP::Simple', 'http://api.microsofttranslator.com/V2/Soap.svc') called at Lingua/Translation/Bing.pm line 135
&lt;/code&gt;
&lt;/p&gt;
&lt;/p&gt;</field>
<field name="root_node">
1015590</field>
<field name="parent_node">
1015612</field>
</data>
</node>
