Ic webclient download?

Hello everyone,
Where can I download ic webclient?

Hello Toshi,
Andrew is exactly right. Just to elaborate a bit, with CRM 4.0 the IC WebClient required Java Jar files for three components: IC Server, SAF, and Broadcast Messaging. With CRM 5.0, you had the choice to use pure ABAP instead of Java. And with CRM 5.0 and above the Java is removed and its all ABAP (and BSP of course).
Best regards,
John

Similar Messages

  • How to configure Toplink Webclient on Oracle

    i have installed toplink sample application on Oracle10g app server.
    to profile the sample app, i installed toplink webclient but when i try to invoke the toplink webclient, toplink webclient page flases and then show a blank page with HTTP 500 error.
    can any one please tell me how to configure the toplink webclient on oracle server.
    the steps that i followed to install the toplink webclient are as follows
    1) downloaded the toplink_webclient.zip file from the oracle site
    2) unzipped and ran the assembleWebClient.cmd file and got the toplinkwc.ear file
    3) installed the ear file and tried to invoke the toplink webclient by the url
    http://<appserver>:7777/toplinkwc
    please let me know if i need to do some more configuration
    Thanks
    Raghav

    Hi
    I see that TopLinkServlet refers to the "oracle.toplink.webclient.control.TopLinkServlet" class file which is not available in the application jar. could this be the issue ?
    how do i get these class files.
    when we run the ant on webclient downloaded from the oracle website, these class files are not compiled.
    here is the web.xml file of toplink webclient
    D:\OraHome\j2ee\home\applications\toplinkwc\toplinkwc\WEB-INF\web.xml
         <servlet>
              <servlet-name>Controller</servlet-name>
              <display-name>Controller</display-name>
              <servlet-class>oracle.toplink.webclient.control.Controller</servlet-class>
         </servlet>
         <servlet>
              <servlet-name>TopLinkServlet</servlet-name>
              <display-name>TopLinkServlet</display-name>
              <servlet-class>oracle.toplink.webclient.control.TopLinkServlet</servlet-class>
         </servlet>
    ****************

  • Blank page with 500 error

    Hi there.
    I have application, where is standalone java backend (with spring) and frontend (with spring MVC and RMI) - portlet deployed on PS6 on SJAS8 (ES2005Q1).
    Using Access Manager for usermanagment.
    Users can be active or expired - defined in database (via backend), both can logged to application, but if is user expired, he cant do some stuff.
    So, here is problem. Active user can login correctly.
    Expired user cant. After login (successfully logged to access manager) portlet show only blank page (without any character) and response http code is 500 (internal server error).
    And nothing is logged in server.log, only on server access log is 500. So if is not logged any exception, is imho some error on portal server/application server..
    Any gues where can be that insect (bug)? :)
    Big thanx for any suggestions.

    Hi
    I see that TopLinkServlet refers to the "oracle.toplink.webclient.control.TopLinkServlet" class file which is not available in the application jar. could this be the issue ?
    how do i get these class files.
    when we run the ant on webclient downloaded from the oracle website, these class files are not compiled.
    here is the web.xml file of toplink webclient
    D:\OraHome\j2ee\home\applications\toplinkwc\toplinkwc\WEB-INF\web.xml
         <servlet>
              <servlet-name>Controller</servlet-name>
              <display-name>Controller</display-name>
              <servlet-class>oracle.toplink.webclient.control.Controller</servlet-class>
         </servlet>
         <servlet>
              <servlet-name>TopLinkServlet</servlet-name>
              <display-name>TopLinkServlet</display-name>
              <servlet-class>oracle.toplink.webclient.control.TopLinkServlet</servlet-class>
         </servlet>
    ****************

  • Why when using WebClient inside a backgroundworker it's still freezing the program untill the download is over ?

    In form1 constructor:
    fileDownloadRadar();backgroundWorker2.RunWorkerAsync();
    First i'm downloading one image from another source using WebClient in form1:
    private void fileDownloadRadar()
    if (Client.IsBusy == true)
    Client.CancelAsync();
    else
    Client.DownloadFileAsync(myUri, combinedTemp);
    Then in the DoWork event:
    private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e)
    SatelliteImages.ExtractCountires();
    this.BeginInvoke(new MethodInvoker(delegate
    for (int i = 0; i < SatelliteImages.countriescodes.Count; i++)
    comboBox1.Items.Add(SatelliteImages.countriescodes[i]);
    for (int i = 0; i < SatelliteImages.countriesnames.Count; i++)
    comboBox2.Items.Add(SatelliteImages.countriesnames[i]);
    comboBox1.Text = "is";
    comboBox2.Text = "Europe";
    SatelliteImages.ExtractDateTime(comboBox1.Text, true, combinedsatelliteimagesdir);
    This is the SatelliteImages class:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Web;
    using System.Globalization;
    using System.IO;
    using System.Net;
    using System.Text.RegularExpressions;
    namespace mws
    public partial class SatelliteImages : Form
    static WebClient client;
    List<string> imagesUrls = new List<string>();
    static string htmltoextract;
    static string link;
    static string text;
    public static List<string> countriescodes = new List<string>();
    public static List<string> countriesnames = new List<string>();
    public SatelliteImages()
    InitializeComponent();
    public static void ExtractCountires()
    htmltoextract = "http://sat24.com/en/?ir=true";//"http://sat24.com/en/";// + regions;
    client = new WebClient();
    client.DownloadFile(htmltoextract, @"c:\temp\sat24.html");
    client.Dispose();
    string tag1 = "<li><a href=\"/en/";
    string tag2 = "</a></li>";
    string s = System.IO.File.ReadAllText(@"c:\temp\sat24.html");
    s = s.Substring(s.IndexOf(tag1));
    s = s.Substring(0, s.LastIndexOf(tag2) + tag2.ToCharArray().Length);
    s = s.Replace("\r", "").Replace("\n", "").Replace(" ", "");
    string[] parts = s.Split(new string[] { tag1, tag2 }, StringSplitOptions.RemoveEmptyEntries);
    string tag3 = "<li><ahref=\"/en/";
    for (int i = 0; i < parts.Length; i++)
    if (i == 17)
    break;
    string l = "";
    if (parts[i].Contains(tag3))
    l = parts[i].Replace(tag3, "");
    string z1 = l.Substring(0, l.IndexOf('"'));
    countriescodes.Add(z1);
    string z2 = parts[i].Substring(parts[i].LastIndexOf('>') + 1);
    countriesnames.Add(z2);
    public static void ExtractDateTime(string selectedregion,bool infraredorvisual, string satimagesdir)
    WebClient client1 = new WebClient();
    string[] Urls = new string[9];
    string input = File.ReadAllText(@"c:\temp\sat24.html");
    string pattern1 = @"imageUrls = \[[^\]]*\]";
    Regex ex1 = new Regex(pattern1, RegexOptions.Singleline);
    string pattern2 = @"region=(?'region'[^&]*)&time=(?'time'\d{12})";
    Match match1 = ex1.Match(input);
    Regex ex2 = new Regex(pattern2, RegexOptions.Singleline);
    MatchCollection matches2 = ex2.Matches(match1.Value);
    IFormatProvider provider = CultureInfo.InvariantCulture;
    List<DateTime> dateTime = new List<DateTime>();
    foreach (Match match2 in matches2)
    string region = match2.Groups["region"].Value;
    DateTime dt = DateTime.ParseExact(match2.Groups["time"].Value, "yyyyMMddHHmm", provider);
    switch (region)
    case "eu":
    dt.AddHours(1);
    break;
    case "is":
    dt.AddHours(-1);
    break;
    dateTime.Add(dt);
    for (int i = 0; i < dateTime.Count; i++)
    string result = dateTime[i].ToString("yyyyMMddHHmm");
    link = "http://www.sat24.com/image2.ashx?region=" + selectedregion + "&time=" + result + "&ir=" +
    infraredorvisual ;
    // why downloading so slow ? to check maybe to ask
    // in forums.
    string filePath = Path.Combine(satimagesdir, "SatImage" + i + ".GIF");
    try
    client1.DownloadFile(link, filePath);
    catch (Exception e)
    DannyGeneral.Logger.Write(e.ToString());
    client1.Dispose();
    private void SatelliteImages_Load(object sender, EventArgs e)
    I guess the problem is in the SatelliteImages class where i'm downloading there first time the html file and then downloading 9 images.
    I tried to start the backgroundworker2 inside the completed event in form1 of the WebClient.
    But again it's all freezing untill it's completing downloading the images in the class SatelliteImages.
    I thought put it in the backgroundworker2 dowork will not make it freeze.
    Why the downloadings in the class SatelliteImages make it all freeze untill it finish the downloadings even if it's inside the backgroundworker2 dowork event ?

    Unless I have missed something, the only thing that is running on the background thread is:
    SatelliteImages.ExtractCountires();
    It would be greatly appreciated if you would mark any helpful entries as helpful and if the entry answers your question, please mark it with the Answer link.

  • CRM 5.0 core and Standalone components, ERMS, Webclient cookbook - download

    Hi,
    Please visit www.service.sap.com and download the CRM 5.0 Webclient cookbook, ERMS, upgrade documentation etc.,
    thanks
    Arul<a href="https://websmp103.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000647974&">CRM 5.0 upgrade info</a>

    Hi Cleiton,
    Follow these steps into SE80 transaction:
    Best regards.

  • How to download an image/file with WebClient API (to show progress visualy)?

    Hi. Can you show me C# code to do the above query. Thank you in advance.

    Hi
    Clint William Theron,
    You can try this code .
    string localFilename = @"c:\localpath\tofile.jpg";
    using(WebClient client = new WebClient())
    client.DownloadFile("http://www.imagesABC.com/myimage.jpg", localFilename);
    For more reference find following link:-
    http://stackoverflow.com/questions/3615800/download-image-from-the-site-in-net-c
    http://stackoverflow.com/questions/21572276/downloading-and-saving-a-file-async-in-windows-phone-8
    Don't
    forget to mark the right answer and vote up if helps you.

  • Download user diaglog in CRM Webclient UI

    Hi,
    in SAP GUI we are able to use methods:
    cl_gui_frontend_services=>file_save_dialog
    and
    cl_gui_frontend_services=>gui_download
    to ask a user where to save a download file and save it on the users client.
    we need the same functionality in webclient UI.
    We have created an internal table which the user should be able to download as spreadsheet to his client.
    We already created a button and also an eventhandler creating the internal table.
    Now we need a kind of file save dialog.
    Thank you very much.
    Best regards
    Manfred

    Hi Manfred,
    the Browser-Sandboxing does not allow silent file downloads to the client for security reasons.
    You can also use the mime repository for tempory storage of your csv file. But I would prefer the sicf approach. For testing purposes you can insert some simple coding like: 
    DATA data type string.
    server->response->set_header_field(
      name  = 'Content-Type'
      value = 'text/html' ).
      concatenate '<html>'
              '<body>'
              'Handler succesfully called!'
              '</body>'
              '</html>'
              into data.
      server->response->set_cdata( data = data ).
    If you enter the url specified in service node into the browser you should see the response of the handler.
    Regards,
    Arne

  • Service Desk with IC WebClient: Category Modeler not available

    Hello,
    We are currently implementing a Service Desk Application based on SAP Solution Manager. Therefore we are using the article "Implement an ITIL Employee Service Desk with IC WebClient" of "www.CRMExpertOnline".
    One of the steps, which are described in the article describes how to Categorize incidents with the Category Modeler. It says that the Category Modeler is available trough BSP Application CRMM_ERM_CAT.
    Unfortunately this SAP-Application is not available on our system.
    Our System Data:
    SOFTWARE COMPONENT               RELEASE                    LEVEL               HIGHEST SUPPORT PACKAGE          DESCRIPTION
    SAP_BASIS                                        700                              0012               SAPKB70012                                        SAP Basis Component
    SAP_ABA                                             700                              0012               SAPKA70012                                        Cross-Application Component
    PI_BASIS                                        2005_1_700          0012               SAPKIPYJ7C                                        PI_BASIS 2005_1_700
    ST-PI                                                  2005_1_700          0005               SAPKITLQI5                                        SAP Solution Tools Plug-In
    SAP_BW                                             700                              0014               SAPKW70014                                        SAP NetWeaver BI 7.0
    SAP_AP                                             700                              0009               SAPKNA7009                                        SAP Application Platform
    BBPCRM                                             500                              0009               SAPKU50009                                        BBPCRM
    CPRXRPM                                             400                              0009               SAPK-40009INCPRXRPM                    SAP xRPM/cProjects/cFolders 4.00 (ABAP)
    BI_CONT                                             703                              0005               SAPKIBIIP5                                        Business Intelligence Content                    
    ST                                                       400                              0012               SAPKITL422                                        SAP Solution Manager Tool                            
    ST-A/PI                                             01I_CRM500          0000         -                                                                 Application Servicetools for CRM 500         
    ST-ICO                                             150_700                    0009               SAPK-15079INSTPL                         SAP Solution Manager Implementation Cont
    ST-SER                                             700_2006_2          0003               SAPKITLOK3                                        SAP Solution Manager Service Tools
    Does anybody know where I can find/download the category modeler-application?
    Thanks in advance,
    Andreas

    Hello Andreas,
    The question is that  CRMM_ERM_CAT is an application, also a transaction but this is not the name of the associated BSP I think, this belongs to component CRM-PCF more than Solution Manager.
    I have seent some messages speakin about to call:
    http://server:port/sap/bc/bsp/sap/crm_bsp_frame/entrypoint.do?
    appl=CRMM_ERM_CAT
    Sorry! I can not tell you more about this, regards,
    Dolores

  • Not able to download and install flash player

    I have tried several times to download the current flash player for IE 8.
    I get this error and have not been able to resolve it.
    Windows Data Execution Prevention detected an add-on trying to use system memory incorrectly. This can be caused by a malfunction or a malicious add-on.
    Suggestions would be greatly appreciated.
    Jeff

    Thanks, here is what you asked for (I hope).
    First, OS is XP SP3
    Second, did not use unistaller
    Third, here are the addons (I hope this is what you wanted...)
    Name          AcroIEHlprObj Class
    Publisher     Adobe Systems, Incorporated
    Status        Enabled
    File date     Monday, December 18, 2006, 3:16 AM
    Version       7.0.9.50
    Load time     0.00 s
    Name          Adobe Acrobat 7.0 Browser Control
    Publisher     Adobe Systems, Incorporated
    Status        Enabled
    File date     Thursday, May 10, 2007, 9:26 PM
    Name          Adobe PDF
    Publisher     Adobe Systems, Incorporated
    Status        Enabled
    File date     Monday, December 18, 2006, 3:18 AM
    Version       7.0.9.50
    Name          Adobe PDF
    Publisher     Adobe Systems, Incorporated
    Status        Enabled
    File date     Monday, December 18, 2006, 3:18 AM
    Version       7.0.9.50
    Load time     0.01 s
    Name          Adobe PDF Conversion Toolbar Helper
    Publisher     Adobe Systems, Incorporated
    Status        Enabled
    File date     Monday, December 18, 2006, 3:18 AM
    Version       7.0.9.50
    Load time     0.05 s
    Name          Deployment Toolkit
    Publisher     Sun Microsystems, Inc.
    Status        Enabled
    File date     Sunday, October 11, 2009, 4:17 AM
    Version       6.0.170.4
    Name          DLM Control
    Publisher     (Not verified) Akamai Technologies, Inc.
    Status        Enabled
    File date     Wednesday, March 11, 2009, 10:17 PM
    Version       2.2.4.8
    Name          FilterBHO Class
    Publisher     Kaspersky Lab
    Status        Enabled
    File date     Tuesday, October 20, 2009, 12:19 PM
    Version       9.0.0.464
    Load time     0.04 s
    Name          Free Threaded XML DOM Document
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Thursday, July 30, 2009, 11:35 PM
    Version       8.100.1051.0
    Name          Free Threaded XML DOM Document 6.0
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Friday, July 31, 2009, 10:05 AM
    Version       6.20.1103.0
    Name          Google Side Bar
    Publisher     Google Inc
    Status        Enabled
    File date     Thursday, December 03, 2009, 7:08 AM
    Version       6.3.1014.1517
    Load time     0.01 s
    Name          Google Toolbar
    Publisher     Google Inc
    Status        Enabled
    File date     Thursday, December 03, 2009, 7:08 AM
    Version       6.3.1014.1517
    Load time     0.12 s
    Name          Google Toolbar Helper
    Publisher     Google Inc
    Status        Enabled
    File date     Thursday, December 03, 2009, 7:08 AM
    Version       6.3.1014.1517
    Load time     0.00 s
    Name          Google Toolbar Notifier BHO
    Publisher     Google Inc
    Status        Enabled
    File date     Monday, November 23, 2009, 2:48 PM
    Version       5.4.4525.1752
    Load time     0.00 s
    Name          HtmlDlgSafeHelper Class
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Sunday, March 08, 2009, 3:31 AM
    Version       8.00.6001.18702
    Name          IEVkbdBHO Class
    Publisher     Kaspersky Lab
    Status        Enabled
    File date     Friday, July 03, 2009, 2:48 PM
    Version       9.0.0.463
    Load time     0.01 s
    Name          InformationCardSigninHelper Class
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Sunday, March 08, 2009, 3:31 AM
    Version       8.00.6001.18702
    Name          Java Plug-in 1.6.0_07
    Publisher     Sun Microsystems, Inc.
    Status        Enabled
    File date     Sunday, October 11, 2009, 4:17 AM
    Version       1.6.0.7
    Name          Java Plug-in 1.6.0_17
    Publisher     Sun Microsystems, Inc.
    Status        Enabled
    File date     Sunday, October 11, 2009, 4:17 AM
    Version       1.6.0.17
    Name          Java Plug-in 1.6.0_17
    Publisher     Sun Microsystems, Inc.
    Status        Enabled
    File date     Sunday, October 11, 2009, 4:17 AM
    Version       1.6.0.17
    Name          Java(tm) Plug-In 2 SSV Helper
    Publisher     Sun Microsystems, Inc.
    Status        Enabled
    File date     Tuesday, December 15, 2009, 6:09 PM
    Version       6.0.170.4
    Name          JQSIEStartDetectorImpl Class
    Publisher     (Not verified) Sun Microsystems, Inc.
    Status        Enabled
    File date     Tuesday, December 15, 2009, 6:09 PM
    Version       6.0.170.4
    Load time     0.01 s
    Name          jZip Webmail plugin
    Publisher     Discordia Limited
    Status        Enabled
    File date     Tuesday, October 28, 2008, 7:36 AM
    Version       1.3.0.56665
    Load time     0.01 s
    Name          McciHTTPClient Class
    Publisher     (Not verified) Motive Communications, Inc.
    Status        Enabled
    File date     Friday, May 02, 2008, 1:32 PM
    Version       6.1.0.63
    Name          McciSM Class
    Publisher     (Not verified) Motive Communications, Inc.
    Status        Enabled
    File date     Friday, May 02, 2008, 1:32 PM
    Version       6.1.0.95
    Name          McciUtilsINI Class
    Publisher     (Not verified) Motive Communications, Inc.
    Status        Enabled
    File date     Friday, May 02, 2008, 1:31 PM
    Version       6.1.3.214
    Name          McciUtilsPath Interface
    Publisher     (Not verified) Motive Communications, Inc.
    Status        Enabled
    File date     Friday, May 02, 2008, 1:31 PM
    Version       6.1.3.214
    Name          McciUtilsPlatform2 Class
    Publisher     (Not verified) Motive Communications, Inc.
    Status        Enabled
    File date     Friday, May 02, 2008, 1:31 PM
    Version       6.1.3.214
    Name          McciUtilsRegistry Class
    Publisher     (Not verified) Motive Communications, Inc.
    Status        Enabled
    File date     Friday, May 02, 2008, 1:31 PM
    Version       6.1.3.214
    Name          McciUtilsSpecialFolder Class
    Publisher     (Not verified) Motive Communications, Inc.
    Status        Enabled
    File date     Friday, May 02, 2008, 1:31 PM
    Version       6.1.3.214
    Name          Microsoft Silverlight
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Monday, August 17, 2009, 8:34 PM
    Version       3.0.40818.0
    Name          MSN Toolbar
    Publisher     Microsoft Corporation
    Status        Disabled
    File date     Monday, February 09, 2009, 8:33 PM
    Version       3.0.1125.0
    Load time     (0.00 s)
    Name          MSN Toolbar Helper
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Monday, February 09, 2009, 8:33 PM
    Version       3.0.1125.0
    Load time     0.03 s
    Name          NSHelp Class
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Thursday, April 16, 2009, 12:57 PM
    Version       5.2.2651.0
    Name          Persits Software XEncrypt
    Publisher     Persits Software, Inc.
    Status        Enabled
    File date     Tuesday, October 28, 2008, 9:10 AM
    Version       2.1.0.3
    Name          Research
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Thursday, April 19, 2007, 2:10 PM
    Version       11.0.8164.0
    Name          Search Helper
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Tuesday, May 19, 2009, 10:36 AM
    Version       1.3.59.0
    Load time     0.05 s
    Name          Shockwave Flash Object
    Publisher     Adobe Systems Incorporated
    Status        Enabled
    File date     Tuesday, October 27, 2009, 10:31 PM
    Version       10.0.12.36
    Name          URLs check
    Publisher     Kaspersky Lab
    Status        Enabled
    File date     Tuesday, October 20, 2009, 12:19 PM
    Version       9.0.0.464
    Name          Virtual keyboard
    Publisher     Kaspersky Lab
    Status        Enabled
    File date     Tuesday, October 20, 2009, 12:19 PM
    Version       9.0.0.464
    Name          Web Browser Applet Control
    Publisher     Sun Microsystems, Inc.
    Status        Enabled
    File date     Sunday, October 11, 2009, 4:17 AM
    Version       6.0.170.4
    Name          WebClient Class
    Publisher     Control name is not available
    Status        Enabled
    File date     Monday, October 01, 2007, 1:51 PM
    Version       1. 0. 0. 1
    Name          WebSDev Control
    Publisher     (Not verified) MICRO-STAR INT'L CO., LTD.
    Status        Enabled
    File date     Wednesday, April 23, 2008, 12:57 PM
    Version       1.0.0.12
    Name          Windows Media Player
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Monday, July 13, 2009, 10:43 PM
    Version       11.0.5721.5268
    Name          XML DOM Document
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Thursday, July 30, 2009, 11:35 PM
    Version       8.100.1051.0
    Name          XML DOM Document 3.0
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Thursday, July 30, 2009, 11:35 PM
    Version       8.100.1051.0
    Name          XML DOM Document 4.0
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Tuesday, July 21, 2009, 12:05 AM
    Version       4.20.9876.0
    Name          XML DOM Document 6.0
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Friday, July 31, 2009, 10:05 AM
    Version       6.20.1103.0
    Name          XML HTTP 3.0
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Thursday, July 30, 2009, 11:35 PM
    Version       8.100.1051.0
    Name          XML HTTP 4.0
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Tuesday, July 21, 2009, 12:05 AM
    Version       4.20.9876.0
    Name          XML HTTP 6.0
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Friday, July 31, 2009, 10:05 AM
    Version       6.20.1103.0
    Name          XSL Template
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Thursday, July 30, 2009, 11:35 PM
    Version       8.100.1051.0
    Name          XSL Template 6.0
    Publisher     Microsoft Corporation
    Status        Enabled
    File date     Friday, July 31, 2009, 10:05 AM
    Version       6.20.1103.0
    Thanks,
    totalimg

  • How to download a file version from office 365 using csom

    I need to download an older file version from office 365 and get the data into a byte array. I have no trouble downloading the latest version with File.OpenBinaryStream() and I have no trouble loading the previous file versions with File.Versions. But now
    I need to actually download an older version of the file and it seems the only way is to use File.OpenBinaryDirect. So I am creating a client context using my oAuth access token and providing the correct path, but I am getting a (401) Unauthorized
    error. Looking with Fiddler I can see that the call to OpenBinaryDirect is somehow trying to post to my file URL and the server is responding with 401.
    context = TokenHelper.GetClientContextWithAccessToken(SPHostUrl, AccessToken);
    FileInformation info = File.OpenBinaryDirect(context, "/" + _fileVersion.Url);  //throws 401
    //leading slash required otherwise ArgumentOutOfRangeException
    I have to be able to access the older file versions with my c# code -- I don't have a viable app without that ability -- any help urgently needed and greatly appreciated!

    Thank you SO much (Can't wait for the next release)!
    For anyone else who lands here, here's the code I ended up using:
    // VersionAccessUser and VersionAccessPassword are stored in web.config
    // web.Url is loaded via the clientContext
    // myVersion is the FileVersion I got from the file's Versions.GetById() method
    // probably a lot of ways to get hostUrl, it just needs to be https://yourdomain.sharepoint.com/
    // - I'm running my app from a subweb
    // I had trouble following the links to get the full MsOnlineClaimsHelper code
    // (the one on msdn.com was missing RequestBodyWriter, WSTrustFeb2005ContractClient,
    // and IWSTrustFeb2005Contract
    // so I've included the code I used here.
    string myVersionFullUrl = string.Format("{0}/{1}", web.Url, myVersion.Url);
    string userName = WebConfigurationManager.AppSettings.Get("VersionAccessUser");
    string strPassword = WebConfigurationManager.AppSettings.Get("VersionAccessPassword");
    string hostUrl = Regex.Replace(web.Url, "([^/]+//[^/]+/).*", "$1");
    MsOnlineClaimsHelper claimsHelper = new MsOnlineClaimsHelper(hostUrl, userName, strPassword);
    var client = new WebClient();
    client.Headers["Accept"] = "/";
    client.Headers.Add(HttpRequestHeader.UserAgent, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
    client.Headers.Add(HttpRequestHeader.Cookie, claimsHelper.CookieContainer.GetCookieHeader(new Uri(hostUrl)));
    var document = client.DownloadString(myVersionFullUrl);
    // These classes are needed to download old versions of files (see: http://social.msdn.microsoft.com/Forums/en-US/7746d857-d351-49cc-b2f0-496663239e02/how-to-download-a-file-version-from-office-365-using-csom?forum=sharepointdevelopment)
    // I cobbled this file from http://social.technet.microsoft.com/Forums/msonline/en-US/4e304493-7ddd-4721-8f46-cb7875078f8b/problem-logging-in-to-office-365-sharepoint-online-from-webole-hosted-in-the-cloud?forum=onlineservicessharepoint
    // and http://fredericloud.com/2011/01/11/connecting-to-sharepoint-with-claims-authentication/
    using Microsoft.IdentityModel.Protocols.WSTrust;
    using Microsoft.SharePoint.Client;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Net.Security;
    using System.ServiceModel;
    using System.ServiceModel.Channels;
    using System.Text;
    using System.Web;
    using System.Xml;
    using System.Xml.Linq;
    namespace DPSiDoxAppWeb.Helpers
    /// <summary>
    /// Create a new contract to use for issue claims for the SharePoint requests
    /// </summary>
    [ServiceContract]
    public interface IWSTrustFeb2005Contract
    [OperationContract(ProtectionLevel = ProtectionLevel.EncryptAndSign,
    Action = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue",
    ReplyAction = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue",
    AsyncPattern = true)]
    IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state);
    Message EndIssue(IAsyncResult asyncResult);
    /// <summary>
    /// Implement the client contract for the new type
    /// </summary>
    public class WSTrustFeb2005ContractClient : ClientBase<IWSTrustFeb2005Contract>, IWSTrustFeb2005Contract
    public WSTrustFeb2005ContractClient(Binding binding, EndpointAddress remoteAddress)
    : base(binding, remoteAddress)
    public IAsyncResult BeginIssue(Message request, AsyncCallback callback, object state)
    return Channel.BeginIssue(request, callback, state);
    public Message EndIssue(IAsyncResult asyncResult)
    return Channel.EndIssue(asyncResult);
    /// <summary>
    /// Create a class that will serialize the token into the request
    /// </summary>
    class RequestBodyWriter : BodyWriter
    readonly WSTrustRequestSerializer _serializer;
    readonly RequestSecurityToken _rst;
    /// <summary>
    /// Constructs the Body Writer.
    /// </summary>
    /// <param name="serializer">Serializer to use for serializing the rst.</param>
    /// <param name="rst">The RequestSecurityToken object to be serialized to the outgoing Message.</param>
    public RequestBodyWriter(WSTrustRequestSerializer serializer, RequestSecurityToken rst)
    : base(false)
    if (serializer == null)
    throw new ArgumentNullException("serializer");
    _serializer = serializer;
    _rst = rst;
    /// <summary>
    /// Override of the base class method. Serializes the rst to the outgoing stream.
    /// </summary>
    /// <param name="writer">Writer to which the rst should be written.</param>
    protected override void OnWriteBodyContents(XmlDictionaryWriter writer)
    _serializer.WriteXml(_rst, writer, new WSTrustSerializationContext());
    public class MsOnlineClaimsHelper
    #region Properties
    readonly string _username;
    readonly string _password;
    readonly bool _useRtfa;
    readonly Uri _host;
    CookieContainer _cachedCookieContainer = null;
    DateTime _expires = DateTime.MinValue;
    #endregion
    #region Constructors
    public MsOnlineClaimsHelper(string host, string username, string password)
    : this(new Uri(host), username, password)
    public MsOnlineClaimsHelper(Uri host, string username, string password)
    _host = host;
    _username = username;
    _password = password;
    _useRtfa = true;
    public MsOnlineClaimsHelper(Uri host, string username, string password, bool useRtfa)
    _host = host;
    _username = username;
    _password = password;
    _useRtfa = useRtfa;
    #endregion
    #region Constants
    public const string office365STS = "https://login.microsoftonline.com/extSTS.srf";
    public const string office365Login = "https://login.microsoftonline.com/login.srf";
    public const string office365Metadata = "https://nexus.microsoftonline-p.com/federationmetadata/2007-06/federationmetadata.xml";
    public const string wsse = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
    public const string wsu = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
    private const string userAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
    #endregion
    class MsoCookies
    public string FedAuth { get; set; }
    public string rtFa { get; set; }
    public DateTime Expires { get; set; }
    public Uri Host { get; set; }
    // Method used to add cookies to CSOM
    public void clientContext_ExecutingWebRequest(object sender, WebRequestEventArgs e)
    e.WebRequestExecutor.WebRequest.CookieContainer = getCookieContainer();
    //e.WebRequestExecutor.WebRequest.UserAgent = userAgent;
    // Creates or loads cached cookie container
    CookieContainer getCookieContainer()
    if (_cachedCookieContainer == null || DateTime.Now > _expires)
    // Get the SAML tokens from SPO STS (via MSO STS) using fed auth passive approach
    MsoCookies cookies = getSamlToken();
    if (cookies != null && !string.IsNullOrEmpty(cookies.FedAuth))
    // Create cookie collection with the SAML token
    _expires = cookies.Expires;
    CookieContainer cc = new CookieContainer();
    // Set the FedAuth cookie
    Cookie samlAuth = new Cookie("FedAuth", cookies.FedAuth)
    Expires = cookies.Expires,
    Path = "/",
    Secure = cookies.Host.Scheme == "https",
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(samlAuth);
    if (_useRtfa)
    // Set the rtFA (sign-out) cookie, added march 2011
    Cookie rtFa = new Cookie("rtFA", cookies.rtFa)
    Expires = cookies.Expires,
    Path = "/",
    Secure = cookies.Host.Scheme == "https",
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(rtFa);
    _cachedCookieContainer = cc;
    return cc;
    return null;
    return _cachedCookieContainer;
    public CookieContainer CookieContainer
    get
    if (_cachedCookieContainer == null || DateTime.Now > _expires)
    return getCookieContainer();
    return _cachedCookieContainer;
    private MsoCookies getSamlToken()
    MsoCookies ret = new MsoCookies();
    try
    var sharepointSite = new
    Wctx = office365Login,
    Wreply = _host.GetLeftPart(UriPartial.Authority) + "/_forms/default.aspx?wa=wsignin1.0"
    //get token from STS
    string stsResponse = getResponse(office365STS, sharepointSite.Wreply);
    // parse the token response
    XDocument doc = XDocument.Parse(stsResponse);
    // get the security token
    var crypt = from result in doc.Descendants()
    where result.Name == XName.Get("BinarySecurityToken", wsse)
    select result;
    // get the token expiration
    var expires = from result in doc.Descendants()
    where result.Name == XName.Get("Expires", wsu)
    select result;
    ret.Expires = Convert.ToDateTime(expires.First().Value);
    HttpWebRequest request = createRequest(sharepointSite.Wreply);
    byte[] data = Encoding.UTF8.GetBytes(crypt.FirstOrDefault().Value);
    using (Stream stream = request.GetRequestStream())
    stream.Write(data, 0, data.Length);
    stream.Close();
    using (HttpWebResponse webResponse = request.GetResponse() as HttpWebResponse)
    // Handle redirect, added may 2011 for P-subscriptions
    if (webResponse.StatusCode == HttpStatusCode.MovedPermanently)
    HttpWebRequest request2 = createRequest(webResponse.Headers["Location"]);
    using (Stream stream2 = request2.GetRequestStream())
    stream2.Write(data, 0, data.Length);
    stream2.Close();
    using (HttpWebResponse webResponse2 = request2.GetResponse() as HttpWebResponse)
    ret.FedAuth = webResponse2.Cookies["FedAuth"].Value;
    ret.rtFa = webResponse2.Cookies["rtFa"].Value;
    ret.Host = request2.RequestUri;
    else
    ret.FedAuth = webResponse.Cookies["FedAuth"].Value;
    ret.rtFa = webResponse.Cookies["rtFa"].Value;
    ret.Host = request.RequestUri;
    catch (Exception ex)
    return null;
    return ret;
    static HttpWebRequest createRequest(string url)
    HttpWebRequest request = HttpWebRequest.Create(url) as HttpWebRequest;
    request.Method = "POST";
    request.ContentType = "application/x-www-form-urlencoded";
    request.CookieContainer = new CookieContainer();
    request.AllowAutoRedirect = false; // Do NOT automatically redirect
    request.UserAgent = userAgent;
    return request;
    private string getResponse(string stsUrl, string realm)
    RequestSecurityToken rst = new RequestSecurityToken
    RequestType = WSTrustFeb2005Constants.RequestTypes.Issue,
    AppliesTo = new EndpointAddress(realm),
    KeyType = WSTrustFeb2005Constants.KeyTypes.Bearer,
    TokenType = Microsoft.IdentityModel.Tokens.SecurityTokenTypes.Saml11TokenProfile11
    WSTrustFeb2005RequestSerializer trustSerializer = new WSTrustFeb2005RequestSerializer();
    WSHttpBinding binding = new WSHttpBinding();
    binding.Security.Mode = SecurityMode.TransportWithMessageCredential;
    binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
    binding.Security.Message.EstablishSecurityContext = false;
    binding.Security.Message.NegotiateServiceCredential = false;
    binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
    EndpointAddress address = new EndpointAddress(stsUrl);
    using (WSTrustFeb2005ContractClient trustClient = new WSTrustFeb2005ContractClient(binding, address))
    trustClient.ClientCredentials.UserName.UserName = _username;
    trustClient.ClientCredentials.UserName.Password = _password;
    Message response = trustClient.EndIssue(
    trustClient.BeginIssue(
    Message.CreateMessage(
    MessageVersion.Default,
    WSTrustFeb2005Constants.Actions.Issue,
    new RequestBodyWriter(trustSerializer, rst)
    null,
    null));
    trustClient.Close();
    using (XmlDictionaryReader reader = response.GetReaderAtBodyContents())
    return reader.ReadOuterXml();

  • File download in CRM WEB UI

    Hi ,
    I am using web ui .
    I have a requirement of converting an internal table to xml file & download it to application server .
    I have converted the file to xml but not able to save the file to application server  .I am currently using CL_CRM_FRONTEND_SERVICES=>GUI_DOWNLOAD method to download on application server  , but it is throwing an exception of "flush" but at the same time if i am calling this method from a report through SE38, it is working fine .
    Is there any other method that is to be used for CRM WEB UI to download a file on desktop / application server .
    Manish

    GUI DOWNLOAD will not work in WebClient, as it is a completely different technology. You will have to use some kind of technology that uses HTTP. Just like in the Internet.
    When you have got your content ready, maybe it is an option for you to transform it to XSTRING. There are some function modules in FM Group SCMS_CONV. Once you have got the XSTRING you can set it on a response object of class CL_HTTP_RESPONSE. Create a new one.
    Now declare yourself an URL. In your viewcontroller you have got access to the variable RUNTIME.
    concatenate runtime->application_url '/234234234.xml' into lv_url'
    when you have both you can upload the content to the server cache:
    cl_http_server=>server_cache_upload( url = lv_url response = lr_response ).
    now you can access the content under the created URL lv_url.
    On the BSP page you could for instance do this using javascript:
    window.open( lv_url ).
    This should open a dialog for the user with save option.
    cheers Carsten

  • Download RSS feed as xml file from Sharepoint Online using PowerShell

    Hello
    Our company sharepoint (Office 365) contains also several RSS feeds.
    How it is possible to download xml file out of this feed (website) using PowerShell?
    I can authenticate with sharepoint using CSOM but do not what to do next.
    As service user is not administrator I cannot use "SPOService".
    This script works OK for standard website, but not for Sharepoint.
    $doc = New-Object System.Xml.XmlDocument
    $doc.Load("http://www.{CompanySite}.com/feed/")
    $doc.save("C:\temp\feed.xml")
    I am getting this error when using for company Sharepoint:
    "The remote server returned an error: (403) Forbidden."
    Thanks for your time considering this question.
    Jozin

    Hi Scott,
    thanks for advice.
    Combination of WebClient and Sharepoint Credentials is working OK:
    $client = New-Object System.Net.WebClient 
    $client.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User, $SecurePassword)
    $client.Headers.Add("X-FORMS_BASED_AUTH_ACCEPTED", "f")
    $client.DownloadFile($SiteURL, $file)

  • How to download internal table data to excel in WebUI

    Hi everyone,
    I am trying to download the contents of an internal table to excel in CRM Web UI.
    One way, would be to create a table view and use the export to excel button.
    However, wish to avoid this and directly download using code.
    Also tried converting to xstring and setting data in the response object. However, this works only when I execute the component directly from BSP_WD_CMPWB. In the UI framework however, when I click on custom button(for download), it navigates to a screen where the contents of string are shown directly on browser.
    Is there any other way of doing this?
    Thanks in advance.
    Regards,
    Deepak

    Hi,
    there are two ways to download excel from the webclient using table views. The first is a XML stream that is send to Excel directly. Only works for Excel 2003 and later. The second is the fall back to a .csv.
    I do not know if for the second option a direct connection is established as mentioned in the last post or there is actually a file stream send to the client.
    Anyway the SAP provides the excel download through a seperate webservice. Have a look at CL_CHTMLB_CONFIG_TAB_EXCEL_EXP->IF_HTTP_EXTENSION~HANDLE_REQUEST( ).
    I suppose going the same direction with your excel download will work. This service opens a new download stream with the excel content... Maybe it is even possible to copy it and adjust it to your needs...
    cheers Carsten

  • Peformance Turning for File Download / Upload with Enabled SharePoint Audit

    Greetings all, may I ask your help for Peformance Issues?
    Background:
    I tried to create a ASP.NET Web Page to download/upload/list SharePoint file and deployed to IIS website in same application server (will NOT use web part as some users are NOT allowed to direct access confidential workspace)
    Besides, for Audit Log record purpose, the page will impersonate (without password) the logged in user:
    SPUserToken userToken = web.AllUsers[user].UserToken;
    SPSite s = new SPSite(siteStr, userToken);
    For File Listing, the web service can provide fast response, and we are using service A/C for connection (as no auting for listing, but require audit for file download upload)
    Several implemeation options tested for File Downloiad / Upload, but issues occured and finding listed below:
    Issues
    1) SharePoint Object Model
    When I open Site (using new SPSite), it's too slow to respond. (under 1s for all operations, but require 10~50s for open SPSIte. e.g.
    using(SPSite s = new SPSite(siteStr) //50s
    How can I download/upload file without open SPSite object (using SharePoint object model, but user token should be kept to allow SHarePoint identifiy user actions. e.g. Updated by Tom, NOT system administrator)?
    2) SharePoint default web service
    For file download, I tried to use SharePoint Web Service for download file, it's quick but how can SharePoint record the audit log to downloaded user, and not service A/C? ( e.g. View by Tom, NOT system administrator)
    With Windows SSO solution, please note system should NOT prompt to ask user password for use impersonation
    3) HTTP Request API (for file download)
    As mentioned in point 2, if the system cannot get password from user, SharePoint also recorded service A/C in audit log... ><
    Thank you for your kine attention.
    .NET Beginner 3.5

    Thank you for prompt response, please find my reply with Underline:
    Hi,
    Maybe I'm not quite clear about the architecture you have now.
    Is your asp.net application deployed in separate IIS site but in the same physical server as SharePoint?
    Yes
    "we are using service A/C for connection", can you please explain the 'A/C'?
    Domain User, Local Admin and also SharePoint Service Admin A/C
    Opening SPSite is relatively slower but shouldn't take 50 sec. However it depends on your server hardware configuration. You should meet the minimum hardware requirements for SharePoint.
    Assigned double resources based on minimum hardware requirements.
    For details, 50s is the load test result. But for other SharePoint operation, it takes around/under 3s reponse time.
    Are you using SharePoint Audit log? Exactly If so then why don't you just put the hyperlink to the documents in your asp.net page. User maybe have to login once in SharePoint site but
    it depends on your security architecture. For example if both of your sites in local intranet and you are using windows integrated authentication, SSO will work automatically  User is NOT allowed
    to access SharePoint site/server (not implemented for sepreate server yet, as performance issues occured for
    separate site in same server)  directly from Internet, the
    middle server with web interface created for user request.
    Whatever I understands gives me the feeling that you download the file using HTTPWebRequest C# class. However regarding security it depends on how authentication is setup in asp.net web site and in sharepoint. If both site uses windows integrated security
    and they are in the same server, you can use the following code snippet:
    using (WebClient webClient = new WebClient())
    webClient.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
    webClient.DownloadFile("file ur in sharepoint", "download directory");
    Thanks, will try and reply later
    But still, as I've mentioned, not quite clear about the whole architecture.
    A) Request Handling
    1) User use browser to request file listing and/or download file (hereafter called: File Download Request) from custom ASP.NET page (Let's say In Server 1, IIS 1)
    2) ASP.NET page  or File Handler ashx (Server 1, IIS 1) call custom web service, SharePoint deault/OOTB web service or using SharePoint Object Model to access SharePoint Document Library (in Server 1,
    IIS 2)
    3) Both SharePoint and IIS Web Site
    (Server 1, IIS 1 & IIS2) using the same service A/C
    4) The web service , File Handler return file obeject to IIS1
    5) IIS 1 reply File Download Request to user
    B) Application Architecture (In testing environment)
    1) no load balancing
    2) 1 DB server (Server 2)
    3) 1 Application Server (with IIS 1 - ASP.NET, IIS 2, SharePoint Web Site with default SharePoint Web Service, IIS 3 SharePoint Admin Site & IIS 4 Custom SharePoint Web Service)
    4) Sepreate AD Server (Server 3)
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com
    .NET Beginner 3.5

  • IC WebClient Consultant's Cookbook

    For descriptions of technical IC WebClient architecture and concepts, for details on how to do extended customizing as well as how to work with views and view sets you can download a copy of the IC WebClient Consultant's Cookbook from the Service Marketplace.
    The Cookbook exists in two versions, "Interaction Center WebClient Cookbook" (CRM 4.0) and "Interaction Center WebClient Cookbook - Service Industry Ext" (CRM 4.0 Add-on).
    Download from here: http://service.sap.com/crm-inst -> SAP CRM 4.0 -> Interaction Center Installation Guides
    or direct link http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000591510.

    Thanks for this location, always nice to have as direct link. Tiest.

Maybe you are looking for