[progress Communities] [progress Openedge Abl] Forum Post: Re: 11.6 Pas Web Transport

  • Thread starter Thread starter Irfan
  • Start date Start date
Status
Not open for further replies.
I

Irfan

Guest
For "form" kind of applications, you can consider using "MultipartEntity" which can get the headers, path parameter and the body oEntityWriter = EntityWriterBuilder:Build(poRequest) :Writer. oEntityWriter:Open(). oEntityWriter:Write(poRequest:Entity). oEntityWriter:Close(). assign oEntity = cast(oEntityWriter:Entity, MultipartEntity) oPart = oEntity:GetPart(1) // Gets header oHeader = oPart:Headers:Get('Content-Disposition':u). mediaType = oPart:ContentType. // Gets the Path Parameter empNum = Integer(poRequest:GetPathParameter("CUSTID")). // Gets body which is a binary memptr1 = cast(oPart:Body,ByteBucket):GetBytes().

Continue reading...
 
Status
Not open for further replies.
Back
Top