{"id":509,"date":"2005-11-29T21:20:58","date_gmt":"2005-11-29T21:20:58","guid":{"rendered":"http:\/\/beta.robertprice.co.uk\/robblog\/2005\/11\/using_soap_lite_with_perl-shtml\/"},"modified":"2005-11-29T21:20:58","modified_gmt":"2005-11-29T21:20:58","slug":"using_soap_lite_with_perl-shtml","status":"publish","type":"post","link":"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/","title":{"rendered":"Using SOAP::Lite With Perl"},"content":{"rendered":"<p>\nI&#8217;ve been trying to access a <a href=\"http:\/\/www.w3.org\/TR\/SOAP\">SOAP<\/a> service using <a href=\"http:\/\/www.perl.com\/\">Perl<\/a> for a project, so I took a quick look at <a href=\"http:\/\/www.cpan.org\/\">CPAN<\/a> to see what was available. The answer seemed to be to use <a href=\"http:\/\/www.soaplite.com\/\">SOAP::Lite<\/a>.\n<\/p>\n<p>\nThis module turned out to be a real devil to use, and my problems with it were probably compounded by my lack of SOAP experience.\n<\/p>\n<p>\n<acronym title=\"Simple Object Access Protocol\">SOAP<\/acronym> (incase you didn&#8217;t know) is a method of accessing remote services using <acronym title=\"eXtensible Markup Language\">XML<\/acronym>. In my case, I was trying to access content supplied by a third party ringtone provider using SOAP over <acronym title=\"HyperText Transfer Protocol\">HTTP<\/acronym>.\n<\/p>\n<p>\nUsing <code>SOAP::Lite<\/code> you have to specify a <var>uri<\/var> and a <var>proxy<\/var>. What stumped me for a while is that the <var>proxy<\/var> is the URI of service you wish to access, and <var>uri<\/var> is the namespace of the service.\n<\/p>\n<p>\nSo if the provider I was using had their SOAP service available at ws.robstones-services.co.uk\/external.asmx, I would use this as the <var>proxy<\/var>, and in this case I would use ws.robstones-services.co.uk\/External as the <var>uri<\/var>namespace.\n<\/p>\n<p>\nGreat, I knew the service I needed was called <code>getCallList<\/code>, and required a Username and Password to be passed to it. In return it would give me a list of valid content types. The <var>SOAPAction<\/var> header to be added to the call to <var>proxy<\/var>, letting the remote SOAP service I wanted to use the service http:\/\/ws.robstones-services.co.uk\/External\/getCallList.\n<\/p>\n<p>\nMy first attempt was the following code&#8230;\n<\/p>\n<div class=\"code\"><code>#!\/usr\/bin\/perl -w<br \/>\nuse strict;<br \/>\nuse SOAP::Lite 'trace', 'debug';<br \/>\nmy $server = SOAP::Lite<br \/>\n-&gt;uri('http:\/\/ws.robstones-services.co.uk\/External')<br \/>\n-&gt;proxy('http:\/\/ws.robstones-services.co.uk\/external.asmx');<br \/>\nmy $returned = $server<br \/>\n-&gt;getCallList({<br \/>\n'Username' =&gt; 'RobsUser',<br \/>\n'Password' =&gt; 'RobsPassword'<br \/>\n});<br \/>\nforeach my $type ($returned-&gt;valueof('\/\/getCallListResult\/string')) {<br \/>\nnext unless ($type);    ## ignore any undefs<br \/>\nprint \"$typen\";<br \/>\n}<br \/>\n<\/code><\/div>\n<p>\nYou&#8217;ll notice I&#8217;m using <var>trace<\/var> and <var>debug<\/var> to see the SOAP messages being sent and received. The dialogue from this script was&#8230;\n<\/p>\n<div class=\"code\"><code>&gt; perl -w test.pl<br \/>\nSOAP::Transport::HTTP::Client::send_receive: POST http:\/\/ws.robstones-services.co.uk\/external.asmx HTTP\/1.1<br \/>\nAccept: text\/xml<br \/>\nAccept: multipart\/*<br \/>\nContent-Length: 615<br \/>\nContent-Type: text\/xml; charset=utf-8<br \/>\nSOAPAction: \"http:\/\/ws.robstones-services.co.uk\/External#getCallList\"<br \/>\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;&lt;SOAP-ENV:Envelope xmlns:xsi=\"http:\/\/www.w3.org\/1999\/XMLSchema-instance\" xmlns:SOAP-ENC=\"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/\" xmlns:xsd=\"http:\/\/www.w3.org\/1999\/XMLSchema\" SOAP-ENV:encodingStyle=\"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/\" xmlns:SOAP-ENV=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"&gt;&lt;SOAP-ENV:Body&gt;&lt;namesp1:getCallList xmlns:namesp1=\"http:\/\/ws.robstones-services.co.uk\/External\"&gt;&lt;c-gensym3&gt;&lt;Username xsi:type=\"xsd:string\"&gt;RobsUser&lt;\/Username&gt;&lt;Password xsi:type=\"xsd:string\"&gt;RobsPassword&lt;\/Password&gt;&lt;\/c-gensym3&gt;&lt;\/namesp1:getCallList&gt;&lt;\/SOAP-ENV:Body&gt;&lt;\/SOAP-ENV:Envelope&gt;<br \/>\nSOAP::Transport::HTTP::Client::send_receive: HTTP\/1.1 500 (Internal Server Error) Internal Server Error.<br \/>\nCache-Control: private<br \/>\nConnection: close<br \/>\nDate: Tue, 29 Nov 2005 15:23:38 GMT<br \/>\nServer: Microsoft-IIS\/6.0<br \/>\nContent-Length: 508<br \/>\nContent-Type: text\/xml; charset=utf-8<br \/>\nClient-Date: Tue, 29 Nov 2005 15:23:09 GMT<br \/>\nClient-Response-Num: 1<br \/>\nX-AspNet-Version: 1.1.4322<br \/>\nX-Powered-By: ASP.NET<br \/>\n&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;<br \/>\n&lt;soap:Envelope xmlns:soap=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\"&gt;<br \/>\n&lt;soap:Body&gt;<br \/>\n&lt;soap:Fault&gt;<br \/>\n&lt;faultcode&gt;soap:Client&lt;\/faultcode&gt;<br \/>\n&lt;faultstring&gt;Server did not recognize the value of HTTP Header SOAPAction: http:\/\/ws.robstones-services.co.uk\/External#getCallList.&lt;\/faultstring&gt;<br \/>\n&lt;detail \/&gt;<br \/>\n&lt;\/soap:Fault&gt;<br \/>\n&lt;\/soap:Body&gt;<br \/>\n&lt;\/soap:Envelope&gt;<br \/>\n<\/code><\/div>\n<p>\nThe call didn&#8217;t work, you&#8217;ll see the <var>SOAPAction<\/var> variable is wrong, it&#8217;s <code>http:\/\/ws.robstones-services.co.uk\/External#getCallList<\/code> instead of <code>http:\/\/ws.robstones-services.co.uk\/External\/getCallList<\/code>.\n<\/p>\n<p>\nI needed to get SOAP::Lite to use the correct URL. The secret turned out to be to change the <code>use SOAP::Lite<\/code> line to the following.\n<\/p>\n<div class=\"code\"><code>use SOAP::Lite on_action =&gt; sub {sprintf '%s\/%s', @_},<br \/>\n'trace', 'debug';<br \/>\n<\/code><\/div>\n<p>\n<code>on_action<\/code> is a parameter SOAP::Lite uses to separate the URI from the action, here we&#8217;re telling it to use <code>\/<\/code>.\n<\/p>\n<p>\nThis gave me the following SOAP dialogue&#8230;\n<\/p>\n<div class=\"code\"><code>&gt; perl -w test.pl<br \/>\nSOAP::Transport::HTTP::Client::send_receive: POST http:\/\/ws.robstones-services.co.uk\/external.asmx HTTP\/1.1<br \/>\nAccept: text\/xml<br \/>\nAccept: multipart\/*<br \/>\nContent-Length: 615<br \/>\nContent-Type: text\/xml; charset=utf-8<br \/>\nSOAPAction: http:\/\/ws.robstones-services.co.uk\/External\/getCallList<br \/>\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;&lt;SOAP-ENV:Envelope xmlns:xsi=\"http:\/\/www.w3.org\/1999\/XMLSchema-instance\" xmlns:SOAP-ENC=\"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/\" xmlns:xsd=\"http:\/\/www.w3.org\/1999\/XMLSchema\" SOAP-ENV:encodingStyle=\"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/\" xmlns:SOAP-ENV=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"&gt;&lt;SOAP-ENV:Body&gt;&lt;namesp1:getCallList xmlns:namesp1=\"http:\/\/ws.robstones-services.co.uk\/External\"&gt;&lt;c-gensym3&gt;&lt;Username xsi:type=\"xsd:string\"&gt;RobsUser&lt;\/Username&gt;&lt;Password xsi:type=\"xsd:string\"&gt;RobsPassword&lt;\/Password&gt;&lt;\/c-gensym3&gt;&lt;\/namesp1:getCallList&gt;&lt;\/SOAP-ENV:Body&gt;&lt;\/SOAP-ENV:Envelope&gt;<br \/>\nSOAP::Transport::HTTP::Client::send_receive: HTTP\/1.1 200 OK<br \/>\nCache-Control: private, max-age=0<br \/>\nConnection: close<br \/>\nDate: Tue, 29 Nov 2005 15:22:53 GMT<br \/>\nServer: Microsoft-IIS\/6.0<br \/>\nContent-Length: 405<br \/>\nContent-Type: text\/xml; charset=utf-8<br \/>\nClient-Date: Tue, 29 Nov 2005 15:22:25 GMT<br \/>\nClient-Response-Num: 1<br \/>\nX-AspNet-Version: 1.1.4322<br \/>\nX-Powered-By: ASP.NET<br \/>\n&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;&lt;soap:Envelope xmlns:soap=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\"&gt;&lt;soap:Body&gt;&lt;getCallListResponse xmlns=\"http:\/\/ws.robstones-services.co.uk\/External\"&gt;&lt;getCallListResult&gt;&lt;string xsi:nil=\"true\" \/&gt;&lt;\/getCallListResult&gt;&lt;\/getCallListResponse&gt;&lt;\/soap:Body&gt;&lt;\/soap:Envelope&gt;<br \/>\n<\/code><\/div>\n<p>\nBugger, it still didn&#8217;t work. I looked again at the SOAP message being sent. It was sending a lot of namespace information and a wrapper around the <var>Username<\/var> and <var>Password<\/var>. The wrapper was definitely wrong, and the remote .NET service didn&#8217;t seem to like the namespaces.\n<\/p>\n<p>\nI needed to sort that out, so I had to tell SOAP::Lite to not to include namespaces or wrap up the <var>Username<\/var> and <var>Password<\/var>. The way to do this is to use <code>SOAP::Data<\/code> to hardcode the data being sent.\n<\/p>\n<p>\nThis meant changing the call to <code>getCallList<\/code> to the following&#8230;\n<\/p>\n<div class=\"code\"><code>my $returned = $server<br \/>\n-&gt;getCallList(<br \/>\nSOAP::Data-&gt;name('Username')-&gt;value('RobsUser')-&gt;type(''),<br \/>\nSOAP::Data-&gt;name('Password')-&gt;value('RobsPassword')-&gt;type('')<br \/>\n);<br \/>\n<\/code><\/div>\n<p>\nThe SOAP dialogue after these changes looked like this..\n<\/p>\n<div class=\"code\"><code>SOAP::Transport::HTTP::Client::send_receive: POST http:\/\/ws.robstones-services.co.uk\/external.asmx HTTP\/1.1<br \/>\nAccept: text\/xml<br \/>\nAccept: multipart\/*<br \/>\nContent-Length: 548<br \/>\nContent-Type: text\/xml; charset=utf-8<br \/>\nSOAPAction: http:\/\/ws.robstones-services.co.uk\/External\/getCallList<br \/>\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;&lt;SOAP-ENV:Envelope xmlns:xsi=\"http:\/\/www.w3.org\/1999\/XMLSchema-instance\" xmlns:SOAP-ENC=\"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/\" xmlns:xsd=\"http:\/\/www.w3.org\/1999\/XMLSchema\" SOAP-ENV:encodingStyle=\"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/\" xmlns:SOAP-ENV=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"&gt;&lt;SOAP-ENV:Body&gt;&lt;namesp1:getCallList xmlns:namesp1=\"http:\/\/ws.robstones-services.co.uk\/External\"&gt;&lt;Username&gt;RobsUser&lt;\/Username&gt;&lt;Password&gt;RobsPassword&lt;\/Password&gt;&lt;\/namesp1:getCallList&gt;&lt;\/SOAP-ENV:Body&gt;&lt;\/SOAP-ENV:Envelope&gt;<br \/>\nSOAP::Transport::HTTP::Client::send_receive: HTTP\/1.1 200 OK<br \/>\nCache-Control: private, max-age=0<br \/>\nConnection: close<br \/>\nDate: Tue, 29 Nov 2005 15:19:49 GMT<br \/>\nServer: Microsoft-IIS\/6.0<br \/>\nContent-Length: 405<br \/>\nContent-Type: text\/xml; charset=utf-8<br \/>\nClient-Date: Tue, 29 Nov 2005 15:19:21 GMT<br \/>\nClient-Response-Num: 1<br \/>\nX-AspNet-Version: 1.1.4322<br \/>\nX-Powered-By: ASP.NET<br \/>\n&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;&lt;soap:Envelope xmlns:soap=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\"&gt;&lt;soap:Body&gt;&lt;getCallListResponse xmlns=\"http:\/\/ws.robstones-services.co.uk\/External\"&gt;&lt;getCallListResult&gt;&lt;string xsi:nil=\"true\" \/&gt;&lt;\/getCallListResult&gt;&lt;\/getCallListResponse&gt;&lt;\/soap:Body&gt;&lt;\/soap:Envelope&gt;<br \/>\n<\/code><\/div>\n<p>\nClose, but still not right. The problem was with the getCallList itself, it was still trying to use a namespace.\n<\/p>\n<p>\nThe final solution was to this problem was to not use <code>getCallList<\/code>, but instead to use SOAP::Lite&#8217;s <code>call<\/code> method to implicitly set how the function was being called.\n<\/p>\n<p>\nThe code after making this change was the following&#8230;\n<\/p>\n<div class=\"code\"><code>my $returned = $server<br \/>\n-&gt;call(SOAP::Data-&gt;name('getCallList')-&gt;attr({xmlns =&gt; 'http:\/\/ws.robstones-services.co.uk\/External'}) =&gt;<br \/>\nSOAP::Data-&gt;name('Username')-&gt;value('RobsUser')-&gt;type(''),<br \/>\nSOAP::Data-&gt;name('Password')-&gt;value('RobsPassword')-&gt;type('')<br \/>\n);<br \/>\n<\/code><\/div>\n<p>\nThis gave me the SOAP dialogue&#8230;\n<\/p>\n<div class=\"code\"><code>&gt; perl -w test_soap.pl<br \/>\nSOAP::Transport::HTTP::Client::send_receive: POST http:\/\/ws.robstones-services.co.uk\/external.asmx HTTP\/1.1<br \/>\nAccept: text\/xml<br \/>\nAccept: multipart\/*<br \/>\nContent-Length: 524<br \/>\nContent-Type: text\/xml; charset=utf-8<br \/>\nSOAPAction: http:\/\/ws.robstones-services.co.uk\/External\/getCallList<br \/>\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;&lt;SOAP-ENV:Envelope xmlns:xsi=\"http:\/\/www.w3.org\/1999\/XMLSchema-instance\" xmlns:SOAP-ENC=\"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/\" xmlns:xsd=\"http:\/\/www.w3.org\/1999\/XMLSchema\" SOAP-ENV:encodingStyle=\"http:\/\/schemas.xmlsoap.org\/soap\/encoding\/\" xmlns:SOAP-ENV=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\"&gt;&lt;SOAP-ENV:Body&gt;&lt;getCallList xmlns=\"http:\/\/ws.robstones-services.co.uk\/External\"&gt;&lt;Username&gt;RobsUser&lt;\/Username&gt;&lt;Password&gt;RobsPassword&lt;\/Password&gt;&lt;\/getCallList&gt;&lt;\/SOAP-ENV:Body&gt;&lt;\/SOAP-ENV:Envelope&gt;<br \/>\nSOAP::Transport::HTTP::Client::send_receive: HTTP\/1.1 200 OK<br \/>\nCache-Control: private, max-age=0<br \/>\nConnection: close<br \/>\nDate: Tue, 29 Nov 2005 15:16:07 GMT<br \/>\nServer: Microsoft-IIS\/6.0<br \/>\nContent-Length: 540<br \/>\nContent-Type: text\/xml; charset=utf-8<br \/>\nClient-Date: Tue, 29 Nov 2005 15:15:39 GMT<br \/>\nClient-Response-Num: 1<br \/>\nX-AspNet-Version: 1.1.4322<br \/>\nX-Powered-By: ASP.NET<br \/>\n&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;&lt;soap:Envelope xmlns:soap=\"http:\/\/schemas.xmlsoap.org\/soap\/envelope\/\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\"&gt;&lt;soap:Body&gt;&lt;getCallListResponse xmlns=\"http:\/\/ws.robstones-services.co.uk\/External\"&gt;&lt;getCallListResult&gt;&lt;string&gt;ROBS_JAVA&lt;\/string&gt;&lt;string&gt;ROBS_WALL&lt;\/string&gt;&lt;string&gt;ROBS_POLY&lt;\/string&gt;&lt;string&gt;ROBS_MONO&lt;\/string&gt;&lt;string&gt;ROBS_REAL&lt;\/string&gt;&lt;string xsi:nil=\"true\" \/&gt;&lt;\/getCallListResult&gt;&lt;\/getCallListResponse&gt;&lt;\/soap:Body&gt;&lt;\/soap:Envelope&gt;<br \/>\nROBS_JAVA<br \/>\nROBS_WALL<br \/>\nROBS_POLY<br \/>\nROBS_MONO<br \/>\nROBS_REAL<br \/>\n<\/code><\/div>\n<p>\nHurrah, after all that effort, I have a list of 5 types of content offered by my third party supplier. I can now go ahead and build my service.\n<\/p>\n<p>\nSOAP::Lite is a powerful module, but the lack of simple, easy to follow documentation and examples holds it back. I hope this small article helps out other programmers just starting on the SOAP path.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been trying to access a SOAP service using Perl for a project, so I took a quick look at CPAN to see what was available. The answer seemed to be to use SOAP::Lite. This module turned out to be a real devil to use, and my problems with it were probably compounded by my &hellip; <a href=\"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Using SOAP::Lite With Perl&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[2],"tags":[17,47,75,78,80],"class_list":["post-509","post","type-post","status-publish","format-standard","hentry","category-dev","tag-dev","tag-perl","tag-web-development","tag-work","tag-xml"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using SOAP::Lite With Perl - Robert Price<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using SOAP::Lite With Perl - Robert Price\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve been trying to access a SOAP service using Perl for a project, so I took a quick look at CPAN to see what was available. The answer seemed to be to use SOAP::Lite. This module turned out to be a real devil to use, and my problems with it were probably compounded by my &hellip; Continue reading &quot;Using SOAP::Lite With Perl&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/\" \/>\n<meta property=\"og:site_name\" content=\"Robert Price\" \/>\n<meta property=\"article:published_time\" content=\"2005-11-29T21:20:58+00:00\" \/>\n<meta name=\"author\" content=\"rob\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rob\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/using_soap_lite_with_perl-shtml\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/using_soap_lite_with_perl-shtml\\\/\"},\"author\":{\"name\":\"rob\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"headline\":\"Using SOAP::Lite With Perl\",\"datePublished\":\"2005-11-29T21:20:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/using_soap_lite_with_perl-shtml\\\/\"},\"wordCount\":570,\"keywords\":[\"Dev\",\"Perl\",\"Web Development\",\"Work\",\"XML\"],\"articleSection\":[\"Dev\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/using_soap_lite_with_perl-shtml\\\/\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/using_soap_lite_with_perl-shtml\\\/\",\"name\":\"Using SOAP::Lite With Perl - Robert Price\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#website\"},\"datePublished\":\"2005-11-29T21:20:58+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/using_soap_lite_with_perl-shtml\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/using_soap_lite_with_perl-shtml\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/using_soap_lite_with_perl-shtml\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using SOAP::Lite With Perl\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#website\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/\",\"name\":\"Robert Price\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\",\"name\":\"rob\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"caption\":\"rob\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using SOAP::Lite With Perl - Robert Price","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/","og_locale":"en_GB","og_type":"article","og_title":"Using SOAP::Lite With Perl - Robert Price","og_description":"I&#8217;ve been trying to access a SOAP service using Perl for a project, so I took a quick look at CPAN to see what was available. The answer seemed to be to use SOAP::Lite. This module turned out to be a real devil to use, and my problems with it were probably compounded by my &hellip; Continue reading \"Using SOAP::Lite With Perl\"","og_url":"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/","og_site_name":"Robert Price","article_published_time":"2005-11-29T21:20:58+00:00","author":"rob","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rob","Estimated reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/#article","isPartOf":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/"},"author":{"name":"rob","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"headline":"Using SOAP::Lite With Perl","datePublished":"2005-11-29T21:20:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/"},"wordCount":570,"keywords":["Dev","Perl","Web Development","Work","XML"],"articleSection":["Dev"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/","url":"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/","name":"Using SOAP::Lite With Perl - Robert Price","isPartOf":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/#website"},"datePublished":"2005-11-29T21:20:58+00:00","author":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"breadcrumb":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.robertprice.co.uk\/robblog\/using_soap_lite_with_perl-shtml\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.robertprice.co.uk\/robblog\/"},{"@type":"ListItem","position":2,"name":"Using SOAP::Lite With Perl"}]},{"@type":"WebSite","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#website","url":"https:\/\/www.robertprice.co.uk\/robblog\/","name":"Robert Price","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.robertprice.co.uk\/robblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5","name":"rob","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","caption":"rob"}}]}},"_links":{"self":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/comments?post=509"}],"version-history":[{"count":0,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/509\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/media?parent=509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/categories?post=509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/tags?post=509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}