agentorange has asked for the wisdom of the Perl Monks concerning the following question:
Hi all
Can anyone help with a simple query please? How do I get XML::LibXML to work over https? Cannot see anything in the module's docs that describes it. The WSDL is available via a browser on both http and https and has been proven.
eg: This works using http
But with the protocol https it fails with "Could not create file parser context for file "https://my.server.net/callback?wsdl": No such file or directory at...use strict; use warnings; use XML::Compile::WSDL11; # use WSDL version 1.1 use XML::Compile::SOAP11; # use SOAP version 1.1 use XML::Compile::SOAP::WSS; use XML::Compile::Transport::SOAPHTTP; use Data::Dumper; # WSDL URL location and method my $wsdlURL = 'http://my.server.net/callback?wsdl'; my $method = 'UpdateStatus'; # Retrieve WSDL my $wsdlXML = XML::LibXML->new->parse_file($wsdlURL);
use strict; use warnings; use XML::Compile::WSDL11; # use WSDL version 1.1 use XML::Compile::SOAP11; # use SOAP version 1.1 use XML::Compile::SOAP::WSS; use XML::Compile::Transport::SOAPHTTP; use Data::Dumper; # WSDL URL location and method my $wsdlURL = 'https://my.server.net/callback?wsdl'; my $method = 'UpdateStatus'; # Retrieve WSDL my $wsdlXML = XML::LibXML->new->parse_file($wsdlURL);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: XML::LibXML https
by tobyink (Canon) on Nov 29, 2013 at 20:09 UTC | |
by agentorange (Sexton) on Dec 04, 2013 at 10:13 UTC | |
Re: XML::LibXML https
by KevinZwack (Chaplain) on Nov 30, 2013 at 22:10 UTC | |
Re: XML::LibXML https (unsupported)
by Anonymous Monk on Nov 30, 2013 at 02:12 UTC | |
by ikegami (Patriarch) on Dec 01, 2013 at 17:15 UTC | |
by Anonymous Monk on Dec 01, 2013 at 18:42 UTC | |
by ikegami (Patriarch) on Dec 03, 2013 at 02:24 UTC | |
Re: XML::LibXML https
by locked_user sundialsvc4 (Abbot) on Dec 02, 2013 at 04:30 UTC | |
Re: XML::LibXML https
by marcelr (Initiate) on Oct 02, 2014 at 10:00 UTC |