cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Citrix73
Helper I
Helper I

Call my WCF service from Flow

Hi guys,

i need to call my WCF service that return a json output from a Microsoft Flow or directly from Powerapps.

From my VB.net application i call the WCF service with the code below.

How can i obtain the same result in a Flow or Powerapps?

 

Dim GetGiacenze As ServiceReference1.IService1 = New ServiceReference1.Service1Client()
Dim request As New ServiceReference1.estrazione_giacenzaRequest
request.UID = Me.TextBox1.Text
request.pwd = Me.TextBox2.Text
If Me.ComboBox1.SelectedItem <> "" Then
request.divisione = Microsoft.VisualBasic.Left(Me.ComboBox1.SelectedItem, 4)
End If

request.magazzino = "1000"

Me.ListView1.Items.Add("Connessione al servizio web H&B in corso.....")
My.Application.DoEvents()


'Dim string_request As String = request.ToString

Dim response = GetGiacenze.estrazione_giacenza(request)

 

3 REPLIES 3
timl
Super User III
Super User III

Hi @Citrix73 

We can call web services from Flow or directly from Power Apps using custom connectors.

A WCF service will typically be SOAP based. Here's a link that may help you.

https://clavinfernandes.wordpress.com/2019/11/01/soap-custom-connectors-in-microsoft-flow/

 

 

Thanks a lot, I managed to configure the request but now I have another problem the request works perfectly if I use postman But if I configure the same object in powerapps with an object of type request I set all the parameters equal to postman but in this object if i set the method to "get" like postman i can't set the body section because this object require the method Post to set the body.

So if i use the method Post i receive an error that the service not support method "Post"

How can i solve this problem i can use only "Get" method

 

timl
Super User III
Super User III

Hi @Citrix73 

Apart from changing your web service so that it accepts a POST request rather than a GET request, I'm not sure what else to suggest. In the configuration page for the custom connector, we can only set the body for POST requests.

Maybe someone else can suggest how to work around this issue...

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (47,479)