cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when receiving Mail

jean-philippe_pain2
Participant
0 Kudos

Hello all,

My scenario is : MAIL -> PI (bpm) -> SQL

When we look at the mail before XI, we can see data between xml tags:

<title>1</title>

<address>ERTT</address>

So i built a Data type like this thinking it will be easy in that case :

Document line 1..1

title 1..1

adress 1..1

Then i've configured my sender mail adapter like that :

tranport protocol : pop3

message protocol : XIPAYLOAD

And i've filled up the XI Defaut Parameter with the good namespace and the name of my outbound asynchronous interface.

It works fine but when i look in the message system i should see something like this :

"<?xml version="1.0" encoding="UTF-8"?>

<ns0: xmlns:ns0="http://frik.com">

<document Line>

<title>1</title>

<address>ERETT</address>

</document Line>

</ns0:inside>"

And it's not the case because i see only :

<title>1</title>

<address>ERETT</address>

did i miss something in the configuration ?

Thanks,

JP

Edited by: Jean-Philippe PAIN on Jan 19, 2009 6:42 PM

Edited by: Jean-Philippe PAIN on Jan 19, 2009 6:43 PM

Edited by: Jean-Philippe PAIN on Jan 19, 2009 6:43 PM

Edited by: Jean-Philippe PAIN on Jan 19, 2009 6:43 PM

Edited by: Jean-Philippe PAIN on Jan 19, 2009 6:46 PM

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you can try setting this parameter in Advanced Mode for sender mail adapter:

IMail.AssumeXMLContent = true

have a look at :

http://help.sap.com/saphelp_NW04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm

and let me know if it helped

Regards,

Michal Krawczyk

VijayKonam
Active Contributor
0 Kudos

Did you check the flag - Use XML Package?

VJ

jean-philippe_pain2
Participant
0 Kudos

I am still working on my java but i have an other question.

My sender mail adapter doesn't take anymore mails. It says that it have no new mail but i've made new one and it doesn't take it !

Is this sender mail adapte have particularity like taking mail by package of 100 or one by one i don't know. i don' understant why it doesn't see any mails now...

thanks by advance...

Answers (1)

Answers (1)

jean-philippe_pain2
Participant
0 Kudos

Hi all,

Thanks for your answers.

So, after reading your post, i'v checked the "Use Mail Package" with encoding "none" and i am now using an XSD.

When i use IMail.AssumeXMLContent = true in the Advanced Mode, it brings me only one field in my content:

e.g.

<content>

<language>en</language>

</content>

It's weird that it brings me back only one field...it takes the first one only, don't know why ???!!!

The other solution is without the advanced mode and this time, i have all my field in my content but the symbol "<" or" >" is interpreted by &#60 and &#62 (text/hexa)

I'm going to try to apply xsl or java on it...