10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have one soap xml response and it contains repeating node name.
sample as below:
<ax279:nodes xsi:type="ax277:ChildIdentifierList">
<ax277:id>3</ax277:id>
<ax277:name>test</ax277:name>
<ax277:children xsi:type="ax277:EntityIdentifier">... (2 Replies)
Discussion started by: sukhdip
2 Replies
2. UNIX for Dummies Questions & Answers
I have to call a webservice , I need to pass the static request from Unix which should have message signing details in the soap header . I am using cURL command for this. I do not have java , I need to do it through Unix only .
Below is the kind of Soap envelop I want to wrap around my request .... (0 Replies)
Discussion started by: IshuGupta
0 Replies
3. Web Development
I have setup web service requests using SOAP::Lite. I include the following entries which have been assigned, like the uri, protocol, fully qualified dns name, port, path, realm and pw. I also assign header information
eval {
my $soap = SOAP::Lite->new(
uri => $self->{uri},
... (0 Replies)
Discussion started by: islanderman
0 Replies
4. Shell Programming and Scripting
Hi,
I have taken the below code from Quick Start with SOAP - Perl.com and modified to my requirement.Server program runs without error.I have kept Demo.pm under /usr/local/apache2/cgi-bin directory.When I run the client program I am not getting any output.Whether the client program should be... (1 Reply)
Discussion started by: liyakathali
1 Replies
5. Shell Programming and Scripting
Hi,
I have executed the below perl code to check whether SOAP module is working or not.
#!/usr/bin/perl
use SOAP::Transport::HTTP;
print "Hai";
But I got the below error message:
Can't locate SOAP/Transport/HTTP.pm in @INC (@INC contains:... (2 Replies)
Discussion started by: liyakathali
2 Replies
6. Shell Programming and Scripting
Can someone tell me how to know the values used in soap api.
I need to know what values are used in soap xml.
Can we get all the values used in soap api.
I know that we can get it by using SOAP::Lite module in perl. But it is like we are supplying keys and we are getting values.
I want... (0 Replies)
Discussion started by: Anjan1
0 Replies
7. Programming
Hi,
Can anybody provide me a simple SOAP client in C/C++ ..?
Thanks in advance....!! (1 Reply)
Discussion started by: Kattoor
1 Replies
8. UNIX for Advanced & Expert Users
Hi all jobs on a particular autosys box are failing with the below error. Any ideas
Start Login
Preparing to Submit Job......
Error Submitting Report Again Soap Server error. (0 Replies)
Discussion started by: sophos
0 Replies
9. Programming
Hi,
Im working with client side Tcl implementation on unix box of web services, to login to a tool with web service method written in C# on windows box and it is accessed by its link from the browser on unix box.
Sorry that i have hidden the original names for security reasons.
Using... (0 Replies)
Discussion started by: SankarV
0 Replies
10. Solaris
Under Unix however we had many many many many problems. We had to use Ansi2utf8(), repstr() and XMLval() to prevent "Invalid token" errors. And because we didn't know what the raw XML result was, it allways was a big problem to find the cause of it. (0 Replies)
Discussion started by: devotedsinner
0 Replies
LWP::Protocol(3pm) User Contributed Perl Documentation LWP::Protocol(3pm)
NAME
LWP::Protocol - Base class for LWP protocols
SYNOPSIS
package LWP::Protocol::foo;
require LWP::Protocol;
@ISA=qw(LWP::Protocol);
DESCRIPTION
This class is used a the base class for all protocol implementations supported by the LWP library.
When creating an instance of this class using "LWP::Protocol::create($url)", and you get an initialised subclass appropriate for that
access method. In other words, the LWP::Protocol::create() function calls the constructor for one of its subclasses.
All derived LWP::Protocol classes need to override the request() method which is used to service a request. The overridden method can make
use of the collect() function to collect together chunks of data as it is received.
The following methods and functions are provided:
$prot = LWP::Protocol->new()
The LWP::Protocol constructor is inherited by subclasses. As this is a virtual base class this method should not be called directly.
$prot = LWP::Protocol::create($scheme)
Create an object of the class implementing the protocol to handle the given scheme. This is a function, not a method. It is more an
object factory than a constructor. This is the function user agents should use to access protocols.
$class = LWP::Protocol::implementor($scheme, [$class])
Get and/or set implementor class for a scheme. Returns '' if the specified scheme is not supported.
$prot->request(...)
$response = $protocol->request($request, $proxy, undef);
$response = $protocol->request($request, $proxy, '/tmp/sss');
$response = $protocol->request($request, $proxy, &callback, 1024);
Dispatches a request over the protocol, and returns a response object. This method needs to be overridden in subclasses. Refer to
LWP::UserAgent for description of the arguments.
$prot->collect($arg, $response, $collector)
Called to collect the content of a request, and process it appropriately into a scalar, file, or by calling a callback. If $arg is
undefined, then the content is stored within the $response. If $arg is a simple scalar, then $arg is interpreted as a file name and
the content is written to this file. If $arg is a reference to a routine, then content is passed to this routine.
The $collector is a routine that will be called and which is responsible for returning pieces (as ref to scalar) of the content to
process. The $collector signals EOF by returning a reference to an empty sting.
The return value from collect() is the $response object reference.
Note: We will only use the callback or file argument if $response->is_success(). This avoids sending content data for redirects and
authentication responses to the callback which would be confusing.
$prot->collect_once($arg, $response, $content)
Can be called when the whole response content is available as $content. This will invoke collect() with a collector callback that
returns a reference to $content the first time and an empty string the next.
SEE ALSO
Inspect the LWP/Protocol/file.pm and LWP/Protocol/http.pm files for examples of usage.
COPYRIGHT
Copyright 1995-2001 Gisle Aas.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-14 LWP::Protocol(3pm)