Sponsored Content
Full Discussion: SOAP::Lite question
Top Forums Web Development SOAP::Lite question Post 302728341 by islanderman on Wednesday 7th of November 2012 04:26:31 PM
Old 11-07-2012
SOAP::Lite question

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},
proxy => [
"$self->{protocol}://$self->{fqdn}:$self->{port}$self->{path}",
credentials => ["$self->{fqdn}:$self->{port}",$self->{realm},$self->{id}=>$self->{pw}],
timeout => $self->{timeout}
],
on_fault => sub {
my($soap, $res) = @_;
die ref $res ? $res->faultdetail : $soap->transport->status, "\n";
}
);
$soap->autotype(0);
$soap->outputxml(1);
my @params;

$self->set_headers(\@params);

push @params, $self->make_element($_, $self->{method_params}->{$_}) for sort keys %{$self->{method_params}};
my $data = SOAP:Smilieata->name($self->{method_name})->attr($self->{method_attr});
$self->{content} = $soap->call($data => @params);
$self->{request} = $soap->serializer->envelope(method => $data, @params);


this works. i am able to send this soap request. But here is my dilemna now. The new soap request I need to build includes a wsdl file. Can someone help me code how to use perl to build the request with the wsdl file. I think it would be something like:

eval {
my $soap = SOAP::Lite->new(
service => 'file:/my path to wsdl file/wsdlfile.wsdl',


but then i need to add security headers like above and send the request. I don't know how to code that. Anybody can help?
 

9 More Discussions You Might Find Interesting

1. Solaris

no SOAP encoding under unix?

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

2. Programming

Tcl - SOAP Problem

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

3. UNIX for Advanced & Expert Users

Soap Server error

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

4. Programming

SOAP Client..!

Hi, Can anybody provide me a simple SOAP client in C/C++ ..? Thanks in advance....!! (1 Reply)
Discussion started by: Kattoor
1 Replies

5. Shell Programming and Scripting

Soap client script

Hi everybody, I`d llike to know if it is possible to create a script that call a specific soap method and collect the response time of this method. Can someone give some tips and examples ? Thank you so much ! (0 Replies)
Discussion started by: robdcb
0 Replies

6. Shell Programming and Scripting

Retrieve values using soap moudle

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. Shell Programming and Scripting

SOAP module in perl

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

8. Shell Programming and Scripting

SOAP Client server program

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

9. Shell Programming and Scripting

Extract node value from soap response

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
SOAP::WSDL::Manual::Glossary(3pm)			User Contributed Perl Documentation			 SOAP::WSDL::Manual::Glossary(3pm)

NAME
SOAP::WSDL::Manual::Glossary - Those acronyms and stuff Glossary web service Web services are RPC (Remote Procedure Call) interfaces accessible via some internet protocol, typically via HTTP(S). SOAP SOAP is (was - since 1.2 the name "SOAP" has no meaning any more) an acronym for Simple Object Access Protocol. SOAP is a W3C recommendation. The latest version of the SOAP specification may be found at <http://www.w3.org/TR/soap/>. SOAP defines a protocol for message exchange between applications. The most popular usage is to use SOAP for remote procedure calls (RPC). While one of the constituting aspects of a web service is its reachability via some internet protocol, you might as well define SOAP services accessible via postcards. Despite it's former name, SOAP has nothing more to do with objects than cars have with pets - SOAP messages may, but not necessarily do carry objects, very much like your car may, but does not need to carry your pet. WSDL WSDL is an acronym for Web Services Description Language. WSDL is a W3C recommendation. The latest version of the WSDL specification may be found at <http://www.w3.org/TR/wsdl20/>. WSDL defines a XML-based language for describing web service interfaces, including SOAP interfaces. WS-I WS-I (Web Services Interoperability Organization) is an open industry organisation chartered to promote Web service interoperability across platforms, operating systems, and programming languages. WS-I publishes profiles, which provide implementation guidelines for how related Web services specifications should be used together for best interoperability. To date, WS-I has finalized the Basic Profile, Attachments Profile and Simple SOAP Binding Profile. SOAP::WSDL aims at complying to the WS-I Basic Profile (but does not implement full support yet). SOAP message styles rpc Meant for transporting a RPC message. All contents of the SOAP body are put into a top-level node named equal to the SOAP operation. WS-I Basic Profile allows the use of rpc message style. SOAP::WSDL does not support rpc message style yet. SOAP::Lite supports rpc message style only. document Meant for transporting arbitrary content. No additional nodes are inserted between the SOAP body and the actual content. WS-I Basic Profile allows the use of document message style. SOAP encoding styles encoded literal LICENSE AND COPYRIGHT
Copyright 2007 Martin Kutter. This file is part of SOAP-WSDL. You may distribute/modify it under the same terms as perl itself. AUTHOR
Martin Kutter <martin.kutter fen-net.de> REPOSITORY INFORMATION
$Rev: 391 $ $LastChangedBy: kutterma $ $Id: Glossary.pod 391 2007-11-17 21:56:13Z kutterma $ $HeadURL: https://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/Manual/Glossary.pod $ perl v5.10.1 2010-12-21 SOAP::WSDL::Manual::Glossary(3pm)
All times are GMT -4. The time now is 06:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy