on 05-05-2011 11:41 AM
Hi All,
I have requirements like from proxy (SOURCE system) to mail and File (RECEIVER system) Asynchronous communication in this requirements sender system one and one receiver system here data send to from source system to receiver system data like file format and Mail format. so above the requirements I developed below mention structure follows :
IR
Sender side:
Data Type:
DT: DT_Payment
Message Type
MT: MT_Payment
Service Interface
MI: MI_Payment_OB
Receiver side
Data Type:
DT: DT_Payment_File
DT: DT_Payment_Mail
Message Type
MT: MT_Payment_File
MT: MT_Payment_Mail
Service Interface
SI: MI_Payment_IB_File
SI: MI_Payment_IB_MAIL
Message Mappings
MM: MM_Payment_toPayment_File
MM: MM_Payment_toPayment_Mail
Operation Mappings
OM: OM_Payment_toPayment_File
OM: OM_Payment_toPayment_Mail
ID:
Sender:
Business System: SEN_DEV
Communication Channel: no need CC (using proxy)
Receiver:
Business System: SEN_DEV
Communication Channel: file_001
Communication Channel: Mail_001
Sender Agreement: no need
Receiver Agreement:
BS: SEN:DEV
SI: MI_Payment_OB,
here given receiver system(REC_DEV)
Interface Determination:
BS: SEN:DEV
SI: MI_Payment_OB
BS:REC_DEV
here given both OM_Payment_toPayment_File MM_Payment_toPayment_File and OM_Payment_toPayment_MAIL MM_Payment_toPayment_Mail
Receiver Agreement:
I create two receiver agreements one for FILE and anther MAIL and assign communication channel File_001 and MAIL_001.
This is File structure sender side
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Payment xmlns:ns0="http://ibm.com/xi/SAPISU/IF0039_PaymentRefund_100">
<PaymentRefund>
<TransactionID/>
<CustomerID/>
<TransactionDate/>
<BusinessPartner/>
<TransactionAmount/>
<RefundAmount/>
</PaymentRefund>
</ns0:MT_PaymentRefund>
This is Mail structure receiver side:
<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_PaymentRefund_Mail xmlns:ns1="http://ibm.com/xi/BLDESK/IF0040_Payment_100">
<PaymentRefund_Mail>
<PaymentData>
<From>Constant</From>
<To>Constant</To>
<subject>Constant</subject>
<Reply>Constant</Reply>
</PaymentData>
<PaymentTransaction>
<TransactionID/>
<CustomerID/>
<TransactionDate/>
<BusinessPartner/>
<TransactionAmount/>
<RefundAmount/>
</PaymentTransaction>
</PaymentRefund_Mail>
</ns1:MT_PaymentRefund_Mail>
My question is when I execute program File Scenario was successful but MAIL scenario not working the error is Message processing failed. Cause: java.lang.Exception: com.sap.aii.af.sdk.xi.util.XMLScanException: expecting start tag: Mail, but found MT_Payment_Mail at state 1.
I want need more details this Interface .
Can anyone suggest me how to create a structure for target side and how to map them.
Thanks
Inash
Your target structure namespace is wrong , Please refer this link
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
Your target structure example like this....
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<To>some mail data</To>
<From>some data</From>
<Content>Sample</Content>
<Subject>fshdfd</Subject>
</ns1:Mail>
Hope that helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhaskar Gopal ,
I applied ur structure but i getin same error " Message processing failed. Cause: java.lang.Exception: com.sap.aii.af.sdk.xi.util.XMLScanException: expecting start tag: Mail, but found MT_Payment_Mail at state 1."
<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_PaymentRefund_Mail_Test xmlns:ns1="http://spanco.com/xi/REC_DEV/IF0040_Payment_100">
<PaymentRefund_Mail>
<ADD>
<From>Constant</From>
<To>Constant</To>
<subject>Constant</subject>
<Reply>Constant</Reply>
<PaymentData/>
</ADD>
</PaymentRefund_Mail>
</ns1:MT_PaymentRefund_Mail_Test>
Hi Inashh,
The receiver mail structure has to be exactly as Baskar mentioned. Check the blog Baskar posted and make sure your structure with all the nodes are correct. Several of your tags/nodes are not allowed in MailPackage. Your mail content will be inside the Content-tag, and inside here you can have whatever you want, also XML.
Br,
Kenneth
expecting start tag: {http://sap.com/xi/XI/Mail/30}Mail, but found {http://spanco.com/xi/REC_DEV/IF0040_Payment_100}
MT_Payment_Mail at state 1.
you are getting the error because you have configured the receiver mail adapter to send Mail package...re-check the mail channel config...you should not be selecting Use Mail Package option in the channel as you are sending out a custom message (message type).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.