Following code is giving Segmentation Fault (doesn't generate any core dump file). Please let me know if I'm missing anything obvious. I already have openssl modules installed.
use SOAP::Lite +trace => 'all', debug => 'all'; my $security_key = 'TEST'; my $soap_uri = 'TEST'; my $web_service = 'https://www.yahoo.com'; my $update_user_func = 'TEST'; my $soap = SOAP::Lite ->uri($soap_uri) ->on_action( sub { join('/', $soap_uri, $_[1]) } ) ->proxy($web_service); my $method = SOAP::Data->name($update_user_func) -> attr({xmlns => $soap_uri }); my @params = ( SOAP::Data->name(SecurityKey => $security_key) ); my $som = $soap->call($method => @params); exit;

gives me this error message / faulty output: SOAP::Transport::new: () SOAP::Serializer::new: () SOAP::Deserializer::new: () SOAP::Parser::new: () SOAP::Lite::new: () SOAP::Transport::HTTP::Client::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Lite::call: () SOAP::Serializer::envelope: () SOAP::Serializer::envelope: SOAP::Data=HASH(0x8368b14) SOAP::Data=HASH(0x8368b80) SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Data::new: () SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x85f6264) SOAP::Transport::HTTP::Client::send_receive: POST https://www.yahoo.com HTTP/1.1 Accept: text/xml Accept: multipart/* Content-Length: 471 Content-Type: text/xml; charset=utf-8 SOAPAction: TEST/TEST <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><TEST xmlns="TEST"><SecurityKey xsi:type="xsd:string">TEST</SecurityKey></TEST></SOAP-ENV:Body></SOAP-ENV:Envelope> Segmentation fault


In reply to SOAP::Lite Segmentation Fault on https servers by slacker999

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.