1. Jeff Cutler
  2. SnapDevelop
  3. Friday, 15 May 2020 19:01 PM UTC

Is Powerbuilder HttpClient supported in a SnapDevelop 2019 R2? WebAPI project?  I am am migrating PowerScript to a C# WebAPI project. 

When I declare 'HttpClient Http;' in my GlobalFunc, I receive this compiler message: The type or namespace name 'HTTPClient' could not be found'.

I have included these usings but none of them contain the Appeon HttpClient object.

using SnapObjects.Data;
using SnapObjects.Data.Odbc;
using SnapObjects.Data.AspNetCore;
using DWNet.Data.AspNetCore;

using PowerScript.Bridge;

I searched the NuGet website for other NuGet packages from Appeon but I do not see one that contains HttpClient.

 

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Friday, 15 May 2020 19:24 PM UTC
  2. SnapDevelop
  3. # 1

HTTPClient object is a PowerScript object. 

What are you trying to do?  Have your C# Web API call another Web API?  If yes, please follow Microsoft tutorial how to do this in C#.  Appeon doesn't need to provide any special things because C# supports this.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.