Click here to get back home

soaplite server and .net client

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
soaplite server and .net client taocong810 09-14-2006
Get Chitika Premium
Posted by taocong810 on September 14, 2006, 9:04 pm
Please log in for more thread options


Hello,

I want to use my scripts on my site with webservices.


So,
with the book 'Programming Web Services with SOAP'
I make tests with


Server: SOAP::Lite 'myhibye.cgi'
-----------------------------------------------------------------
#!/usr/bin/perl
use SOAP::Transport::HTTP;
SOAP::Transport::HTTP::CGI
-> dispatch_to('Fussball')
-> handle;
package Fussball;
sub hi {
#print "hi\n";
return "hello, fussball";


}


sub bye {
#print "bye\n";
return "goodbye, cruel fussball";

}


sub languages {
#print "languages\n";
return ("HSV", "Perl", "C", "sh");

}


sub rechne1 {
my $a = @_[0];
my $b = @_[1];
my $c = @_[2];
return ($b+$c);

}


-----------------------------------------------------------------

Client: SOAP::Lite 'myhibly.pl'
-----------------------------------------------------------------
#!/usr/bin/perl
# -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul
Kulchenko --
use SOAP::Lite;
print SOAP::Lite
-> uri('Fussball')
-> proxy('http://.../myhibye.cgi')
-> hi()
-----------------------------------------------------------------


And it works fine.


Now,
I want to use the SOAP::Lite Server with a .Net client.
Because, with .Net it is simple for me to build a gui-programm.


But,
in .Net cs the call of the functions fails.
The error is:


Unhandled Exception: System.Web.Services.Protocols.SoapHeaderException:

SOAPAction shall match 'uri#method' if present (got 'urn:Fussball/hi',
expected 'Fussball#hi' ..


In my cs-Programm I set
this.URL to 'http://.../myhibye.cgi'
Namespace to 'Fussball'.


And I read something, that it is a problem to call the function /
Namespace
....


But I do not know what is necessary to solve this problem ?


Similar ThreadsPosted
POE::Component::Client::TCP help! February 7, 2005, 12:11 pm
Determine NT domain username of web client February 3, 2005, 4:24 pm
Sockets - client unable to connect May 1, 2006, 5:28 pm
beginner question on use of Frontier::Client November 15, 2006, 10:52 am
namespace for iTunes Connect client module? November 10, 2008, 9:38 pm
Writing a HTML/ASP SOAP client for a SOAP::Lite destination March 16, 2005, 5:19 pm
Net::Server -> tftpd ? May 28, 2006, 6:21 am
TACACS+ with Cisco ACS server 3.2 August 6, 2004, 10:26 am
Start server for test ? May 16, 2005, 12:52 pm
Serialization by SOAP server July 7, 2006, 8:37 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap