Parameter passing for custom web service reports

<p>Hi,</p><p>I created a report file and published it as a .Net web service. I was able to set the web service to a report viewer in my windows application. I am using Crystal Reports Version 11 R2 and Visual Studio 2005 for my development.</p><font size="2" color="#008080">ReportWebService</font><font size="2"> service = </font><font size="2" color="#0000ff">new</font><font size="2"> </font><font size="2" color="#008080">ReportWebService</font><font size="2">(); </font><font size="2"><p>crystalReportViewer1.ReportSource = service;</p></font><p>Now, my question is how do I pass a parameter from the windows application to the custom report web service. It does not seem to accept any paramters through constructors or other custom web methods.</p><p>If I need to change my design or approach, I am welcome to that as long as I am able to host the report file on a central location. The .rpt file (exposed by the web service) does not have any parameters but the data population logic inside the web service might be based on some conditions which I need to pass as parameter.</p><p>Thanks in advance.Regards, Gulzar</p>

<p>When using a Report Web Service, you must use the Viewer&#39;s SDK to interact with the report. So in your case, if you want to pass parameters to the report, the viewer exposes a ParameterFieldInfo property that you can set. You can download samples on how to do this or check out the <a href="http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm" target="_blank">DevLibrary</a> for more details.</p><p>However, one of your last statements you said your report does not have any parameters but your web service does.....could you elaborate on that?  Did you modify the .asmx that is autogenerated to add/modify the web service methods?  If so, then you will not be able to pass parameters to the new/modified web service.  The autogenerated web service for the report cannot be modified in this way since the viewer is designed to use the web services methods as-is.   In other words, the viewer is the only client/consumer of the Report Web Service so any interaction you want with the report must be done through the viewer, if the viewer exposes the functionality.  </p><p>In general, because the viewer is the only supported consumer of the Report Web Service, there are many limitations to interacting with the report.  Depending on how much control you want over the report at runtime, you may not want to use Report Web Services.  If you want to centralize reports for a Windows application, your best option is to load the reports from a network share using a UNC path when loading the report.  Of course, this assumes your application is running from some kind of internal network.  Any other kind of solution to centralized reports would require a web-based solution.</p><p>If you must use a Windows application, then you could host a IE control on your form that accesses a web page that displays reports but then you would have to develop and support a web application in addition to your windows application.  It&#39;s not the best solution but it&#39;s an option!  :-)</p><p>-MJ</p>

Similar Messages

  • Custom web service in SharePoint 2010

    Hi,
    I have developed one custom web service and deployed in inside 14 hive Layout folder. I have to consume this custom web service in WCF REST services. This WCF REST service will be consumed in to HTML 5 and javascript application (Presentation Layer). Here
    is the code for Custom web service :
    [WebMethod]
    public string[] GetSponsorList()
    string url = "https://ptmdev.bpiper.com/";
    //string strUserName = "ravikant";
    string sponsorTitle = string.Empty;
    string[] arrTitle;
    string[] myArray;
    DataTable dtSponsor = new DataTable();
    string error = string.Empty;
    ArrayList myArrayList = new ArrayList();
    try
    dtSponsor.Columns.Add(new DataColumn("sValue", typeof(string)));
    dtSponsor.Columns.Add(new DataColumn("sText", typeof(string)));
    using (SPSite site = new SPSite(url))
    using (SPWeb web = site.OpenWeb())
    //SPUserToken userToken = web.AllUsers[strUserName].UserToken;
    SPWebApplication webApplication = SPContext.GetContext(web).Site.WebApplication;
    SPSiteCollection siteCollections = webApplication.Sites;
    int i = 0;
    if(web.CurrentUser!=null)
    myArrayList.Add("User:"+web.CurrentUser.LoginName);
    else
    myArrayList.Add("Null User..");
    foreach (SPSite siteCollection in siteCollections)
    if (siteCollection.RootWeb.DoesUserHavePermissions(SPBasePermissions.ViewPages))
    if (siteCollection.Url.ToString().ToLower().Contains("/sponsor/"))
    sponsorTitle = siteCollection.RootWeb.Title;
    if (string.IsNullOrEmpty(sponsorTitle))
    arrTitle = siteCollection.Url.Split('/');
    sponsorTitle = arrTitle[arrTitle.Length - 1];
    dtSponsor.Rows.Add(new object[] { siteCollection.Url, sponsorTitle });
    i = i + 1;
    siteCollection.Close();
    catch (Exception ex)
    error = ex.Message;
    myArrayList.Add(error);
    if (dtSponsor.Rows.Count == 0)
    myArrayList.Add("No Data available 101");
    myArrayList.Add("No Data available 102");
    myArrayList.Add("No Data available 103");
    for (int i = 0; i <= dtSponsor.Rows.Count - 1; i++)
    for (int j = 0; j <= dtSponsor.Columns.Count - 1; j++)
    myArrayList.Add(dtSponsor.Rows[i][j].ToString());
    myArray = (string[])myArrayList.ToArray(typeof(string));
    return myArray;
    Above code will return a string array of SiteCollection URLs and Title. Th issue is siteCollection.RootWeb.DoesUserHavePermissions(SPBasePermissions.ViewPages)
    logic is failed and due to this string array does not return desired result.
    web object is not containing users information due to that DoesUserHavePermissions logic is
    failing.
    Urgent help is needed.
    Thanks,
    Ravi

    Hi,
    According to your post, my understanding is that you have issue about siteCollection.RootWeb.DoesUserHavePermissions(SPBasePermissions.ViewPages) logic when you custom web service.
    You can use siteCollection.RootWeb.DoesUserHavePermissions( SPContext.Current.Web.CurrentUser, SPBasePermissions.ViewPages)
     to check whether it works.
    In addition, you can use a RunWithElevatedPrivileges delegate.
    For more information, you can refer to:
    “Attempted to perform an unauthorized operation” and SPWeb.DoesUseHavePermissions
    Thanks,
    Linda Li                
    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]
    Linda Li
    TechNet Community Support

  • How to pass preprocessing information to a web service report?

    Post Author: rmsky
    CA Forum: Crystal Reports
    Does anyone know how a web service client can provide information to the constructor for a Crystal Reports web service report so that it can preload a non-trivial dataset prior to running a report. For example, if I want to load a dataset based on a user ID prior to calling SetDataSource, how do I get that user ID to the web service report constructor? If I pass a parameter into the report via the CrystalReportsViewer, is there any way to get access to that parameter at the web service? Thanks.

    SSZ wrote:
    Yes.But couldn't understand where to start.In that case use the magic wand.
    Ask specific questions, Many of your posts have an underlying tone , that of you not having read any documentation of bothered to research anything yourself I havent got the time to tell you how if you havent got the time to tell me what you have read , what you grasp and what you do not grasp.

  • Customizing Web Service for VC 7.10

    Hi guys!
    I need a big help for the topic "web services and VC".
    I read the Scott's blog (The specified item was not found.) and it's great, web services working fine!
    But if I would create custom web service (for example to insert google maps on vc model) what can I do?
    I know, it's hard to explane all the web services technology and implementation (Java, C#, XML etc.) but if someone know some tutorial or web guides..
    Thanks a lot guys!
    Edited by: Andrea Davoli on Oct 21, 2008 3:39 PM

    Hi Andrea,
    I assume that you refer to VC 7.0... otherwise the question should be moved to the VC 7.1 forum...
    The following blog contain also a video that show you the process in detail:
    How to consume Web Services with Visual Composer 7.0
    Also important SAP Notes regarding limitations, structure and pre-requisites are mentioned there.
    In the SAP Help Portal you can find information about Web Services created within NetWeaver:
    http://help.sap.com/saphelp_erp2005/helpdata/en/db/99c04ba22fe64f96a8651df68eab92/content.htm
    Hope this helps,
    Best Regards,
    Luis

  • Mapping input values for a web service connection to a range of cells

    I've created a web service connection in Xcelsius data manager. My web service requires an array of integer as input parameter. How do I map input values for a web service connection to read from a range of cells in the spreadsheet, e.g. $A$2:$A$20, in similar way of mapping output values to write to a range of cells in the spreadsheet?
    For output values of the web service, I can specify to map the output values to write to a range of cells. However, it doesn't seem to work for reading the input values.
    I can map input values for each node to a single cell, e.g. $A$2, in the spreadsheet. However, when I set the "Read From" field to a range of cells, e.g. $A$2:$A$20, it only reads in the first value in the range.
    Is there any way that we can do this mapping for input values as we do for output values?
    Your assistance is very much appreciated.
    Regards,
    Van

    Van,
    There is a workaround for that...
    Example:
    My Webservice accepts input data range in a specific format with " :" symbol, i.e. 072008:082008
    Now what i do is
    A1 = 072008
    A2 = 082008
    A3 = CONCATENATE(A1,":",A2)
    so A3 = 072008:082008
    Now i map the input value in web service to cell A3
    P.S have 2 input box components and map it to cells A1 and A2, i.e you are giving users an  option to enter the range of values...then web service will capture the range and refreshes data with the range of values user entered.
    hope this helps..
    -Anil

  • Details for 'Is Web service security available?'

    Hi i am working on scenario rfc to webservice.Its as secued webserivce i need to do ssl configuration.
    In component monitoring..for the integration engine its in yellow...
    Details for 'Is Web service security available?'
    Communication error Proxy calls on the sender or receiver side are not permitted on the IS (client)
    can any one please help me out..
    Thanks
    sriram

    I have already installed certificates on the j2ee engine & i have given the paramaters for keystore entry & keystore value.Still i have the same error
    In component monitoring
    For integration engine
    Details for 'Is Web service security available?'
    Communication error Proxy calls on the sender or receiver side are not permitted on the IS (client) 
    In message monitoring
    Audit Log for Message: f614df00-e9e0-11da-95ef-0004ac577b32
    Time Stamp Status Description
    2006-05-22 15:18:58 Success The message was successfully received by the messaging system. Profile: XI URL: http://saptst01:51000/MessagingSystem/receive/AFW/XI
    2006-05-22 15:18:58 Success Using connection AFW. Trying to put the message into the request queue.
    2006-05-22 15:18:58 Success Message successfully put into the queue.
    2006-05-22 15:18:58 Success The message was successfully retrieved from the request queue.
    2006-05-22 15:18:58 Success The message status set to DLNG.
    2006-05-22 15:18:58 Success Delivering to channel: ZCH_VERISIGNPPGR
    2006-05-22 15:18:58 Success SOAP: request message entering the adapter
    2006-05-22 15:18:58 Success SOAP: call failed
    2006-05-22 15:18:58 Error SOAP: error occured: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: illegal parameter
    2006-05-22 15:18:58 Error Exception caught by adapter framework: Peer sent alert: Alert Fatal: illegal parameter
    Can any one please help me out.
    Thanks
    sriram

  • SharePoint Apps and custom web services as remote services

    Hello,
    After reading documentation about Apps for SharePoint compared with SharePoint solutions I did not find any information about "You
    can develop your custom web services as remote services.".
    Could you please give me links or advise, where I can get information - "How to develop custom web services as remote services" using SharePoint 2013 Apps?

    Hi,
    I would suggest you to use WCF service instead of Web Service,
    also, SharePoint 2013 introduces a Representational State Transfer (REST) service that is comparable to the existing SharePoint client object models.
    Get started with the SharePoint 2013 REST service
    About develop custom web services as remote services,see Demo here:
    SharePoint 2013: Custom REST service provides data to an app for SharePoint
    Best Regards
    Guangchao chen
    TechNet Community Support

  • Standard Web Service and Customized Web Services with or without PI?

    Hi All,
    I want to know how I can use Standard Web Service available in SAP  and customized Web Services
    without PI Interface?
    And what is the best practice to expose services ,via PI Interface or directly?
    Thanks in advance!!
    Pushkar

    This is purely based on your requirement. If you use PI middleware to expose web services, you get standard functionalities such as certificate authentication, logging, message reprocessing for the failed messages etc.  If your requirement is so simple, then you might not need PI. In this case you can develop simple webdynpro for abap program to create webservice and expose the webservice in ECC webservice runtime. You can let anyone to consume within your network. other ways like exposing BAPI/RFC as webservice.  I would recommend going with PI.

  • Apex 4.1 Form and Report on Web Service Report displays nothing

    Hello I created and tested a webservice using the test feature in Apex 4.1.
    I know the results is a string of 1 row.
    I created a Form and Report on Web Service. When I run the form there is nothing displayed in the Reports section its just blank.
    If I run the sql from the results region I get no data found.
    Is the problem the returned data is not stored in the collection?
    Edited by: Oracle Primavera on Oct 26, 2011 3:32 PM

    What would be the reason for the following.
    Testing the webservice in apex returns values.
    However when I run Form and Report on Web Service Report if I query the collection it is always empty?
    Does anyone have any experience on this issue? Is it a bug? Please some hints I have been trying for two weeks without success.

  • Location of the JARs for BO Web services SDK

    Hi,
    I want to use the web services SDK to access the crystal reports on a crystal reports 2011 server. I added all the JARs in the  C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib folder but none of them contain classes from the com.businessobjects.dsws package which is root package for the web services SDK.
    My questions:
    Where are the JARs located  ?
    Is there sample code that excerices the usage of the BO BI 4.0 web services SDK ?
    Thanks

    Hi Asif,
    Please have a look over below link
    Web Services Sample Code: -
    [https://wiki.sdn.sap.com/wiki/display/BOBJ/JavaWebServicesSDKSamples|https://wiki.sdn.sap.com/wiki/display/BOBJ/JavaWebServicesSDKSamples]
    Web Services Developer Guide:
    [http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_wssdk_dg_en.zip|http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_wssdk_dg_en.zip]
    Getting Started with Web Service sdk:
    [http://wiki.sdn.sap.com/wiki/display/BOBJ/GettingStartedwiththeWebServicesSDK|http://wiki.sdn.sap.com/wiki/display/BOBJ/GettingStartedwiththeWebServicesSDK]
    Regards,
    Rameez

  • (268625273) Q WSI-29 Can you give any performance benchmarks for WLS web services?

    Q<WSI-29> Can you give any performance benchmarks for WLS web services?
    A<WSI-29>: It is very difficult to quantify performance aspects of web services
    since they depend on so many variables including but not limited to: backend system
    processing by stateless session beans and message driven beans, size of XML SOAP
    message sent, system hardware (CPU speed, parallel processing, RAM speed) and
    system software (JVM type and version of WebLogic server). However, let me point
    out that the EJB backend processing of requests both have the best possible scalability
    within the EJB2.0 specification (both stateless session and message driven beans
    can be pooled) and servlets have a proven scalable track record. Thus it should
    be possible to scale your web service deployment to meet demand. The overhead
    in processing XML within the servlet can be significant depending on the size
    of XML data (either as a parameter or a return type). While WLS6.1 does not have
    any features to address this performance concern, WLS7.0 will feature Serializer
    and Deserializer classes which can be dedicated to the XML to Java and Java to
    XML translation (they can also be automatically be generated from a DTD, XML Schema
    or regular JavaBean).
    It is true that web services are not the fastest way to process client requests
    but BEA is committed to making WebLogic server the fastest possible service provider.
    Adam

    see http://www.oracle.com/support/products/oas/sparc30/html/ows08811.html

  • OWSM and Webservices -Define policies once for multiple web services

    I thought that through using OWSM we had the possibility to use the same Policy Lines for multiple web services.
    Mostly when web services are used/integrated within an application, the same rules need to be defined and I thought this requirement could be met when using OWSM.
    But you need to define the policy requirements on each web service that's passing through a gateway or agent, why isn't it supported to define policy lines one level higher to be able to use the same requirements for multiple web services?

    Nathalie,
    For this purpose OWSM allows you to use Template Policy Pipelines.
    For individual services, you can than replace the pipeline with the Template.
    But I have to agree with you here: the templating functions are rough on the edges, e.g. limited editing capabilities.
    Hope this helps.
    Best regards, Sjoerd

  • We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means

    We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means  

    Hello,
    Did you means that you use the Windows Azure Virtual Machine DNS name as the server name in the Reporting Server Web Services URL?
    For example:
    Report server:http://uebi.cloudapp.net/reportserver
    Report manager:http://uebi.cloudapp.net/reports
    If you want to connect to Report Manager on the virtual machine from a remote computer, you should create a  virtual machine TCP Endpoint and open the port in the virtual machine’s firewall. By default, the report server listens for HTTP requests
    on port 80.
    Reference:http://msdn.microsoft.com/en-us/library/jj992719.aspx#bkmk_ssrs_connect_2_remote_RM
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Custom Web Service in GRC

    Wanted to know if a stage can be defined that invokes a custom web service that returns an approval  indicator. All the web services I've seen in GRC are at predetermined points or prebuilt integration sections. We need the ability for a custom web service to be invoked when this stage is encountered in the request workflow. If the web service return true, then the stage would be deemed approved and move onto the next state. thanks in advance.

    Hi Brian,
    You may want to post this question in the GRC forum.  I'm not sure how many GRC experts will see it here.
    forum:  Governance, Risk and Compliance (SAP GRC)
    The University Alliances program is exploring GRC for use w/in our program however we're not experts in this topic area today.
    Best Regards,
    Heather
    Edited by: Heather Czech on Dec 4, 2009 6:12 AM

  • Custom web service in opensso/AM

    Hello,
    What is the best way to extent opensso/AM with my custom web service? The functionality of the service is similar to Liberty IdentityManagement services, but not the same: I need to create several accounts/identities in one atomic operation, for instance. The same with delete and modify.
    Is there any standard mechanism to accomplish this? Any help or pointers to resources would be great.
    Thanks, Denis.

    You should probably use IDM and SPML to provision user accounts. Creating multiple accounts in one atomic action will be difficult to do if you use LDAP as a backend user store because most LDAP servers do not support the transaction control extension.

Maybe you are looking for

  • Adding a second drive

    Hi All, I'm sorry to say I have to install windows 7 in my mac pro. I would like to place windows 7 OS and all the windows files on a second drive. When I bought the mac I only bought one drive so now I need to install a second one. Since I don't nee

  • How to use ifrun60.EXE in forms 6i in forms 10g ?

    I know If end user is going to run forms by double-clicking icons on his/her desktop (MS Windows operating system),so ..... creating a shortcut and point it to run the IFRUN60.EXE (Forms 6i executable) , will be good idea. "Target" will then look lik

  • Create Purchasing Order from Purchasing Requisition

    Hi, I need to create in a report a Purchasing Order from Purchasing Requisition. I have seen the Bapi BAPI_PO_CREATE; Can I create order from requisition without fill all field and only  the requisition and ther obligatory field? Thanks Francesco

  • 9i Lite Server on Windows XP

    Hi! I have installed 8.1.7 server and 9iLite 5.0.1 server on Windows Xp Pro. Everything goes fine except that the wtgpack (used to configure the mobile server) doesn't start... I know that 5.0.1 isn't certified for Xp, but i'd like to know if there a

  • IgnoreWhite doesn't strip carriage returns?

    I have read in many resources that ignoreWhite gets rid of all carriage returns. Yet, when I run this simple example, I see a visible carriage return (2 in fact) in the output panel. What is going on here? XML: <?xml version="1.0" encoding="UTF-8"?>