cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP to RFC Mapping error:com.sap.aii.utilxi.misc.api.BaseRuntimeException:

Former Member
0 Kudos

hi all,

I am doin a http to rfc scenario.In moni it is showing a mapping error in the request mapping and showing this error.In IR my mapping is working fine but in payload runtime i found the error is because it is showing <?xml version="1.0" encoding="UTF-8" ?> twice.Below is the payload message

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

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

- <ns0:Lspm_Request_SampledueGrid_MT xmlns:ns0="http://satyam.com/xi/LSPM">

<KUNNR>100000</KUNNR>

<FROM_DATE>15.11.2006</FROM_DATE>

<TO_DATE>10.12.2006</TO_DATE>

- <EQUIPMENTID>

- <item>

<EQUIPID>wb</EQUIPID>

</item>

</EQUIPMENTID>

+ <LOCATIONID>

- <item>

<LOCID>1</LOCID>

</item>

</LOCATIONID>

- <OILID>

- <item>

<OILID>BP260</OILID>

</item>

BP260

</OILID>

</ns0:Lspm_Request_SampledueGrid_MT></i>

I tested using view source code and removing the extra ]<?xml version="1.0" encoding="UTF-8" ?> in IR and it is working fine.

Now my problem is how to rectify this error can anyone help me out please??

thanks,

Nisheeta

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi all,

thanks a lot for the help.I am still getting the date format error which i will find out from the Abapers...thanks for the help

regards,

Nisheeta

Former Member
0 Kudos

hi,

I tried to post the XML in the http page without the header and now it it showing a new error

Result:

<SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Name or password is incorrect (repeat logon)</SAP:AdditionalText></SAP:Error>

http://cgnsap27:8000/sap/xi/adapter_plain?namespace=http%3A//satyam.com/xi/LSPM&interface=Lspm_Sampl...

wat does this mean??

nisheeta

Former Member
0 Kudos

Hi,

Please make sure that you have given correct username and password in RFC receiver CC. What about the payload now? Are you still getting it twice?

Regards,

Sudheer.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Please check if the user id and passwaord in the RFC Adapter is a valid user id and password.

Please check for the details entered in the RFC adapter as well.

Regards,

Bhavesh

Former Member
0 Kudos

hi sudheer,

Now the payload is fine it is not showing twice.Yes in the receiver RFC adapter the password was changed now it is ok thanks a lot.But now i am getting the error as

<i>RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$ConversionException: (122) JCO_ERROR_CONVERSION: Date '15.11.2006' has a wrong format at field FROM_DATE: Unparseable date: "15.11.2006"</SAP:AdditionalText></SAP:Error></i>

but this is the value given by the people who have written the RFC...how shud i know the correct format

Former Member
0 Kudos

Hi,

Just execute the RFC u r trying to use in XI in TCode "se37". Check for what format of input date the RFC is working fine there. Use that in ur input file.

Regards,

P.Venkat

bhavesh_kantilal
Active Contributor
0 Kudos

Nisheeta,

Execute the RFC from SE37 and see how the date format takes its entires.

I think it should be YYYYMMDD. just pass the date in this format anc check if it works fine.

Regards,

Bhavesh

Former Member
0 Kudos

Hi,

The date should be specified in this format.

YYYY-MM-DD

Regards,

Sudheer.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Make sure hat the actual HTTP message you send from the HTTP client does not have <i><?xml version="1.0" encoding="UTF-8" ?></i> created 2 times.

Also, when posting the XML Message from the HTTP Client, make sure that there is no <b>"-"</b> in your source XML.

Regards,

Bhavesh

Former Member
0 Kudos

hi bhavesh,

the actual message i have send is not having it twice coz the mapping which i hav done in IR is correct and showing no errors.Only this payload message is showing it twice and this is the reason for the error ....but dnt know how it is getting generated twice during runtime

also there is no "-" in the source XML

regards,

Nisheeta

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

can you please try and use the HTTP Client given in this page and see if it works?

if yes, then internally your HTTP Client code is itself adding the <xml version.. > line to it. So, remove the same and try to test your scenario.

/message/266750#266750 [original link is broken]

Regards,

Bhavesh

Former Member
0 Kudos

Hi,

When you are using RFC no need to create message types and message interfaces. You can use the RFC that you have imported from R/3 for this purpose.Just check if this solves your problem.

Regards,

Sudheer.

Former Member
0 Kudos

hi sudheer,

I have done the same thing,the request mapping is between the Http Message type and rfc that i have imported....the error is because of the xml version coming twice during runtime....i am not knowing how to remove it.While sending the source xml in http client this is not there

regards,

nisheeta

Former Member
0 Kudos

Hi,

I think in the HTTP client you are using they are constructing the prolog in the code. So dont give that line when you are giving the payload. The client will add that line and send.

Regards,

Sudheer.