留言板

Getting a SOAP Response in pdf

amey pelapkar,修改在8 年前。

Getting a SOAP Response in pdf

New Member 帖子: 4 加入日期: 15-7-8 最近的帖子
Hi,

I am calling SAP SOAP web service which returns output in PDF file, actually it is in xml format as below,

<PdfImage>
<item>
<Line>JVBERi0xLjMNCiXi48/TDQolUlNUWFBERjMgUGFyYW1ldGVyczogRFJTWGgNCjIgMCBvYmoNCjw8
DQovVHlwZSAvWE9iamVjdA0KL1N1YnR5cGUgL0ltYWdlDQovRmlsdGVyIDMgMCBSDQovTGVuZ3Ro
IDQgMCBSDQovTmFtZSAvMDAwMDINCi9XaWR0aCA3MDYNCi9IZWlnaHQgNzENCi9CaXRzUGVyQ29t
cG9uZW50IDENCi9JbWFnZU1hc2sgdHJ1ZQ0KPj4NCnN0cmVhbQ0KeJyV10FvHDUUB3DPetNJ0bKO
WhVFoomF+AI99lDFRRz6NUB8gXDLIYo3CmIu</Line>
</item>
<item>
<Line>qP0a/RCgeknVPXLqfZaeQS6gYhGvH//nmdmd2aRUqFW3sef91mM/2y/P6fmNf34jMSPxgiRFUSYa
RRmvhDBEwiUhpKOCAomuY2QorDbNwtKmw/U7dNdRGMCbdrVpj/32ctPu8WOB77/o+uSmr2b6p7a9
aNpJ4K/jweSOJDbNIyeKH681zoT8i4qAIRap/KXpHltqu3kwVySDSprwWjW+vQjFWzyr/8ageGLw
qf5p40wvTvXiHI+uFvaPNlBuB+omcMWTi5fi0LIJnfFgnTB/0miZdADAY3A29KLVdvSYozGLt8ra
0jz0gnUveERhRGJcDqLNFX0cniStKKlg6SLq</Line>
</item>
<item>
<Line>HGw4GIlQfMfBz3KwRLBcB8cu+MscrIOhKiFYLN9RETn0B+vpNsJmWKybo6LGg4rUIAo5IBHleNr6
YZbDvslh5nrYpA1DkkiLsCiKoo1S4et+VNR4b48V4YyvaUk0RgcjMvAjVE6R6FSRX5HEBJ6nNWyG
8N4GxnPKl5FO9pyJgqZqdigOdV2GYyS9rBVn0p1D7d1RQU4vSjyceAOx7K/LZfi2kalZw3uuiF8d
z3QQdqKEAu1keIwVl0529Oy+sDP1qsR3Rd7DTGPtpN6mj5nGWjf0R3MXH59MlH9gdmkq2aZzEQj4
/sU58AT76e6xnaqXpXLz8FA3Njyp/tu+V/n4</Line>
</item>
</PdfImage>

Can you please help me out on How to convert PDF file from above data.

Regards,
Amey
thumbnail
Andew Jardine,修改在8 年前。

RE: Getting a SOAP Response in pdf

Liferay Legend 帖子: 2416 加入日期: 10-12-22 最近的帖子
Hi Amey,

I'm not sure that this is the best place to ask your question as it doesn't seem to have much to do with Liferay. In the past I have used tools like iText to dynamically generate PDF files, though what I had as input looked very different from that you are showing us in your example. Is there maybe a parameter or a different service you can call to get a different response payload?