cancel
Showing results for 
Search instead for 
Did you mean: 

mapping problem in SOAP response to RFC response - RFC-XI-SOAP scenario

Former Member
0 Kudos

Hi gurus,

response structure from SOAP is as below (inbound msg - in SXMB_MONI)

MONI and RWB shows successful(I am using graphical mapping)

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

- <!-- Inbound Message

-->

- <ns0:testrequestResponse xmlns:ns0="conversion" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" Status="Success">

- <ns0:SAP_OUT>

<ns0:F1 Value="1234" />

<ns0:F2 Value="2345" />

- <ns0:SAP_LINES>

- <ns0:SAP_LINE>

<ns0:SAP_L Value="1" />

<ns0:Field5 Value="" />

- <ns0:SAP_S1>

- <ns0:SAP_S>

<ns0:ID Value="11111" />

<ns0:SAP__NO Value="0001" />

<ns0:DATE1 Value="08/15/2008 00:00:00:000" />

<ns0:FST/>

</ns0:SAP_S>

</ns0:SAP_S1>

</ns0:SAP_LINE>

</ns0:SAP_LINES>

</ns0:SAP_OUT>

</ns0:testrequestResponse>

I make the RFC response with same structure and mapped it but it is not giving the full structure rather it is giving only this (Outbound Msg in SXMB_MONI)

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

- <ns1:Z_MYRFC.Response xmlns:ns1="urn:sap- com:document:sap:rfc:functions">

<STATUS>Success</STATUS>

</ns1:Z_MYRFC.Response>

what went wrong?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

As per my knowledge, While importing RFC the request and response structure is automatically visible so we do not have to create the request or response structure. We have to just map that structure with whatever is our needed one.

So what do you mean by "I make the RFC response with same structure and mapped it but it is not giving the full structure."?

Regards,

Nutan

prateek
Active Contributor
0 Kudos

Copy the payload and test it in the Test tab of the response mapping under Interface Mapping in IR.

Regards,

Prateek

Former Member
0 Kudos

I mapped all the parent and clild node.

in IM testing using payload it is giving the same result as above .

but when I am testing IM by putting value in each node it is giving the perfect result .

what will be the cause ?

Former Member
0 Kudos

Hi,

Please can re-import the RFC structure again in IR and then re-deploy the mapping and try it once again.

Thanks

swarup

Former Member
0 Kudos

not solved by reimport of RFC ,

I noticed a thing,

when I am passing the above payload (inbound msg) by removing namespace ns0 from all the nodes it is giving the right result in IM testing.

what is it ? and how to achieve it in mapping.

prateek
Active Contributor
0 Kudos

The problem then could be with ur wsdl structure. Can u provide the structure here.

Regards,

Prateek

Former Member
0 Kudos

As prateek says, there is some mismatch in your WSDL response structure and required response structure,

instead of using wsdl msg as response try to make XSD structure as per requirement, import it as external definition and use it in response mapping,

Former Member
0 Kudos

Hey,

I tried creating some XSD structure, and now I can see the deep structure in outbound (response) msg.,still it is not displaying some fields, so I came to conclusion that there is some mistake in creating receiver XSD,

can any one give some ref. how to make XSD from wsdl file.

thanks prateek,n/w exp......

sunil_singh13
Active Contributor
0 Kudos

Hi,

You would have forgot to map parent node coming after <STATUS>Success</STATUS>

Make sure that you have properly mapped all the parents and there child.

Are you getting the same result while Testing it standalone?

Thanks

Sunil Singh