Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

SOAP::Lite for Document/literal wrapped config

11:35 am on Mar 11, 2011 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 20, 2004
votes: 0

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' });
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="" />

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.

11:10 am on Mar 13, 2011 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 8

perhaps the proper soapAction requires the specification of the method as well as the uri.

are there any code samples available for that service that you can use for testing?
or perhaps there is a user forum for that service that will provide better support than the service provider.
3:27 pm on Mar 14, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
votes: 0

I know this is probably trivial, but I just went through a scenario: is the action actually supported by the account/service? I had an integration with a "GreatWebService" and the client only has a "professional" account, the soap API in that case was only supported by a "premier" account.