cancel
Showing results for 
Search instead for 
Did you mean: 

XML parameter to a webservice - UpdateListItems

former_member185846
Active Participant
0 Kudos

Dear Experts,

I need to call the sharepoint webservice UpdateListItems from SAP PI 7.31. This webservice takes in 2 params - List name and Updates.

Updates - This is kind of inner xml like

<Batch OnError='Continue' ListVersion='1' ViewName=''> <Method ID='1' Cmd='New'><Field Name='Title'>"Test"</Field></Method></Batch>

When I populate the above value to this parameter, the entity characters are getting replaced - for ex, < to &lt; - and hence the webservice call is failing. I tried sending the inner xml within CData..but no luck..

Any suggestions please?

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

How do you know it's the translation that makes the web service fail?

Do you have an error or log of some sort to show?

from what I know this "translation" usually takes place and it shouldn't cause any problems.

Also - if you can enclose the WSDL you are using it will be helpful.

ambrish_mishra
Active Contributor
0 Kudos

Hi,

please check what encoding the Web service expects. Try to change the encoding at the adapter level by standard module.

http://help.sap.com/saphelp_nwpi71/helpdata/EN/45/d169186a29570ae10000000a114a6b/content.htm?framese...

One related thread:http://scn.sap.com/message/1439108

Hope it helps!

Ambrish

former_member185846
Active Participant
0 Kudos

Ambrish, The issue here is with the xml entities not with the special characters.

ambrish_mishra
Active Contributor
0 Kudos

I know... that link was just a pointer towards encoding change....

It might be an encoding issue as well.

Ambrish