[ic] SOAP access to Interchange - getting started

John1 list_subscriber at yahoo.co.uk
Fri Jun 24 12:08:58 EDT 2005


On Friday, June 24, 2005 2:54 PM, list_subscriber at yahoo.co.uk wrote:

> SOAP_Action  test_soap   <<EOR
> sub {
> return 2;
> }
> EOR
>
> test.pl
> ------
> #!/usr/bin/perl
> use SOAP::Lite;
>
> my $ic = SOAP::Lite
>  -> uri('http://www.mydomain.com/Vend/SOAP')
>  -> proxy("http://localhost:7780/mycatalog/")
>  -> test_soap();
>
>    print $ic;
>
> ====================
>
> If I run test.pl it just prints "1" and returns
>
Ummm, seems I need a lesson or two in Perl.  I had presumed that as 
"test_soap" was "Return 2" that print $ic would have printed "2", not "1". 
But, it seems not, presumably you can only "Return" boolean True or False, 
so 2=1... So all is fine, SOAP is now working for me. :-) 



More information about the interchange-users mailing list