SSRS report - XML Query example

Zolotoy 226 Reputation points
2020-11-29T20:48:58.55+00:00

Can someone please provide an example of XML Query that would get data from a web service?

Thanks

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Benoit Rompre 0 Reputation points
    2023-08-22T19:35:44.68+00:00

    Can we use multi level parameters.

    If I send a simple query like this it works ok
    <Query>

    <Method Name="GetMembresSuccFull" Namespace="http://tempuri.org/">

    <Parameters>

    <Parameter Name="aFiltreMembreSucc">

    <DefaultValue></DefaultValue>

    </Parameter>

    <Parameter Name="CleDeSecurite">

    <DefaultValue>valuehere</DefaultValue>

    </Parameter>

    </Parameters>

    </Method>

    <SoapAction>http://tempuri.org/IFMConsultation/GetMembresSuccFull</SoapAction>

    </Query>
    This query result to this
    <GetMembresSuccFull xmlns="http://tempuri.org/">

    <aFiltreMembreSucc></aFiltreMembreSucc>

    <CleDeSecurite>valuehere</CleDeSecurite>

    </GetMembresSuccFull>

    But what I need to pass a parameter in the aFiltreMembreSucc parameter for it to be sent like this.
    To have a Query that send this.
    <GetMembresSuccFull>

    <aFiltreMembreSucc>

    <ListEnvoiStr>E14</ListEnvoiStr>

    </aFiltreMembreSucc>

    <CleDeSecurite>valuehere</CleDeSecurite>

    <GetMembresSuccFull>
    How can we do this?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.