on 11-30-2006 4:47 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
wat does this mean??
nisheeta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.