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...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 2968 - 2997 of 6629   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#2968 From: "poulkornmod" <poul@...>
Date: Tue Sep 2, 2003 10:56 am
Subject: Re: Generate WSDL with WSDL::Generator
poulkornmod
Send Email Send Email
 
For your information - I of caused made an typing mistake in my
mailing:
filename is not soap.pm but MySOAP.pm

Still appreciate all your help!

Poul

--- In soaplite@yahoogroups.com, "poulkornmod" <poul@k...> wrote:
> Hi all,
>
> Have any of you managed to generate a wsdl file from a soap
service
> that is not using the mod_perl apache interface?
>
> I have succesfully made myself a soap service that runs perfectly
on
> an Apache installation.
>
> My service looks like this:
> #!/usr/bin/perl
> #
> #
> #
>
> use SOAP::Transport::HTTP;
>     SOAP::Transport::HTTP::CGI
>     -> dispatch_to('MySOAP')
>     -> handle;
>
> BEGIN {
>   package MySOAP;
>
>   use MySoapLib;
>   @ISA = qw(SOAP::Server::Parameters); # to get envelope
>
>   sub DoChk {
>     my $self = shift;
>     my $envelope = pop;
>     my $Nm       = $envelope->valueof("//DoChk/Name");
>     my $No       = $envelope->valueof("//DoChk/No");
>     $return = MySoapLib::Main($Nm,$No);
>     return SOAP::Data->name(resultCd => $return);
>   }
>
>   1;
> }
>
> exit;
>
> As a total novice I tried to follow the HowTo - even though that
> it's build for mod_perl - copying my soap.pl and renamed it to
> soap.pm (commenting out the relevant pieces) and ran the below
> script in the same folder:
> #!/usr/bin/perl -w
> #
> #
> use lib './';
> use SOAP::Lite +trace => 'debug';
> use WSDL::Generator;
>
> my $init = {  'services'      => 'MySOAP',
>               'service_name'  => 'MySOAP',
>               'target_namesp' => 'http://myhost/cgi-bin/',
>               'documentation' => 'Service to say hello',
>               'location'      => 'http://myhost/cgi-bin/soap.pl' };
>
> my $wsdl = WSDL::Generator->new($init);
> MySOAP->DoChk(SOAP::Data->name(No => '1234'),
>               SOAP::Data->name(Name => 'Blib')));
> print $wsdl->get(MySOAP);
>
> This script does not generate any output (wsdl or errors) what so
> ever! What am I doing wrong? I really appreciate all your help.
>
> Thanks in advance
>
> Poul

#2969 From: "joycecho1121" <joycecho1121@...>
Date: Tue Sep 2, 2003 4:23 pm
Subject: Passing Array
joycecho1121
Send Email Send Email
 
Server:
sub getElements{
   my $self = shift;

   my @a = $self->{objects};
}

Client
my $exist->new();
my @array = $exist->getElements();

@array returns the number of elements rather than the actual
elements.  Does anyone know how to pass arrays from servers to
clients in SOAP? Thanks.

#2970 From: "Pierre Denis" <pdenis@...>
Date: Wed Sep 3, 2003 8:34 am
Subject: RE: Re: Generate WSDL with WSDL::Generator
pdenis@...
Send Email Send Email
 
Hello Poul, which version of perl are you using? (5.8.0 has a bug with
UNIVERSAL::AUTOLOAD which prevents it to work)

Regards

> -----Original Message-----
> From: poulkornmod [mailto:poul@...]
> Sent: 02 September 2003 11:56
> To: soaplite@yahoogroups.com
> Subject: [soaplite] Re: Generate WSDL with WSDL::Generator
>
>
> For your information - I of caused made an typing mistake in my
> mailing:
> filename is not soap.pm but MySOAP.pm
>
> Still appreciate all your help!
>
> Poul
>
> --- In soaplite@yahoogroups.com, "poulkornmod" <poul@k...> wrote:
> > Hi all,
> >
> > Have any of you managed to generate a wsdl file from a soap
> service
> > that is not using the mod_perl apache interface?
> >
> > I have succesfully made myself a soap service that runs perfectly
> on
> > an Apache installation.
> >
> > My service looks like this:
> > #!/usr/bin/perl
> > #
> > #
> > #
> >
> > use SOAP::Transport::HTTP;
> >     SOAP::Transport::HTTP::CGI
> >     -> dispatch_to('MySOAP')
> >     -> handle;
> >
> > BEGIN {
> >   package MySOAP;
> >
> >   use MySoapLib;
> >   @ISA = qw(SOAP::Server::Parameters); # to get envelope
> >
> >   sub DoChk {
> >     my $self = shift;
> >     my $envelope = pop;
> >     my $Nm       = $envelope->valueof("//DoChk/Name");
> >     my $No       = $envelope->valueof("//DoChk/No");
> >     $return = MySoapLib::Main($Nm,$No);
> >     return SOAP::Data->name(resultCd => $return);
> >   }
> >
> >   1;
> > }
> >
> > exit;
> >
> > As a total novice I tried to follow the HowTo - even though that
> > it's build for mod_perl - copying my soap.pl and renamed it to
> > soap.pm (commenting out the relevant pieces) and ran the below
> > script in the same folder:
> > #!/usr/bin/perl -w
> > #
> > #
> > use lib './';
> > use SOAP::Lite +trace => 'debug';
> > use WSDL::Generator;
> >
> > my $init = {  'services'      => 'MySOAP',
> >               'service_name'  => 'MySOAP',
> >               'target_namesp' => 'http://myhost/cgi-bin/',
> >               'documentation' => 'Service to say hello',
> >               'location'      => 'http://myhost/cgi-bin/soap.pl' };
> >
> > my $wsdl = WSDL::Generator->new($init);
> > MySOAP->DoChk(SOAP::Data->name(No => '1234'),
> >               SOAP::Data->name(Name => 'Blib')));
> > print $wsdl->get(MySOAP);
> >
> > This script does not generate any output (wsdl or errors) what so
> > ever! What am I doing wrong? I really appreciate all your help.
> >
> > Thanks in advance
> >
> > Poul
>
>
>
> To unsubscribe from this group, send an email to:
> soaplite-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>

#2971 From: "dsalumbre" <dsalumbre@...>
Date: Wed Sep 3, 2003 4:40 pm
Subject: Calling Soap::lite server app with a C program, any example?
dsalumbre
Send Email Send Email
 
Hi:

I am pretty new to Soap::Lite and Web Services.

I am looking into calling a soap::lite server application through
Oracle's PL/SQL. The nearest thing I can think of is call the
soap::lite server app through a C program. Has anybody done this?
Could I get a sample code from both the C client program and the
Soap::Lite server app?
I am particularly interested in passing a struct from the C program
to the Soap::lite app and then return the struct from the Soap::Lite
app to the C client program.

TIA,

daniel

#2972 From: Víctor A. Rodríguez - El bit Fantasma (Bit-Man) <victor@...>
Date: Wed Sep 3, 2003 6:39 pm
Subject: IO soap client
bitman09
Send Email Send Email
 
Hi all,

"let me introduce myself". I'm currently working on a messaging
gateway called TRex (http://trex.sourceforge.net/) and one of its
technology supporters is SOAP.

Currently the module for message store is using web services (SOAP
over HTTP), and as part of the performance revision the needs to add
IO transport (for locally stored e-mails) is a MUST.
Hopefuly the IO server is implemented in SOAP::Lite. Unhopefuly the
client not. So the obviuos questions are :

- are there any Perl / IO based transport client ??
- in case the answer is not ("just imagine"), anyone that will like
co-author such a client ??


Would be nice, for all, adding it to the standard SOAP::Lite
distribution. Don't you ??

Thanks to you all.

#2973 From: "jpeyser" <jpeyser@...>
Date: Wed Sep 3, 2003 10:07 pm
Subject: Re: Calling Soap::lite server app with a C program, any example?
jpeyser
Send Email Send Email
 
For C Soap use gSoap. See http://www.cs.fsu.edu/~engelen/soap.html.
There are plenty of examples. It works fine with SOAP::Lite.


--- In soaplite@yahoogroups.com, "dsalumbre" <dsalumbre@y...> wrote:
> Hi:
>
> I am pretty new to Soap::Lite and Web Services.
>
> I am looking into calling a soap::lite server application through
> Oracle's PL/SQL. The nearest thing I can think of is call the
> soap::lite server app through a C program. Has anybody done this?
> Could I get a sample code from both the C client program and the
> Soap::Lite server app?
> I am particularly interested in passing a struct from the C program
> to the Soap::lite app and then return the struct from the
Soap::Lite
> app to the C client program.
>
> TIA,
>
> daniel

#2974 From: "jigsaw9876" <jigsaw9876@...>
Date: Thu Sep 4, 2003 9:31 am
Subject: Attachments
jigsaw9876
Send Email Send Email
 
Hi,

  Can anyone give me a working example for sending and receiving
attachments using SOAP::Lite, please? I have followed the example at
http://majordojo.com/SOAP-MIME/samples and seem to be successful in
sending attachments from the client. How does the server receive them?

sub test {
     my $self = shift;
     my $envelope = pop;

     foreach my $part (@{$envelope->parts}) {
        print STDERR "test.cgi: attachment found! (".ref($$part).")\n";
     }

     my $num_parts = $envelope->parts(0);
     print STDERR $num_parts;
...
}

The above is part of my server code.
I get a faultstring: Can't use an undefined value as an ARRAY reference
and $num_parts is 1 while the envelope is of type SOAP::SOM
I use Perl 5.8.0, SOAP::Lite 0.6.0 and MIME::Tools 5.411

Am I missing soemthing obvious here?

Regards,
JS.

#2975 From: "Byrne Reese" <byrne@...>
Date: Thu Sep 4, 2003 2:10 pm
Subject: Re: Attachments
byrnereese
Send Email Send Email
 
Try this variant which in another example...

foreach my $part (${$som->parts}) {
   print $part->stringify;
}

However, it LOOKS like $som->parts is undefined all together, which would
probably produce the same error. Have you verified that the server is
receiving a MIME message? Meaning have you traced what the client is
sending and receiving?

> Hi,
>
>  Can anyone give me a working example for sending and receiving
> attachments using SOAP::Lite, please? I have followed the example at
> http://majordojo.com/SOAP-MIME/samples and seem to be successful in
> sending attachments from the client. How does the server receive them?
>
> sub test {
>     my $self = shift;
>     my $envelope = pop;
>
>     foreach my $part (@{$envelope-
>        print STDERR "test.cgi: attachment found!
> (".ref($$part).")\n";
>     }
>
>     my $num_parts = $envelope-
>     print STDERR $num_parts;
> ...
> }
>
> The above is part of my server code.
> I get a faultstring: Can't use an undefined value as an ARRAY reference
> and $num_parts is 1 while the envelope is of type SOAP::SOM
> I use Perl 5.8.0, SOAP::Lite 0.6.0 and MIME::Tools 5.411
>
> Am I missing soemthing obvious here?
>
> Regards,
> JS.
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Sponsor
>
>
>   ADVERTISEMENT
>
>
>
>
>
>
>
>
>
> To unsubscribe from this group, send an email to:
> soaplite-unsubscribe@yahoogroups.com
>
>
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
>
>
>


^byrne :/

#2976 From: "Ortner" <benoit.ortner@...>
Date: Fri Sep 5, 2003 9:20 am
Subject: Can't access class....
ptirup
Send Email Send Email
 
Hello,

After many tries, and after reading newsgroup messages, I still have a
problem.:

I was running my SOAP service with dynamic dispatching (using
->dispatch_to('my/modules/path'). ) and everything was working...
Each method had its own package: for example:
file myservice1.pm :
package myservice1;
(...)
sub myservice1{...}
1;

but now I want to do some static dispatching: I need to put all
methods into a single package:
file myglobalpackage.pm :
package myglobalpackage;
(...)
sub myservice1{...}
sub myservice2{...}
sub myservice3{...}
1;

I have try to use
use myglobalpackage;
(..)
->dispatch_to('myglobalpackage')

but when I call a service on client side, there is an error :

faultstring = Failed to access class (myservice1): Can't locate
myservice1.pm in @INC (@INC contains:) at (eval 125) line 3.

I tried many different options, and the dispatch_with method, but
nothing work...

Thanks in advance for help..

-----------------------------
Benoit Ortner
Comité Réseau des Universités
-----------------------------

#2977 From: "Jacoby, Patrik" <jacoby@...>
Date: Fri Sep 5, 2003 9:28 am
Subject: AW: Can't access class....
jacpad1
Send Email Send Email
 
Hi,
I suppose you are using soap as a cgi. I had the same problem and the reason
was that the wwwrun user (who is executing the soap code) didn't have the
permission the access my home directory where my packages took place. Check
your file and directory permissions if the user is allowed to enter and
execute.
   Hope that helps.
	 Patrik

> I was running my SOAP service with dynamic dispatching (using
> ->dispatch_to('my/modules/path'). ) and everything was working...
> Each method had its own package: for example:
> file myservice1.pm :
> package myservice1;
> (...)
> sub myservice1{...}
> 1;
>
> but now I want to do some static dispatching: I need to put all
> methods into a single package:
> file myglobalpackage.pm :
> package myglobalpackage;
> (...)
> sub myservice1{...}
> sub myservice2{...}
> sub myservice3{...}
> 1;
>
> I have try to use
> use myglobalpackage;
> (..)
> ->dispatch_to('myglobalpackage')
>
> but when I call a service on client side, there is an error :
>
> faultstring = Failed to access class (myservice1): Can't locate
> myservice1.pm in @INC (@INC contains:) at (eval 125) line 3.
>
> I tried many different options, and the dispatch_with method, but
> nothing work...
>
> Thanks in advance for help..
>
> -----------------------------
> Benoit Ortner
> Comité Réseau des Universités
> -----------------------------

#2978 From: "Ortner" <benoit.ortner@...>
Date: Fri Sep 5, 2003 9:49 am
Subject: Re: Can't access class....
ptirup
Send Email Send Email
 
Hi!
first, thanks for your answer..

You're right, I'm running my server as a fast CGI, but the cgi has the
good permissions...
The problem is that server is searching for a file called
"myservice1.pm", instead of calling method myservice1 from package
"myglobalpackage"

Anyone has got an Idea??

regards
-----------------------------
Benoit Ortner
Comité Réseau des Universités
-----------------------------


--- In soaplite@yahoogroups.com, "Jacoby, Patrik" <jacoby@l...> wrote:
> Hi,
> I suppose you are using soap as a cgi. I had the same problem and
the reason
> was that the wwwrun user (who is executing the soap code) didn't
have the
> permission the access my home directory where my packages took
place. Check
> your file and directory permissions if the user is allowed to enter and
> execute.
>   Hope that helps.
>  Patrik
>
> > I was running my SOAP service with dynamic dispatching (using
> > ->dispatch_to('my/modules/path'). ) and everything was working...
> > Each method had its own package: for example:
> > file myservice1.pm :
> > package myservice1;
> > (...)
> > sub myservice1{...}
> > 1;
> >
> > but now I want to do some static dispatching: I need to put all
> > methods into a single package:
> > file myglobalpackage.pm :
> > package myglobalpackage;
> > (...)
> > sub myservice1{...}
> > sub myservice2{...}
> > sub myservice3{...}
> > 1;
> >
> > I have try to use
> > use myglobalpackage;
> > (..)
> > ->dispatch_to('myglobalpackage')
> >
> > but when I call a service on client side, there is an error :
> >
> > faultstring = Failed to access class (myservice1): Can't locate
> > myservice1.pm in @INC (@INC contains:) at (eval 125) line 3.
> >
> > I tried many different options, and the dispatch_with method, but
> > nothing work...
> >
> > Thanks in advance for help..
> >
> > -----------------------------
> > Benoit Ortner
> > Comité Réseau des Universités
> > -----------------------------

#2979 From: Tilman Koschnick <til@...>
Date: Fri Sep 5, 2003 10:23 am
Subject: Re: Can't access class....
tilmankoschnick
Send Email Send Email
 
Hi,

I had the same problem, and for me the dispatch_with did the trick:

->dispatch_with({
            'urn:myservice1' => 'myglobalpackage'
})

Note that the URN and the element name in the SOAP body don't have to be
the same. In the dispatch_with call, you have to use the URN, but in
your package the element name:

in the SOAP message:

	 <SOAP-ENV:Body>
	 <MyServiceNumberOne xmlns="urn:myservice1" ...>

in myglobalpackage.pm:

	 package myglobalpackage;

	 sub MyServiceNumberOne {
	 ...

Good luck, Til


Ortner wrote:
> Hello,
>
> After many tries, and after reading newsgroup messages, I still have a
> problem.:
>
> I was running my SOAP service with dynamic dispatching (using
> ->dispatch_to('my/modules/path'). ) and everything was working...
> Each method had its own package: for example:
> file myservice1.pm :
> package myservice1;
> (...)
> sub myservice1{...}
> 1;
>
> but now I want to do some static dispatching: I need to put all
> methods into a single package:
> file myglobalpackage.pm :
> package myglobalpackage;
> (...)
> sub myservice1{...}
> sub myservice2{...}
> sub myservice3{...}
> 1;
>
> I have try to use
> use myglobalpackage;
> (..)
> ->dispatch_to('myglobalpackage')
>
> but when I call a service on client side, there is an error :
>
> faultstring = Failed to access class (myservice1): Can't locate
> myservice1.pm in @INC (@INC contains:) at (eval 125) line 3.
>
> I tried many different options, and the dispatch_with method, but
> nothing work...
>
> Thanks in advance for help..
>
> -----------------------------
> Benoit Ortner
> Comité Réseau des Universités
> -----------------------------
>
>
>
>
>
>
>
>
>
>
>
>
> To unsubscribe from this group, send an email to:
> soaplite-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>

#2980 From: "poulkornmod" <poul@...>
Date: Fri Sep 5, 2003 10:36 am
Subject: Re: Can't access class....
poulkornmod
Send Email Send Email
 
Hi,

If you have the package outside the soap cgi file - you need perl to
reference to it! Either by placing your globalpackage.pm in you @INC
path (eg. place it in the perl home) or include the path to the
distinct folder by use lib '/path to my globalpackage.pm'

eg.

use lib './'             # same folder as your soap cgi script

Brgds

Poul Kornmod

--- In soaplite@yahoogroups.com, Tilman Koschnick <til@b...> wrote:
> Hi,
>
> I had the same problem, and for me the dispatch_with did the trick:
>
> ->dispatch_with({
>            'urn:myservice1' => 'myglobalpackage'
> })
>
> Note that the URN and the element name in the SOAP body don't have
to be
> the same. In the dispatch_with call, you have to use the URN, but
in
> your package the element name:
>
> in the SOAP message:
>
>  <SOAP-ENV:Body>
>  <MyServiceNumberOne xmlns="urn:myservice1" ...>
>
> in myglobalpackage.pm:
>
>  package myglobalpackage;
>
>  sub MyServiceNumberOne {
>  ...
>
> Good luck, Til
>
>
> Ortner wrote:
> > Hello,
> >
> > After many tries, and after reading newsgroup messages, I still
have a
> > problem.:
> >
> > I was running my SOAP service with dynamic dispatching (using
> > ->dispatch_to('my/modules/path'). ) and everything was working...
> > Each method had its own package: for example:
> > file myservice1.pm :
> > package myservice1;
> > (...)
> > sub myservice1{...}
> > 1;
> >
> > but now I want to do some static dispatching: I need to put all
> > methods into a single package:
> > file myglobalpackage.pm :
> > package myglobalpackage;
> > (...)
> > sub myservice1{...}
> > sub myservice2{...}
> > sub myservice3{...}
> > 1;
> >
> > I have try to use
> > use myglobalpackage;
> > (..)
> > ->dispatch_to('myglobalpackage')
> >
> > but when I call a service on client side, there is an error :
> >
> > faultstring = Failed to access class (myservice1): Can't locate
> > myservice1.pm in @INC (@INC contains:) at (eval 125) line 3.
> >
> > I tried many different options, and the dispatch_with method, but
> > nothing work...
> >
> > Thanks in advance for help..
> >
> > -----------------------------
> > Benoit Ortner
> > Comité Réseau des Universités
> > -----------------------------
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > To unsubscribe from this group, send an email to:
> > soaplite-unsubscribe@yahoogroups.com
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >

#2981 From: "jigsaw9876" <jigsaw9876@...>
Date: Fri Sep 5, 2003 11:11 am
Subject: Re: Attachments
jigsaw9876
Send Email Send Email
 
Hi,

That didn't quite work either.
I have tracing at the client side (I don't think I know/understand how
to start tracing at server side though I have read various messages on
that subject :-( ) And this is what it looks like:

Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.411 (Entity 5.404)

First line
Second line
Last line
SOAP::Transport::HTTP::Client::send_receive: POST
http://localhost/cgi-bin/test.cgi HTTP/1.1
Accept: text/xml
Accept: multipart/*
Content-Length: 927
Content-Type: Multipart/Related; type="text/xml";
start="<main_envelope>"; boundary="----------=_1062759837-19441-0";
charset=utf-8
SOAPAction: "Test#test"

This is a multi-part message in MIME format...

------------=_1062759837-19441-0
Content-Type: text/xml
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Content-Location: /main_envelope
Content-Id: <main_envelope>

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body><namesp1:test
xmlns:namesp1="Test"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
------------=_1062759837-19441-0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.411 (Entity 5.404)

First line
Second line
Last line

------------=_1062759837-19441-0--

SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal
Server Error
Connection: close
Date: Fri, 05 Sep 2003 11:03:57 GMT
Server: Apache/1.3.26 (Unix) mod_jk/1.2.0
Content-Length: 567
Content-Type: text/xml; charset=utf-8
Client-Date: Fri, 05 Sep 2003 11:03:57 GMT
Client-Response-Num: 1
SOAPServer: SOAP::Lite/Perl/0.60

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Can't use an undefined value as a ARRAY reference at
Test.pm line 16.
</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>


Any ideas?

TIA,
JS



--- In soaplite@yahoogroups.com, "Byrne Reese" <byrne@m...> wrote:
> Try this variant which in another example...
>
> foreach my $part (${$som->parts}) {
>   print $part->stringify;
> }
>
> However, it LOOKS like $som->parts is undefined all together, which
would
> probably produce the same error. Have you verified that the server is
> receiving a MIME message? Meaning have you traced what the client is
> sending and receiving?
>

#2982 From: "Ortner" <benoit.ortner@...>
Date: Fri Sep 5, 2003 11:38 am
Subject: Re: Can't access class....
ptirup
Send Email Send Email
 
Thanks for all your answers, now it works with the Tilman's method
(with dispatch_with)

Regards

-----------------------------
Benoit Ortner
Comité Réseau des Universités
-----------------------------

--- In soaplite@yahoogroups.com, Tilman Koschnick <til@b...> wrote:
> Hi,
>
> I had the same problem, and for me the dispatch_with did the trick:
>
> ->dispatch_with({
>            'urn:myservice1' => 'myglobalpackage'
> })
>
> Note that the URN and the element name in the SOAP body don't have
to be
> the same. In the dispatch_with call, you have to use the URN, but in
> your package the element name:
>
> in the SOAP message:
>
>  <SOAP-ENV:Body>
>  <MyServiceNumberOne xmlns="urn:myservice1" ...>
>
> in myglobalpackage.pm:
>
>  package myglobalpackage;
>
>  sub MyServiceNumberOne {
>  ...
>
> Good luck, Til
>
>
> Ortner wrote:
> > Hello,
> >
> > After many tries, and after reading newsgroup messages, I still have a
> > problem.:
> >
> > I was running my SOAP service with dynamic dispatching (using
> > ->dispatch_to('my/modules/path'). ) and everything was working...
> > Each method had its own package: for example:
> > file myservice1.pm :
> > package myservice1;
> > (...)
> > sub myservice1{...}
> > 1;
> >
> > but now I want to do some static dispatching: I need to put all
> > methods into a single package:
> > file myglobalpackage.pm :
> > package myglobalpackage;
> > (...)
> > sub myservice1{...}
> > sub myservice2{...}
> > sub myservice3{...}
> > 1;
> >
> > I have try to use
> > use myglobalpackage;
> > (..)
> > ->dispatch_to('myglobalpackage')
> >
> > but when I call a service on client side, there is an error :
> >
> > faultstring = Failed to access class (myservice1): Can't locate
> > myservice1.pm in @INC (@INC contains:) at (eval 125) line 3.
> >
> > I tried many different options, and the dispatch_with method, but
> > nothing work...
> >
> > Thanks in advance for help..
> >
> > -----------------------------
> > Benoit Ortner
> > Comité Réseau des Universités
> > -----------------------------
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > To unsubscribe from this group, send an email to:
> > soaplite-unsubscribe@yahoogroups.com
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >

#2983 From: "jigsaw9876" <jigsaw9876@...>
Date: Mon Sep 8, 2003 2:14 pm
Subject: Re: Attachments
jigsaw9876
Send Email Send Email
 
Hi,

   Can anyone provide me with a working piece of code sending and receiving
attachments using soaplite, please? I am quite new to perl/soaplite, so could be
making some obvious mistakes. Would appreciate any help. Should I resort to
Axis?

Thanks.
JS

#2984 From: "hurricane_san" <hurricane_san@...>
Date: Tue Sep 9, 2003 9:41 am
Subject: Get name+type+value of a dynamic set of data on server side.
hurricane_san
Send Email Send Email
 
Hello,


I'm trying to use SOAP::Lite on a server.
It's easy to get the parameters values, by order or by name.
It's what I need for most of the calls but one.

What I would do is to get every SOAP::Data sent to me.
I would like to be able to get their name and value (and if possible,
their type).
I'm not supposed to know what and how much will be sent to me (just
that it will be strings or integers).

What's the easiest way to do it ?

Thanks for your answers,


E.

#2985 From: Mark Cance <mark@...>
Date: Thu Sep 11, 2003 9:16 am
Subject: Segfault
mscance
Send Email Send Email
 
SOAP::Lite is working really well on our development servers. However I’ve just moved the code to our production machines and it seems to be causing a segfault.

I’m using, BSD, mod_perl-1.27, perl-5.8.0 and SOAP-Lite-0.55, with Apache::SOAP providing the transport. My apache error logs show; [Wed Sep 10 17:26:19 2003] [notice] child pid 27240 exit signal Segmentation fault (11)

My SOAP client (.NET WebService Studio), returns the exception; System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive.

This seems confirm the segfault. Any ideas on the cause would be very, very welcome!

Mark

#2986 From: "Byrne Reese" <byrne@...>
Date: Thu Sep 11, 2003 1:49 pm
Subject: Re: Segfault
byrnereese
Send Email Send Email
 
I am not necessarily saying you are wrong - but I am not convinced that
SOAP::Lite is causing the segfault - in my experience, segfaults typically
come from compiled code, which SOAP::Lite it not. Chances are, mod_perl is
coring.

Check your config - and gdb on your httpd process. It's easy:

* start apache and wait for the httpd processes to spin up
* do a `ps -aef` and find the pid number of one of the httpd processes
* run `gdb <pid>`
* then type 'run'
* hit your apache server with .NET until the process you attached yourself
to cores, then type 'bt'

You will most likely see that mod_perl is the culprit - when it is, it is
usually due to a bad install... try recompiling mod_perl (make clean
first)...


> SOAP::Lite is working really well on our development servers. However I¹ve
> just moved the code to our production machines and it seems to be causing
> a
> segfault.
>
> I¹m using, BSD, mod_perl-1.27, perl-5.8.0 and SOAP-Lite-0.55, with
> Apache::SOAP providing the transport. My apache error logs show; [Wed Sep
> 10
> 17:26:19 2003] [notice] child pid 27240 exit signal Segmentation fault
> (11)
>
> My SOAP client (.NET WebService Studio), returns the exception;
> System.Reflection.TargetInvocationException: Exception has been thrown by
> the target of an invocation. ---> System.Net.WebException: The underlying
> connection was closed: An unexpected error occurred on a receive.
>
> This seems confirm the segfault. Any ideas on the cause would be very,
> very
> welcome!
>
> Mark
>
>


^byrne :/

#2987 From: "alpark444" <alpark444@...>
Date: Thu Sep 11, 2003 3:50 pm
Subject: Newbie to SOAP::Lite
alpark444
Send Email Send Email
 
Hello,

Is it possible to have the server take an array from the client, run a
script on the server side and return a hash to the client?

If so are there any examples or could someone direct me to some
information about this?

Thanks in advance for your help.

-Al

#2988 From: Mark Cance <mark@...>
Date: Thu Sep 11, 2003 3:52 pm
Subject: Re: Segfault
mscance
Send Email Send Email
 
I have a nasty feeling you right!! I will investigate further, thanks for
the advice.

Mark.

On 11/9/03 2:49 pm, "Byrne Reese" <byrne@...> wrote:

> I am not necessarily saying you are wrong - but I am not convinced that
> SOAP::Lite is causing the segfault - in my experience, segfaults typically
> come from compiled code, which SOAP::Lite it not. Chances are, mod_perl is
> coring.
>
> Check your config - and gdb on your httpd process. It's easy:
>
> * start apache and wait for the httpd processes to spin up
> * do a `ps -aef` and find the pid number of one of the httpd processes
> * run `gdb <pid>`
> * then type 'run'
> * hit your apache server with .NET until the process you attached yourself
> to cores, then type 'bt'
>
> You will most likely see that mod_perl is the culprit - when it is, it is
> usually due to a bad install... try recompiling mod_perl (make clean
> first)...
>
>
>> SOAP::Lite is working really well on our development servers. However I¹ve
>> just moved the code to our production machines and it seems to be causing
>> a
>> segfault.
>>
>> I¹m using, BSD, mod_perl-1.27, perl-5.8.0 and SOAP-Lite-0.55, with
>> Apache::SOAP providing the transport. My apache error logs show; [Wed Sep
>> 10
>> 17:26:19 2003] [notice] child pid 27240 exit signal Segmentation fault
>> (11)
>>
>> My SOAP client (.NET WebService Studio), returns the exception;
>> System.Reflection.TargetInvocationException: Exception has been thrown by
>> the target of an invocation. ---> System.Net.WebException: The underlying
>> connection was closed: An unexpected error occurred on a receive.
>>
>> This seems confirm the segfault. Any ideas on the cause would be very,
>> very
>> welcome!
>>
>> Mark
>>
>>
>
>
> ^byrne :/
>

#2989 From: "teden" <the@...>
Date: Thu Sep 11, 2003 7:35 pm
Subject: SOAP::Data and XML Schema Definition
teden
Send Email Send Email
 
Folks,

Is there a way to specify the .xsd file used to validate the XML
being passed to/from a SOAP::Lite service?

Thom Eden

#2990 From: Marten Lehmann <lehmann@...>
Date: Fri Sep 12, 2003 11:49 am
Subject: sending and retrieving values by name
martenlehmann
Send Email Send Email
 
Hi,

at http://guide.soaplite.com/#types%20and%20names I found some
information about using types and names for SOAP-calls by names. But I
couldn't any trick on how to use this in a SOAP-call. I need to know
this for the client and for the server-side. Also, the return-values
shall be typed and named. Where can I find information about that? I
couldn't find any examples for that on soaplite.com.

Regards
Marten

#2991 From: "Thom Eden" <the@...>
Date: Fri Sep 12, 2003 2:29 pm
Subject: SOAP::Lite server side input processing
teden
Send Email Send Email
 
Folks,

I am trying to write a bit of code on the server side to evaluate the incoming
parameters from my client. My incoming XML looks like this:

<soap header...>
<INPUT_VARIABLES>
   <Input_var varName="AAA">1</Input_var>
   <Input_var varName="BBB">Test</Input_var>
   <Input_var varName="CCC">267</Input_var>
   <Input_var varName="DDD">Johnson</Input_var>
</INPUT_VARIABLES>

On the server side, I can grab the array using something like

myMethod {
   my($self, $in) = @_;
   my @input = @{$in};
   foreach my $input (@input) {
     print $input, "\n";
   }
}

Unfortunately, I can't seem to get the attribute (varName = ?) out f this. Do I
need to coerce the array element into a hash? If this were a SOM object, I could
evaluate the attribute using $som->attr{'varName'}...

Any help is greatly appreciated!

Thom Eden

#2992 From: Duncan Cameron <duncan_cameron2002@...>
Date: Fri Sep 12, 2003 3:57 pm
Subject: Re: SOAP::Lite server side input processing
duncan_camer...
Send Email Send Email
 
--- Thom Eden <the@...> wrote:
> Folks,
>
> I am trying to write a bit of code on the server side to evaluate the
> incoming parameters from my client. My incoming XML looks like this:
>
> <soap header...>
> <INPUT_VARIABLES>
>   <Input_var varName="AAA">1</Input_var>
>   <Input_var varName="BBB">Test</Input_var>
>   <Input_var varName="CCC">267</Input_var>
>   <Input_var varName="DDD">Johnson</Input_var>
> </INPUT_VARIABLES>
>
> On the server side, I can grab the array using something like
>
> myMethod {
>   my($self, $in) = @_;
>   my @input = @{$in};
>   foreach my $input (@input) {
>     print $input, "\n";
>   }
> }
>
> Unfortunately, I can't seem to get the attribute (varName = ?) out f
> this. Do I need to coerce the array element into a hash? If this were
> a SOM object, I could evaluate the attribute using
> $som->attr{'varName'}...

You can get the SOM object by inheriting from SOAP::Server::Parameters
class. See "ACCESSING HEADERS AND ENVELOPE ON SERVER SIDE" in the docs
for an example.

Duncan


________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

#2993 From: "Thom Eden" <the@...>
Date: Fri Sep 12, 2003 4:42 pm
Subject: Re: SOAP::Lite server side input processing
teden
Send Email Send Email
 
Duncan,

Thanks, I found that in the docs about 15 minutes after I posted. I got it
working like a champ now...

Thom

---------- Original Message ----------------------------------
From: Duncan Cameron <duncan_cameron2002@...>
Date: Fri, 12 Sep 2003 16:57:44 +0100 (BST)

> --- Thom Eden <the@...> wrote:
>> Folks,
>>
>> I am trying to write a bit of code on the server side to evaluate the
>> incoming parameters from my client. My incoming XML looks like this:
>>
>> <soap header...>
>> <INPUT_VARIABLES>
>>   <Input_var varName="AAA">1</Input_var>
>>   <Input_var varName="BBB">Test</Input_var>
>>   <Input_var varName="CCC">267</Input_var>
>>   <Input_var varName="DDD">Johnson</Input_var>
>> </INPUT_VARIABLES>
>>
>> On the server side, I can grab the array using something like
>>
>> myMethod {
>>   my($self, $in) = @_;
>>   my @input = @{$in};
>>   foreach my $input (@input) {
>>     print $input, "\n";
>>   }
>> }
>>
>> Unfortunately, I can't seem to get the attribute (varName = ?) out f
>> this. Do I need to coerce the array element into a hash? If this were
>> a SOM object, I could evaluate the attribute using
>> $som->attr{'varName'}...
>
>You can get the SOM object by inheriting from SOAP::Server::Parameters
>class. See "ACCESSING HEADERS AND ENVELOPE ON SERVER SIDE" in the docs
>for an example.
>
>Duncan
>
>
>________________________________________________________________________
>Want to chat instantly with your online friends?  Get the FREE Yahoo!
>Messenger http://mail.messenger.yahoo.co.uk
>
>
>To unsubscribe from this group, send an email to:
>soaplite-unsubscribe@yahoogroups.com
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>

#2994 From: "alpark444" <alpark444@...>
Date: Fri Sep 12, 2003 5:33 pm
Subject: What am I doing wrong?
alpark444
Send Email Send Email
 
I've got a simple cgi server with client running like one of the
examples in a tutorial, however, it doesn't print the return.

I tried the +trace=>all option and I can see the output between tags.
  Is there something that I forgot to do?

SOAP::Transport::new: ()
SOAP::Serializer::new: ()
SOAP::Deserializer::new: ()
SOAP::Parser::new: ()
SOAP::Lite::new: ()
SOAP::Transport::HTTP::Client::new: ()
SOAP::Lite::call: ()
SOAP::Serializer::envelope: ()
SOAP::Serializer::envelope: hi
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x831b3ac)
SOAP::Transport::HTTP::Client::send_receive: POST
http://www.somewhere.com/cgi-bin/hibye.cgi
Accept: text/xml
Accept: multipart/*
Content-Length: 446
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.somewhere.com/Demo#hi"

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Bod\
y><namesp1:hi
xmlns:namesp1="http://www.somewhere.com/Demo"/></SOAP-ENV:Body></SOAP-ENV:Envelo\
pe>
SOAP::Transport::HTTP::Client::send_receive:
HTTP::Response=HASH(0x848c520)
SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK
Connection: close
Date: Fri, 12 Sep 2003 17:24:20 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Content-Length: 531
Content-Type: text/xml; charset=utf-8
Client-Date: Fri, 12 Sep 2003 17:24:20 GMT
Client-Peer: 10.100.2.178:80
Client-Response-Num: 1
SOAPServer: SOAP::Lite/Perl/0.55

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Bod\
y><namesp1:hiResponse
xmlns:namesp1="http://www.somewhere.com/Demo"><s-gensym3
xsi:type="xsd:string">hello,
world</s-gensym3></namesp1:hiResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
SOAP::Deserializer::deserialize: ()
SOAP::Parser::decode: ()
SOAP::SOM::new: ()
SOAP::Lite::DESTROY: ()
SOAP::Deserializer::DESTROY: ()
SOAP::Parser::DESTROY: ()
SOAP::Transport::DESTROY: ()
SOAP::Transport::HTTP::Client::DESTROY: ()
SOAP::Serializer::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::Data::DESTROY: ()
SOAP::SOM::DESTROY: ()

#2995 From: Mark Cance <mark@...>
Date: Mon Sep 15, 2003 3:02 pm
Subject: Re: Segfault
mscance
Send Email Send Email
 
Hi,

I've gone back and done a clean install of everything. Once again apache,
mod_perl and my other apps work fine but when I issue a request to my
service via Apache::SOAP I get a seg fault in my apache logs.

I have no idea what's the cause. Byrne I tried to hook into a http process
and debug without much luck; I did a 'top', got a PID of a httpd process and
tried to run it, either the process STATE=stop or gdb returned 'No
executable file specified' after typing run... Forgive me for sounding
stupid but I'm a gdb newbie!!

Any ideas on the cause would be really welcome as this has me really
scratching my head!!

Here's how I compiled apache/mod_ssl and mod_perl, (this setup has worked
for me many times in the past)

#config mod_ssl
$ cd mod_ssl-2.8.x-1.3.x
$ ./configure --with-apache=../apache_1.3.26
$ cd..

#mod_perl
$ cd mod_perl-1.27
$ perl Makefile.PL \
#EVERYTHING=1 \
#USE_APACI=1 \
#DYNAMIC=1 \
#APACHE_PREFIX=/usr/local/apache \
#APACHE_SRC=../apache_1.3.26/src \
#DO_HTTPD=1 \
#APACI_ARGS="--enable-module=so --enable-shared=info --enable-shared=proxy
--enable-shared=rewrite --enable-shared=log_agent"
$ make
$ make install

#apache
$ cd ../apache_1.3.26
$ SSL_BASE=SYSTEM \
./configure \
--prefix=/usr/local/apache \
--enable-module=ssl \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl \
--enable-module=so \
--enable-shared=info \
--enable-shared=proxy \
--enable-shared=rewrite \
--enable-shared=log_agent
$ make
$ make install


On 11/9/03 2:49 pm, "Byrne Reese" <byrne@...> wrote:

> I am not necessarily saying you are wrong - but I am not convinced that
> SOAP::Lite is causing the segfault - in my experience, segfaults typically
> come from compiled code, which SOAP::Lite it not. Chances are, mod_perl is
> coring.
>
> Check your config - and gdb on your httpd process. It's easy:
>
> * start apache and wait for the httpd processes to spin up
> * do a `ps -aef` and find the pid number of one of the httpd processes
> * run `gdb <pid>`
> * then type 'run'
> * hit your apache server with .NET until the process you attached yourself
> to cores, then type 'bt'
>
> You will most likely see that mod_perl is the culprit - when it is, it is
> usually due to a bad install... try recompiling mod_perl (make clean
> first)...
>
>
>> SOAP::Lite is working really well on our development servers. However I¹ve
>> just moved the code to our production machines and it seems to be causing
>> a
>> segfault.
>>
>> I¹m using, BSD, mod_perl-1.27, perl-5.8.0 and SOAP-Lite-0.55, with
>> Apache::SOAP providing the transport. My apache error logs show; [Wed Sep
>> 10
>> 17:26:19 2003] [notice] child pid 27240 exit signal Segmentation fault
>> (11)
>>
>> My SOAP client (.NET WebService Studio), returns the exception;
>> System.Reflection.TargetInvocationException: Exception has been thrown by
>> the target of an invocation. ---> System.Net.WebException: The underlying
>> connection was closed: An unexpected error occurred on a receive.
>>
>> This seems confirm the segfault. Any ideas on the cause would be very,
>> very
>> welcome!
>>
>> Mark
>>
>>
>
>
> ^byrne :/
>

#2996 From: Paul Kulchenko <paulclinger@...>
Date: Mon Sep 15, 2003 4:01 pm
Subject: Re: Segfault
paulclinger
Send Email Send Email
 
Mark,

The only things that comes to mind is to look at the "Apache is
crashing with segfaults" section:
http://theoryx5.uwinnipeg.ca/CPAN/data/SOAP-Lite/SOAP/Transport/HTTP.html#TROUBL\
ESHOOTING

Best wishes, Paul.

--- Mark Cance <mark@...> wrote:
> Hi,
>
> I've gone back and done a clean install of everything. Once again
> apache,
> mod_perl and my other apps work fine but when I issue a request to
> my
> service via Apache::SOAP I get a seg fault in my apache logs.
>
> I have no idea what's the cause. Byrne I tried to hook into a http
> process
> and debug without much luck; I did a 'top', got a PID of a httpd
> process and
> tried to run it, either the process STATE=stop or gdb returned 'No
> executable file specified' after typing run... Forgive me for
> sounding
> stupid but I'm a gdb newbie!!
>
> Any ideas on the cause would be really welcome as this has me
> really
> scratching my head!!
>
> Here's how I compiled apache/mod_ssl and mod_perl, (this setup has
> worked
> for me many times in the past)
>
> #config mod_ssl
> $ cd mod_ssl-2.8.x-1.3.x
> $ ./configure --with-apache=../apache_1.3.26
> $ cd..
>
> #mod_perl
> $ cd mod_perl-1.27
> $ perl Makefile.PL \
> #EVERYTHING=1 \
> #USE_APACI=1 \
> #DYNAMIC=1 \
> #APACHE_PREFIX=/usr/local/apache \
> #APACHE_SRC=../apache_1.3.26/src \
> #DO_HTTPD=1 \
> #APACI_ARGS="--enable-module=so --enable-shared=info
> --enable-shared=proxy
> --enable-shared=rewrite --enable-shared=log_agent"
> $ make
> $ make install
>
> #apache
> $ cd ../apache_1.3.26
> $ SSL_BASE=SYSTEM \
> ./configure \
> --prefix=/usr/local/apache \
> --enable-module=ssl \
> --activate-module=src/modules/perl/libperl.a \
> --enable-module=perl \
> --enable-module=so \
> --enable-shared=info \
> --enable-shared=proxy \
> --enable-shared=rewrite \
> --enable-shared=log_agent
> $ make
> $ make install
>
>
> On 11/9/03 2:49 pm, "Byrne Reese" <byrne@...> wrote:
>
> > I am not necessarily saying you are wrong - but I am not
> convinced that
> > SOAP::Lite is causing the segfault - in my experience, segfaults
> typically
> > come from compiled code, which SOAP::Lite it not. Chances are,
> mod_perl is
> > coring.
> >
> > Check your config - and gdb on your httpd process. It's easy:
> >
> > * start apache and wait for the httpd processes to spin up
> > * do a `ps -aef` and find the pid number of one of the httpd
> processes
> > * run `gdb <pid>`
> > * then type 'run'
> > * hit your apache server with .NET until the process you attached
> yourself
> > to cores, then type 'bt'
> >
> > You will most likely see that mod_perl is the culprit - when it
> is, it is
> > usually due to a bad install... try recompiling mod_perl (make
> clean
> > first)...
> >
> >
> >> SOAP::Lite is working really well on our development servers.
> However I¹ve
> >> just moved the code to our production machines and it seems to
> be causing
> >> a
> >> segfault.
> >>
> >> I¹m using, BSD, mod_perl-1.27, perl-5.8.0 and SOAP-Lite-0.55,
> with
> >> Apache::SOAP providing the transport. My apache error logs show;
> [Wed Sep
> >> 10
> >> 17:26:19 2003] [notice] child pid 27240 exit signal Segmentation
> fault
> >> (11)
> >>
> >> My SOAP client (.NET WebService Studio), returns the exception;
> >> System.Reflection.TargetInvocationException: Exception has been
> thrown by
> >> the target of an invocation. ---> System.Net.WebException: The
> underlying
> >> connection was closed: An unexpected error occurred on a
> receive.
> >>
> >> This seems confirm the segfault. Any ideas on the cause would be
> very,
> >> very
> >> welcome!
> >>
> >> Mark
> >>
> >>
> >
> >
> > ^byrne :/
> >
>
>
> ------------------------ Yahoo! Groups Sponsor
>
> To unsubscribe from this group, send an email to:
> soaplite-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>

#2997 From: Mark Cance <mark@...>
Date: Mon Sep 15, 2003 4:16 pm
Subject: Re: Segfault
mscance
Send Email Send Email
 
Thanks Paul, seems to hint towards a similar problem I will compile
everything again tomorrow with the --disable-rule=EXPAT flag.

Cheers,
Mark.

On 15/9/03 5:01 pm, "Paul Kulchenko" <paulclinger@...> wrote:

> Mark,
>
> The only things that comes to mind is to look at the "Apache is
> crashing with segfaults" section:
> http://theoryx5.uwinnipeg.ca/CPAN/data/SOAP-Lite/SOAP/Transport/HTTP.html#TROU
> BLESHOOTING
>
> Best wishes, Paul.
>
> --- Mark Cance <mark@...> wrote:
>> Hi,
>>
>> I've gone back and done a clean install of everything. Once again
>> apache,
>> mod_perl and my other apps work fine but when I issue a request to
>> my
>> service via Apache::SOAP I get a seg fault in my apache logs.
>>
>> I have no idea what's the cause. Byrne I tried to hook into a http
>> process
>> and debug without much luck; I did a 'top', got a PID of a httpd
>> process and
>> tried to run it, either the process STATE=stop or gdb returned 'No
>> executable file specified' after typing run... Forgive me for
>> sounding
>> stupid but I'm a gdb newbie!!
>>
>> Any ideas on the cause would be really welcome as this has me
>> really
>> scratching my head!!
>>
>> Here's how I compiled apache/mod_ssl and mod_perl, (this setup has
>> worked
>> for me many times in the past)
>>
>> #config mod_ssl
>> $ cd mod_ssl-2.8.x-1.3.x
>> $ ./configure --with-apache=../apache_1.3.26
>> $ cd..
>>
>> #mod_perl
>> $ cd mod_perl-1.27
>> $ perl Makefile.PL \
>> #EVERYTHING=1 \
>> #USE_APACI=1 \
>> #DYNAMIC=1 \
>> #APACHE_PREFIX=/usr/local/apache \
>> #APACHE_SRC=../apache_1.3.26/src \
>> #DO_HTTPD=1 \
>> #APACI_ARGS="--enable-module=so --enable-shared=info
>> --enable-shared=proxy
>> --enable-shared=rewrite --enable-shared=log_agent"
>> $ make
>> $ make install
>>
>> #apache
>> $ cd ../apache_1.3.26
>> $ SSL_BASE=SYSTEM \
>> ./configure \
>> --prefix=/usr/local/apache \
>> --enable-module=ssl \
>> --activate-module=src/modules/perl/libperl.a \
>> --enable-module=perl \
>> --enable-module=so \
>> --enable-shared=info \
>> --enable-shared=proxy \
>> --enable-shared=rewrite \
>> --enable-shared=log_agent
>> $ make
>> $ make install
>>
>>
>> On 11/9/03 2:49 pm, "Byrne Reese" <byrne@...> wrote:
>>
>>> I am not necessarily saying you are wrong - but I am not
>> convinced that
>>> SOAP::Lite is causing the segfault - in my experience, segfaults
>> typically
>>> come from compiled code, which SOAP::Lite it not. Chances are,
>> mod_perl is
>>> coring.
>>>
>>> Check your config - and gdb on your httpd process. It's easy:
>>>
>>> * start apache and wait for the httpd processes to spin up
>>> * do a `ps -aef` and find the pid number of one of the httpd
>> processes
>>> * run `gdb <pid>`
>>> * then type 'run'
>>> * hit your apache server with .NET until the process you attached
>> yourself
>>> to cores, then type 'bt'
>>>
>>> You will most likely see that mod_perl is the culprit - when it
>> is, it is
>>> usually due to a bad install... try recompiling mod_perl (make
>> clean
>>> first)...
>>>
>>>
>>>> SOAP::Lite is working really well on our development servers.
>> However I?ve
>>>> just moved the code to our production machines and it seems to
>> be causing
>>>> a
>>>> segfault.
>>>>
>>>> I?m using, BSD, mod_perl-1.27, perl-5.8.0 and SOAP-Lite-0.55,
>> with
>>>> Apache::SOAP providing the transport. My apache error logs show;
>> [Wed Sep
>>>> 10
>>>> 17:26:19 2003] [notice] child pid 27240 exit signal Segmentation
>> fault
>>>> (11)
>>>>
>>>> My SOAP client (.NET WebService Studio), returns the exception;
>>>> System.Reflection.TargetInvocationException: Exception has been
>> thrown by
>>>> the target of an invocation. ---> System.Net.WebException: The
>> underlying
>>>> connection was closed: An unexpected error occurred on a
>> receive.
>>>>
>>>> This seems confirm the segfault. Any ideas on the cause would be
>> very,
>>>> very
>>>> welcome!
>>>>
>>>> Mark
>>>>
>>>>
>>>
>>>
>>> ^byrne :/
>>>
>>
>>
>> ------------------------ Yahoo! Groups Sponsor
>>
>> To unsubscribe from this group, send an email to:
>> soaplite-unsubscribe@yahoogroups.com
>>
>>
>>
>> Your use of Yahoo! Groups is subject to
>> http://docs.yahoo.com/info/terms/
>>
>>
>
>

Messages 2968 - 2997 of 6629   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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