Getting error while invoking a service operation with multiple parameters of JSON. In failure response i am getting status code 500

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Getting error while invoking a service operation with multiple parameters of JSON. In failure response i am getting status code 500.

Can you pls tell me how to send multiple parameters from invoke operation method in visualizer.

My service Receives a JSONof raw data i.e. given below :

{

"username" : "abcd",

"Password" : "1234",

"Confirm password" : "1234"

}

I have configured request template at mobile fabric end , it is working fine and giving me the success in response.

@Elinv Lvwwence​ .

if possible can you share the device and middleware logs.

Other thing you can try passing header in your network call.

like below.

var headers ={"Content-Type":"application/json", "channel":"rc"};

integrationServiceObj.invokeOperation(operationName, headers, inputParams ,successCallback, failureCallback);

Regards

Hi @Johnvthon Phelps​ ,

Thanks for the reply.

I have put all the details like headers and all.

Now i am getting exception in catch.

Please call login in identity service before invoking this service.

I am unable to understand this exception in catch. Please help.

thanks

@Elinv Lvwwence​ This error generally observed in case where integration service,

Operation Security Level is Authenticated app user .

Below kony help :

The Operation Security Level specifies how the client must authenticate to this operation.

You can restrict access to this operation to only 'Authenticated Users' that have successfully authenticated using an Identity Service.

An 'Anonymous App User' operation allows access from a trusted client that has the required App Key and App Secret, but the client does not have to authenticate the user through an Identity Service.

Set the security level to 'Public' to allow any client to access this operation without any authentication requirement.

**Image removed for security reasons**

Regards

@Johnvthon Phelps​ its done.

thanks for the help.

Hi @Elinv Lvwwence​, make sure to click 'Select as Best' under Pravin's response if that helped you solve the issue. That way we can close this post!

ok @Adwivn Russell​

Thanks

Changed 'Select as Best' highlight under Pravin's response. Thanks @Elinv Lvwwence​

@Johnvthon Phelps​ i have one more question here.

Whenever i am hitting a new json service it is giving me the following error codes :

  1. In client failure it gives error code 1019 and error message is "http body integrity check failed."
  2. Some times it gives errorcode - 17005 & errorMsg - Not Authorized, In this i get all the headers details also.
  3. Many times i am getting error "invalid service name",but my service name is cross checked and accurate.

Please tell what i am missing and where is the real bug.

thanks for the help