http://qs1969.pair.com?node_id=1098691


in reply to Getting XML to text

Is the server side perl? If so, is the client sending the XML stream correctly (POST/PUT with correct MIME type)? Is the server side using CGI or some other module? Lots of examples only deal with the form processing of CGI. If you're using CGI.pm, you want to look at the sections on POSTDATA and PUTDATA. It may be helpful to post your stub programs if they're fairly small.

-derby

Replies are listed 'Best First'.
Re^2: Getting XML to text
by chuck882 (Initiate) on Aug 27, 2014 at 18:52 UTC

    Yes the server side is PERL. The server side processes the request properly. All I want it to get the XML being sent to me into a string variable.

      Well ... you give us no code nor info on frameworks, modules, client set headers, http method, etc. I'll just assume you're POSTing XML with a mime type of application/xml and using CGI on the server side. If those assumptions are correct, then you just need to:

      my $data = $query->param('POSTDATA');
      If those assumptions are not correct, you're going to need to provide more information because there are so many different ways for a client to send data and a server to process requests.

      -derby

        Thank you, I knew it had to be something stupid I was doing. From now on I will include more details. Now seeing they are vital.