You need to be logged in to view a user's profile.
  1. Armando Rogerio Brandao Guimaraes Jr
  2. PowerBuilder
  3. Wednesday, 2 October 2019 14:00 PM UTC

There is a way to integrate PowerBuilder with a ServiceBus Trigger? Using PowerBuilder Standard Edition.

Example in C#:

using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.ServiceBus.Messaging;
using System;
using System.Threading.Tasks;

namespace Azure.Functions.Functions.Processing
{
public static class Function
{
[FunctionName("Processing")]
public static async Task Run([ServiceBusTrigger("processing", AccessRights.Manage, Connection = "ProcessQueue")]string myQueueItem, TraceWriter log)
{
try
{
await new MyClass(log).Execute(myQueueItem);
}
catch (Exception exception)
{
log.Error($"Exception occured: {exception}");
throw;
}
}
}
}

Kevin Ridley Accepted Answer Pending Moderation
  1. Wednesday, 2 October 2019 14:31 PM UTC
  2. PowerBuilder
  3. # 1

There should be something you can expose in Azure as a REST service and call it from PB.  If not create your own REST web service using your C# code and call that.

 

Start here:

https://docs.microsoft.com/en-us/rest/api/servicebus/

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 2 October 2019 14:45 PM UTC
  2. PowerBuilder
  3. # 2

Hi Armando;

  As another alternative to Kevin's excellent suggestion. In PB2019R2, Appeon will be introducing transparent .Net Assembly consumption. So another implementation could be a .Net Assembly that "brokers" the communication between the PB App and the ServiceBus.

This and other new features will be explained at the Elevate2019 Conference. FYI: Conference Preview.

Regards ... Chris

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.