Parameters and database login with Web Services SDK

I need to know how to do the two most common report tasks through the Web Services interface to Crystal Reports Server 2008:
How do I get a list of a report's parameters and set the parameter's values?
How do I set the database login information?
I have considerable experience with writing custom web interfaces for Business Objects Enterprise with .NET, but now we're supposed to use web services instead of Enterprise services, especially when writing Windows forms apps. The official line is that writing thick client apps using Enterprise services is "possible but not supported." I can't seem to find the equivalent to the .Parameters property in Web Services.
The tutorials for Web Services aren't much help. The BIPlatform examples show how to schedule a report without parameters and without setting the database login, but this isn't much help in the real world. The ReportEngine tutorial was apparently written by someone else, and is little or no help.
This seems like such a simple question, but I have wasted an entire day and am no closer to the answer.

I think the following resources will help:
https://wiki.sdn.sap.com/wiki/display/BOBJ/GettingStartedwiththeWebServicesSDK
http://help.sap.com/businessobject/product_guides/xir2PP/en/qaaws.pdf
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_server/default.htm
Also, see this forum thread:
Web Services SDK secLDAP
Ludek

Similar Messages

  • Trusted Authentication with Web Services SDK

    Hi,
    I have just configured my BO server to use Trusted Authentication (REMOTE_USER) and It works with Infoview so I don't need the logon page to enter user and password.
    I also have an .NET application that uses Web Services SDK and I would like to use Trusted Authentication on it.
    Is there any code to access to BO using Web Services SDK?
    Before the configuration, I was using this code:
    string m_strURL="http://server:8080/dswsbobje/services/Session";
    BusinessObjects.DSWS.Connection oConnection = new BusinessObjects.DSWS.Connection(m_strURL);
    BusinessObjects.DSWS.Session m_wiSession = new Session(oConnection);
    BusinessObjects.DSWS.Session.EnterpriseCredential oEC = new EnterpriseCredential();
    oEC.Login = strLogin;
    oEC.Password = strPassword;
    oEC.AuthType = "secLDAP";
    SessionInfo oSI = m_wiSession.Login(oEC);
    Now, I want to use Trusted Authentication in my .NET application so I wouldn't have to enter user and password.
    I have looking for some code, but I haven't found it yet. I hope you could help me.
    Thanks,
    Sandra

    Hi, Ted,
    I'm trying to use Trusted Authentication to access QaaWS (via WSDL/Axis, NOT Xcelsius).  I enabled it from CMC, put the shared secret in a correct location (win32_x86 directory) and made the change to dsws.properties file, then I restarted tomcat.  However, the system failed to login.  Below is the trace log.  Is Trusted Authentication supported for QaaWS?  Thanks!
    <br/>
    =======
    <br/>
    2010-02-18 14:09:20,781 [http-8080-Processor25] ERROR com.businessobjects.qaaws.internal.transport.QaaWSServlet () 297906 - invoke()
    java.lang.Exception: com.crystaldecisions.sdk.exception.SDKServerException: Enterprise authentication could not log you on. Please make sure your logon information is correct. (FWB 00008)
    cause:com.crystaldecisions.enterprise.ocaframework.idl.OCA.oca_abuse: IDL:img.seagatesoftware.com/OCA/oca_abuse:3.2
    detail:Enterprise authentication could not log you on. Please make sure your logon information is correct. (FWB 00008)
    The server supplied the following details: OCA_Abuse exception 10498 at [.\secpluginent.cpp : 832]  42040 {}
         ...Invalid password
         at com.businessobjects.qaaws.internal.webi.WISessionMgr.makeSession(Unknown Source)
         at com.businessobjects.qaaws.internal.transport.QaaWSServlet.invoke(Unknown Source)
         at com.businessobjects.qaaws.internal.transport.QaaWSServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: com.crystaldecisions.sdk.exception.SDKServerException: Enterprise authentication could not log you on. Please make sure your logon information is correct. (FWB 00008)
    cause:com.crystaldecisions.enterprise.ocaframework.idl.OCA.oca_abuse: IDL:img.seagatesoftware.com/OCA/oca_abuse:3.2
    detail:Enterprise authentication could not log you on. Please make sure your logon information is correct. (FWB 00008)
    The server supplied the following details: OCA_Abuse exception 10498 at [.\secpluginent.cpp : 832]  42040 {}
         ...Invalid password
         at com.crystaldecisions.sdk.exception.SDKServerException.map(SDKServerException.java:107)
         at com.crystaldecisions.sdk.exception.SDKException.map(SDKException.java:196)
         at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:710)
         at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:295)
         at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:162)
         at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:425)
         ... 19 more
    Caused by: com.crystaldecisions.enterprise.ocaframework.idl.OCA.oca_abuse: IDL:img.seagatesoftware.com/OCA/oca_abuse:3.2
         at com.crystaldecisions.enterprise.ocaframework.idl.OCA.oca_abuseHelper.read(oca_abuseHelper.java:106)
         at com.crystaldecisions.enterprise.ocaframework.idl.OCA.OCAs._LogonEx4Stub.UserLogonEx4(_LogonEx4Stub.java:80)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.crystaldecisions.enterprise.ocaframework.ManagedService.invoke(ManagedService.java:424)
         at com.crystaldecisions.sdk.occa.security.internal._LogonEx4Proxy.UserLogonEx4(_LogonEx4Proxy.java:222)
         at com.crystaldecisions.sdk.occa.security.internal.LogonService.doLogon(LogonService.java:347)
         at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:684)
         ... 22 more
    org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement table
         at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
         at service.wsdl.heartFailure.HFReliabilityScoreStub.fromOM(HFReliabilityScoreStub.java:4131)
         at service.wsdl.heartFailure.HFReliabilityScoreStub.runQueryAsAService(HFReliabilityScoreStub.java:201)
         at org.apache.jsp.AuthTest_jsp._jspService(AuthTest_jsp.java:78)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Thread.java:595)

  • Need help with Web Services SDK.

    I am new to Web Services SDK can I get documentation on same.

    For documentation about the BOE XI R2 SP2 Web services go to our DevLibrary: http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    then locate the Web Services topic under which, you will find the necessary info to help you deal with BOE Web Services.
    Cheers
    Alphonse

  • XDK Beta and J2EE app with web services

    Does anyone have experienced problems by using the XML parser from XDK v10/v9204? I have created a custom library to point to the XDK's parser and deleted the Oracle XML parser v2 included in JDev. My application also includes Oracle SOAP... and I was wondering if this configuration will run? Having Oracle SOAP and a Parser different from the original one? Will this work?

    I think you will have problems regardless of the approach you take. I have followed up on this and here are the choices you have to use the new 9.2.0.4 parser, as I understand it, in your application:
    1. Delete/backup the old xmlparserv2.jar and replace it with the new one. As there seems to be some new dependencies associated with it (for example xmlmesg.jar), you have to make sure this too is included.
    2. When you start OC4J you can pass in the -Xbootclasspath parameter the location of your jar files (e.g. the new parser and associated files). Those files will override the ones that are hardwired into OC4J - e.g.
    java -Xbootclasspath/a:D:\temp\xdk\lib\xmlparserv2.jar -jar oc4j.jar
    I did option one and then tried working with a number of different Web services that previously worked out of the box and they no longer worked - I got a number of parser errors during the build and run phases.
    What this suggests to me, and I believe this is how Oracle Support would treat this, is that the XDK 9.2.0.4 can be used stand alone and the components should work together. If you try to engineer the 9.2.0.4 XDK into the 9.0.3 OC4J/JDev environment, it may or may not work but you unfortunately won't be supported as the only supported configuration is that which is shipped as a product. As far as I know that has been the way the one off XDK's have generally been treated unless it was subsequently indicated by Oracle Support that a particular one-off XDK fixed issues - as far as I know that has not been said for XDK 9.2.0.4 and the 9.0.3 OC4J/JDev stack.
    In your case because you would like to use SOAP, the soap.jar that ships with the XDK and should work with the XDK stack is unfortunately out of date. Your natural reaction to try to use the updated one is however where you will run into trouble as no one has regression tested 9.2.0.4 against the 9.0.3 soap.jar files.
    Sorry for the long answer but hopefully it clarifies.
    Mike.

  • Infopath 2007 and SharePoint 2007 error with Web Service Submit and Recieve

    I have an InfoPath form with code. The code submits the form to SharePoint and to SQL DB through Web Service. The form has some workflow. When form is in a "New" state if submits to SharePoint and Database through custom web service. Works fine
    from both Client and SharePoint browser form. The database ID is returned to the form and then stored in a field. In second stage of workflow additional fields are shown for Supervisor to fill out. I then have an "update" web service to update the
    database. I set all the field values in the Web service then execute both the update Web Service and the SharePoint submit. I get an error (both if running from desktop or SharePoint) Error is
    "The string '' is not a valid AllXsd value"     
    I know sometimes this happens with dates. But I've got all the dates set. The funny thing is in the first submit there are 2 dates in the second submit there is one date. All are set the same and on the first submit no problem submits correct dates to SQL
    database through web Service. Second submit has 2 Boolean fields that I also default to a value of false. I've debugged and looked at all the values and everything has a value. I use delete NIL to make sure value in Web Service is set. I can save the data
    in the form but not submit it because I get the web service error. If I save the data in form and download it and copy all the values in the XML to my Web Service and invoke the web service works fine. So there is no error in the web service. The first
    submit submits both dates and some integer values. The only difference in second is the Boolean value but it is set to default of false for all checkboxes.  I'm going out of mind trying to see what could be wrong.   Also difference with second
    is it sends in the ID of the record that was set in form by result of first submit query sending back the DB value. That value is an integer but I also set correctly.
    Susan J. Swanger

    Hi Somatco,
    According to your description, my understanding is that you got an error when you ran report with xml type datasource.
    Please set the xml datasource credential to Use Windows Authentication (integrated security). More information, please refer to the link:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/530c29ab-7ed5-4c36-816a-910c0b51f4bd/xml-data-source-unable-to-authenticate-using-windows-authentication?forum=sqlreportingservices
    Here are some similar posts for you to take a look at:
    http://www.symantec.com/business/support/index?page=content&id=TECH190935
    http://social.msdn.microsoft.com/Forums/en-US/285e4e8c-d05c-48f8-b4f3-9d87988d823e/an-error-has-occurred-during-report-processing-rsprocessingaborted-query-execution-failed-for?forum=sqlreportingservices
    In addition, as this issue is related to SQL Server Reporting, I commend you create a new thread in SQL Server Reporting forum, more experts will assist you with SQL Server Reporting.
    SQL Server Report forum:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlreportingservices
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How can I authenticate and authorize with Web Service on ESB ?

    Hello,
    I want to authenticate and authorize client with Web Service published
    by HTTP/SOAP BC.
    Simply if it is an Web Service as J2EE application, I will use
    Basic Authentication with JAX-RPC and Realm.
    But I think that Web Service published by HTTP/SOAP BC is not belong
    to J2EE Application. Threre is no place to describe security role mapping
    (like web.xml).
    JBI 1.0 the section "5.5.1.1.3 Normalized Message Properties" comments
    JAAS Subject is given in the NM Properties. Really in this package
    com.sun.jbi.internal.security.*
    implements JAAS autentication and authorization (at JaasAuthenticator).
    But I can't see how to configure my Service to use this.
    How can I authenticate and authorize with Web Service on ESB ?
    I referred to the resources.
    Mutual Authentication for Web Services: A Live Example
    http://developers.sun.com/prodtech/appserver/reference/techart/mutual_auth.html
    XML and Web Services Security
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security7.html
    JAAS Authentication Tutorial
    http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html
    Thanks,
    Takurou
    - environment ---------------------------------------------
    OpenESB : Project Open ESB Starter Kit
    AppServer : Sun Java Systems Application Server 9.0 PE
    OS : Windows XP
    I don't assume to use SSL (if It's necessary I will try).
    User information is stored in a LDAP Server.
    -----------------------------------------------------------

    Hello,
    I read this resource.
    SecurityDesign
    http://www.glassfishwiki.org/jbiwiki/Wiki.jsp?page=SecurityDesign
    Then I think [non-ssl and ssl/tls and so on] securing by basic authentication is ongoing feature at this time.
    But I can't see well why this page comments 'HTTP over SSL, TLS'.
    HTTP/SOAP Binding Component Overview
    http://download.java.net/general/open-esb/docs/jbi-components/httpsoap-bc.html
    Does BC support only "SSL server authentication" ?
    Doesn't BC support "SSL client authentication" by username/password ?
    Thanks,
    Takurou

  • 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

  • Problem with BO Web Services SDK.

    Hello, We are developing a reporting framework using BO Enterprise where different types of reports are available to external users. We are trying to use the Web Services SDK so that CR, WEBI and even Xcelcius reports can be made available. We have the WS installed on the BO enterprise and we can view the WSDL for all the services.
    I am able to use the API to establish the connection:
    BusinessObjects.DSWS.Connection boConnection = new BusinessObjects.DSWS.Connection("http://linux1608.icallinc.com:7070/dswsbobje/services/session");
    Establish the session:
    wSession = new BusinessObjects.DSWS.Session.Session(boConnection);
    wSession.Login(credential);
    Successfully login:
    wSession.Login(credential);
    Successfully establish the BIPlatform and ReportEngine objects:
    bipService = new BIPlatform(boConnection, wSession.ConnectionState);
    boRepEng = new ReportEngine(boConnection, wSession.ConnectionState);
    The problem occurs when using the BIPlatform to Get an InfoObject. 
    ResponseHolder reportRH = bipService.Get path:////Conference, null);
    Error:
    "An XSD Exception occurred. (Error: WBP 42029)"
    CallStackTrace = "com.businessobjects.sdk.biar.exception.XSDException$XSDResourceNotFoundException: The resource 'zip:/usr/local/bea/user_projects/domains/BO_SWN_DEV_DOMAIN/servers/BO_SWN_DEV_SRVR/tmp/_WL_user/dswsbobje/thikq6/war/WEB-INF/lib/_wl_cls_gen.jar!/META-INF/xsd/'...
    The name of the report is: Conference Details and itu2019s in a folder u201CCRS Prototype Reportsu201D under Public Folders. I have tried the following variations on the PATH parameter:
    path://InfoObjects/Root Folder/**/Conference Details
    path://InfoObjects/Root Folder/CRSPrototype Reports/Conference Details
    path:////Conference
    Please note the when I use an improper folder name it does return the appropriate exception.
    Could it be the WS SDK is not properly installed or configured? Thanks in advance for your help.

    We have similar situation: when we use the following search path with one * at the end the report list returns less than 30sec.
    Searching path://InfoObjects/Root Folder/SALES Reports/*...
    But when we do a recursive search on this folder with 2 ** at the end it times out. Searching path://InfoObjects/Root Folder/SALES Reports/**...
    In the log file we see this error when it times out:
    org.apache.axis2.AxisFault: Read timed out
    Environment:
    We are on UNIX Sun Solaris OS, XI 3.1, JAVA SDK, Tomcat/Apache
    Any idea?
    Thank You

  • Database change - Web services sdk

    Can you change the server and database of a crystal report at schedule time via the web services sdk?  These reports have subreports and linked parameters if that makes a difference.  We'd make copies of the report and change them via the CMC's custom database logon but that doesn't seem to work either.

    Wrapping a stored proc in a command object.
    One of the most common issues that prevent changing the Custom Logon database and server fields to point to another data source is this:
    Crystal fully qualifies table and stored proc references.  This is to ensure certainty in where the data comes from, rather than leaving it up to the database default schema.  This causes issues where changes to the full schema name is different between servers.
    There's a configuration setting for the data location "Override qualified table names" that can be used for some data source types to change the naming from fully-qualified. 
    I'm assuming you're doing something similar by wrapping the stored proc in a command object.
    Sincerely,
    Ted Ueda

  • Web Services SDK and Report Bursting

    Using Business Objects Enterprise XI 3.1 with SP2, I want to split a report into multiple reports which I think I can do using report bursting.
    I want a report run for each branch in my company. Rather than run a separate report for each branch (there are thousands), I'd like to be able to run a single report for all branches and then split it into individual reports, one for each branch in an attempt to reduce the overhead of scheduling reports and querying the database. From what I've read it looks like I might be able to do this with report bursting. If this is right, can I do it using the Web Services SDK? I can't find any mention of Report Bursting in the SDK developer's guide.
    Cheers,
    Jack

    I can suggest you DocumentBurster. It is doing exactly what you described, it is a simple to use [report bursting|http://www.pdfburst.com/] tool and it has very good documentation.

  • Report Bursting with RESTful Web Services SDK

    Hi,
    We are looking to upgrade to BI 4.x from BI 3.1.  We are not sure whether RESTful Web Services SDK is the way to go.  We have a requirement where we need to be able to refresh a report, save the whole report content to a specified forma for a team lead/manager, and then section/burst each report to separate files that each is corresponding to the individual employee.  In other words, for example, we have a team constent of 1 manager and 4 employees.  We want to save one report for the manager with all the content from the 4 employees, and then 4 individual reports that each belong to each employee.  We current have a macro code that does this in BI 31 refreshing Deski reports.  We want to upgrade to BI 4.X, but the Deski and macro are no longer supported.  The macro in BI 3.1 we used to control when to refresh, where to save the reports and update our external datasource that the reports finished refreshing and available for view.  We want to keep the same functionality so that it is not a whole redesign of the system when the upgrade happens.  Thank you so much for your help.  Any sample code, tips and guides are helpful.  I am looking to prototype first before I can confirm this will work when upgrading.  I have a code snippet in macro (VBA) from BI 3.1 in the attached file for reference if you know of the equivalent.

    Hi Raghunath,
    Looking at your macro, most of the functionality would be available with REST SDK. With BI 4.x REST is now only SDK which provides APIs to work with webi report. With .NET or Java SDK we could not eeven schedule a webi doc with prompts.
    With BI 4.1 REST APIs include.
    refresh report, schedule report, save report, export which is done by your macro.
    For detailed tasks, such as saving and modifying the report for specific users and send to schedule, you would need to play around with REST Urls to understand the workflow.
    For starters take a look at the devleopers guide for REST here:
    http://help.sap.com/businessobject/product_guides/sbo41/en/sbo41_webi_restful_ws_en.pdf
    Here is the doc which compares the availability of SDK APIs with different BI versions.
    http://scn.sap.com/docs/DOC-53285
    For any Enterprise level tasks, you could always use .NET or Java enterprise SDk and comibe it with your REST app.
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place

  • Axis and Mime to send Images with Web Services

    Hi, I have been reading a lot of information about MIME and how I have to send images or attachaments with Web Services, and I am a little lost. I would to find a simple example to use MIME with AXIS 1.4 . Do anybody know where I can find some example to use attachements with AXIS???
    Thank you very much in advance

    Hi,
    When you are using JAX-WS, there is a tool wsimport, with which you are going to generate the artifacts required to implement the web service.
    When you pass the WSDL as a parameter to the wsimport tool, it will be create the required beans also(JAXB Objects).
    So need of any other external implementation of JAXB when you are working with JAXWS
    Thanks,

  • How to use call back and user session id based conversation with web service in weblogic 6.1 sp2 ?????????

    Hi, every one:
    Here's my question of my day - >>>
    I am using weblogic 6.1 SP2 right now - running on Unix and Win 2K, and
    I got a web service up and running called Price Update web service through
    which user can pick up a price and push a deal to another web service
    called: deal service, the deal service will take the user deal and book the
    deal ( sending a JMS message to a Queue, a MD will pick up and do the work,
    then send the confirmation to another JMS Queue ), then the confirmation
    will be picked up and sent to another web service , called: User Deal
    Confirmation Service, here's the question:
    1. Since the client application is only allowed to see its own confirmed
    deals, how I can make the confirmed deal encrypted based on a server
    generated key or the session id that client application provides
    2. Now, I have 3 webservices: update, deal and confirm, each of them has a
    client.jar file available - from the client application point of view, do I
    need all these 3 client.jar, or I just need one of them ?????
    3. How can I use web service call back in wls 6.1 sp2 ?????? - in the 7.0
    beta, you can do this easily in the workshop, in the second question above,
    I think I need some how relate the confirmation to the client conversation
    id ??
    thanks a lot for the input, have a nice day.
    regards,
    mark.

    Any comments ?
    mark
    "markhu" <[email protected]> wrote in message
    news:[email protected]..
    Hi, every one:
    Here's my question of my day - >>>
    I am using weblogic 6.1 SP2 right now - running on Unix and Win 2K,and
    I got a web service up and running called Price Update web service through
    which user can pick up a price and push a deal to another web service
    called: deal service, the deal service will take the user deal and bookthe
    deal ( sending a JMS message to a Queue, a MD will pick up and do thework,
    then send the confirmation to another JMS Queue ), then the confirmation
    will be picked up and sent to another web service , called: User Deal
    Confirmation Service, here's the question:
    1. Since the client application is only allowed to see its own confirmed
    deals, how I can make the confirmed deal encrypted based on a server
    generated key or the session id that client application provides
    2. Now, I have 3 webservices: update, deal and confirm, each of them has a
    client.jar file available - from the client application point of view, doI
    need all these 3 client.jar, or I just need one of them ?????
    3. How can I use web service call back in wls 6.1 sp2 ?????? - in the 7.0
    beta, you can do this easily in the workshop, in the second questionabove,
    I think I need some how relate the confirmation to the client conversation
    id ??
    thanks a lot for the input, have a nice day.
    regards,
    mark.

  • Web Services SDK secLDAP

    We are converting from the Enterprise SDK to the Web Services SDK and I am having problem with the following snippet of code.  We use something similar to force an LDAP update in the enterprise SDK
                    GetOptions opts = new GetOptions();
                    opts.IncludeSecurity = false;
                    //build and run the query to get the LDAP refresh time
                    string query = "query://{SELECT TOP 1 * FROM CI_SYSTEMOBJECTS WHERE SI_NAME = 'secLDAP'}";
                    ResponseHolder boResponseHolder = boBIPlatform.Get(query, opts);
                    if (boResponseHolder != null && boResponseHolder.InfoObjects != null && boResponseHolder.InfoObjects.InfoObject != null)
                        BusinessObjects.DSWS.BIPlatform.Auth.secLDAP test = boResponseHolder.InfoObjects.InfoObject[0] as BusinessObjects.DSWS.BIPlatform.Auth.secLDAP;
                        //set LDAP refresh time to now
                        boResponseHolder.InfoObjects.InfoObject[0].UpdateTime = DateTime.Now;
                        boBIPlatform.Update(boResponseHolder.InfoObjects);
    I have 2 problems with it:
    1)   BusinessObjects.DSWS.BIPlatform.Auth.secLDAP test = boResponseHolder.InfoObjects.InfoObject[0] as BusinessObjects.DSWS.BIPlatform.Auth.secLDAP;
    results in "test" being null even though InfoObject[0] is there.  It shows as Desktop.GenericInfoObject when debugging.  what is wrong with how I am getting the object and casting?
    2)  boBIPlatform.Update throws an exception:
    An XSD Exception occurred. Import file parsing exception occurred : 'The prefix "io" for element "io:InfoObjects" is not bound.' (FWM 04009) (WBP 42029)

    Hello, Bob;
    I tested this this morning on my Business Objects Enterprise XI R3.1 system and had no errors. LDAP updated.
    Here is my code in case you can see any differences:
    Imports BusinessObjects.DSWS
    Imports BusinessObjects.DSWS.BIPlatform
    Imports BusinessObjects.DSWS.BIPlatform.Constants
    Imports BusinessObjects.DSWS.BIPlatform.Desktop
    Imports BusinessObjects.DSWS.BIPlatform.GetOptions
    Imports BusinessObjects.DSWS.ReportEngine
    Imports BusinessObjects.DSWS.Session
    Imports System
    Imports System.Data
    Imports System.Configuration
    Imports System.Web
    Imports System.Web.Security
    Imports System.Web.UI
    Imports System.Web.UI.WebControls
    Imports System.Web.UI.WebControls.WebParts
    Imports System.Web.UI.HtmlControls
    Partial Class _Default
        Inherits System.Web.UI.Page
        ' Modify the variables here to reflect the environment
        ' CMS-specific parameters
        Private CMS_USER As String = "Admin1"
        Private CMS_USER_PASSWORD As String = "uid" 'String.Empty
        Private CMS_CLUSTER_NAME As String = "sap-v5hyxcb8pbf" 'String.Empty
        Private CMS_AUTHENTICATION As String = String.Empty
        ' Web Services URLs
        Private WS_BASE_URL As String = "http://localhost:8080/dswsbobje/services/"
        'NOTE:  The following variables are case sensitive
        '       Lower case for Axis 1.1 (BOE XI R2)
        Private WS_URL_SESSION As String = WS_BASE_URL + "session"
        Private WS_URL_REPORTENGINE As String = WS_BASE_URL + "reportengine"
        Private WS_URL_BIPLATFORM As String = WS_BASE_URL + "biplatform"
        ' Name of the report to be viewed
        Private REPORT_NAME As String = "Test2_StoredProc.rpt"
        'Database Logon properties
        Private USER_NAME As String = "user"
        Private USER_PASSWORD As String = "password"
        Private bipService As BIPlatform
        Private boRepEng As ReportEngine
        Private wSession As Session
        Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
            ConfigureCrystalReports()
        End Sub
        Private Sub ConfigureCrystalReports()
            ' The following sample code demonstrates how to view a report using the Web Services BIPlatform and \
            ' Report Engine services.
            ' Just running the following code will enable you to view a simple report with no additional options.
            ' Include the commented blocks of code to view reports with different viewing options:
            ' - View a report in PDF format
            ' - View a report with database logon information
            ' - View a report with discrete parameters
            ' Note: You may have to change some parts of the code to make the special viewing options work.
            Logon()
            ViewReport()
        End Sub
        Private Sub Logon()
            Dim wSession As BusinessObjects.DSWS.Session.Session
            Try
                Dim boConnection As BusinessObjects.DSWS.Connection = New BusinessObjects.DSWS.Connection(WS_URL_SESSION)
                ' login to BusinessObjects Enterprise using web services
                Console.WriteLine("Logging into web service..." + WS_URL_SESSION)
                Dim credential As New EnterpriseCredential
                credential.Login = CMS_USER
                credential.Password = CMS_USER_PASSWORD
                credential.Domain = CMS_CLUSTER_NAME
                credential.AuthType = CMS_AUTHENTICATION
                wSession = New BusinessObjects.DSWS.Session.Session(boConnection)
                wSession.Login(credential)
                Console.WriteLine("Logged into web service.")
                boConnection.URL = WS_URL_BIPLATFORM
                bipService = New BIPlatform(boConnection, wSession.ConnectionState)
                boConnection.URL = WS_URL_REPORTENGINE
                boRepEng = New ReportEngine(boConnection, wSession.ConnectionState)
                Session("Platform") = bipService
                Session("ReportEngine") = boRepEng
            Catch ex As DSWSException
                Console.Error.WriteLine(ex)
                Console.Error.WriteLine(ex.CauseDetail)
                Throw
            End Try
        End Sub
        Private Sub ViewReport()
            Try
                'Get PageInfo
                Dim boGetOptions As New GetOptions
                boGetOptions = New GetOptions
                boGetOptions.IncludeSecurity = True
                'Dim query As String = "path://InfoObjects/Root Folder/**/" + REPORT_NAME
                Dim query As String = "query://{Select TOP 1 * FROM CI_SYSTEMOBJECTS WHERE SI_NAME = 'secLDAP'}"
                Dim reportRH As ResponseHolder = bipService.Get(query, boGetOptions)
                Dim boReports As InfoObjects = reportRH.InfoObjects
                If (Nothing Is boReports) Then
                    Return
                End If
                Dim repID As String = boReports.InfoObject(0).CUID
                Response.Write("RepID " + repID.ToString)
                Dim testLDAP As BusinessObjects.DSWS.BIPlatform.Auth.secLDAP
                testLDAP = boReports.InfoObject(0)
                Response.Write("   CUID: " + testLDAP.CUID.ToString)
                testLDAP.UpdateTime = DateTime.Now
                bipService.Update(reportRH.InfoObjects)
                Response.Write("<BR> LDAP updated <BR>")
            Catch ex As DSWSException
                Console.Error.WriteLine(ex)
                Console.Error.WriteLine(ex.CauseDetail)
                Throw
            Finally
                If Not wSession Is Nothing Then
                    wSession.Logout()
                End If
                Console.Write("Press the [ENTER] key to terminate program.")
            End Try
        End Sub
    End Class
    Where do you have your BusinessObjects.DSWS .dlls?
    If you right click on "BusinessObjects.DSWS.dll" and go to Properties and the version tab, what is the full File version?
    I am having someone test this with version 3.0 today as I do not have that version setup.
    Elaine
    Edited by: Ludek Uher on Mar 20, 2009 12:29 PM

  • BI Launchpad & XI vs Web Services SDK - BusinessObjects 4.x

    Hello,
    I am new to using the .NET SDK and have noticed that there are two different versions that do similar things. I am looking to add functionality into my company's .NET-based website where we can add BO users on the fly into preset groups. I noticed that this administrative functionality is available with the XI .NET SDK (CrystalDecisions,etc) but it is not available with the Web Services SDK (BusinessObjects.DSWS,etc). Is this something that can be done with the Web Services SDK? If not, is it a good practice to use the XI SDK for Web Applications?
    I am also looking to log into the BI Launchpad programmatically so user's do not see the login screen. I have tried logging the user into BO using the Web Services SDK and saving the proper information into cookies that are created when one logs into the BI Launchpad. While I created all the proper cookies, when I navigate to the webpage with the embedded Launchpad it will not recognize these cookies, prompt for login credentials, and overwrite them if I log in. I set the property allowInsecureToken=true in BILaunchpad.properties so I can at least work with it in an IFrame. Is this a good way to go about this task? If not, is there a better way?
    I have been working on this for a week or two and read a lot of articles, viewed samples, experimented with code, etc. Any help is greatly appreciated.
    Thanks,
    Dustin

    Thanks for your reply.
    Perhaps I am muddying up the terms but I believe I am using the same version. The path where I find the dlls that contain CrystalDecisions.Enterprise.* is as follows:
    C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\iPoint
    Unless I am mistaken in thinking they wouldn't package old libraries with newer versions.
    I have used the .NET SDK to do the user management tasks with a number of my clients.  However, they don't necessarily access the SDK directly from the web app.  While one client did this directly from their application, another client had an extensive batch processing system and they would schedule a user update job, passing in the parameters needed to add/update/delete the user.  Yet another client wrapped all of their BO-related code in a web service and called that to do the user management (among many other things.)   So, I believe that you could definitely do this directly from your application.
    According to the documentation I have found, it looks like the BIPlatform portion of the sdk is the closest section to this, though it has differing functions between the Web Services SDK and the other one I discussed. The web services documentation does not talk about anything related to user management. Do you have any links that would go into more depth regarding the specifics of implementing this functionality?
    I will look into adding single sign on for this.
    Thanks again!

Maybe you are looking for