on 06-14-2016 9:29 AM
Hi Guru's,
source field URL(image) to target as Attachment in SAP PI.
Src :
<?xml version="1.0" encoding="UTF-8"?>
<Order xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Myorder.xsd">
<MyOrder ReceivingSystem="testrcv">
<OrderHeader>
<Requestor>
<BidsId>GIw123456</BidsId>
<Name>test</Name>
<Email>test@mail.com</Email>
</Requestor>
<RequestedDate>2016-05-13</RequestedDate>
<Receiver>
<BidsId>GIW123456</BidsId>
<Name>test</Name>
<Email>test@mail.com</Email>
</Receiver>
<PlannedDeliveryDate>2016-05-23</PlannedDeliveryDate>
<OrderId>400000000</OrderId>
</OrderHeader>
<OrderRows>
<Row PositionId="1234567" Activity="WaitForStatus" ServiceId="1.40.2">
<Param Name="Desciription"> test desc </Param>
<Param Name="DATE_FROM">25.05.2016</Param>
<Param Name="DATE_TO">31.05.2016</Param>
<Param Name="ConfigItem">Test-config</Param>
<Param Name="UploadFileName">NewShare.png</Param>
</Row>
</OrderRows>
</MyOrder>
</Order>
We need to send this image as a attachment to target side.(Soap to Soap scenario)
Plz Give some Ideas..
Thank you.
Regards,
Jittu
Hi Jithendra!
You can get file from url using Java. For example, apache commons-io:
FileUtils.copyURLToFile(URL, File)
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.