Is there any one plese suggest how to pass the value in dot net web service. Am getting error "500 Internal Server Error "
use MIME::Base64; use Frontier::Client; use warnings; =head a.txt file contains <PDFExsists> <UniqueID>202775</UniqueID> <Queryexsists>false</Queryexsists> <XMLExsists>false</XMLExsists> <MMCExsists>false</MMCExsists> <Illustexsists>false</Illustexsists> <Pdfexsists>false</Pdfexsists> <MMC>0</MMC> <BID>202775</BID> <Filename>6041_No3.xml</Filename> <Versionno>6041</Versionno> <Duedate>2008-07-16T00:00:00</Duedate> <Recdate>2008-07-16T14:47:37</Recdate> <Stage>S200</Stage> <Aid>6041</Aid> <Jid>JBMT</Jid> </PDFExsists> =cut $text='D:\raj\service\a.txt'; open (IN,"<$text") || die "Unable to open the input file"; binmode IN; undef $/; $filecontent = <IN>; $encoded = encode_base64($filecontent); close IN; my $url = "http://10.0.6.78/pdf%20service/service.asmx"; my @args = ($ARGV[0], $encoded); my $client = new Frontier::Client( url => $url, debug => 0); print $client->call('SetItemsPDF',@args);

In reply to Webservice update by rajmonks

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.