cancel
Showing results for 
Search instead for 
Did you mean: 

rfc---xi---web service scenario error

Former Member
0 Kudos

Hi All,

I am doing rfc-xi--webservice synchronous scenario.

I followed this blog steps

I have deployed my own webservice and when i use it with xml spy it works fine.

But when i try to execute it from RFC module I got this error.

CALL_FUNCTION_REMOTE_ERROR

In XI monitoring both messages are with red status and i got theses error is xi message monitoring

<Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV" />

- <!-- ************************************

-->

<Trace level="2" type="T">......attachment XI_Context not found</Trace>

<Trace level="3" type="T">Append context with name =ppActivated and value =false</Trace>

<Trace level="3" type="T">Das Mapping wurde bereits in der Interface-Ermittlung bestimmt.</Trace>

<Trace level="3" type="T">Objekt-Id des Interface-Mappings DA022058F9BB3E548D9760DEFC9240DA</Trace>

<Trace level="3" type="T">Versions-Id des Interface-Mappings 2A29312036EB11DDBE1AE1ED8D2C2629</Trace>

<Trace level="1" type="T">Interface-Mapping http://www.dummy.com/xi/01 IM_calculate</Trace>

<Trace level="3" type="T">Mapping-Schritte 1 JAVA com/sap/xi/tf/_MM_ws_dum_req_</Trace>

<Trace level="3" type="T">Dynamische Konfiguration ( http://sap.com/xi/XI/System/RFC ppActivated false )</Trace>

<Trace level="2" type="T">Modus 0</Trace>

<Trace level="3" type="T">Creating Java mapping com/sap/xi/tf/_MM_ws_dum_req_.</Trace>

<Trace level="2" type="T">Call method execute of the application Java mapping com.sap.xi.tf._MM_ws_dum_req_</Trace>

<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_ws_dhl_req_</Trace>

<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:MT_DHL/productid. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.

I checked message mappings and those were correct

Any help or guidence please,

Regards

hussaan

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

HI,

I tried to do that. When I test in IR it works but when I use XMl file to test as you indicated I am getting errors

I do not Know why.

Error is

Start of test

Compilation of MM_WS_DUM_REQ successful

Document start

Start tag [ns1:MT_TESTDDUM]

Add raw attribute [ xmlns:ns1="urn:DUM_FreightVi"]

Cannot produce target element /ns1:MT_TESTDUM/CALCULATE. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element /ns1:MT_TESTDUM/CALCULATE. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

16:38:37 End of test

I changed xml namespace in Message Type as it is indicated in How-to guides and other forums

Waiting for response

Regards

Hussaan

hemant_chahal
Contributor
0 Kudos

hi

I think you are having calculate as mendatory field , make it optional i.e min occurences set to 0 and try once.

thanks

hemant

Edited by: Hemant on Aug 28, 2008 2:55 AM

Former Member
0 Kudos

I tried it min occurances 0 but no success........Do any one have other tips?

Regards

Hussaan

sumesh_k2
Participant
0 Kudos

hi,

as per the error "com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:MT_DHL/productid. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii."

it may be due to difference in webservice response and rfc response. please check the repsonse types

Former Member
0 Kudos

hi sumesh,

where to check? In message mapping or usiing XML Spy to webservice. Or in Message type.

In message mapping both mappings are correct . I am not sure about XML namespace in Message type

Messages in SAP XI Monitoring are two, both are red

com.sap.aii.utilxi.misc.api.BaseRuntimeException

thrown during application mapping

com/sap/xi/tf/_MM_ws_dum_req_: RuntimeException in

Message-Mapping transformatio~

Regards

ateeq

sumesh_k2
Participant
0 Kudos

get the message from moni and use this message to test mapping in IR.

In MONI

---Double click on Message

-->Inbound Message

-->Payloads

--->Double click on MainDocument

--->Just Right Click on the second window

--->View Source

--> Copy and use in your mapping as XML

Edited by: Sumesh k on Aug 27, 2008 3:21 PM

Former Member
0 Kudos

Hi !

CALL_FUNCTION_REMOTE_ERROR

This error occurs when the RFC is not remotely enabled so plz chk it

Check if these OSS notes help you 97522 & 377972

Cause: While executing an RFC, an error occurred that has been logged in the calling system.

Runtime error: CALL_FUNCTION_REMOTE_ERROR

http://help.sap.com/saphelp_nw04/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/content.htm

Thanks !

Former Member
0 Kudos

i already read posts related to that in other posts and problem on other post was also not solved. i already check that link of help.sap.com

thanks

hussaan

Former Member
0 Kudos

Hi,

refer below thread

http://help.sap.com/saphelp_nw04/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/frameset.htm

"Award Points if helpful"

Regards,

jayasimha jangam

Former Member
0 Kudos

Hi jayasimha jangam,

I already search the forum and other blogs but my problem was not solved, I alredy visited both links and read instructions,.....

as my scenario is rfc.........xi.........web service (synchronous and response should be displayed in sap R/3)

I had created only soapreceiver channel in ID. Do I need to create receiver channel also? or not

Thanks

hussaan