Quantcast
Channel: SCN : Popular Discussions - Code Exchange
Viewing all articles
Browse latest Browse all 1399

REST Webservice call - invalid SERVICE_ID

$
0
0

Hi,

 

I'd like to test the REST Webservice by calling the semantics3.com service. I've created a mashup configuration in my solution, aswell as a script.

 

I'm calling the webservice like this:

 

import ABSL;

import AP.Common.GDT;

 

 

var serviceID : LANGUAGEINDEPENDENT_Text;

var parameter : NameAndValue;

var parameters : collectionof NameAndValue;

 

 

serviceID = "PW00002";

parameter.Name = "products?q=";

parameter.Value = "{'upc':'883974958450'}";

parameters.Add(parameter);

 

 

var result = WebServiceUtilities.ExecuteWebService(serviceID);

var content = result.ResponseContent;

var code = result.ReturnCode;

 

 

When running this method, the error "Service ID MySolution/PW00002 is not active or not valid" occurs. The webservice is there and it's active! Do you have a guess what is wrong here?

 

Thanks a lot!

 

 

Greetings

 

Johannes


Viewing all articles
Browse latest Browse all 1399

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>