on 02-26-2012 12:18 PM
I am searching an ABAP code to read attachment in sender SOAP message..
I am using PI 7.3, I can read by java mapping but I get another error after reading the attachment.. So I try to abap mapping..
That's it..
Thanx ..
Hi,
See the comment by Krishna M for this weblog below:
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3509
It describes the IF_WSPROTOCOL_ATTACHMENTS ABAP object that you should find useful for your scenario.
Hope this helps,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanx for your reply,
I am not using Proxy, I have SOAP 2 RFC scenarios. In above example.. It uses proxy..
I am receiving xop:Include attachment, the structure is following
<urn1:attachment>
<urn1:binary>
<inc:Include href="cid:test.jpg" xmlns:inc="http://www.w3.org/2004/08/xop/include" />
</urn1:binary>
</urn1:attachment>
and the error is
EXCEPTION_DURING_EXECUTE
Runtime exception occured during application mapping ...api.BaseRuntimeException: Unexpected value <null> for node ns1:atatchment/ns1:binary
Hello,
A couple more questions:
1. Is the Keep Attachments Option checked in your SOAP Sender?
2. Are you sending the SOAP message in the Adapter Engine e.g http(s)://host:port/XISOAPAdapter/MessageServlet?channel=p:s:c? Because if you are sending to the Integration Engine, it is not supported
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4502
If you are using PI 7.1, you can directly read attachments using UDF
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/15517
Hope this helps,
Mark
Hello Mark,
1. My Soap Sender Adapter, I checked the Keep Attachment option
2. I am getting the WSDL file from the SOAP Sender Agreement.. it is like http(s)://host:port/XISOAPAdapter/MessageServlet?channel=p:s:c? as you said.
I used the user-defined function, it works when <inc:Include href="cid:test.jpg" xmlns:inc="http://www.w3.org/2004/08/xop/include" /> is deleted in the message.
If the coming message includes <inc:Include href="cid:test.jpg" xmlns:inc="http://www.w3.org/2004/08/xop/include" />,
the <null> error occurs.
Thanx for your reply..
>>I am using PI 7.3, I can read by java mapping but I get another error after reading the attachment..
what is the error?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.