Sample c# code to connect WebDAV from Metro App

Hi 
I am working on creating a feature in metro App that should connect with WebDAV and access its files. Can anyone share code and ideas regarding how to connect and access the files from webDAV.
Thanks in advance.

Hi,
You might be need to know that how to use httpClient class. For your more information:
HttpClient Sample
Additionally, you could reference the following link:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/68ab6cbb-26fb-431e-a48f-7a90cc4477c9/how-to-use-webdav-for-windows-store-app-any-client-or-library-which-i-can-use-in-visual-studio?forum=winappswithcsharp
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/beee7372-5756-4620-9901-563644ea9b66/any-sample-of-using-the-webdav-api?forum=wpdevelop
Hope helpful for you.

Similar Messages

  • Sample Servlet code that connects to Microsoft SQL 2008

    Does anybody have sample Servlet code that connects to a Microsoft SQL 2008 Resource Pool?
    Thank you.

    JDBC is used to talk to databases. Not database utilities. As an example SSIS is not a database.
    So the question would be is the 2008 "Resource Governor" (of which "Resource Pools" are part) a utility or a database entity?
    [http://technet.microsoft.com/en-us/library/bb933866.aspx]
    I would guess that it isn't a database entity.
    Thus the only way to access it is if a database entity allows you do access it. And for that you would need to look for SQL Server system proc(s).

  • 48 Hours ago I started to upgrade to Mtn Lion on a now 10 day old IMac - 30 minutes ago I got the email with the content code and redeem code for the download from the app store - it said download was happening, but nothing happened for 30 min - FIX IT!

    48 Hours ago I started to upgrade to Mountain Lion on a now 10 day old IMac - 30 minutes ago I got the email with the content code and redeem code for the download from the app store - it said download was happening, but nothing happened for 30 min - HOW DO I (or you) FIX IT!?

    This is a User's Forum, yelling at us won't help. You have 90 days of customer support via telephone. Use them as they can interact with their system and hopefully get you back on track. Otherwise take it to them at the Genius Bar and have them make it good.

  • VBA code to connect Essbase from Excel

    Hi All,
    I need VBA code to connect & retrive the data from Essbase trough Excel sheet ....Please advise...
    Regards,
    Prabhas

    KVC wrote:
    As gleen advised install essbase excel addin before going to use below script
    create push button to trigger below script
    press Alt F11create module copy the below module and ur done
    Sub main()
    X = EssVConnect("[Book1.xls]Sheet1", "admin", "password", "EssbaseServerName", "Sample", "Basic")
    ‘Replace all the above parameters according to you environment.
    '("[Book1.xls]Sheet1" > Excel filename where this code is written followed by the sheetname
    'admin > username who has access to this application/database
    'EssbaseServerName > essbase analytic server name
    'Sample > application name
    'Basic > database name
    If X = 0 Then
    MsgBox ("Essbase connect is successful.")
    Else
    MsgBox ("Essbase connection failed.")
    End If
    X = EssVRetrieve("[Book1.xls]Sheet1", range("A1:F12"), 1)
    If X = 0 Then
    MsgBox ("Essbase retrieve is successful.")
    Else
    MsgBox ("Essbase retrieval failed.")
    End If
    for Disconnect
    X = EssVDisconnect(Empty)
    If X = 0 Then
    MsgBox ("Essbase disconnect is successful.")
    Else
    MsgBox ("Essbase disconnect failed.")
    End If
    End SubKVC ...Thanks for your Help...

  • Sample java code to obtain data from ALUI directory

    Hi
    I need to go to the ALUI LDAP ( directory ) services to get user profile information.
    The documentation did not help me to figure out the way to obtain data from it.
    so , it would be a great help if some one could share the sample java code api to obtain data from ALUI directory.

    i'm guessing you are asking to get the groups for a particular user. someone in the other thread posted the actual SQL, that may be easier. ( you are on 10gR3 right, because ALUI directory didn't exist before 6.5)
    I dont have a sample done yet, but the internet is filled with samples of java and ldap...
    http://www.coderanch.com/t/133108/Security/LDAP-sample-program

  • Windows 8.1 Pro Metro Apps Crash in Desktop mode

    Everytime i switch from metro apps to my windows 8.1 desktop, the apps crash after a few seconds like switching apps on my ipad.
    my desktop can run however many programs and not crash when switching between windows. how can i work on project siena if i have too save all my work just to google one little thing..on google and switch back,
    browse myy files, find the saved one, open it, wiat for it too load, find where i was, and paste the code. everytime. for every little thing. even if i wanna check my email.
    or if project siena was a desktop program i could just switch windows, google what i need, copy, switch back, paste. just like that.

    Hi,
    Since when you have this problem?
    Did you appliyed windows updates recently ?
    ++
    HK.
    Hicham KADIRI | IT Consultant /Director. MCP - MCSA - MCTS - MCSE - MCITP - MCT

  • Playing video from IPhone app.

    Hi All,
    I am building simple game app for iphone. I am thinking of adding video to the game app. Does anybody have url links for sample code for Video Streaming from IPhone app?
    What kind of Video format is suitable for IPhone App?
    Thanks

    Ref:
    https://developer.apple.com/iphone/library/samplecode/MoviePlayer_iPhone/index.h tml
    http://discussions.apple.com/thread.jspa?threadID=1650506&tstart=0

  • Need Sample code to retrieve Data from Portal DB(Oracle)

    Would anyone provide me steps to create application with a sample code to retrieve data from portal DB which is oracle and see the output in table format.

    Hi Bris ,
    The sample code , you didnt specified from where do u want to access the oracle thorough java code or through webdynpro .
    Sample code to access through Java
    import java.sql.*;
    class Customer
    public static void main(String args[]) throws SQLException
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    System.out.println("Connecting to the database...");
    try
    Connection cn=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","scott","t");
    Statement st=cn.createStatement();
    ResultSet rs=st.executeQuery("select 'Connected' from dual");
    rs.next();
    String s=rs.getString(1);
    System.out.println(s);
    st.close();
    cn.close();
    catch(Exception ex)
    System.out.println("The exception raised is:" + ex);
    [code]
    If accessing through JDBC datasorce.
    https://www.sdn.sap.com/irj/sdn/thread?threadID=328550
    https://www.sdn.sap.com/irj/sdn/thread?threadID=309386
    [code]
    package com.dhl.employeemodel;
    import java.sql.Connection;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    public class DBConnectionManager {
         Connection connection;
          * @return
         public Connection getConnection() {
              try
                   Context jndiContext = new InitialContext();
                   DataSource ds = (DataSource)jndiContext.lookup("jdbc/MyAlias");
                   connection = ds.getConnection();
             catch(Exception connectionErrEx)
                   //connectionErrEx.printStackTrace();
                   return null;
              return connection;
    Thanx
    Pankaj

  • Sample code to connect LDAP server using jndi

    Hi,
    can any one help me with sample code to connect LDAP server using jndi,
    like i want to make use of Ldap server for serching Active directoty.
    Thanks in advance,
    Regards
    Muthu

    You can set ldap_auth=none for anonymous user.
    User/password is mandatory otherwise. Please refer to http://docs.oracle.com/cd/E21764_01/integrate.1111/e12644/appendix_ldap_driver.htm#CHDHCABH
    Thansk,

  • I have programmed my Iphone to automatically connect to confcalls (dialing the nbr, pausing, dialing the PIN code). Works fine from the Iphone as such. When I connect my Iphone in Bluetooth to my car, only the phone

    I have programmed my Iphone to automatically connect to confcalls (dialing the nbr, pausing, dialing the PIN code).
    Works fine from the Iphone as such.
    When I connect my Iphone in Bluetooth to the voice-driven system in my car (Mercedes C), only the phone number appears to be transmitted. Entering a conference call number via the Iphone while driving is not a good idea.
    How can I fix this ?

    That *****.  I sell electronics on ebay.  Before listing them, i have to test and clean them. I have worked with microsoft Zune, you could sync via wireless through the network to your host computer. 
    i was hoping Apple would add that feature or the ability to connect to my computer via WiFi or Bluetooth and sync it wirelessly...   It would be sweet to have the bluetooth and wireless opened up so you can do more than just  connect to headphones or a headset... 
    I upgraded to the iPhone 4 this past december, i am on replacement # 2 or my 3rd iPhone 4...  I was hoping for some upgrades in quality.  Also being left handed, it seemed to drop many calls and give me very poor reception.  i added a Griffin Elan Form Graphie case that covers all but the front, top button, bottom speakers and volume control buttons and the call and reception quality has improved.  But I sure would have loved to see some improvements in the quality and function of the phone...
    Thanks for your input, i really appreciate your replies... 

  • Java code to connect to remote windows machine from local machine

    Hi,
    I have developed a code to connecting remote windows M/C from local M/C by using SSH2 (ganymed-ssh2-build209.jar) API. when I run the code its giving below error. Can any one please help me how to resolve it. And also please let me know, is there any other way to connect remote windows system using java code.
    Exception.
    java.io.IOException: There was a problem while talking to <host name>:22
      at ch.ethz.ssh2.Connection.connect(Connection.java:642)
      at ch.ethz.ssh2.Connection.connect(Connection.java:460)
      at Connect.RemoteServer.ConnectWindowsServer.runCommand(ConnectWindowsServer.java:55)
      at Connect.RemoteServer.ConnectWindowsServer.main(ConnectWindowsServer.java:27)
    Caused by: java.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at ch.ethz.ssh2.transport.TransportManager.initialize(TransportManager.java:299)
      at ch.ethz.ssh2.Connection.connect(Connection.java:591)
      ... 3 more
    JAVA Code
    import ch.ethz.ssh2.Connection;
    import ch.ethz.ssh2.Session;
    public void setAuthenticationInfo(String hostname, String username,String password) {
           this.host = hostname;
           this.userid = username;
           this.password = password;      
           this.recentCommand = "";     
           System.out.println("setting authentication info completed for host=" + host );
      public void runCommand() throws Exception {
    try{
            // Setup ssh session with endpoint
           System.out.println("starting connection with " + host);
           Connection connection = new Connection(host);
           System.out.println("connection object created..");
           connection.connect();
           System.out.println("Connect to connection");
           connection.authenticateWithPassword(userid,password);
           System.out.println(connection.isAuthenticationComplete());
           Session session = connection.openSession();
          System.out.println("connected");
      }catch (Exception e) {
      e.printStackTrace();
    Regards,
    Praveen

    Hi baftos,
    I tried to telnet remote windows machine from my local machine on port 23, its not connected and given error message like "Connect failed".
    As your response, if we can telnet to remote windows machine from local machine then we can connect from Java. Is it correct ?.
    Can you please help me to resolve this issue. And also please confirm the port (23) is correct, which I was used to connect remote machine from telnet.
    Regards,
    Praveen

  • Sample Java code and detail to call RFC from Java clas developed in Eclipse

    Hi All,
    I am new to Java. I have downloaded Eclipse IDE  and planning to use for developing Java application to send data to SAP by calling RFC JCO Interface.
    I need a sample java code/tutorial step by step to create Java class for simple example to call RFC from Java.
    I have downloaded SAPJCO3 from service market place.
    Kindly help me to send steps involved to configure for JCO  with my Eclipse with JCO.
    Thanks in advance.
    Sharma

    Hi Sharma,
    Please have a look at [Example: Using Generated Proxies to Call Function Modules |http://help.sap.com/saphelp_nw04/helpdata/en/b6/55e3952a902447847066a0df27b0d6/content.htm]
    JCo Exceptions : http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f6/daea401675752ae10000000a155106/content.htm
    Hope it will helps
    Regards
    Arun

  • Visual C++ code to connect database

    Hi
    I am currently writing a program in visual c++.
    However I need to store image to oracle database.
    Therefore there is a need to connect to the database.
    In other word, I need to connect using ODBC.
    However I am not sure of the code in visual c++ to connect
    and to store jpg image into oracle database.
    Is there any reference or link that i can get the standard code
    to connect to oracle database using visual c++ code?

    You have a lot of options for how you want to connect. You can use OCI, OCCI, ODBC, OLE DB, and OO4O from C++ code without a problem. If you decide on ODBC or OLE DB, you can use the API directly, or, more commonly, you can use one of the API's that are layered on top of those API's, i.e. ADO, RDO, DAO, etc..
    There isn't a single standard way of connecting to the database in C++-- you have lots of options, depending on what you're most comfortable with. If you can give some additional details about exactly which API you're going to be using, I'll try to point you in the right direction for samples.
    Justin

  • [svn:osmf:] 14635: Adding a sample on how to connect to a DVRCast equiped FMS server.

    Revision: 14635
    Revision: 14635
    Author:   [email protected]
    Date:     2010-03-09 02:27:41 -0800 (Tue, 09 Mar 2010)
    Log Message:
    Adding a sample on how to connect to a DVRCast equiped FMS server.
    Added Paths:
        osmf/trunk/apps/samples/framework/DVRSample/
        osmf/trunk/apps/samples/framework/DVRSample/.actionScriptProperties
        osmf/trunk/apps/samples/framework/DVRSample/.project
        osmf/trunk/apps/samples/framework/DVRSample/DVRSample.as
        osmf/trunk/apps/samples/framework/DVRSample/html-template/
        osmf/trunk/apps/samples/framework/DVRSample/html-template/AC_OETags.js
        osmf/trunk/apps/samples/framework/DVRSample/html-template/history/
        osmf/trunk/apps/samples/framework/DVRSample/html-template/history/history.css
        osmf/trunk/apps/samples/framework/DVRSample/html-template/history/history.js
        osmf/trunk/apps/samples/framework/DVRSample/html-template/history/historyFrame.html
        osmf/trunk/apps/samples/framework/DVRSample/html-template/index.template.html
        osmf/trunk/apps/samples/framework/DVRSample/html-template/playerProductInstall.swf
        osmf/trunk/apps/samples/framework/DVRSample/readme.txt

    try this:
    Start FMS
    put the FLV into the "applications\test\streams\_definst_"
    folder
    Create a SWF that will stream the FLV
    The easiest way to create this SWF is to use the FLV Playback
    Component in Flash 8.
    Or, Sample Code:
    http://www.adobe.com/devnet/flash/articles/flv_download_04.html
    and some templates:
    http://www.adobe.com/devnet/flash/video_templates.html
    the SWF should connect to rtmp://localhost/test/ and stream
    your FLV, just like with Progressive Download FLV
    the SWF can run from your desktop or on a local web server
    such as Apache - it should NOT be in the FMS application folder.
    Open the SWF, and your video should stream.
    hope this helps.
    -steve.

  • Sample source code for fields mapping in expert routine

    Hi All
    Iam writing the expert routine from dso to cube for example I have two fields in dso FLD1,FLD2
    same fields in infocube also ,can any body provide me sample abap code to map source fields to target fields in expert routine,your help will be heighly appreciatble,it's an argent.
    regards
    eliaz

    Basic would be ;
    RESULT_FIELDS -xxx = <SOURCE_FIELDS> -xxx
    you have the source fields as source, and result fields for as the target. In between you can check some conditions as in other routines of transformation.
    BEGIN OF tys_SC_1, shows your source fields ( in your case DSO chars and key figures)
    BEGIN OF tys_TG_1, , shows your result fields ( in your case Cube characteristics)
    Hope this helps
    Derya

Maybe you are looking for