I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2011-06-22 15:29:13.111239-07 by mickthedude
Using a url as an xsd location
I am using the method:
XML::LibXML::Schema->new(location => 'http://amazonpayments.s3.amazonaws.com/documents/order.xsd') +;
But it times out. I think I know why - I have a proxy I needed to declare to do a simple get. I am worried this module does not know about the proxy. How do I get that setting into the module so it can perform the get? Workin code snipet:
use LWP::Simple qw($ua get); $ua->proxy('http','http://proxynamewithheld'); $content = get 'http://amazonpayments.s3.amazonaws.com/documents/order.xsd';
However the above code does not seem to awaken the network inside LibXML. Here is the error I get after a minute or so...looks like a timeout: Operation in progressFailed to parse the XML resource 'http://amazonpayments.s3.amazonaws.com/documents/order.xsd'.
Direct Responses: Write a response