Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
How to pass String datatype in WebService call URL — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to pass String datatype in WebService call URL

Received Response
41
Views
11
Comments
in Sales 11 comments

Summary:

We are using below webservice call:

https://<ServerName>/fscmRestApi/resources/latest/installedBaseAssets/##AssetId##

When this service is invoked we get an Error : "java.lang.Long cannot be cast to java.lang.String"

Content (required):

We are using below webservice call:

https://<ServerName>/fscmRestApi/resources/latest/installedBaseAssets/##AssetId##

When this service is invoked we get an Error : "java.lang.Long cannot be cast to java.lang.String"

The value of AssetId we are passing is a value of Long datatype but the webservice URL is expecting AssetId to be a string.

How can we define a webservice which has a "String" datatype in the URL ?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!