Thanks Oleg On Mon, Jul 15, 2013 at 9:29 AM, Oleg Kalnichevski <[email protected]> wrote:
> On Sun, 2013-07-14 at 13:07 +0200, Philippe Mouawad wrote: > > Hello, > > I would like to implement MTOM+XOP requests. > > I would like a confirmation there is nothing already existing in > > HttpClient/Mime or Core. > > > > Hi Philippe > > There is nothing like that in HC but you may find Apache Mime4J useful. > > Hope this helps > > Oleg > > > My first analysis shows I would need to have: > > > > - XopBodyPart (similar to FormBodyPart) which would be the whole > request > > - XopEntity (similar to MultipartEntity) > > - XopMultipart (similar to HttpMultipart) which would be the > collection > > of XopEntity > > > > > > Request would look something like this: > > > > HTTP/1.1 200 OK > > Date: Wed, 19 Nov 2008 21:54:57 GMT > > Server: Apache > > SET-COOKIE: CSPSESSIONID-SP-8080-UP-csp-gsop-=003000010 > > 000247guhlx000000NW1KN5UtWg$CWY38$bbTOQ--; path=/csp/gsop/; > > CACHE-CONTROL: no-cache > > EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT > > MIME-VERSION: 1.0 > > PRAGMA: no-cache > > TRANSFER-ENCODING: chunked > > Connection: close > > Content-Type: multipart/related; type="application/xop+xml"; > > boundary=--boundary388.5294117647058824932.470588235294118--; > > start="<0.B1150656.EC8A.4B5A.8835.A932E318190B>"; start-info="text/xml" > > > > 1ddb > > ----boundary388.5294117647058824932.470588235294118-- > > Content-Type: application/xop+xml; type="text/xml"; charset="UTF-8" > > Content-Transfer-Encoding: 8bit > > Content-Id: <0.B1150656.EC8A.4B5A.8835.A932E318190B> > > > > <?xml version="1.0" encoding="UTF-8" ?> > > <SOAP-ENV:Envelope xmlns:SOAP-ENV=' > http://schemas.xmlsoap.org/soap/envelope/' > > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > > xmlns:s='http://www.w3.org/2001/XMLSchema'> > > <SOAP-ENV:Body> > > <DownloadResponse xmlns="http://www.filetransfer.org"> > > <DownloadResult> > > <Filename>sample.pdf</Filename> > > <IsBinary>true</IsBinary> > > <BinaryContents> > > <xop:Include href="cid:1.B1150656.EC8A.4B5A.8835.A932E318190B" > > xmlns:xop="http://www.w3.org/2004/08/xop/include"/> > > </BinaryContents></DownloadResult></DownloadResponse> > > </SOAP-ENV:Body> > > </SOAP-ENV:Envelope> > > > > > > Thanks for help. > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Cordialement. Philippe Mouawad.
