I have created REST API in webMethods. I have created API for get and it is working fine as expected. I have created API for post. I am invoking rest API using pub.client.http by passing the following values.
In _post service input, i have jsonString as input and jsonStringToDocument as first step inside the service.
When i run my client service which is invoking rest API, I am getting the error “Missing Parameter jsonString”.
I checked in the rest API, the service was invoked successfully but in the pipeline json string was parsed before the jsonStringToDocument.
Can anyone help me to resolve this issue? Its very urgent.
I agree with your points. The problem is i have _post in my rest API. i have input as jsonString, but i am not getting value for that jsonString, instead my whole string is parsed as document.
Consider this example, i am passing the following json string in clinet.http - data/string/
"Student":
{
"name":"Venkat"
"regno":"123456"
}
then in my rest API _post method, i have input jsonString.
Now, i am expecting the above json string in the input field jsonString. But the actual behavior happening is the json string is internally parsed as document and i am getting studnet document.
student
|________ name
|________ regno
but i am expecting the string in input field jsonString instead of doucment student.
Have you created a REST client as well? I am new to webMethods and was trying to create a REST client.
Can you please share what you how you created the it?
Yes it can process XML rest request and node to document (Json) will be in the pipeline and assuming you have created the IS document for downstream mapping and transformation.