Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

soaplite · SOAP::Lite for Perl (soaplite.com)

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 1205
  • Category: Protocols
  • Founded: Jan 28, 2001
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Problems with combined urn values   Topic List   < Prev Topic  |  Next Topic >
Summarize Messages | View Threaded Sort by Date v  
#3548 From: "pegesund" <pegesund@...>
Date: Fri Apr 30, 2004 10:47 am
Subject: Problems with combined urn values
pegesund
Send Email Send Email
 
Hi;

I am trying to use a Perl-server and a .Net client. My program works
fine when i specify the urn to be a single name only
(dispatch_to("Search") and 'urn:Search'), but when I try a urn like
'url:Microsoft.Search' things stop to work.

A strange thing is that the .Net client (Office2003) leaves no
err-msg. in the log, but the perl client keeps telling me about a
"Illegal namespace identifier" in the http-log.

The .Net soap err-msg. caims there is no method Registration in the
Microsoft::Search-object.

Strange, isn't it?

I would be very, very happy for a clue (I do not wan't to write this
part on .Net...)

Cheers,

pegesund


My program looks like this:

------------------- Client.pl (test only) ----------

#!/usr/bin/perl

use SOAP::Lite +trace;

print SOAP::Lite
->proxy('http://192.168.250.6/cgi-bin/Registration.pl')
->uri('urn:Microsoft.Search')
->Registration("")
->result;


-------- Server located in /srv/www/cgi-bin/-----------------

#!/usr/bin/perl

use SOAP::Transport::HTTP;
use lib '/srv/www/cgi-bin';
use lib '/srv/www/cgi-bin/Microsoft';
use lib "./";
use Microsoft::Search;
use SOAP::Lite +trace;

SOAP::Transport::HTTP::CGI
-> dispatch_with({
'urn:Microsoft.Search' => 'Microsoft::Search'
})
-> handle;

(I have tried with dispatch_to - both dynamical and static binding
without any luck).

------- Package, located in /srv/www/cgi-bin/Microsoft ----
use SOAP::Transport::HTTP;
use lib '/srv/www/cgi-bin';
use lib '/srv/www/cgi-bin/Microsoft';
use lib "./";

package Search;
require Exporter;

our @ISA = qw(Exporter);
our @EXPORT = qw(hi CacheDuration Registration);

sub hi {
return "hello happy, world";
}

sub CacheDuration { return 86400; }

sub Registration($) {
my $in_xml =shift;
undef $/;
open(my $fh, '/home/pe/reg.xml');
my $ret = <$fh>;
open(THELOG, '>>/tmp/soaplog');
print THELOG "Function called " . time() . "\n";
return $ret;

}





 
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help