Code Example connection to MS Exchange

Hi
Has anyone got a link to a code example showing how to log into an account on MS Exchange server
I am trying to log in and read emails from my student account that is on a ms exchange server but am having little luck.
Could someone give me a couple of good links where i can get some helpful information.
Thanks very much

hi
i am sitting with the same problem, if you find anything please let me know. thanx

Similar Messages

  • Client Code not connecting to WebLogic 8.1 with Mutual Authentication

    I am trying to connect to a WebLogic 8.1 web services application. The weblogic instance has mutual authentication enabled, so the client needs to send a certificate when it does an SSL handshake with the server. I am trying to connect with standalone Java JUnit tests. Both the web services and the JUnit tests are using Apache Axis 1.4.0. I've obtained what I believe to be the appropriate certificates from the weblogic administrator that configured the mutual authentication. There is a certificate for the machine I'm trying to connect to, and two other certificates in the chain (three certificates all together, including the root). I've tried several different methods of putting those three certificates in keystores and trust keystores, reading in those keystores in my java code, and connecting to the web services, and I always end up with the same error in the WebLogic server logs. "Certificate chain receved from <ip address> was incomplete."
    Here is an example of my code:
    I initialize like so:
         Properties tempProperties = // (here is where I obtain my properties from a properties file... code removed for security reasons)
         System.setProperty("javax.net.ssl.trustStore", tempProperties.getProperty("trust.keystore.file"));
         System.setProperty("javax.net.ssl.trustStorePassword", tempProperties.getProperty("trust.keystore.password"));
         System.setProperty("javax.net.ssl.trustStoreType", "jks");
         System.setProperty("javax.net.ssl.keyStore", tempProperties.getProperty("keystore.file"));
         System.setProperty("javax.net.ssl.keyStorePassword", tempProperties.getProperty("keystore.password"));                         System.setProperty("javax.net.ssl.keyStoreType", "jks");
         System.setProperty ( "java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol" );
         Security.addProvider ( new com.sun.net.ssl.internal.ssl.Provider ( ) );
    I bind to the appropriate port and locate the service, etc. using auto-generated methods descendant from Apache Axis. No matter what I try, I get the same results. The client says: main, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
    The server log says: Certificate chain received from <ip address> was incomplete.
    I've even tried implementing a custom SSL handler as described here http://alweb.homeip.net/dw0rm/dblog/?p=38, and I can verify by stepping into my code that everything gets initialized and set up correctly, and that all three certificates in the chain that I need are obtained from my keystore, but I still get the same error on the client and the server. I've enabled ssl handshake debugging on my client and I can see the whole certificate chain being output to the debug console.
    Any idea what I might be doing wrong?

    My guess would be that the server is not able to validate your certificate. Make sure that the CA for your certificate is trusted by WLS.
    I always like to debug something like this by add -Djavax.net.debug=ssl to both the client and server. It should give you a complete picture of what is going on.
    Edited by: joshbregmanoracle on May 20, 2009 8:49 PM

  • The action cannot be completed. the connection to microsoft exchange is unavailable

    Hi dear.
    We have exchange 2013 and we want auto configure outlook 2007,2010 and 2013. In first time when we are setup exchange 2013 we can auto
     configure outlook. But I don’t know now we cannot configure outlook. I think when we make some change in exchange certificate ( created by exchange in first time ) and after that we cannot configure outlook. Just we can set up pop3 and imap
    for outlook. Now we have outlook with pop3 and outlook web app ( OWA ) and we don’t have problem with them, but we want our client see the all contact list in outlook. When we want configure outlook with Microsoft exchange server we get the error “ 
    the action cannot be completed. the connection to Microsoft exchange is unavailable “.please help me. I don’t know how I solve the problem.

    hi.
    ok. this is the out put of autodiscover url in address bar :
    ""  <?xml
    version="1.0" encoding="utf-8" ?>
    - <Autodiscover
    xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
    - <Response>
    - <Error Time="10:30:23.5154338"
    Id="3405091169">
      <ErrorCode>600</ErrorCode>
      <Message>Invalid Request</Message>
      <DebugData
    />
      </Error>
      </Response>
     </Autodiscover> ""
    thanks for your help.
    If it returns error code 600, your autodiscover service should be accessible in Exchange server. Please restart Microsoft Exchange Address Book service in Exchange server, then create a new Outlook profile in Outlook to have a try.

  • Code to connect java to LDAP

    Hi,
    I am in urgency to get code to connect LDAP server on Domino server,just tell me where i can find a simple code to connect LDAP server using java.

    You can use the JNDI API for this
    The tutorial contains the basic code examples for connecting to LDAP using this API:
    http://java.sun.com/products/jndi/1.2/javadoc/
    You'll also need to download the JNDI API from:
    http://java.sun.com/products/jndi/

  • DSN code 5.1.1 in Exchange Online delivery failed

    I've seen many questions about this error and can't seem to get a suitable solution for my situation, I attempted to install office 365 in a hybrid mode and abandoned the attempt after having various issues. I removed all connections and configurations with the
    on premise server and I have two domains, one is my on premise one is only office 365 now. when I log onto my office 365 account and try to email my other on premise domain I get this error, the email address I'm mailing is not on Office 365 but office
    365 online seems to think it is, I've tried all the clearing cache, same thing happens whether I use chrome or internet explorer, when I configure my office 365 in outlook 2013 I can send email to it, I can even email the account when sending from
    outlook lite using online 365 just not the un-lite version. I've deleted all mail from my office 365 account, deleted all contacts, reset the recent cache many times.
    My DNS for office 365 account is setup according to Microsoft recommendation, my dns for on premise has not been changed to reflect anything being in office 365.
    I can email my on premise accounts from anywhere except my office 365 online non-lite outlook web app. I can even email it form other office 365 accounts.
    I removed personal info from the following
    Delivery has failed to these recipients or groups:
    <email Address>
     The email address you entered couldn't be found. Check the recipient's email address then try to resend the message. For more tips to resolve this issue see
    DSN code 5.1.1 in Exchange Online. If the problem continues contact your help desk.
    Diagnostic information for administrators:
    Generating server: CO2PR0501MB1079.namprd05.prod.outlook.com
    IMCEAEX-_o=ExchangeLabs_ou=Exchange+20Administrative+20Group+20+28FYDIBOHF23SPDLT+29_cn=Recipients_cn=3a963b352729491c9140a11d3300c095-<name>[email protected]
    Remote Server returned '550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found'
    Original message headers:
    Received: from CO2PR0501MB1077.namprd05.prod.outlook.com (25.160.7.22) by
    CO2PR0501MB1079.namprd05.prod.outlook.com (25.160.7.24) with Microsoft SMTP
    Server (TLS) id 15.0.949.11; Thu, 12 Jun 2014 12:49:47 +0000
    Received: from CO2PR0501MB1077.namprd05.prod.outlook.com ([25.160.7.22]) by
    CO2PR0501MB1077.namprd05.prod.outlook.com ([25.160.7.22]) with mapi id
    15.00.0949.001; Thu, 12 Jun 2014 12:49:47 +0000
    Content-Type: application/ms-tnef; name="winmail.dat"
    Content-Transfer-Encoding: binary
    From: Darren Blanchard <[email protected]>
    To: Darren Blanchard <[email protected]>
    Subject: dfgddfgdfg
    Thread-Topic: dfgddfgdfg
    Thread-Index: AQHPhjzKzGKiXAQnXE+9tNdjn1VLUA==
    Date: Thu, 12 Jun 2014 12:49:46 +0000
    Message-ID: <[email protected]tlook.com>
    Accept-Language: en-US
    Content-Language: en-US
    X-MS-Has-Attach:
    X-MS-TNEF-Correlator: <[email protected]tlook.com>
    MIME-Version: 1.0
    X-Originating-IP: {xxx.xxx.xxx.xxx]
    Return-Path: [email protected]
    X-Microsoft-Antispam:
    BL:0;ACTION:Default;RISK:Low;SCL:0;SPMLVL:NotSpam;PCL:0;RULEID:

    According to the information you provided, since you can email to these recipients without issue when using the other clients, the issue may be related to the cache in OWA (Outlook Web App). To solve the issue, I suggest you try the following steps:
    Log into OWA, click “new mail” to compose a new message.
    In the “To:” tab, type the first letter of email address for the recipient, if it’s cached in OWA before, there will be a drop down list popping up. If so, please move the mouse on the mail address in the drop down list, then press the Delete key to delete
    the cache. If however you don’t see the drop down list when typing the user’s email address, please continue the following steps.
    Log into EAC (Exchange Admin Center), click “recipients”—“contacts”.
    Create a new contact using the external email address, this make sure the user is added as an external contact in the global address list.
    Back to OWA, in the new mail window, click the add icon in the right corner of the To tab.
    In the pop-up window, click the “>>” icon, under the Directory tab, click “Offline Global Address List”, then select the contact we just created. Send the message out, then check if the issue persists.

  • Need Code Example to Call a SAP Remote Function from C#

    I'm looking for an example of how to call a SAP RFC from within a C#
    program.  I've tried numerous searches and have come up empty handed. If I have a function called "MyFunction" and it takes 1 input parameter and returns one output parameter (a table) how would it be coded.  I have been able to code the connection and it works so once the connection is established I need to call the funcation. Any pointers are really appreciated.   Environment is MS VS Developer 2003, Frameworks 1.1, SAP 4.6C  Here is the code so far.
    using System;
    using SAP.Connector;
    using SAP.Connector.Rfc;
    using SAP.Connector.Internal;
    namespace ConsoleApplication2
            /// <summary>
            /// Summary description for Class1.
            /// </summary>
            class Class1
            static void Main(string[] args)
                            SAP.Connector.Destination dest = new SAP.Connector.Destination();
                            dest.AppServerHost = "NAFTATEST01.SAP.INTRA";
                            dest.Client = 300;
                            dest.SystemNumber = 0;
                            dest.Username = "myusername";
                            dest.Password = "mypassword";
                            SAP.Connector.SAPConnection connSAP = new
    SAP.Connector.SAPConnection(dest);
                            using(connSAP)
                                    try
                                            connSAP.Open();
                                            Console.WriteLine("SAP Connection was opened...");
                                            connSAP.Close();
                                    catch(SAP.Connector.RfcException rfcEx)
                                            Console.WriteLine("SAP Connection was failed...");
                                            Console.WriteLine( rfcEx.Message
                                                    + rfcEx.StackTrace);
                                            Console.WriteLine();

    hi
    Create a “Windows Forms” application.
    Add an empty SAP Connection class with the ABAP functions
    RFC_CUSTOMER_GET and RFC_CUSTOMER_UPDATE.
    Leave the proxy designer open. Go to the SAP Proxy toolbox and drag the “Proxy field” icon to the designer.
    Rename the new “Field1” to “Tab”. Change the “Type” property to BRFCKNA1Table. To do this, use the drop down icon.
    Note that the ReadOnly property automatically changes to ”true” and the default value changes to “new BRFCKNA1Table()”.
    Add a second Proxy Field with the name “Filter”, the type “String” and the default value “A*”.
    Select the “Rfc_Customer_Get” function and click on the “…” button of the “Parameters” property.
    Set the default values of the three parameters with the drop-down icon as follows:
    Name1: Filter
    Kunnr: “” Customer_T: _Tab
    Save the proxy designer and switch to your Windows form. Add a TextBox, a Button and a DataGrid.
    Add an instance of your SAP proxy to your Windows form, add a “Destination” and set the “Connection” property as described in “A4”.
    Set the DataSource property of the datagrid to “sapProxy11”. Set the DataMember property of the datagrid to “Tab”. Alternatively you can set the DataSource to “sapProxy11.Tab” and leave the DataMember empty.
    For “textBox1” use the DataBinding feature to bind the “Text property” of the textbox to “sapProxy11.Filter”.
    Double-click the button to create an event handler and add a single line:
    “this.sapProxy11.Rfc_Customer_Get_();”
    You are using “sapProxy11” as a smart DataSet that contains the necessary state. You bind the state to the corresponding controls. The overload method Rfc_Customer_Get_() does not have any parameters, as the required state is already in the bound Proxy Fields.
    above statments from standard helpfile,and
    in my opinion you need
    datagrid1.datasource = yourtable
    regards
    ajai

  • ABAP source code to connect to third party systems using web service calls?

    Hi all,
              can any one provide an example ABAP source code to connect to third party systems using web service calls? The base system is CRM.

    Do you want to call a web service in a remote system, or do you want to provide a web service?
    If you want to call a web service you should create a proxy object via SE80. Open your development package, right click on the tree entry and choose: Create -> Enterprise Service / Web Service -> Proxy Object and provide the needed information (including the WSDL description file). You may then use the proxy object to call the web service (if the connection and everything else works right).
    See [http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm]

  • Unable to connect to the Exchange server using HTTP/HTTPS protocol.

    hi,
    i try to connect microsoft exchange server, but it give me
    error
    Unable to connect to the Exchange server using HTTP/HTTPS
    protocol.
    my code is pasted below............
    <!--- connection parameters --->
    <cfparam name="user1" default="uHRH">
    <cfparam name="user2" default="uHRH">
    <cfparam name="password" default="uHRH">
    <cfparam name="exchangeServerIP" default="192.168.0.1">
    <cftry>
    <!--- Open a connection to the exchange server by
    specifying the required user credentials --->
    <cfexchangeConnection
    action="open"
    username ="#user1#"
    password="#password#"
    server="#exchangeServerIP#"
    <!--- protocol = "http"--->
    connection="conn1">
    <cfoutput>Connection to exchange server
    "#exchangeServerIP#" established</cfoutput>
    <!--- Close connection to exchange server --->
    <CFExchangeConnection
    action="close"
    connection="conn1">
    <cfoutput>Connection to exchange server
    "#exchangeServerIP#" terminated</cfoutput>
    <!--- Error Information --->
    <cfcatch type="any">
    <cfoutput>#cfcatch.message#</cfoutput>
    </cfcatch>
    </cftry>
    if any one know how to solve this error?

    Hi,
    The "<cfexchangeConnection>" tag supports both "HTTP"
    and "HTTPS" connection.. So Please make sure the username has the
    "Outlook Web Access".
    Also try removing the <!--- protocol = "http"--->
    comment which you placed inside the "<cfexchangeConnection>"
    tag.

  • Need code example for LDAP update

    Hello,
    I know how to preform an LDAP search using the package javax.naming.directory.DirContext.
    Can someone show me how do I do an update to a certain record at the LDAP ?
    Can this update be with the search already (such as in SQL) or should I search the relevant item first and than update it? In any case, a code example will be very helpful here...

    Roy
    Personally I would use the UME APIs to update the user instead of connecting to the LDAP directly. There are many reason for this
    1) The UME will work if you decide to change your user store
    2) Connection pooling is already taken care of
    3) Its using standard product functionality instead
    I hope this helps (and sways) your decision
    Darrell

  • Send/receive hang on "Offline address book Connecting to Microsoft Exchange" and will never finish?

    When I hit send/receive on a few clients the process will hang on "Offline address book Connecting to Microsoft Exchange" and will never finish? These same user can long on the OWA and send/receive just fine. The problem is that while it's hanging it can't go out and look for new email. Any thoughts?

    I had similar problem.
    This actually arose due to the fact I had mistakenly set the Default web Site directory with a HTTP redirect which applied to all subfolders including OAB.
    I did then rectify this by going into individual subfolders and unchecking Http Redirect from each sub folder, however unknowingly  it created/modified a webconfig file under the OAB virtual directory. (you can explore it to see the
    file there)
    If you test your OAB url (for people with the issue), which is : http(s)://servername/oab/[code]/oab.xml you will get Error 500.
    Each time Outlook 2007 was trying to connect to get OAB, it was trying to read that webconfig file.
    I fixed this by changing the permissions on that webconfig file to allow everyone and the above error was done, and also my Outlook 2007 was downloading the OAB again!
    Now if the above fix did not fix your problem, you can temporarily effectively disable OAB by unticking Web Distribution of OAB and Public Folder Distribution in EMC under Organisation/Mailbox/Offline Address Book. Users will be able to do a
    send/reiceve without any errors/issues. However, if a new contact/user is added to your AD with exchange attributes, the clients will not be able to see this. I'm guessing if cached mode was also not used, issues would also occur if they tried using the GAL.
    acidack, you are a lifesaver.
    I looked at the other webconfig files in the internet directories and noticed they all had 'Authenticated Users' with read permissions while the OAB one did not.  Adding this group with read permissions solved the problem; Outlook 2007
    users are no longer frozen on the 'Offline address book connecting to Microsoft Exchange" message.
    What caused this? I'm not sure.  I was messing with the web settings trying to redirect people to OWA. Something I did must have caused this file to be re-created without the needed permissions.
    Acidack and AndrewB, You are both live savers.  After all these years, your solution to this problem is still spot on.

  • 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).

  • Standalone IDoc Lib 3.0 code example please

    Hi,
    I'm testing the new versions of JCo (3.0) and the new IDoc library (3.0).
    I succeeded to connect to my SAP system with both of code examples of these libraries but i hadn't receive any result back from SAP, it seems that examples are just handlers.
    I created i remote function module that uses STFC_CONNECTION but i didn't how to display my function result from my java file.
    These are new libraries and i didn't found any other code example so if someone can help i'll be very grateful.
    Thank you in advance

    i'm such a dumb!
    i forgot to execute the function in the SAP side to retreave the result in the java consol side (in my case).
    i was thinking that by calling a SAP(ABAP) function the java program run it as well.

  • Office 2013 - The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete.

    Hi Team,
    Just purchased and downloaded Office Home Premium and having trouble with Outlook. For what ever reason, I am unable to create account/add my email address ([email protected]) into the program. Through the set-up process it continuously
    tells me that it is unable to connect to Microsoft Exchange, and that it must be online or connected to complete. In the end, it comes up with this pop-up listing a file. Something like that. Any pointers on how to resolve this or are a lot of people having
    this problem..
    Also, I installed this on my laptop (OSX 10.8.2)
    and it worked fine, but not on my desktop (Win8 Pro 64-bit) 
    Thanks
    Andi

    Hello,
    Does OWA work?
    Does this issue occur on other users?
    In Exchange 2013, most of the internal and external client becomes to use Outlook Anywhere(RPC over http).
    Please make sure the autodiscover.domain.com is included in the certificate.
    Thanks,
    Simon Wu
    TechNet Community Support
    Hi I am having the same issue. Brand new computer, using Office 365 and trying to set up Outlook 2013 on Win 7 machine. OWA works fine. But cannot set up Exchange on my desktop.
    I don't know what you mean by "In Exchange 2013, most of the internal and external client becomes to use Outlook Anywhere(RPC over
    http).
    Please make sure the autodiscover.domain.com is included in
    the certificate."
    Can you please walk me through this? Thank you.

  • Code to connect to database in  Webdynpro-- iviews

    Hi All-
    Could you let me know the code to connect to database
    in WebDynPro-->iviews.
    Regards,
    Cris

    Hi,
    Here are the two ways of connecting to a database through coding:
    ////1////
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
              java.sql.Connection conn= java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver://<IP>:<port>;user=<abc>;password=<xyz>;database=<DB name>");
    ////2////     
    InitialContext initialContext = new InitialContext();
    DataSource dataSource = (DataSource)initialContext.lookup("jdbc/SRI");
    java.sql.Connection conn = dataSource.getConnection();
    Regards
    Srinivasan T

  • Mac computers in the office are not able to connect to our exchange server.

    We started facing this problem about a month ago in our office where the apple computers can not connect to the exchange server via outlook or applemail or anything for that matter. All the other computers can connect to the exchange server with no problems
    and the apple computers can even access the exchange server via OWA but the outlook and applemail apps would not connect to exchange. We have tried even deleting and re-creating some accounts on the apps but they still would not connect. At this point I am
    at a complete loss and I looked everywhere through google to find out if anyone else has faced this problem but to no avail.
    A little background information. This specific problem started happening after there was an un-expected series of power outages to the servers and they were shut down un-expectedly. I personally restored the servers and turned on all the services and made
    sure everything was up and running after the power outages and everything was working fine. Also the first instance of the problem with the mac computers only happened two days after the servers were back up and running again and they had no issues in those
    two days.
    Right now we do not have that many mac users in our offices (only 3-4 users) and I have instructed them to use the OWA in the meanwhile but it is however an inconvenience to them. By now you may have realized that I am not a very experienced server admin
    and I would really really appreciate any help. I extend my thanks in advance for any insight.

    Hi Martin,
    Thanks for the reply.
    Right now I have Apple mail and Outlook installed on my mac laptop and both the applications do not connect to the exchange server. Apple Mail simply does a long process when I give my credentials to create my account and then it gives an error saying it
    could not find the server while outlook quickly tells me that either the username or password is incorrect. At the same time I can connect to the server through outlook on my windows computer without any problems whatsoever.
    From your reply, I gather that the VIA headers only affect Apple mail and should not affect Outlook app on the mac but right now, neither apps are connecting to the exchange server.
    Either way I am trying to find out how to remove the VIA headers because it does not seem that we are using Kemp on the exchange server. Right now I do not have the in depth knowledge that I need because I was not involved in the implementation of our server
    system, that was taken care of by a service provider and I was put in charge of mostly simple admin work. Now we are out of contract with the service provider so  pretty much everything has fallen onto my shoulders.
    If possible, would you mind pointing me in the right direction to finding out if I am using a L7 load balancer and how I would go about removing the VIA headers?

Maybe you are looking for

  • Problem with Spry:Repeat and Slide Effect on IE6

    I run the website for my kids' hockey association and I'm not a web programmer. I am trying to display events in a Spry region using spry:repeat. The data is coming from a Google Calendar . I display the event date and title on the main page. I have

  • HP Photosmart D5360 Printer stopped working with MAC once upgrade to SL?

    We have a networked (not wireless printer) HP Photosmart D5360 Printer, and it connected to a Windows PC, Under Leopard we were able to print via Network sharing the printer, however since we have updated to Snow Leopard we can no longer see or print

  • Blob type parameter in procedure for display issue. Oracle portal bug?

    Hi Guy, I am not sure this is a bug or not for oracle portal. I have a table that have a column type as blob. by oracle portal10g, this column should be display as Item Type Upload (Binary) at Item Level Options. We can create a form to display this

  • User Specif Felilds in Routing operation details screen

    Hi Techies, Here I want some information regarding User Specific feilds: Here we can have 4 - Text boxes, 2- Value Boxes 2- Quantity Boxes 2-Indicators. Can any one explain the relevance of these feilds and how can they control the flow.. Thanks in a

  • FileDialog problem

    I have a frame with KeyListener. The problem: It's opens the FileDialog sometimes, and after that the KeyListener doesn't work. I have to select some another window and then select my frame again. After that it works again. How can I avoid this?