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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. 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
Anonymous
Not applicable

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Solution Authors