Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: SOAP::LITE client help

by Wroof (Novice)
on May 02, 2014 at 01:28 UTC ( [id://1084718]=note: print w/replies, xml ) Need Help??


in reply to SOAP::LITE client help

Ok so thank you everyone for you help so far. Currently I have not have not been able to get much back from the system so I have decided to try the html approach in Perl. Below is the code

#!/usr/bin/perl -w use strict; use LWP::UserAgent; use HTTP::Request::Common; my $userAgent = LWP::UserAgent->new(agent => 'perl post'); my $message = "<?xml version=\"1.0\" encoding=\"utf-8\"?> <soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance +\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\"> <soap12:Body> <getCardInfo xmlns=\"http://www.designa.de/\"> <UserID>ws</UserID> <UserPWD>ws</UserPWD> <TccNum>45</TccNum> <CardNumber>\"PM010010110000000037\"</CardNumber> </getCardInfo> </soap12:Body> </soap12:Envelope>" ; my $response = $userAgent->request(POST 'http://192.168.1.100/AbacusWe +bService/ServiceCashPoint.asmx/getCardInfo', Content_Type => 'text/plain', Content => $message); print $response->error_as_HTML unless $response->is_success; print $response->as_string;

Now I can connect for the isAlive command and get a response bac even though it is in a xml format. How ever when I try and and request getCardInfo which is to return a few different things I get a error saying Request format is invalid. I know I am missing something simple but for the life of me I cannot work it out. Once again thanks for all the help

Replies are listed 'Best First'.
Re^2: SOAP::LITE client help
by Anonymous Monk on May 02, 2014 at 07:22 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1084718]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found