rkrish:

Since you have the values in an array, I'd fetch the values from the array.

Slightly more seriously: Since you have an XML document, you might investigate one of the many XML parsers found on http://www.cpan.org.

Anyway, on to a real answer: I have no idea what your difficulty is, since you didn't describe your problem, and you didn't show the code where you read the values into the array. All I can do is guess...

Guess 1: To get your values into the array, you just read it from a file and have no idea what to do with it. If that's the case, go to CPAN and find an XML parser and start digging in. Or you could post the code you're having trouble with.

Guess 2: You're somehow calling a web service with perl without knowing anything about perl, XML or SOAP. In that case, I'd start researching and probably the person who helped you get to where you are now. If you can't reach them, you might try posting the code you're having trouble with.

Guess 3: You're calling a web service with perl and you do know perl and a few other things, and are just having trouble with a SOAP library. Well, in that case, if you post the code you're having trouble with, someone might be able to help you find the problem.

Well, that about does it for my guesses. If none of those are helpful, you might try this: Post the code giving you the problems, and ask a coherent question, and perhaps someone will be able to help you out.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


In reply to Re: Fetch field values from API output by roboticus
in thread Fetch field values from API output by rkrish

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.