on 03-20-2015 12:37 PM
Hi,
I am trying to consume a web service call (from hybris) in a script file in Studio. I have created the communication arrangement, scenario and even tested the arrangement's connection ping and it was successful. My code as shown below:
var URLParameter : collectionof NameAndValue;
var headerParam : collectionof NameAndValue; //
var URLParameterEntry : NameAndValue;
//XX.XXX.XX.XXX:9001/ws410/rest/catalogs/powertoolsProductCatalog/catalogversions/Online/products/2116275
URLParameterEntry.Name = "products";
URLParameterEntry.Value = "2116275";
//URLParameter.Add(URLParameterEntry);
var httpResource = "powertoolsProductCatalog/catalogversions/Online/products/";
httpResource = httpResource + "2116275";
var httpMethod = "PUT";
var body = "<product code=\"2116275\"><catalogVersion version=\"Online\"><catalog id=\"powertoolsProductCatalog\"/></catalogVersion><name>Prashanth</name></product>";
var httpformat = "text/xml; charset=UTF-8";
var result = WebServiceUtilities.ExecuteRESTService("CloudhybrisProdUpdate","CloudhybrisProdupdate",httpMethod,httpResource,URLParameter,headerParam,httpformat,body);
var position = result.Content;
var res = result.RequestURL;
var resp = result.HeaderParameters;
in this code, instead of PUT method, if I pass "GET", I am getting the response. However, for "PUT" the result variable is completely blank. Please can you help?
Hi,
I have the same problem with the PUT method (I'm using the Could Application Studio 1505).
Have you solve this issue or is it a limitation of the SAP Reuse Librarie : WebSercieUtilities ?
I've test my program with the GET and POST method and it works. But when I test the PUT method with the UI Designer I have this error message : Invalid importing parameter http method.
The problem isn't on the remote web service plateforme side : I have verify the PUT method works thanks to a FireFox Add-on.
I have already read the related topic in the official doc and the3 link mentioned by Mithun Suthar but it didn't solve the problem.
It is essential for my dev to make it work with this PUT method.
Here is my code :
Regards,
Ludovic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
I don't know more about this but try "POST" in place of "PUT".
Regards,
Mithun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.