Posted on 2007-06-26 19:51:07-07 by martinz
PHP or C# and PERL

I tried this PERL webservice script that works with PERL Clients, but not with PHP or C# Clients.
This is the script:

#!perl -w
print "Content-type: text/xml \r\n\n";
use WSDL::Generator;
my $init = { 'schema_namesp' =>'http://www.w3.org/2001/XMLSchema',
'services' => 'Animals',
'service_name' => 'Mammals',
'target_namesp' => 'http://my.host.com/lib',
'documentation' => 'Service to book tickets online',
'location' => 'http://my.host.com/httpdocs/myscript.pl' };
my $w = WSDL::Generator->new($init);
Cats->WildCats('Jaguar');
print $w->get(Cats);

I guess, it's something related with the envelope.
did somebody had done something similar, but that will work with PHP or C#?
Regards
Martinz
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.