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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SwagatikaBehera
Frequent Visitor

How can I read data from a parametrized function of a web service in PowerBI?

There is a function called GetDataRequest() which has 3 parameters and the response function name is GetDataResponse() which returns the resultset in a webservice(https URL). So, I need to call the function GetDataRequest() from PowerBI and provide those 3 parameters , and use GetDataResponse() for resultset in POWERBI. I have tried multiple ways but failed. Is there any way that we can do or its not possible?

In SSRS , I use xml tags to call like below:

      <Query>
      <Method Name="GetDataRequest" Namespace="http://tempuri.org/">
      <Parameters>
      <Parameter Name="Id"><DefaultValue>1</DefaultValue></Parameter>
      </Parameters>
      </Method>
      <SoapAction>http://tempuri.org/IWebService/GetDataRequest</SoapAction>
      <ElementPath IgnoreNamespaces="true">GetDataRequestResponse{}/GetDataRequestResult{
      ID,
      Content,
      ContentChange,
      ContentHint         
      }
      </ElementPath>
      </Query>

I tried the same way, still its not working. Can somebody please help?

 

5 REPLIES 5
v-deddai1-msft
Community Support
Community Support

Hi @SwagatikaBehera ,

 

You can follow the detailed steps in https://www.kizan.com/blog/consuming-xml-web-service-data-in-power-bi

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

v-deddai1-msft
Community Support
Community Support

Hi @SwagatikaBehera ,

 

You can create these three parameters in power bi by following steps in https://www.red-gate.com/simple-talk/sql/bi/power-bi-introduction-working-with-parameters-in-power-b...

 

And use these three parameters when you get data from the api:

 

Capture1.PNGCapture2.PNG

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Hi,

Thanks for your reply. Can you please show me a screenshot where to put the function name? Should be the name as a part of URL?

This example explains when sql server is a datasource. But I am struggling with calling a webservice with parameterized request function and returns the data from another response function.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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