IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

REST Web services: How to post parameters in JSON format ? Options · View
icarrara
Posted: Friday, May 8, 2020 2:27:28 PM
Rank: Newbie

Joined: 2/8/2007
Posts: 9
Location: Monaco (MC)
I have to call a JSON REST web service using the POST verb.

My parameters are in the format below:

{
userWs : {
id :"some-id",
password :"some-password"
},
cod : " 95",
form : "31/03/2019",
to : "29/09/2019",
contr : "xyz",
typeRec : "abc"
}

Please could someone address me how to do the above call in XMLSpy and MapForce ?

Thank you in advance !
Ivano
that
Posted: Monday, May 11, 2020 12:10:49 PM
Rank: Advanced Member

Joined: 6/16/2006
Posts: 486
Location: AT
Use XMLSpy to create and edit a JSON schema for your parameter structure.
Then, in MapForce, you can simply assign that JSON schema to the web service call component's request side and map the parameter contents into the component.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.