cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP reponse xml truncated ? URGENT

Former Member
0 Kudos

Hi Guys,

I have a HTTP-RFC scenario. when i send the http request, we are getting the full response xml from sap back to xi , but it is getting truncated after the java mapping response. The status is sucess both in MONI & RWB

we are unable to trace out why the xml is getting truncated after java reponse mapping. I think java mapping can handle large xmls also.

Do i need to make any settings in sxmb_adm ?

any help would be really appreciated

Thanks,

srini

Accepted Solutions (1)

Accepted Solutions (1)

henrique_pinto
Active Contributor
0 Kudos

check if you have any bufferings in your java mapping that would be causing this truncation.

this error is probably happening because the xml is not well formed. try to open it in notepad.

Regards,

Henrique.

Former Member
0 Kudos

Hi Henrique,

How to check for the bufferings you r talking about and the xml after java mapping is as below. I have this problem only when i have line items more than 100

<?xml version="1.0" encoding="iso-8859-1" ?>

- <biztalk_1 xmlns="urn:biztalk-org:biztalk:biztalk_1">

+ <header>

- <delivery>

- <message>

<messageID>10394896</messageID>

<sent>2007-5-18T15:38:32</sent>

<subject>DOI CheckIn Response</subject>

</message>

- <to>

<address>TOBIN_HOUCTX25_BS</address>

</to>

- <from>

<address>com_apachecorp_EDV_200</address>

</from>

</delivery>

</header>

- <body>

- <doc:DOI.CheckIn.Response xmlns:doc="urn:sap-com:document:sap:business" xmlns="">

<status>OK</status>

<objecttype>DOI</objecttype>

<objectkey>001001558000020</objectkey>

- <MESSAGES>

- <ITEM>

<TYPE>S</TYPE>

<ID>OIUCM</ID>

<NUMBER>899</NUMBER>

<MESSAGE>Ownership System Table Update Log for DOI 0010 015580 00020</MESSAGE>

<LOG_NO />

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1>Ownership System Table Update Log for DOI</MESSAGE_V1>

<MESSAGE_V2>0010 015580 00020</MESSAGE_V2>

<MESSAGE_V3 />

<MESSAGE_V4 />

<PARAMETER />

<ROW>0</ROW>

<FIELD />

<SYSTEM>EDVCLNT200</SYSTEM>

</ITEM>

- <ITEM>

<TYPE>S</TYPE>

<ID>OIUCM</ID>

<NUMBER>899</NUMBER>

<MESSAGE>----


</MESSAGE>

<LOG_NO />

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1>----


</MESSAGE_V1>

<MESSAGE_V2 />

<MESSAGE_V3 />

<MESSAGE_V4 />

<PARAMETER />

<ROW>0</ROW>

<FIELD />

<SYSTEM>EDVCLNT200</SYSTEM>

</ITEM>

- <ITEM>

<TYPE>S</TYPE>

<ID>OIUCM</ID>

<NUMBER>899</NUMBER>

<MESSAGE>OIU_DO_DO - DOI Owner Table</MESSAGE>

<LOG_NO />

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1>OIU_DO_DO - DOI Owner Table</MESSAGE_V1>

<MESSAGE_V2 />

<MESSAGE_V3 />

<MESSAGE_V4 />

<PARAMETER />

<ROW>0</ROW>

<FIELD />

<SYSTEM>EDVCLNT200</SYSTEM>

</ITEM>

- <ITEM>

<TYPE>S</TYPE>

<ID>OIUCM</ID>

<NUMBER>899</NUMBER>

<MESSAGE>51 Total owners on table</MESSAGE>

<LOG_NO />

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1>51</MESSAGE_V1>

<MESSAGE_V2>Total owners on table</MESSAGE_V2>

<MESSAGE_V3 />

<MESSAGE_V4 />

<PARAMETER />

<ROW>0</ROW>

<FIELD />

<SYSTEM>EDVCLNT200</SYSTEM>

</ITEM>

- <ITEM>

<TYPE>S</TYPE>

<ID>OIUCM</ID>

<NUMBER>899</NUMBER>

<MESSAGE>51 inserted</MESSAGE>

<LOG_NO />

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1>51</MESSAGE_V1>

<MESSAGE_V2>inserted</MESSAGE_V2>

<MESSAGE_V3 />

<MESSAGE_V4 />

<PARAMETER />

<ROW>0</ROW>

<FIELD />

<SYSTEM>EDVCLNT200</SYSTEM>

</ITEM>

- <ITEM>

<TYPE>S</TYPE>

<ID>OIUCM</ID>

<NUMBER>899</NUMBER>

<MESSAGE>0 Changed</MESSAGE>

<LOG_NO />

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1>0</MESSAGE_V1>

<MESSAGE_V2>Changed</MESSAGE_V2>

<MESSAGE_V3 />

<MESSAGE_V4 />

<PARAMETER />

<ROW>0</ROW>

<FIELD />

<SYSTEM>EDVCLNT200</SYSTEM>

</ITEM>

- <ITEM>

<TYPE>S</TYPE>

<ID>OIUCM</ID>

<NUMBER>899</NUMBER>

<MESSAGE>0 Unchanged</MESSAGE>

<LOG_NO />

<LOG_MSG_NO>000000</LOG_MSG_NO>

<MESSAGE_V1>0</MESSAGE_V1>

<MESSAGE_V2>Unchanged</MESSAGE_V2>

<MESSAGE_V3 />

<MESSAGE_V4 />

<PARAMETER />

<ROW>0</ROW>

<FIELD />

<SYSTEM>EDVCLNT200</SYSTEM> <The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

-


Whitespace is not allowed at this location. Error processing resource 'file:///C:/Documents and Settings/srinivas.kapu/Loca...

<?xml version="1.0" encoding="iso-8859-1"?><biztalk_1 xmlns="urn:biztalk-org:biztalk:biztalk_1"><header>&l...

/DIV>

</ITEM>

- <ITEM>

<TYPE>S</TYPE>

<ID>OIUCM</ID>

<NUMBER>899</NUMBER>

<MESSAGE>0 Deleted</MESSAGE>

Message was edited by:

srinivas kapu

henrique_pinto
Active Contributor
0 Kudos

you have to check your java mapping code.

I'm not sure if that's the cause, though.

Regards,

Henrique.

Former Member
0 Kudos

Open your source XML in internet explorer and see whether the source XML is valid or not. It might be possible that your source XML has some white spaces/some invalid characters which XI can't process.

Regards,

ravi

Former Member
0 Kudos

Hi Ravi,

Thanks, the source xml had & sign which was causing problems. It has solved our problem.

Thanks,

srini

Former Member
0 Kudos

you are welcome.

Former Member
0 Kudos

Hi Ravi,

Is there any way we can handle the "&" sign in java mapping ?. The xmls coming from the third party has "&" in the names and i want to know that is there any whether we can handle this special charachter in the mapping

How to handle the special char in Java coding ? or do we need to remove from the source xml ?

any help would be appreciated

Thanks,

srini

henrique_pinto
Active Contributor
0 Kudos

If the XML from the sender contains & and not &amp (with a semicollon after it) then that XML is not valid. It needs to be corrected in the sender system, sinde they are generating invalid XMLs.

Regards,

Henrique.

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

test your response java mapping like this

/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

with XML from the HTTP response (taken from XI)

XI does not truncate messages - nothing needs to be set

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi Michal,

I downloaded the repsone xml into file and it is as below

see the xml posted below and it is saying whitespace not allowed at certain stage and when i send the request with few line items, i have no problem at all and i have the problem only when i have line items more than 100

any help would be appreciated

Thanks,

srini

Message was edited by:

srinivas kapu