in reply to Coldfusion Integration

So, riddle me this:
This url:

https://example.com/webservices.cfc?j_username=foo&j_password=bar&meth +od=MyMethodName&someVar=123456&returnformat=json
returns a valid json encoded string.

I think my problem here, I am not authenticating... (Actually I'm pretty sure this is the problem.) Is there a way to authenticate with wsdl/SOAP? Or, do I have to use lynx (or wget) to pull the response down, then parse the response. The latter seems like a hack way to do this...

#!/usr/bin/perl use 5.010001; use strict; use warnings; use LWP::Simple qw/mirror/; use SOAP::Simple; my $url = "https://example.com/webservices.cfc"; my $wsdlFile = 'webservices.wsdl'; mirror( $wsdlUrl, $wsdlFile ); my $soap = SOAP::Simple->new( $wsdlFile );

Replies are listed 'Best First'.
Re^2: Coldfusion Integration
by PyrexKidd (Monk) on Jul 19, 2011 at 19:33 UTC

    To answer my question: I can use LWP::Simple to make the remote call and JSON to decode the string into an array. this does two things,
    a) it makes it portable because I am not relying on lynx
    b) makes the code cleaner.