cancel
Showing results for 
Search instead for 
Did you mean: 

how to add value to Root node in message mapping i.e. <ns1:sObjects> to <ns1:sObjects xsi:type="Account">

Former Member
0 Kudos

Hi Experts,

  please provide me any  UDF or Java or XSLT maaping code to add text into the root node of the payload i.e. my target Payload will be like

<ns1:sObjects>

<ns2:Id>123</ns2:Id>

<ns2:name>Test message <n/s2:name>

</ns1:sObjects>

and i have to get it like

<ns1:sObjects xsi:type="Account">

<ns2:Id>123</ns2:Id>

<ns2:name>Test message <n/s2:name>

</ns1:sObjects>

Regards,

Yugandhar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

   Any update on this please ....

Regards,

Yugandhar

sunilchandra007
Active Contributor
0 Kudos

Same issue has been discussed in this article. Check Page 20.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/802f8d03-9282-2d10-52b4-f9446e077...

Regards,

Sunil Chandra

Former Member
0 Kudos

Hi Sunil,

Thanks for your Reply . Request you to please let me know where i have to do this changes i.e. there should be the code change or any change in PI design . If there is change in Java code could you please let me know where i have to do that

Former Member
0 Kudos

HI Yugandhar,

Can I know whether you are hving this requiremtn in sales force integration.

Thanks,

Prasad Venkata K.

Former Member
0 Kudos

Hi Prasad,

   Yes it is .... this requirement is for sales force

Regards,

Yugandhar

Former Member
0 Kudos

HI Yugandhar,

In case of sales force, the can team will provide you a WSDL, In that WSDL you can manually edit the type:Account and can use the same while mapping.

pls find the below screen shot, it will give you a better idea,

pls let me know if you any further issues regarding.


Pls Mark it as a correct answer if it is.

Thanks,
Prasad.

Former Member
0 Kudos

Hi Prasad,

  thanks for your reply , i have done as you mentioned , but still it is not reflecting in the Target payload . Please find the below screenshot

Regards,

Yugandhar

Former Member
0 Kudos

HI Yugandhar,,

The above config is of sender side,

But for target side, As per my knowledge they need the output in SOAP format with soapenv, soapheader and all.

If yes we need to edit that manually and impot the same in mapping(Target side)

Thanks,
Prasad.

Former Member
0 Kudos

Hi Prasad,

   I don't think so that there will be source and target structures separately in WSDL file ...

Regards,

yugandhar