Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Scheduled refresh using SOAP Post Web connection

In Power BI Desktop I have successfully pulled in an XML response using a Web.Contents call and setting my Authorization and Content headers. In order to make a POST call you have to set Content correctly and pass the arguments in the body of the request. Once you do this, Power BI Desktop requires you to change Authorization type to Anonymous.

 

Now when I try to setup my data gateway in Power BI Report Service the only way I can connect successfully is to use Basic Authentication as I am not aware of a way to set the Authorization Header in the Manage Gateways UI. As soon as I change to Basic Auth I can connect to the SOAP url successfully but my Dataset fails to refresh because (it has to be Anonymous to do a POST Soap call):

 

SOAPAPI-1.PNG

 

Then of course once I set it to Anonymous I can't do an initial successful connection with my gateway because the URL wants authentication first:

SOAPAPI-2.PNG

 

Is there anyway to get around this?

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

 

If you are use online service as datasource, power bi service can direct connect to online service without gateway settings.(it will use 'connect directly' mode) You only need to update data source credentials on service side.

 

If you mean you are using mixed data source with online and on premise mode, if you do some advanced operations (append/merge,custom function) on these mixed datasource, oauth authorization will disappeared on service side.

 

BTW, custom function still not support on power bi service, you can consider to modify it to parametrized query.

Using the Power BI Service Parameters to change connection strings (To possibly change between Dev,

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

 

If you are use online service as datasource, power bi service can direct connect to online service without gateway settings.(it will use 'connect directly' mode) You only need to update data source credentials on service side.

 

If you mean you are using mixed data source with online and on premise mode, if you do some advanced operations (append/merge,custom function) on these mixed datasource, oauth authorization will disappeared on service side.

 

BTW, custom function still not support on power bi service, you can consider to modify it to parametrized query.

Using the Power BI Service Parameters to change connection strings (To possibly change between Dev,

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.