[AWS] Reading the body of a POST as a String

Phil Costin philcostin at hotmail.com
Thu Jun 2 23:50:00 CEST 2011


> From: pascal at obry.net
> To: philcostin at hotmail.com
> Subject: Re: [AWS] Reading the body of a POST as a String
> Date: Thu, 2 Jun 2011 19:17:15 +0200
> CC: aws at lists.adacore.com
> 
> Phil,
> 
> > First of all thank you for AWS - I have started using it recently  
> > for various projects and it feels very well constructed
> 
> Thanks!
> 
> > My question is - I am developing a small program which receives a  
> > POST containing an XML body so that I may validate it an xsd (using  
> > XML/Ada) but I need to obtain the body of the post as a string so  
> > that I can prepare it for parsing by XML/Ada.
> 
> AWS.Response.Message_Body seems to be what you are looking for.
> 
> --
>    Pascal Obry

Thanks Pascal - I have tried this function before but gnat did not seem to recognise that overload (the one which accepts a parameter of AWS.Status.Data and returns a String or an Unbounded_String) - I may have an error elsewhere though so it's probably something simple.
Kind Regards,Phil Costin 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/aws/attachments/20110602/cb61a8dc/attachment.htm 


More information about the AWS mailing list