From: piyush t. <pk...@ya...> - 2008-01-04 06:34:31
|
Hi I am trying to access .Net based web service by a perl web client. Every thing is going smoothly if the .net web service is based on the file system. But if it is an Http based web service, a IIS deployed web service, then the my perl web client is not able to access the published methods of the web service. The error message that i get is HTTP::Client::send_receive: HTTP/1.1 500 Internal Server Error More information regarding the .net web service is that 1. I have enabled Anonymous Access on the web site. 2. Execute permissions are set for both scripts and executables. 3. Read , write , directory browsing , indexing and log visits permissions are granted. So tell me what can be the possible cause of this 500 Internal server error on IIS deployed web service. The web method is the automated generated web method of the c# web service that is the HelloWorld. The perl code is as follows: #!/usr/bin/perl use SOAP::Lite (+trace => all, maptype => {}); my $soap = SOAP::Lite -> uri('http://tempuri.org/') -> on_action(sub{join '/', 'http://tempuri.org/', $_[1] }) -> proxy ('http://localhost/WebSite7/Service.asmx'); my $method = SOAP::Data->name('HelloWorld') ->attr({xmlns => 'http://tempuri.org/'}); my $result = $soap->call($method); print $result->valueof('//HelloWorldResult'); Thank you.. --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. |
From: Martin K. <mar...@fe...> - 2008-01-04 14:49:01
|
Hi piyush, from your mail, everything looks OK - but I can't say much without the trace created by the client. Did you look up the cause for the error in the IIS' error log (there is some, though it is not alway informative)? Regards, Martin Am Donnerstag, den 03.01.2008, 22:34 -0800 schrieb piyush tewari: > Hi > I am trying to access .Net based web service by a perl web client. > Every thing is going smoothly if the .net web service is based on the > file system. > But if it is an Http based web service, a IIS deployed web service, > then the my perl web client is not able to access the published > methods of the web service. The error message that i get is > HTTP::Client::send_receive: HTTP/1.1 500 Internal Server Error > More information regarding the .net web service is that > 1. I have enabled Anonymous Access on the web site. > 2. Execute permissions are set for both scripts and executables. > 3. Read , write , directory browsing , indexing and log visits > permissions are granted. > So tell me what can be the possible cause of this 500 Internal server > error on IIS deployed web service. > > > The web method is the automated generated web method of the c# web > service that is the HelloWorld. > > The perl code is as follows: > > #!/usr/bin/perl > use SOAP::Lite (+trace => all, maptype => {}); > my $soap = SOAP::Lite > -> uri('http://tempuri.org/') > -> on_action(sub{join '/', 'http://tempuri.org/', $_[1] }) > -> proxy ('http://localhost/WebSite7/Service.asmx'); > my $method = SOAP::Data->name('HelloWorld') > ->attr({xmlns => 'http://tempuri.org/'}); > my $result = $soap->call($method); > print $result->valueof('//HelloWorldResult'); > > > Thank you.. > > ______________________________________________________________________ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try > it now. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Soaplite-devel mailing list Soa...@li... https://lists.sourceforge.net/lists/listinfo/soaplite-devel |