Hello everyone,
I need to access this service (WSDL) for that i have read a lot of documentation about SoapLite, WSDL, SOAP and XML, since it is my first time working with it, everything is new to me.
By the service providers my request is OK but - "you should check soapaction parameter, unfortunately we cannot give them any further tips" - this was their answer to my support request. They are not very helpfull.
I've tried several other possibel combinations on that parameter, but away from what i toke for logic and nothing worked.
My code is:
......
use SOAP::Lite +trace => [ transport => sub { print $_[0]->as_string } ];
my $soap = SOAP::Lite->new( proxy => 'http://public_webservices.domain.com/folder/FreeGreatWebService.svc?WSDL');
$soap -> uri('http://webservices.domain.com/folder/') ;
$soap->on_action( sub { 'http://webservices.domain.com/folder/GetWebServiceVersion' });
$soap->autotype(0);
$soap->readable(1);
$soap->outputxml(1);
my $som = $soap->call( 'GetWebServiceVersion');
die $som->fault->{ faultstring } if ($som->fault);
print "RESPONSE: $som\n" ;
......
The WSDL at 'http://public_webservices.domain.com/folder/FreeGreatWebService.svc?WSDL' is:
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions name="FreeGreatWebService" targetNamespace="http://webservices.domain.com/folder"
....
/>
<wsdl:import namespace="http://webservices.domain.com/folder/" location="../folder/FreeGreatSearchWebService_ServiceContract.wsdl" />
<wsdl:types />
- <wsdl:service name="FreeGreatSearchWebService">
- <wsdl:port name="BasicHttpBinding_IFreeGreatSearchWebService" binding="i0:BasicHttpBinding_IFreeGreatSearchWebService">
<soap:address location="" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
And keep getting an answer:
......
<faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</faultcode>
......
What am i missing, because at this point i do not know what i already tried to change/modify getting always the same result.
Thanks