Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am facing problem in SSRS 2008. The parameters of rdl query for an web service API are not working. Instead the parameters are parsed with default values are working

My Query in the rdl file is
XML
<Query>
   <Method Namespace="http://TWebService.org/" Name="GetReport194J_ED">
  <Parameters>
     <Parameter Name="companyID" Type="String" Value="[@CompanyID]">
        <DefaultValue>MyCompany</DefaultValue>
     </Parameter>

     <Parameter Name="fromDate" Type="String" Value="[@FromDate]">
        <DefaultValue>2012-01-01</DefaultValue>
     </Parameter>

    <Parameter Name="toDate" Type="String"  Value="[@ToDate]">
        <DefaultValue>2013-08-13</DefaultValue>
     </Parameter>
   </Parameters>
</Method>
   <SoapAction>http://TWebService.org/GetReport194J_ED</SoapAction>
       <ElementPath IgnoreNamespaces="true">
          GetReport194J_EDResponse/GetReport194J_EDResult/diffgram/DocumentElement/GetReport194J_ED
       </ElementPath>
</Query>

Its working only for default value, but if i am sending other than parameter its showing only default value result data.

DO I miss anything in the query? Please help me on resolving this issue.
Posted
v2
Comments
Anh Nguyen Trong 22-Aug-13 23:38pm    
can you change to <soapaction>http://tempuri.org/GetReport194J_ED
Member 10806235 11-Dec-15 1:32am    
Hi,
Do you know maybe what can be a reason that parameters are not passing at all to web service or it cannot read them?its WS working with a "natural" program.
i'm trying to get data from web service data source, the WS is activated but i understand that the program is getting null from parameters.

1 solution

Please try this:

It is more simple than yours

GetOrders1 - Method in Webservice
OrderID - Parameter of Webserice.
ElementPath- Type exact column name in Database

XML
<Query>
   <SoapAction>http://tempuri.org/GetOrders1</SoapAction>

<Method Name="GetOrders1" Namespace="http://tempuri.org/">
<Parameters>
<Parameter Name="OrderID" type="int">
   <DefaultValue>
        10250
    </DefaultValue>
</Parameter>
</Parameters>
</Method>


   <ElementPath IgnoreNamespaces="true">GetOrders1Response{}/GetOrders1Result{}/diffgram{}/NewDataSet{}/Table{OrderID, ShipName, OrderDate,EmployeeID, RequiredDate}</ElementPath>
</Query>


I have checked and work
 
Share this answer
 
Comments
omprakash katre 29-Aug-13 0:44am    
Thanks for your reply. Now its working fine.
Anh Nguyen Trong 29-Aug-13 0:46am    
you are welcome!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900