Using WebService from Microsoft Reporting Service(MSRS)

Hi,
I want to invoke the web service from MSRS Report. Below is the details of my environment.
Web service is deployed on the local machine.
MS Report Server : SQL Server 2012 Reporting Service
Designer Tool Used : Visual Studio 2010
I have created a sample report in MSRS side, which should call getXXX, a web service method in XXXService(webService).
I created the datasource of Type "XML" in Visual Studio, and given connectionString
as "http://localhost:8080/axis2/services/XXXService".
I created the dataset in Visual Studio, using datasource in previous step and used the below Query
to pass the request to the WebService.
<Query>
   <Method Name="getXXX"
Namespace="http://localhost:8080/axis2/services/XXXService">
   </Method>
</Query>
or
<Query>
<SoapAction>http://localhost:8080/axis2/services/XXXService/getXXX</SoapAction>
</Query>
I am getting following exception in the Query Designer window.
===================================
An error occurred while executing the query.
Failed to execute web request for the specified URL.
Soap Fault:
The endpoint reference (EPR) for the Operation not found is http://localhost:8080/axis2/services/XXXService and the WSA Action = http://localhost:8080/axis2/services/XXXService/getXXX (Microsoft SQL Server Report Designer)
===================================
Failed to execute web request for the specified URL.
Soap Fault:
The endpoint reference (EPR) for the Operation not found is http://localhost:8080/axis2/services/XXXService and the WSA Action = http://localhost:8080/axis2/services/XXXService/getXXX (mscorlib)
Program Location:
Server stack trace:
   at Microsoft.ReportingServices.DataExtensions.XmlDP.InMemoryCommand.ExecuteWebRequest(ICredentials credentials)
   at Microsoft.ReportingServices.DataExtensions.XmlDP.InMemoryCommand.Execute()
   at Microsoft.ReportingServices.DataExtensions.XmlDP.InMemoryCommand.<>c__DisplayClass1.<ExecuteReader>b__0()
   at Microsoft.ReportingServices.DataExtensions.XmlDP.WebRequestHelper.ExecuteServerCallAsNtUser(ServerCall serverCall, WindowsIdentity ntUser)
   at Microsoft.ReportingServices.DataExtensions.XmlDP.InMemoryCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.ReportingServices.QueryDesigners.MultiThreadedQueryResultsHelper.AsyncExecuteReader(IDbCommand command, CommandBehavior behaviour)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
   at Microsoft.ReportingServices.QueryDesigners.MultiThreadedQueryResultsHelper.ExecuteReaderHandler.EndInvoke(IAsyncResult result)
   at Microsoft.ReportingServices.QueryDesigners.MultiThreadedQueryResultsHelper.<>c__DisplayClass4.<ExecuteActiveQueryCallback>b__3()
   at Microsoft.ReportingServices.QueryDesigners.QueryResultsGrid.EndExecuteReaderInUiThread(GetDataReaderHandler getDataReaderCallback)
===================================
The remote server returned an error: (500) Internal Server Error.
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault xmlns:axis2ns22="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>axis2ns22:Client</faultcode><faultstring>The
endpoint reference (EPR) for the Operation not found is http://localhost:8080/axis2/services/XXXService and the WSA Action = http://localhost:8080/axis2/services/PricingService/getXXX</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope>
Please help me in figuring out the problem in the configuration done or query passed in the Dataset of Visual Studio/Report Server.
Best Regards,
Sridhar

Hi Sridhar Singh,
According to your description, you created one web services and one web method, when you use it as data source, you got the error message.
To retrieve data from XML data source, the connection string must be a URL that points to the Web service, Web-based application, or XML document available through HTTP. XML documents must have the XML extension. The connection string syntax for a Web service
is http://servername /service.aspx.
In this case, please make sure that the web service is published successfully through url. Then we use the query like below:
<Query>
<Method Namespace=" http://localhost:8080/axis2/services/" Name="XXXService"></Method>
</Query>
In addition, the XML data processing extension does not detect the schema for us. Therefore, we must have some way of discovering which SOAP methods will retrieve the data that we want. The default SoapAction for the case is like below:
<Query>
<SoapAction>http://localhost:8080/axis2/services/XXXService</SoapAction>
</Query>
For more information about XML Connection Type, please refer to the following document:
https://msdn.microsoft.com/en-us/library/dd220468(v=sql.110).aspx
http://bhushan.extreme-advice.com/webservice-as-datasource-in-ssrs/
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support

Similar Messages

  • Microsoft Reporting Services portlets

    Hello Everyone
    We created some portlets that show some nice charts from Microsoft Reporting Services.
    The issue that we are having is the Export option
    When we select the Export option, the javascript includes the root call
    For example, the Reporting Services website has http://servername/Reports/Default.aspx
    The charts on the portlet shows OK
    When we are trying to use the Export function there is some javascript there that includes /Reports/ExportFunction.aspx?OUTPUT=PDF
    When I have the gateway, I end up with http://portalserver/Reports/ExportFunction.aspx?OUTPUT=PDF instead of the gateway call.
    Do you know how to fix this?

    do you have the ability to modify the javascript file? if so, you'll need to ensure that all links in external js files contain links that are gatewayed properly.
    i'm not sure i do it the most official way, but what I usually do is just have a hidden link somewhere in the portlet that will get gatewayed, and then grab the base url of that in javascript and use it to create gatwayed links.
    (in portlet)
    a href=/myapp/ id="mycoollink"
    (in js)
    var mylink = document.getelementbyid('mycoollink').href + "\xsrf.js"
    ..or soemthign liek that
    OR move all the JS to the imageserver and point to it there

  • Microsoft Reporting Services

    Hi
    We are using SQL 2005 as a database for PCM v12.1 and plan to upgrade to PCM v13 SP1.
    Has anybody using Microsoft Reporting Services for preparing reports ?
    could you please guide on the same ? How good it is ? Is it easy to prepare report (in comparison to Infomaker) ? (i know it can not be shown like infomaker report within CM)
    Please give your suggestions.

    I simply find infomaker a bit stiff and not that user friendly.
    examples of reports in a big summary:
    - sysadmin > all reports if something is wrong (like some custom fields are not filled in, or one person approved as another user, etc).
    - construction reports > field force (to trace or by site/project or by subcontractor history of workforce based on daily reports), some audit of new revisions of drawings, new transmittals etc
    - communication > Report of minutes of meeting to trace by responsible person from our team and/or contractor what are the current issues, if there are any new notices, any letters (which we barely use);
    - project review > each projects financial details - how much was contracted, changed, protocoled all in accordance to what was budgeted (on contract and/or items level);
    - management reports > status with KPIs of all projects with devision into cost splits and cost per net m2.
    what reports are you thinking of? Perhaps we could share some ideas.
    If migrating to Oracle you will just have to change the data sources and if you are using some custom views () you will have to change the way its generated. It shouldn't be a lot of work.

  • Microsoft Reporting Services with BW

    Hi,
    I have posted it in a Reporting Services forum, but seems no one can answer it.
    We use Microsoft Reporting Services as the front end, to render data extracted from BW 7.0. The communication between Reporting Services and BW is based on Web Services, XMLA. And the username/password used for the connection is saved at Reporting Services side. The connection is fine, and everything works. However, we have got an issue at BW side, that every time a query request creates a session in BW system, and the session is never expired! So after a period of time, the memory will run out and BW server is not able to accept any new request. We have to manully log out those sessions, and then the BW server becomes available again.
    My question is how to set up the account in BW for Reporting Services request, so that it won't exhaust the server?
    Thanks.

    Just a quick addition.
    by transaction SM04, what i found in bw system is that when a report is run from Reporting Services side, the BW system actually creates more than 10 sessions under the same user name, with type Plugin HTTP. And even after I close the request from the Reporting Services side, the sessions are still there until you manually log them out.
    Shouldn't the session type RFC rather than Plugin HTTP?
    Edited by: huaxianz on Jun 22, 2010 6:52 AM

  • Select multiply value in Microsoft Report Service

    Hi everyone!
    I'm in the process of creating
    a report in Microsoft Report Services and I have a one problem. My report is to show max, min, avg temperature in
    specified room. I need to make such a
    filter values: when I select one value of parameter (e.g. min temperature) must to show this one value in
    the chart and table, when I select two value (e.g. min and max temperature) must to show this two values etc. On the screen is choice values of parameter "Rodzaj wykresu" http://pl.tinypic.com/view.php?pic=f0x9ad&s=8#.U_o4p2OaKyE
    . I have a problem with Expression. My parameter have a multiply values and when I write sign "=" is error. I have no idea how this show or hidden values...
    This Expression  http://i62.tinypic.com/2s6m4o7.png is ok, when in parameter properties is http://pl.tinypic.com/?t=postupload and isn't move when I choice allow multiply values...

    I thought, when
    I want to make
    a window to select my values (this: http://i61.tinypic.com/11hv5n9.jpg) I must have a multiple values (in parameter properties select "allow multiple values"). I try your idea tommorow morning (I'm
    not working now).
    I'm a beginner in sql (I know him
    from 18. August). Thank You.
    Yep
    Once you check allow multiple values then you'll get parameter dropdown as per screenshot and you will be able to select multiple values which gets passed as a comma separated list and then you will be able to use In operator in filter expression.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to set a default date as a parameter in Microsoft Reporting Services 2008 to January 1st

    How can I set a default parameter for date for 01/01/yyyy.

    Hi Giss68,
    If I understand correctly, you want to set the first day of current year as a default value of a parameter in Microsoft Reporting Services 2008 report.
    If in this scenario, we can use the expression below as the default value in the parameter:
    =DateAdd("d",-DatePart(DateInterval.DayOfYear,Today,0,0)+1,Today)
    The following document about DateAdd function is for your reference:
    http://technet.microsoft.com/en-us/library/aa337194(v=sql.100).aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • How To Execute an Oracle 10g SProc using VS 2005, for Reporting Services

    Good day! :-)
    Anybody who knows the syntax for executing an Oracle Stored Proc thru ODBC connection using VS 2005 for Reporting Services? I am having a problem about this.
    I am using the ODBC connection because VS 2005 does not support Oracle Database 10g in its Oracle Database Connection feature (only 7.3, 8i, and 9i), that's y.
    While using MS SQL Server 2000, I never encountered any problem. But using Oracle Database 10g, I find it hard to call the stored procedures, an error is generated everytime.
    Please click the link below for the screenshots:
    http://www.geocities.com/vrcode2/oraError.JPG
    http://www.geocities.com/vrcode2/storedProc.JPG
    Please help...thank you so much.
    Francis

    I'll give you updates about the use of the MS SQL Server Reporting Services with VS 2005 and Oracle, this might be helpful for those who will encounter this same ctuation in the future.
    I have discovered that if you're going to connect thru ODBC, even if the connection is successful, the user is still prompted to input a password, which should not be the case when using the Reporting Services. Another thing to take note is the issue about REF CURSOR, we're going to have problems with this. And also the syntax on how you're going to call the stored procedures (with or without input parameters).
    With modifications made through Oracle Net Manager, and I tried AGAIN connecting through "Oracle (client)" feature of VS 2005 (even if the list only include Oracle 7.3, 8i, and 9i that are supported) with some changes also, you'd still be able to generate correct data with that solution. If the configuration is correct, you just need to call the stored procedure (with or without input parameter), you won't have any problems about the correct syntax.
    I suppose VS 2005 was released earlier than Oracle 10g, that's why 10g wasn't included If ever u'd encounter the same ctuation like mine, and u need the details on how to connect, do not hesitate to ask me.

  • Date parameter does not work in SharePoint 2010 report using SQL 2008 Server Reporting Service

    Here is the settings:
    SharePoint 2010 with SQL server 2008 reporting services configured
    When create a report for a SP list using SQL server report builder (3.0) the date parameter does not work.
    The data parameter is set as "date and time" type and field name equals the col name in the SP list
    When run the report, the whatever dates I select, the result is always the same, so the parameters do not take any effect.
    Is any step missing?
    Thanks for any advice !

    Hi ,
    How did you configure you "date and time" type parameter and field name equals the col name in the SP list?
    Have you tested if other type parameter worked?
    Have you tried typing the date format as 20140722 in your date parameter filed before run the report?
    http://whitepages.unlimitedviz.com/2012/02/using-sharepoint-filters-with-reporting-services-parameters-for-personalized-reports/
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • Import data from a Reporting Services Webpage?

    Hi all, 
     Is it possible to easily import data into SQL Server from a public facing Reporting Services webpage?
    I'd like to automate the process so don't want to have to download the Excel / CSV files manually. There's an "atomsvc" file available but I can only find information on importing this into PowerPivot / Excel. 
    I'm on 2012 and have access to Integration Services if that would help, but have no real preference on how I solve this problem. 
    I'm guessing I could import the Atom feed referenced by the "atomsvc" file as XML data but this seems slightly cumbersome given that the source is also an SQL Server. I'm also a little unsure about how to use authentication in this case. 
    So is it a parse XML task or am I missing a much more obvious and simple way to import this data?
    Thanks

    Thanks for your answer, it guided me towards URL
    Access (SSRS) for SQL Server Reporting Services.
    The .atomsvc file contains a link to the raw data feed. This can be easily tweaked quite extensively. In particular there is a "Format" specifier available which can be used to export as normal XML / CSV / whatever. For example:
    http://myrshost/ReportServer?/myreport&rs:Format=XML
    http://myrshost/ReportServer?/myreport&rs:Format=CSV
    I hope this helps someone. I was as I suspected missing something "obvious" but it was knowing what to Google that tripped me up.
    I still can't help thinking that there should be an easy way to just download the .atomsvc file and open it with SQL Management Studio or SSIS rather than PowerPivot but XML / CSV is fairly straight forward o deal with.

  • Copy paste text from pdf exported from Microsoft.Reporting.WinForms.ReportViewer control with Czech specific characters produced box charactex or ?.

    Used Visual studio 2012. In our project there is used the Microsoft.Reporting.WinForms.ReportViewer control. In the report handled by the control are TextBoxs with a text with Czech specific characters e.g. (ř, ě, ...) . When exporting the report to pdf,
    characters are displayed correctly. However when the text with czech characters in the pdf if copied and  placed into the seach box in the pdf document only box characters are displayed. The TextBox in the report use the default font Arial. When the report
    is exported to Word, and then the Word document is saved as a pdf document, its ok. Coping a text with Czech charactes in the result pdf document and pasting into the search box displays again Czech characters not box characters.
    Also when in the report handled by the ReportViewer control are several Tex Boxes and some of the boxes contains Czech characters and some not, after exporting to a pdf document there is problem with text selection. When in the pdf document I'm trying to
    select several paragraphs, some with Czech characters and some without them, selection behaves strangely and jumps from one paragraph to another unexpectedly.

    Hi,
    did you managed to avoid those squares?
    BTW: if any such char. is encountered in a line, the entire line of text is grabbled.
    I've tried even the ReportViewer from MSSQL 2014, but got the same problem. When I've tried IL Spy, I found a code, where it is checked if the PDFFont is composite - depending on that a glyph is created. But that still only a guess.
    I've tried Telerik's reporting, they have similar problem (beside other), but not with the special characters. They produced scuares for some sequences like: ft, fi, tí.
    Please give any info you got.
    Until then my advices for you:
    a) try JasperReports (seems theyre most advanced, although it is java)
    b) Developer express has quiet quality reports - and it seems they got those special chars. right :D
    c) I created a ticket and waiting for Telerik's response (but if I had to choose reporting, I vould stick with a) or b)

  • Integrating Microsoft Reporting Service with SAP running on SQL Server 2K5

    Hi All,
    I am new to SAP R3 and I need the help for Integrating Microsoft Business Intelligence Report Services with SAP R3 4.6 C running on SQL Server 2005? Also how Biztalk Adapter is use full for this process?
    Thanks in Advance

    Hello Madhav,
    you might want to post this to the "SAP on Windows" forum as well.
    Regards,
    Marc
    SAP Techology RIG

  • Byte Array from SQL Reporting Service

    I am calling the Render method of the Microsoft SQL Reporting
    Service's ReportExecution web service. It returns a Byte array in
    the lastResult object. I am having the hardest time figuring out a
    way to convert that byte array into something I can use in Flex.
    The byte array, once converted into a more user friendly format,
    will contain the rendered version of a SQL Report in whatever
    format I have specified...in this case it is XML. Any input or
    suggestions would be appreciated.

    This is a little late, I know. but I just spent the day
    struggling with this very issue. Hopefully this can help someone
    else in the future. Here's my solution...
    on MX:Operation -- result="fillXML()"
    then
    private function fillXML(): void {
    var x:XML = new
    XML(wsProps.GetDatasetData.lastResult.toString());
    ...do what you need with your xml...
    I use an XMLList node of the result as the source property
    for an XMLListCollection bound to a datagrid. Let me know if you
    need more help to get it working. It works like a charm now that I
    figured that out. I don't know if it's a slimy hack, or not, but it
    gets the job done.

  • Dynamic pagination using inputs from a Web Service data control

    I am in process of creating a pagination UI component , much similiar to the one used in Oracle forums eg: Pages: 100 [1 2 3 4 5 | Next ]
    I am making use of a Web Service to get the following details for my search results :
    a) Number of search result rows (100) ,
    b) total number of rows to be shown on one page (5)
    c) Total number of pages
    I am wondering how to create the pagination UI control in my ADF Faces page and How can I bind the web service data control to the pagination component for a simple dynamic navigation
    Please advice. I am new to ADF development, so looking inputs for approach to the above elucidated problem (Code not required)

    Yes I am using <af:commandLink > component
    <af:forEach
    var="list" items="#{NavBean.list}">
    <af:spacer width="5" height="10" id="s1"/>
    <af:panelGroupLayout id="pgl2" layout="horizontal"
    halign="center"
    inlineStyle="#{list.found ? 'background-color:#aeccd8;' : 'background-color:white;'} text-align:center; width:15px; ">
    <af:commandLink text="#{list.character}" id="cl1"
    partialSubmit="true"
    disabled="#{list.found ? false : true}"
    actionListener="#{NavBean.onIndexSelected}">
    <f:attribute name="indxKey" value="#{list.character}"/>
    </af:commandLink>
    </af:panelGroupLayout>
    </af:forEach>
    I have created a NavBean managed bean with some methods and foll set of instance variable:
    List<IndexCharacterObject> list = null;
    int startRow;
    int endRow;
    int pageNumber;
    int numPages;
    int totalRows;
    I want these variables in the Managed bean class to be automatically populated from the Web Service data control .. Not sure how to go about binding these values ?

  • Consuming a webservice from a portal service...

    Hello all,
    I am playing around with the example code for imlimenting a federated search (found in the km section) and was trying to use a webservice call to google as an example of a the federated search.
    I generated a client side portal service (from the goodle wsdl) and I am now trying to access it form the search virtual index service I wrote...
    I someone can point me in the correct direction that would be great... I was looking at the following blog Accessing an External Web Services in Portal which helped setup the webservice but I find the code used to access it does not help. For one thing I can not find the IServiceName class anywhere in the portal or j2ee javadoc or jat files.
    Cheers,
    D.

    Hi ,
    I am getting the problems while consuming the web services in portal component.
    I am not able to call the methods of web services.
    look at my code.
    IListServiceName client=
    (IListServiceName) PortalRuntime.getRuntimeResources ().getService (IListServiceName.KEY);
         GetListResponse glr= client.getList();
    frist line is working fine.
    In my web service i have a method called GetList().
    Any way i have to call that method and get the result.
    But there are other classes which are automatically generated when i consumed the web service, like      GetListResponse().
    When i try to call client.GetList(); it gives the error at run time, No error in the code but the errors are coming at run time.
    Where is the problem? other things like proxy settings, etc i have done.
    What could be the problem? Can any one suggest.
    Regards
    Bala

  • Notifcations from "Microsoft Online Services Team" contain old personal e-mails

    Each time our company receives an automated e-mail from
    [email protected], it contains the alternate e-mail of a former administrator to Office 365.  The user's company e-mail is no longer a recipient, but the e-mail they used as an alternate is still there.  How can this
    be removed or managed?  I have confirmed that this account is not referenced anywhere in the Administrative Center.

    Have you checked the Technical/Billing contact information? Easiest way to do so is via the Get-MsolCompanyInformation cmdlet, or from the Portal -> Company profile (technical contact only). Also check the alternative emails for any Global/service admins.

Maybe you are looking for

  • ICAL REPEATING ALL DAY EVENTS

    When I put an all day event in it repeats the same event in the next week. Can anyone assist with a solution. Cheers

  • ITunes 10.7 install wants to move my music library.

    I need to upgrade iTunes 10.6 on my Windows 7 Lenovo T420 laptop to 10.7 to use my new iPod Classic (replaces my iPod video), and I'm not yet ready to accommodate the changes in iTunes 11. My iTunes music data files have been moved to a large partiti

  • Alternative Payee

    Hello, 1) "Alternative Payee in Document Allowed" field is active for selection at the time of new Vendor creation. Hence this poses a risk of payment being recorded. The requirement is that we need only one alternative payee should be added and the

  • XSANVolume Not Mounting In 1 of 4 Suites

    I work at a Community College with 4 editing suites accessing an XSAN. In one of the suites the XSANVolume has stopped mounting. It works fine with no issues in the other 3 suites. The XSAN is seen by Disk Utility, but won't mount. Fibre and network

  • Lost all my Album Art Covers when Upgrading to iTunes 5.0

    Why did I lose all my album art covers I painstakingly inputed into my ipod the past year. After this I am seriously considering using another device!!! BEWARE OF iTunes 5.0 if you haven't already upgraded. I tried contacting Apple and the woman I sp