Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Getting XML to text

by derby (Abbot)
on Aug 26, 2014 at 22:29 UTC ( #1098691=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098691]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2022-12-08 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?