SOAP::Lite question


 
Thread Tools Search this Thread
Top Forums Web Development SOAP::Lite question
# 1  
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?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
Login or Register to Ask a Question