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 2944 - 2973 of 6629   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#2944 From: "Byrne Reese" <byrne@...>
Date: Sun Aug 24, 2003 3:59 pm
Subject: Re: Help if you can
byrnereese
Send Email Send Email
 
If the schema and WSDL URL's you provided below are the permanent
locations of these documents than I believe the answer is simple:

* your schema import is failing because no schema exisits at the end of
your WSDL's import statment.

I tried loading:
https://pirp.caiso.com/schemas/pirp/v1

And nothing came up. I would also think that HTTPS is not the best
protocol for storing the schema. :-/

If the types never get defined, the deserializer will never work.

> I've written soap clients before but never
> anything this complicated. Here are the links
>
> PIRP: http://homer.meso.com/crap/PIRP_Schema_v1.xsd
> WSDL: http://homer.meso.com/crap/OperationsService.wsdl
>
> Here is a link to what the XML request is supposed to look like
> http://homer.meso.com/crap/getIntervalData_request.txt
>
> Here is my perl script
>
> http://homer.meso.com/crap/perl.txt
>
>
> This is what I get
> http://homer.meso.com/crap/getIntervalData_request.txt
>
>
>>;faultstring
> &apos;intervals&apos;:  could not find deserializer for type
> ArrayOfOperationInterval>;/faultstring
>
> for some reason that is wrong and for the life of me I canot figure
> out why.
>
>
> it almost seems like the wsdl file might be wrong.. but i think its
> in the perl
>
>
>
>
>
>
>
>
>
> 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 :/

#2945 From: "Byrne Reese" <byrne@...>
Date: Sun Aug 24, 2003 4:50 pm
Subject: Re: Basic Authentication with SOAP::Lite?
byrnereese
Send Email Send Email
 
You will need to wrap your authentication code in a BEGIN block... like so:

BEGIN {
   sub SOAP::Transport::HTTP::Client::get_basic_credentials {
     return 'username' => 'password';
   }
}

>
>
>
>
> Hi,
>
> I'm getting an error when I'm trying to use the
> Authentication Basic in SOAP::Lite.
> I'm using a Soap::Lite based Perl client accessing
> Apache Axis based on java service.
> I verified if the LWP::Authen::Basic module is well
> installed as well as other modules.
> I read the http://guide.soaplite.com/ and I tried to
> use all the techniques mentioned in the guide to pass
> the user and password, they don't seem to work!
> Looking at the code, nothing seems to be implemented!
>
> Here's a part of my perl client code:
>
> #! /usr/bin/perl -w
>
> use Data::Dumper;
> use Env;
> use SOAP::Lite +trace =
>         on_fault =
>                 eval { die ref $res ?
> $res-
> $soap-
>                 return ref $res ? $res : new
> SOAP::SOM;
>         };
>
> $HOST="http://quadri:4043/xxxxxxx/HelloIF";
> $NS="urn:x-netcelo:xxxxxxxxx.HelloIF";
> $PHRASE=shift;
>
> my $soap= SOAP::Lite
>         -
>         -
>         -
>
> sub
> SOAP::Transport::HTTP::Client::get_basic_credentials {
>   return 'username' =
>        }
>
> my $som=$soap
>         -
> print "The response from the server was: \n"
> .$som-
> 1;
>
> Here is  a  trace fragment for the call from perl
> client:  (I used Dumper method in the method
> "send_receive" from /SOAP/Transport/HTTP.pm to dump
> the $req (an instance from the  HTTP::Request class) )
>
>
>  bless( {
>                  '_method' =
>                  '_headers' =
>                                         'soapaction'
> =
> '"urn:x-netcelo:webServices.HelloIF#sayHello"',
>
>                                         'content-type'
> =
> charset=utf-8',
>
> 'content-length' =
>                                         'accept' =
>
> 'text/xml',
>
> 'multipart/*'
>                                                     ]
>                                       },
> 'HTTP::Headers' ),
>                  '_uri' =
> 'http://quadri:4043/wservices/HelloIF')},
> 'URI::http' ),
>                  '_content' =;?xml version="1.0"
> encoding="UTF-8"?
>>;SOAP-ENV:Envelope
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/1999/XMLSchema"
>
>   >;SOAP-ENV:Body
>     >;namesp1:sayHello
> xmlns:namesp1="urn:x-netcelo:webServices.HelloIF"
>       >;c-gensym4 xsi:type="xsd:string"
>
> ;/c-gensym4;/namesp1:sayHello;/SOAP-ENV:Body;/SOAP-ENV:Envelope
>
>                }, 'HTTP::Request' );
>
> If we modify SOAP/Transport/HTTP.pm (send_recieve) we
> can explicitly add the basic_authentication header.
> However we have found no correct way of passing the
> authentication parameters with the standard SOAP::Lite
> interface. The "proxy" method accepts parameters that
> are methods from LWP::UserAgent, but they are
> not used....
>
> What am I missing?
> Thanks for your help..
>
> Best regards,
> Lina
>
>
>
>
>
>
>
>
>
> 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 :/

#2946 From: "gdhgdh" <gdh@...>
Date: Mon Aug 25, 2003 2:22 pm
Subject: RedHat strikes (shrikes?) again :/
gdhgdh
Send Email Send Email
 
Hi :)

I'm developing a series of non-WSDL SOAP services with SOAP::Lite and will be
using NuSOAP in PHP for the front-end (initially) .. the idea is to develop any
number of front ends for, PDAs, mobile phones, pocket PCs, SMS, etc. so SOAP
was the logical choice.

Now, I'm not a good programmer, but if I use my code on Debian 3.0, it works,
but
on RH9 with (AFAICS) the same Perl module versions (SOAP::Lite 0.55 on both) ,
I get an error when calling a superficial SOAP function... Can someone point me
in
the right direction?

My 'server.pl' is:
###########################################
#!/usr/bin/perl -w

use SOAP::Transport::HTTP;

my $daemon = SOAP::Transport::HTTP::Daemon
   -> new (LocalPort => 81, Reuse => 1)
   -> dispatch_to('/root/cham/modules',@INC);

print "Contact to SOAP server at ", $daemon->url, "\n";
$daemon->handle;
###########################################

and /root/cham/modules contains several .pm files.... the two I'm using to test
are
at
http://gdh.ca/TicketAuth.pm.txt
http://gdh.ca/Mailbox.pm.txt

This my my simple client code:

###############################################
#!/usr/bin/perl -w

use SOAP::Lite;# +trace => qw(debug);

print "Getting a valid session...";
$soap = SOAP::Lite
         -> uri('TicketAuth')
         -> proxy('http://10.0.0.1:81/cgi-bin/server.cgi');

#### Get a valid session - ALL remote methods need one to function.
$authInfo = ($soap->login('admin','password') -> result());
$authInfo = SOAP::Header->name(authInfo => $authInfo);
#### Now we can call the methods themselves.

print " done\n";

print "\nRunning remote method.\n";
$soap = SOAP::Lite
         -> uri('Mailbox')
         -> proxy('http://10.0.0.1:81/cgi-bin/server.cgi');

$result= $soap->genPassword($authInfo);
print $result->result();
###############################################

On Debian, this all works fine, and a newly generated Password is displayed, but
on RH9, I get:
eddie:~# perl client.pl
Getting a valid session... done

Running remote method.
SOAP-ENV:Client, Denied access to method (genPassword) in class (Mailbox) at
/usr/lib/perl5/site_perl/5.8.0/SOAP/Lite.pm line 2128.

Can anyone shed any light on this?

Cheers,
Gavin.

#2947 From: "gdhgdh" <gdh@...>
Date: Mon Aug 25, 2003 3:46 pm
Subject: SOLVED: Re: RedHat strikes (shrikes?) again :/
gdhgdh
Send Email Send Email
 
Oh for goodness' sakes.

I hadn't actually installed the Silly::Werder module, even though I could've
swore
blind that I had.

ARGH!

Cheers,
gdh

#2948 From: Lina Alshaal <lina.alchaal@...>
Date: Tue Aug 26, 2003 7:51 am
Subject: Re: Basic Authentication with SOAP::Lite?
linashaal
Send Email Send Email
 
Thanks a lot Byrne,

your are definitely right. I tested the code with another server, and it works pretty good.
I found that the problem which i met came from the Apache Axis server itself.

when the client program sent a SOAP message to the server, it sent it without any authentication parameters in the HTTP header. If the server requires such kind of information,  it sends back a '401 Unauthorized' message, thus the client sends back another HTTP message with the
authentication parameters.

In the Apache Axis, the server gets the client message without the authentication parameters and sends back a '500 Internal Server Error' !! it might be a misconfiguration from us!! Is there any way to force SOAP::Lite to send the authentication info in the first message without modifying the code?

Thanks for any pointers!
Best regards,
lina
 

Byrne Reese wrote:

You will need to wrap your authentication code in a BEGIN block... like so:

BEGIN {
  sub SOAP::Transport::HTTP::Client::get_basic_credentials {
    return 'username' => 'password';
  }
}

>
>
>
>
> Hi,
>
> I'm getting an error when I'm trying to use the
> Authentication Basic in SOAP::Lite.
> I'm using a Soap::Lite based Perl client accessing
> Apache Axis based on java service.
> I verified if the LWP::Authen::Basic module is well
> installed as well as other modules.
> I read the http://guide.soaplite.com/ and I tried to
> use all the techniques mentioned in the guide to pass
> the user and password, they don't seem to work!
> Looking at the code, nothing seems to be implemented!
>
> Here's a part of my perl client code:
>
> #! /usr/bin/perl -w
>
> use Data::Dumper;
> use Env;
> use SOAP::Lite +trace =
>         on_fault =
>                 eval { die ref $res ?
> $res-
> $soap-
>                 return ref $res ? $res : new
> SOAP::SOM;
>         };
>
> $HOST=&quot;http://quadri:4043/xxxxxxx/HelloIF&quot;;
> $NS=&quot;urn:x-netcelo:xxxxxxxxx.HelloIF&quot;;
> $PHRASE=shift;
>
> my $soap= SOAP::Lite
>         -
>         -
>         -
>
> sub
> SOAP::Transport::HTTP::Client::get_basic_credentials {
>   return 'username' =
>        }
>
> my $som=$soap
>         -
> print &quot;The response from the server was: \n&quot;
> .$som-
> 1;
>
> Here is  a  trace fragment for the call from perl
> client:  (I used Dumper method in the method
> &quot;send_receive&quot; from /SOAP/Transport/HTTP.pm to dump
> the $req (an instance from the  HTTP::Request class) )
>
>
>  bless( {
>                  '_method' =
>                  '_headers' =
>                                         'soapaction'
> =
> '&quot;urn:x-netcelo:webServices.HelloIF#sayHello&quot;',
>
>                                         'content-type'
> =
> charset=utf-8',
>
> 'content-length' =
>                                         'accept' =
>
> 'text/xml',
>
> 'multipart/*'
>                                                     ]
>                                       },
> 'HTTP::Headers' ),
>                  '_uri' =
> 'http://quadri:4043/wservices/HelloIF')},
> 'URI::http' ),
>                  '_content' =;?xml version=&quot;1.0&quot;
> encoding=&quot;UTF-8&quot;?
>>;SOAP-ENV:Envelope
> xmlns:SOAP-ENC=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
> SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
> xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;
> xmlns:xsi=&quot;http://www.w3.org/1999/XMLSchema-instance&quot;
> xmlns:xsd=&quot;http://www.w3.org/1999/XMLSchema&quot;
>
>   >;SOAP-ENV:Body
>     >;namesp1:sayHello
> xmlns:namesp1=&quot;urn:x-netcelo:webServices.HelloIF&quot;
>       >;c-gensym4 xsi:type=&quot;xsd:string&quot;
>
> ;/c-gensym4;/namesp1:sayHello;/SOAP-ENV:Body;/SOAP-ENV:Envelope
>
>                }, 'HTTP::Request' );
>
> If we modify SOAP/Transport/HTTP.pm (send_recieve) we
> can explicitly add the basic_authentication header.
> However we have found no correct way of passing the
> authentication parameters with the standard SOAP::Lite
> interface. The &quot;proxy&quot; method accepts parameters that
> are methods from LWP::UserAgent, but they are
> not used....
>
> What am I missing?
> Thanks for your help..
>
> Best regards,
> Lina
>
>
>
>
>
>
>
>
>
> 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 :/


#2949 From: "mzupan21" <mzupan21@...>
Date: Tue Aug 26, 2003 2:32 pm
Subject: mutliref help
mzupan21
Send Email Send Email
 
I'm getting closer.. My wsdl and my PIRP are setup right. I have been
assured of that. Here is the XML request i need to make

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
   <ns1:getIntervalData
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="https://www.caiso.com/webservices/pirp/OperationsService/1.0">
    <resId xsi:type="xsd:string">CABZON_1_WINDA1</resId>
    <intervals xsi:type="soapenc:Array"
soapenc:arrayType="ns2:OperationInterval[2]"
xmlns:ns2="https://pirp.caiso.com/schemas/pirp/v1"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
     <item href="#id0"/>
     <item href="#id1"/>
    </intervals>
   </ns1:getIntervalData>
   <multiRef id="id1" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:OperationInterval"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns3="https://pirp.caiso.com/schemas/pirp/v1">
    <operDate xsi:type="xsd:dateTime">2003-08-16T10:51:36.137Z</operDate>
    <hourEnding xsi:type="soapenc:int">16</hourEnding>
    <intervalId xsi:type="soapenc:int">6</intervalId>
   </multiRef>
   <multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns4:OperationInterval"
xmlns:ns4="https://pirp.caiso.com/schemas/pirp/v1"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <operDate xsi:type="xsd:dateTime">2003-08-16T10:51:36.137Z</operDate>
    <hourEnding xsi:type="soapenc:int">16</hourEnding>
    <intervalId xsi:type="soapenc:int">5</intervalId>
   </multiRef>
  </soapenv:Body>
</soapenv:Envelope>


My perl script is

#!/usr/bin/perl

use SOAP::Lite +trace => qw (debug);
use Data::Dumper;


my $VAR1 = bless( {
         'item' => [
                 bless( {
                         'operDate' => '2003-08-16T10:51:36.137Z',
                         'hourEnding' => '16',
                         'intervalI' => '6'
                         }, 'OperationInterval' ),
                 bless( {
                         'operDate' => '2003-08-16T10:51:36.137Z',
                         'hourEnding' => '16',
                         'intervalI' => '6'
                         }, 'OperationInterval' )
                 ]
         }, 'intervals' );


my $soap = SOAP::Lite
         -> service('file:OperationsService.wsdl')
         -> xmlschema('2001');

my $a = $soap->getIntervalData('CABZON_1_WINDA1', $VAR1);

print Dumper($a);



I don't have a clue on how to do multirefs.

Here is my wsdl and pirp files.. not these are not their perm locations

http://homer.meso.com/crap/PIRP_Schema_v1.xsd
http://homer.meso.com/crap/OperationsService.wsdl


The request I'm getting looks like this


<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:namesp2="http://namespaces.soaplite.com/perl"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Bod\
y><namesp1:getIntervalData
xmlns:namesp1="https://www.caiso.com/webservices/pirp/OperationsService/1.0"><re\
sId
xsi:type="xsd:string">CABZON_1_WINDA1</resId><intervals
xsi:type="import1:ArrayOfOperationInterval"><item
SOAP-ENC:arrayType="namesp2:OperationInterval[2]"
xsi:type="SOAP-ENC:Array"><item
xsi:type="namesp2:OperationInterval"><operDate
xsi:type="xsd:string">2003-08-16T10:51:36.137Z</operDate><hourEnding
xsi:type="xsd:int">16</hourEnding><intervalI
xsi:type="xsd:int">6</intervalI></item><item
xsi:type="namesp2:OperationInterval"><operDate
xsi:type="xsd:string">2003-08-16T10:51:36.137Z</operDate><hourEnding
xsi:type="xsd:int">16</hourEnding><intervalI
xsi:type="xsd:int">6</intervalI></item></item></intervals></namesp1:getIntervalD\
ata></SOAP-ENV:Body></SOAP-ENV:Envelope>
SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal
Server Error


I need help big time.. even a point in the right direction would be of
some help.

Mike

#2950 From: "gildir1" <gildir@...>
Date: Wed Aug 27, 2003 8:53 am
Subject: really raw XML in SOAP body
gildir1
Send Email Send Email
 
Hi,

Could you please help me with this:

I want to put raw XML to the SOAP body using SOAP::Lite. I want to do
get this SOAP request:

<Envelope>
   <Header>
     ...
   </Header>
   <Body>
     <myCustomXMLtag a1="v1">
       ...
     </myCustomXMLtag>
   </Body>
</Envelope>

How to do this? I do not want any procedure call, just to send message
like this and receive response.

I have found the SOAP::Data->type('xml' => $xml_content) trick, but
that will create XML data as a procedure call content. I want to
create entire body, not just data.

Thanks

#2951 From: "tommys_sister" <tommys_sister@...>
Date: Wed Aug 27, 2003 4:08 pm
Subject: (No subject)
tommys_sister
Send Email Send Email
 
Hello All,

I'm really, really new to SOAP-Lite so be patient.

I just installed ActivePerl 5.6.1.635 on a W2K box and I think I need
to install Crypt::SSLeay because I see the following error when
trying to run a script:

500 Can't locate object method "new" via
package "LWP::Protocol::https::Socket"
(perhaps you forgot to load "LWP::Protocol::https::Socket"?)
at ./exportProject.
pl line 35

When I try to install Crypt::SSLeay using ppm, I just get a message
saying it could not be found.

Can anyone offer me any advise?

Thanks,
Kathryn

#2952 From: "teden" <the@...>
Date: Wed Aug 27, 2003 4:56 pm
Subject: SOAP::SOM question
teden
Send Email Send Email
 
Folks,

I am building a web service in SOAP::Lite. Part of the results
returned is a set of repeating elements e.g.

   <response>
     <statusMsg>foo</statusMsg>
     <statusMsg>bar</statusMsg>
     <statusMsg>foobar</statusMsg>

     <output>
       <result>3.1415</result>
     </output>
   </response>

On my client side, with trace on, I see the whole XML document, with
all of the elements listed. However, when I try to process the
results in my client, SOAP::Lite is pushing this into a nested hash
structure. Hence, when I go to get my statusMsg's, I am left with
only the last one, the first two are lost. Any kind of repeating
element does the same thing.

Is there any way around this?

Any help is greatly appreciated...

Thom Eden

#2953 From: "cjs4562000" <cjs4562000@...>
Date: Wed Aug 27, 2003 5:59 pm
Subject: Newbie- Remove encodingstyle from envelope??
cjs4562000
Send Email Send Email
 
Hi,

I'm creating a client using SOAP::Lite which is calling a service
that doesn't seem to play nice with RPC/encoded. I'm almost there
except for one thing - I'm getting the following error back from the
service: "The 'http://schemas.xmlsoap.org/soap/envelope/:encodingStyl
e' attribute is not allowed." See snippets below (I've not included
all of the xml for the sake of brevity.)

What I'm currently sending:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

What needs to be sent:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

Looks like I need to remove encodingstyle from the envelope. Is
there a way to do this? I've searched everywhere and cannot find the
answer.

Please let me know if more info is needed.

CS

#2954 From: "Byrne Reese" <byrne@...>
Date: Thu Aug 28, 2003 1:38 am
Subject: Re: (unknown)
byrnereese
Send Email Send Email
 
Can't be of direct help to you for Windows, but for linux you have to
install OpenSSL. I imagine the same is true for Windows. I would consult
the INSTALL file, or the README file that comes with the CryptSSLeay
package. Not the answer you wanted to hear obviously... but if one of you
windows user's on the newsgroup could point you in the right direction -
that would be much appreciated. :)

>
>
>
>
> Hello All,
>
> I'm really, really new to SOAP-Lite so be patient.
>
> I just installed ActivePerl 5.6.1.635 on a W2K box and I think I need
> to install Crypt::SSLeay because I see the following error when
> trying to run a script:
>
> 500 Can't locate object method "new" via
> package "LWP::Protocol::https::Socket"
> (perhaps you forgot to load "LWP::Protocol::https::Socket"?)
> at ./exportProject.
> pl line 35
>
> When I try to install Crypt::SSLeay using ppm, I just get a message
> saying it could not be found.
>
> Can anyone offer me any advise?
>
> Thanks,
> Kathryn
>
>
>
>
>
>
>
>
>
> 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 :/

#2955 From: "c32fa35e697ccfd9f299f2293b97acb" <8c32fa35e697ccfd9f299f2293b97acb@...>
Date: Thu Aug 28, 2003 4:52 am
Subject: Listening in SSL for daemon mode?
c32fa35e697c...
Send Email Send Email
 
Hi,

Is there a stub code for SOAP::Transport::HTTP::Daemon
to listen in SSL mode?


Thanks.


-PY

#2956 From: Manessinger Andreas <man@...>
Date: Thu Aug 28, 2003 6:21 am
Subject: AW: SOAP::SOM question
andreas_mane...
Send Email Send Email
 
This one crops up every once in a while, I had to search myself :-)
 
Let your handler module inherit from SOAP::Server::Parameters, i.e. simply put that into your @ISA array, and - voilŕ - you've got an additional parameter after the hash. This parameter is a real SOAP::SOM object. It's not as easy to navigate as the hash, but it gives you access not only to repeating elements but also to attributes.
 
The rule is: use the hash for simple parameters without attributes, use the SOM object in all other cases. As you get both, you may even mix these two styles, using the SOM object only for what you can't get out of the hash.
 
Hope that helps

----
 Dipl.Ing. Andreas Manessinger  -  CCT / Competence Center Telematik
 Magistrat der Stadt Wien, Magistratsabteilung 14 - ADV,
 Rathausstr. 1, A-1082 Wien
 E-Mail: man@...   
 Tel: (+43 1) 4000-91176      
 Fax: (+43 1) 4000-99-91176 
 WWW: http://service.wien.gv.at/
 

-----Ursprüngliche Nachricht-----
Von: teden *EXTERN* [mailto:the@...]
Gesendet: Mittwoch, 27. August 2003 18:57
An: soaplite@yahoogroups.com
Betreff: [soaplite] SOAP::SOM question

Folks,

I am building a web service in SOAP::Lite. Part of the results
returned is a set of repeating elements e.g.

  <response>
    <statusMsg>foo</statusMsg>
    <statusMsg>bar</statusMsg>
    <statusMsg>foobar</statusMsg>

    <output>
      <result>3.1415</result>
    </output>
  </response>

On my client side, with trace on, I see the whole XML document, with
all of the elements listed. However, when I try to process the
results in my client, SOAP::Lite is pushing this into a nested hash
structure. Hence, when I go to get my statusMsg's, I am left with
only the last one, the first two are lost. Any kind of repeating
element does the same thing.

Is there any way around this?

Any help is greatly appreciated...

Thom Eden



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.

#2957 From: "Jens Puruckherr" <jpuruckherr@...>
Date: Thu Aug 28, 2003 10:42 am
Subject: OT(?): WSDL-question
jpuruckherr@...
Send Email Send Email
 
I've created a wsdl-description for my Soap-service:

....
	 <portType name="getKundeInterface">
		 <operation name="getKunde">
			 <input message="tns:getKunde_IN" />
			 <output message="tns:getKunde_OUT"/>
		 </operation>
	 </portType>
	 <!-- Dienste -->
	 <binding name="getKundeBinding" type="tns:getKundeInterface">
		 <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/wsdl/http/"/>
		 <operation name="getKunde">
			 <soap:operation soapAction="urn:Shop::Interface"/>
			 <input>
				 <soap:body use="encoded" namespace="urn:Shop::Interface"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			 </input>
			 <output>
				 <soap:body use="encoded" namespace="urn:Shop::Interface"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
			 </output>
		 </operation>
	 </binding>

When I try to create a Webservice-Connector in SAPBusinessConnector
over this wsdl I get the Message:
"Error: Could not process document. Found binding with an invalid
PortType reference, no operations were created."

What is wrong in my PortType reference?
I've created the wsdl with xmlSpy, wicht means, my wsdl-file is valid.



    Mit freundlichen Grüßen

Jens Puruckherr

#2958 From: "Byrne Reese" <byrne@...>
Date: Thu Aug 28, 2003 1:41 pm
Subject: Re: Newbie- Remove encodingstyle from envelope??
byrnereese
Send Email Send Email
 
Do you have any idea what toolkit you are interacting with on the other
end? I find odd that it doesn't want an encoding style defined for the
request...

> Hi,
>
> I'm creating a client using SOAP::Lite which is calling a service
> that doesn't seem to play nice with RPC/encoded. I'm almost there
> except for one thing - I'm getting the following error back from the
> service: "The 'http://schemas.xmlsoap.org/soap/envelope/:encodingStyl
> e' attribute is not allowed." See snippets below (I've not included
> all of the xml for the sake of brevity.)
>
> What I'm currently sending:
>
>>;soap:Envelope
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>
> What needs to be sent:
>
>>;soap:Envelope
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>
> Looks like I need to remove encodingstyle from the envelope. Is
> there a way to do this? I've searched everywhere and cannot find the
> answer.
>
> Please let me know if more info is needed.
>
> CS
>
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Sponsor
>
>
>
>
>
>
>
>
>
>
>
>
> 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 :/

#2959 From: "Byrne Reese" <byrne@...>
Date: Thu Aug 28, 2003 1:52 pm
Subject: Re: really raw XML in SOAP body
byrnereese
Send Email Send Email
 
Setting the entire Body simply through an API call in not easily achieved.
I am afraid you are going to have to do some hacking. :/

So let me direct you to some resources that may help you, but I hope Paul
chimes in, because he may know a trick I don't.

You got the first trick down, the xml => etc.

The second trick is to override the body element - and probably construct
it manually... see the following:
http://www.majordojo.com/archives/000009.html#000009

Using a regex - you can strip the Body element out, and use its contents
to rewrite the body element using SOAP::Lite API calls.

It is not the most elegant. In the future, you will have at your
disposable a much more flexible means of de-/serialization.

> Hi,
>
> Could you please help me with this:
>
> I want to put raw XML to the SOAP body using SOAP::Lite. I want to do
> get this SOAP request:
>
>>;Envelope
>   >;Header
>     ...
>   >;/Header
>   >;Body
>     >;myCustomXMLtag a1="v1"
>       ...
>     >;/myCustomXMLtag
>   >;/Body
>>;/Envelope
>
> How to do this? I do not want any procedure call, just to send message
> like this and receive response.
>
> I have found the SOAP::Data-
> that will create XML data as a procedure call content. I want to
> create entire body, not just data.
>
> Thanks
>
>
>
>
>
>
>
>
>
> 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 :/

#2960 From: "Byrne Reese" <byrne@...>
Date: Thu Aug 28, 2003 1:54 pm
Subject: Re: Basic Authentication with SOAP::Lite?
byrnereese
Send Email Send Email
 
Were you interacting with a .NET server? I have done so in the past and it
always forced my client (regardless of having the credentials there or
not) to do the little 401 loop you described.

SOAP::Lite puts the auth credentials in the request, if they are
specified. It doesn't wait for someone to ask for them...

> Thanks a lot Byrne,
>
> your are definitely right. I tested the code with another server, and it
> works
> pretty good.
> I found that the problem which i met came from the Apache Axis server
> itself.
>
> when the client program sent a SOAP message to the server, it sent it
> without any
> authentication parameters in the HTTP header. If the server requires such
> kind of
> information,  it sends back a '401 Unauthorized' message, thus the client
> sends
> back another HTTP message with the
> authentication parameters.
>
> In the Apache Axis, the server gets the client message without the
> authentication
> parameters and sends back a '500 Internal Server Error' !! it might be a
> misconfiguration from us!! Is there any way to force SOAP::Lite to send
> the
> authentication info in the first message without modifying the code?
>
> Thanks for any pointers!
> Best regards,
> lina
>
>
> Byrne Reese wrote:
>
>> You will need to wrap your authentication code in a BEGIN block... like
>> so:
>>
>> BEGIN {
>>   sub SOAP::Transport::HTTP::Client::get_basic_credentials {
>>     return 'username' => 'password';
>>   }
>> }
>>
>> >
>> >
>> >
>> >
>> > Hi,
>> >
>> > I'm getting an error when I'm trying to use the
>> > Authentication Basic in SOAP::Lite.
>> > I'm using a Soap::Lite based Perl client accessing
>> > Apache Axis based on java service.
>> > I verified if the LWP::Authen::Basic module is well
>> > installed as well as other modules.
>> > I read the http://guide.soaplite.com/ and I tried to
>> > use all the techniques mentioned in the guide to pass
>> > the user and password, they don't seem to work!
>> > Looking at the code, nothing seems to be implemented!
>> >
>> > Here's a part of my perl client code:
>> >
>> > #! /usr/bin/perl -w
>> >
>> > use Data::Dumper;
>> > use Env;
>> > use SOAP::Lite +trace =
>> >         on_fault =
>> >                 eval { die ref $res ?
>> > $res-
>> > $soap-
>> >                 return ref $res ? $res : new
>> > SOAP::SOM;
>> >         };
>> >
>> > $HOST="http://quadri:4043/xxxxxxx/HelloIF";
>> > $NS="urn:x-netcelo:xxxxxxxxx.HelloIF";
>> > $PHRASE=shift;
>> >
>> > my $soap= SOAP::Lite
>> >         -
>> >         -
>> >         -
>> >
>> > sub
>> > SOAP::Transport::HTTP::Client::get_basic_credentials {
>> >   return 'username' =
>> >        }
>> >
>> > my $som=$soap
>> >         -
>> > print "The response from the server was: \n"
>> > .$som-
>> > 1;
>> >
>> > Here is  a  trace fragment for the call from perl
>> > client:  (I used Dumper method in the method
>> > "send_receive" from /SOAP/Transport/HTTP.pm to dump
>> > the $req (an instance from the  HTTP::Request class) )
>> >
>> >
>> >  bless( {
>> >                  '_method' =
>> >                  '_headers' =
>> >                                         'soapaction'
>> > =
>> > '"urn:x-netcelo:webServices.HelloIF#sayHello"',
>> >
>> >                                         'content-type'
>> > =
>> > charset=utf-8',
>> >
>> > 'content-length' =
>> >                                         'accept' =
>> >
>> > 'text/xml',
>> >
>> > 'multipart/*'
>> >                                                     ]
>> >                                       },
>> > 'HTTP::Headers' ),
>> >                  '_uri' =
>> > 'http://quadri:4043/wservices/HelloIF')},
>> > 'URI::http' ),
>> >                  '_content' =;?xml version="1.0"
>> > encoding="UTF-8"?
>> >>;SOAP-ENV:Envelope
>> > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
>> >
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>> > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
>> > xmlns:xsd="http://www.w3.org/1999/XMLSchema"
>> >
>> >   >;SOAP-ENV:Body
>> >     >;namesp1:sayHello
>> > xmlns:namesp1="urn:x-netcelo:webServices.HelloIF"
>> >       >;c-gensym4 xsi:type="xsd:string"
>> >
>> > ;/c-gensym4;/namesp1:sayHello;/SOAP-ENV:Body;/SOAP-ENV:Envelope
>> >
>> >                }, 'HTTP::Request' );
>> >
>> > If we modify SOAP/Transport/HTTP.pm (send_recieve) we
>> > can explicitly add the basic_authentication header.
>> > However we have found no correct way of passing the
>> > authentication parameters with the standard SOAP::Lite
>> > interface. The "proxy" method accepts parameters that
>> > are methods from LWP::UserAgent, but they are
>> > not used....
>> >
>> > What am I missing?
>> > Thanks for your help..
>> >
>> > Best regards,
>> > Lina
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > 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 :/
>


^byrne :/

#2961 From: "Thom Eden" <the@...>
Date: Thu Aug 28, 2003 8:15 pm
Subject: Re: SOAP::SOM question
teden
Send Email Send Email
 
Ok, so $som->valuof() can be used to iterate over an array. What if you need an
attribute of the elements in the array? The only way to get an attribute is
through $som->dataof() which returns a hash, so if you have a repeating element,
you lose the data. Here is my data:

<VARIABLES>
   <Var vName="Test_1">Bloody wanker</Var>
   <Var vName="Test_2">3.1415</Var>
</VARIABLES>


---------- Original Message ----------------------------------
From: "Byrne Reese" <byrne@...>
Date: Wed, 27 Aug 2003 18:36:16 -0700 (PDT)

>http://www.majordojo.com/soaplite/
>
>But specifically:
>http://www.majordojo.com/archives/000042.html#000042
>
>>
>>
>>
>>
>> Folks,
>>
>> I am building a web service in SOAP::Lite. Part of the results
>> returned is a set of repeating elements e.g.
>>
>>   >;response
>>     >;statusMsg;/statusMsg
>>     >;statusMsg;/statusMsg
>>     >;statusMsg;/statusMsg
>>
>>     >;output
>>       >;result;/result
>>     >;/output
>>   >;/response
>>
>> On my client side, with trace on, I see the whole XML document, with
>> all of the elements listed. However, when I try to process the
>> results in my client, SOAP::Lite is pushing this into a nested hash
>> structure. Hence, when I go to get my statusMsg's, I am left with
>> only the last one, the first two are lost. Any kind of repeating
>> element does the same thing.
>>
>> Is there any way around this?
>>
>> Any help is greatly appreciated...
>>
>> Thom Eden
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 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 :/
>

#2962 From: "Thom Eden" <the@...>
Date: Thu Aug 28, 2003 8:41 pm
Subject: Re: SOAP::SOM question
teden
Send Email Send Email
 
After messing around with this enough, I think I found the solution, though I
leave it to people much smarter than me to tell me if I am terribly inefficient.
Here's my code snippet which works:

<VARIABLES>
   <Var vName="Test_1">Bloody wanker</Var>
   <Var vName="Test_2">3.1415</Var>
</VARIABLES>

   @elements = qw(VARIABLES);
   foreach my $element(@elements) {
     print "$element:\n";
     foreach my $e($som->dataof('//'.$element.'/Var')) {
       print "Variable Name = ".$e->attr->{'vName'}."\n";
       print "Variable Value = ".$e->value."\n";
     }
   }

Thanks for all the support...

Thom Eden
---------- Original Message ----------------------------------
From: "Thom Eden" <the@...>
Reply-To: <the@...>
Date: Thu, 28 Aug 2003 16:15:23 -0400

>Ok, so $som->valuof() can be used to iterate over an array. What if you need an
attribute of the elements in the array? The only way to get an attribute is
through $som->dataof() which returns a hash, so if you have a repeating element,
you lose the data. Here is my data:
>
><VARIABLES>
>  <Var vName="Test_1">Bloody wanker</Var>
>  <Var vName="Test_2">3.1415</Var>
></VARIABLES>
>
>
>---------- Original Message ----------------------------------
>From: "Byrne Reese" <byrne@...>
>Date: Wed, 27 Aug 2003 18:36:16 -0700 (PDT)
>
>>http://www.majordojo.com/soaplite/
>>
>>But specifically:
>>http://www.majordojo.com/archives/000042.html#000042
>>
>>>
>>>
>>>
>>>
>>> Folks,
>>>
>>> I am building a web service in SOAP::Lite. Part of the results
>>> returned is a set of repeating elements e.g.
>>>
>>>   >;response
>>>     >;statusMsg;/statusMsg
>>>     >;statusMsg;/statusMsg
>>>     >;statusMsg;/statusMsg
>>>
>>>     >;output
>>>       >;result;/result
>>>     >;/output
>>>   >;/response
>>>
>>> On my client side, with trace on, I see the whole XML document, with
>>> all of the elements listed. However, when I try to process the
>>> results in my client, SOAP::Lite is pushing this into a nested hash
>>> structure. Hence, when I go to get my statusMsg's, I am left with
>>> only the last one, the first two are lost. Any kind of repeating
>>> element does the same thing.
>>>
>>> Is there any way around this?
>>>
>>> Any help is greatly appreciated...
>>>
>>> Thom Eden
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 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 :/
>>
>
>
>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/
>
>
>

#2963 From: "c32fa35e697ccfd9f299f2293b97acb" <8c32fa35e697ccfd9f299f2293b97acb@...>
Date: Fri Aug 29, 2003 1:52 am
Subject: Re: Listening in SSL for daemon mode?
c32fa35e697c...
Send Email Send Email
 
--- In soaplite@yahoogroups.com, "c32fa35e697ccfd9f299f2293b97acb"
<8c32fa35e697ccfd9f299f2293b97acb@h...> wrote:
>
> Hi,
>
> Is there a stub code for SOAP::Transport::HTTP::Daemon
> to listen in SSL mode?
>
>
> Thanks.
>
>
> -PY

Hi all,

The method below will work, but it's a hack.

Anyone who knows a better way, please tell me.

Thanks.

Rgds,
-PY

Details
========

1. Modified HTTP::Daemon so that it is useing IO::Socket::SSL instead of
IO::Socket::INET

Here's the diff:
diff Daemon.pm Daemon.pm.orig
70c70
< @ISA=qw(IO::Socket::SSL);
---
> @ISA=qw(IO::Socket::INET);
170c170
< @ISA=qw(IO::Socket::SSL);
---
> @ISA=qw(IO::Socket::INET);

2. Sample soap-client

#!/usr/bin/perl

use SOAP::Lite;
   print SOAP::Lite
     -> uri('https://foo.com/Demo/hibye')
     -> proxy('https://localhost:6080/')
     -> hi()
     -> result;

3. Sample stand alone soap server

#!/usr/bin/perl -w

use IO::Socket::SSL;

use SOAP::Transport::HTTP;


SOAP::Transport::HTTP::Daemon
   -> new (LocalAddr => 'localhost',
           LocalPort => 6080,
           Proto     => 'tcp',
           Reuse     => 1,
           SSL_server=> 1,
           SSL_verify_mode => 0x01,
           SSL_key_file => 'your.key',
           SSL_cert_file => 'your.crt',
           SSL_ca_file => 'ca.crt',
           )
    -> dispatch_to('Demo::hibye')
    -> handle;

package Demo::hibye;

sub hi {
    return "hello, world";
}

sub bye {
    return "goodbye, cruel world";
}

#2964 From: "enzgrbr" <greg.bryant@...>
Date: Fri Aug 29, 2003 8:39 am
Subject: How to create a custom types and names
enzgrbr
Send Email Send Email
 
Hi, I'm trying to create a type which looks like this when it is
serialised:
[snip]
<body xsi:type="ns0:MultimediaMessagePart">
<type xsi:type="xsd:string">application/x-blahblah-blah</type>
<data xsi:type="SOAP-ENC:base64">kasjhdkjsahdkjshdd</data>
</body>
[snip]

How would I achieve this, or where can i find some good examples of
something similar?  I have tried using SAOP::Data and overriding
SOAP::Serilizer::as_MultimediaMessagePart but I'm not sure of how to
use that properly for this type of nested structure.

Any help much appreciated, thanks.

Greg.

#2965 From: "Eliza Smith" <elizasmith_a24@...>
Date: Fri Jan 4, 1980 5:20 pm
Subject: Make Love All Night Long!
elizasmith_a24
Send Email Send Email
 

Are you suffering from the embarrassing problem of premature ejaculation? Would you like to increase your sexual stamina to amazingly high levels? Do you want to be able to make love ALL NIGHT LONG!!??

Our absolutely 100% guaranteed herbal treatment 'Asphaton Tablets' can make this all happen within just 16 days! We absolutely guarantee that Asphaton will turn around your sex life three hundred and sixty degrees FOR EVER! Asphaton's amazingly powerful herbs will make your love life so pleasurable like you could never imagine before! With Asphaton you are able to satisfy ANY woman giving mind blowing orgasms for AS LONG AS YOU LIKE!

Don't believe this??? Then you are welcome to try Asphaton for a complete 30 days free of any risk thanks to our amazing 100% 'NO QUESTIONS ASKED' money back guarantee!

Click here for placing your order and for more information on this powerful and amazing product.


#2966 From: "Eliza Smith" <elizasmith_a24@...>
Date: Fri Jan 4, 1980 5:21 pm
Subject: Need Smooth Acne Free Skin?
elizasmith_a24
Send Email Send Email
 

Need to get rid of pimples and blackheads? Looking for smooth acne free skin? ...then this is for you!

Musaffeen Tablets: the best selling herbal acne product that is bound to amaze you!

With Musaffeen Tablets, we guarantee you amazing results within 14 days of treatment!

Musaffeen Tablets is an immensely powerful product that puts you in complete control of your acne!

For more information click here.


#2967 From: "poulkornmod" <poul@...>
Date: Tue Sep 2, 2003 10:39 am
Subject: Generate WSDL with WSDL::Generator
poulkornmod
Send Email Send Email
 
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

#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

Messages 2944 - 2973 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