Bundled Web Services Package API?

Is there an API for the bundled Web Services Package in JSC 2?
I'm reading the Field Guide which give an example of using the Google Web services package. After you make the request it returns a GoogleSearchResult Object which you can easily grab data.
But, now I want to use the bundled Amazon package. How can I easily figure out the object type that all of these classes are returning?
I'm a beginner. I know this may be more a general Java question.

After adding the Web Service to the Web Services node, expand the added W/S and select the methods and look at the property sheet for details. Also you can right click on the method and select "test" and you'll see lots of detail about the W/S and its return object structure in the test dialog.
- Winston
http://blogs.sun.com/roller/page/winston?catname=Creator

Similar Messages

  • Securing DSP calls via Web Services Mediator API

    I have been implementing a client of DSP 3.0 services using the static Web Services Mediator API. I am successfully calling these through the AL Service Bus, where I have deployed the WSDL generated from the DSP. We are calling this from a rich client (i.e. the client is not running in any container). My company has chosen to use SAML-based security on all web services deployed in the service bus.
    I know how to use general-purpose web service clients to pass SAML tokens to the web service. My question is, how do I do this when using the Web Services Mediator API. I have noticed the XMLHelper class and the RequestConfig class, but I have not seen much in the way of examples of using them.
    Related question:
    Is it possible to insert additional content into the SOAPHeader, or configure attributes on the Port?
    Thanks,
    Jeff
    Edited by jhoffmanme at 02/13/2008 8:06 AM

    I'm checking into the SAML question.
    Regarding the soap header - whatever is in the contract defined in the WSDL.

  • Can't install Microsoft Exchange Web Services Managed API 2.0 - message says it is already installed but it is not.

    I tried to install the Microsoft Exchange Web Services Managed API 2.0 but I got a message saying it was already installed and that I should un-install it.  However it does not appear in the control panel un-install a program list.  I am using
    VS2013 on windows 8.  What can I do to get it to work?
    Mike VE

    Hello,
    Thank you for your sharing.
    If you have any feedback on our support, please click
    here
    Cara Chen
    TechNet Community Support

  • Fetching all mails in Inbox from Exchange Web Services Managed API and storing them as a .eml files

    I want to fetch all mails in the Inbox folder using EWS Managed API and store them as .eml.
    I can store file once I get the file content as a byte[] will
    not be difficult, as I can do:
    File.WriteAllBytes("c:\\mails\\"+mail.Subject+".eml",content);
    The problem will be to fetch (1) all mails with (2)
    all headers (like from, to, subject) (I am keeping information of those values of from, to and
    other properties somewhere else, so I need them too) and (3)byte[]
    EmailMessage.MimeContent.Content. Actually I am lacking understanding of
    Microsoft.Exchange.WebServices.Data.ItemView,
    Microsoft.Exchange.WebServices.Data.BasePropertySet and
    Microsoft.Exchange.WebServices.Data.ItemSchema
    thats why I am finding it difficult.
    My primary code is:
    When I create PropertySet as
    follows:
    PropertySet properties = new PropertySet(BasePropertySet.FirstClassProperties, ItemSchema.MimeContent);
    I get following exception:
    The property MimeContent can't be used in FindItem requests.
    I dont understand
    (Q1) What these ItemSchema and BasePropertySet are
    (Q2) And how we are supposed to use them
    So I removed ItemSchema.MimeContent:
    PropertySet properties = new PropertySet(BasePropertySet.FirstClassProperties);
    I wrote simple following code to get all mails in inbox:
    ItemView view = new ItemView(50);
    view.PropertySet = properties;
    FindItemsResults<Item> findResults;
    List<EmailMessage> emails = new List<EmailMessage>();
    do
    findResults = service.FindItems(WellKnownFolderName.Inbox, view);
    foreach (var item in findResults.Items)
    emails.Add((EmailMessage)item);
    Console.WriteLine("Loop");
    view.Offset = 50;
    while (findResults.MoreAvailable);
    Above I kept page size of ItemView to
    50, to retrieve no more than 50 mails at a time, and then offsetting it by 50 to get next 50 mails if there are any. However it goes in infinite loop and continuously prints Loop on
    console. So I must be understanding pagesize and offset wrong.
    I want to understand
    (Q3) what pagesize, offset and offsetbasepoint in ItemView constructor
    means
    (Q4) how they behave and
    (Q5) how to use them to retrieve all mails in the inbox
    I didnt found any article online nicely explaining these but just giving code samples. Will appreciate question-wise explanation despite it may turn long.

    1) With FindItems it will only return a subset of Item properties see
    http://msdn.microsoft.com/en-us/library/bb508824(v=exchg.80).aspx for a list and explanation. To get the mime content you need to use a GetItem (or Load) I would suggest you read
    http://blogs.msdn.com/b/exchangedev/archive/2010/03/16/loading-properties-for-multiple-items-with-one-call-to-exchange-web-services.aspx which also covers of paging as well.
    3) offset is from the base your setting the offset to 50 each time which means your only going to get the 50 items from the offset of 50 which just creates an infinite loop. You should use
    view.Offset
    = +50;
    to increment the Offset although it safer to use
    view.Offset  += findResults.Items.Count;
    which increments the offset based on the result of the last FindItems operation.
    5) try something like
    ItemView iv = new ItemView(100, 0);
    FindItemsResults<Item> firesults = null;
    PropertySet psPropSet = new PropertySet(BasePropertySet.IdOnly);
    iv.PropertySet = psPropSet;
    PropertySet itItemPropSet = new PropertySet(BasePropertySet.IdOnly) { ItemSchema.MimeContent, ItemSchema.Subject, EmailMessageSchema.From };
    do
    firesults = service.FindItems(WellKnownFolderName.Inbox, iv);
    service.LoadPropertiesForItems(firesults.Items, itItemPropSet);
    foreach(Item itItem in firesults){
    Object MimeContent = null;
    if(itItem.TryGetProperty(ItemSchema.MimeContent,out MimeContent)){
    Console.WriteLine("Processing : " + itItem.Subject);
    iv.Offset += firesults.Items.Count;
    } while (firesults.MoreAvailable);
    Cheers
    Glen
    .Offset += fiFitems.Items.Count;

  • Web services + persistence API

    Hello everyone, I'm new here and have a silly question to ask.
    Is it possible to generate entity classes from database by using persistence API then wrap them in web services with jaxws? Thanks!

    Thanks... Any tips on how to do it? preferably without much coding.

  • Does OVM 3.0x provides management web service or API?

    Hi
    I thought OVM 2.20 provided Oracle VM Manager Web Services API Reference.
    Where can we find the same thing for OVM 3.0x?
    Thanks.

    J.S.Park wrote:
    Where can we find the same thing for OVM 3.0x?Oracle VM 3.0 doesn't have a Web Services API. The full Java/Python API and programmers documentation is still being developed and has not been released yet.

  • EJB Web Services Packaging and Deployment

    I am new to Web Services on WebLogic as all my experience of Web Services have been on Apache Axis. My first question that I have an EJB that I would like to expose some of it's methods via a Web Service but the EJB is a part of an already deployed, or at least it's an external EJB of an existing app, how do I package and deploy my web service so that it interacts with the EJB properly but doesn't have to modify the existing application? Thanks, Jeremy

    Hello,
    Which version of EJB are you using? (EJB3 or 2.x)
    If you are using EJB3 you can directly expose your EJB as WS using annotations see the EJB3 page.
    The the binding coule be done with a simple java Proxy or a @WebServiceRef resource reference to a Java class.
    Are you using ADF ?
    If you are using ADF, the binding of the data source that could be an EJB or a Web Service is declarative using a data control
    - Learn ADF
    Regards
    Tugdual Grall

  • PeopleSoft web services and api

    Dear all,
    I want to know integration capabilities of PeopleSoft.
    Does PeopleSoft provide Web Services/api for integartion? Can one populate Oracle AQ/JMS Queue from PeopleSoft on certain business events?
    Regards,
    Sam

    YES, peoplesoft does provide webservices for integration.
    Starting from Peopletools 8.48+ peopletools integration capabilities can be integrated into external sites, services, forms and message posts.
    Thanks

  • Unable to deploy a war(includes web services)packaged into EAR on jboss 5.0

    I am new to web services and wanted to develop one
    I used the following softwares / IDE
    Eclipse 3.4.2
    Apache Ant 1.7
    Jboss AS 5.0.1
    JBoss ws 2.0
    jbossws-native-bin-dist 3.2.1GA
    sun jdk 1.6.0_12
    So i started off quite well configuring all that is required to create a web service
    i took the help of eclipse ide tools like create web service and create web service clients.
    when i created the web project in eclipse i selected the option add project to ear.
    and finally i start the jboss server with in eclipse and add project the ear file that contains the war file.
    just when i thought all is fine the server throws an error
    13:01:52,929 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/ state=PreReal mode=Manual requiredState=Real
    org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/TempWs.war/
    I have searched jira to find a solution for this , but i think i couldnt find an appropriate solution
    I am not sure if the search critirea i entered was close to the issue.
    The log pasted below is the one when i start jboss from with in eclipse .
    13:01:52,929 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/ state=PreReal mode=Manual requiredState=Real
    org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/TempWs.war/
    at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NoSuchMethodError: org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit.getMetaDataFiles(Lorg/jboss/virtual/VirtualFileFilter;)Ljava/util/List;
    at org.jboss.webservices.integration.deployers.deployment.AbstractDeploymentModelBuilder.newDeployment(AbstractDeploymentModelBuilder.java:119)
    at org.jboss.webservices.integration.deployers.deployment.AbstractDeploymentModelBuilder.newDeploymentModel(AbstractDeploymentModelBuilder.java:62)
    at org.jboss.webservices.integration.deployers.deployment.WSDeploymentBuilder.build(WSDeploymentBuilder.java:82)
    at org.jboss.webservices.integration.deployers.WSDeploymentDeployer.internalDeploy(WSDeploymentDeployer.java:66)
    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
    ... 24 more
    13:01:52,945 WARN [HDScanner] Failed to process changes
    org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
    DEPLOYMENTS IN ERROR:
    Deployment "vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/" is in error due to the following reason(s): java.lang.NoSuchMethodError: org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit.getMetaDataFiles(Lorg/jboss/virtual/VirtualFileFilter;)Ljava/util/List;
    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:806)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
    at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    Please help.

    When you say:
    I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
    startup the OC4J instance.
    We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
    It sounds like you have some funky issues there with those missing XML files -- that is not expected or normal.
    Do you mean you copied the same oc4j_extended.zip to the server and unzipped it, or you zipped up the directories you were using on the Windows box, copied that over, and unzipped it?
    I don't know of any problems with Solaris, JDK5, U12.
    What about if you do this to remove any issues with the remote copy aspect of the deployment.
    1. Stop OC4J.
    2. Manually copy CISS.ear to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/
    3. Edit the j2ee/home/config/server.xml file and add the entry to deploy the application
    4. Edit the j2ee/home/config/default-web-site.xml and bind any web-modules you need.
    5. Start the server and see what happens -- the application should be deployed.
    Also, what happens if you use the $JAVA_HOME/bin/jar to try and view the contents of the CISS.ear file?
    -steve-

  • Web Services Managed API

    Hey,
    I'm trying to expose some Exchange stuff through my .NET web site. It's not working because I want to use the logged in users credentials but this fails. If I hard code a username and password all is well.
    My setup is:
    Client > IIS 7.5 Server > Exchange 2010 Server
    I know it's to do with Kerberos, but I cannot figure out where it's failing. I've setup SPNs on the Exchange server, and enable delegation on the IIS computer account in AD.
    I have this working perfectly for IIS Server > SQL Server using a domain service account for SQL, so Kerberos itself appears to be sound. Same Web site, same IIS Server I'm trying to use for Exchange Web Services.
    public void SendEmail_Click(object sender, EventArgs e)
    try
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
    service.UseDefaultCredentials = true;
    service.AutodiscoverUrl("[email protected]");
    EmailMessage message = new EmailMessage(service);
    message.Subject = EmailSub_TextBox.Text;
    message.Body = EmailBod_TextBox.Text;
    message.ToRecipients.Add(EmailTo_TextBox.Text);
    message.Attachments.AddFileAttachment(String.Format("{0}", FileName), Server.MapPath(String.Format("{0}", FileUrl)));
    message.Save();
    message.SendAndSaveCopy();
    catch (Exception ex)
    Info_Label.Text += String.Concat(ex.Message.ToString(), "<br />");
    Info_Label.Visible = true;
    This returns this error, when for example sending an email (as per above code):
    When making a request as an account that does not have a mailbox, you must specify the mailbox primary SMTP address for any distinguished folder Ids.
    The message sender (me) does have a valid mailbox!
    Thanks.
    PS: I have a single server Exchange environment.

    Thanks Glen.
    Will do. If I get anything from the IIS forum I'll post back here, in case anyone stumbles across it.
    One final question: what, in reality, is the difference between these:
    service.UseDefaultCredentials = true;
    service.Credentials = CredentialCache.DefaultNetworkCredentials;
    As they both work.

  • Exchange Web Service Managed API not authorizing

    I find it very strange that I am able to create appointments in my calendar on our company's exchange 2010 server
    using the asp.net 4.0 web application running on my XP machine which is not even part of the domain!, BUT when I upload the same code to our company's production Web application server
    (which is not same as the Exchange server), then I get the error as follows:
    System.Net.WebException: The remote server returned an error: (401) Unauthorized
    I am using Window's authentication throughout. Using service.UseDefaultCredentials = true; I just cannot
    afford to use the username/paasword for every staff who will be using this application. I am thinking there is some problem (rights/permissions/disabled impersonation) issue at the production Web application server (Windows 2008 m/c). I even played with the
    Application pool identity in IIS 7 by selecting all the builtin accounts it can possibly run under, but same error. I can clearly see that it is running under my Windows account right before the Appointment.Save() call
    is made. I am briefly impersonating using the logged in user's credentials and then removing the impersonation. I saw this technique elsewhere. But that doesn't make any difference either.
    These are the code files:
    Default.aspx.cs
    //(nothing much is going on in the markup page Default.aspx. Therefore not including)
    using System;
    using System.Collections.Generic;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Microsoft.Exchange.WebServices.Data;
    using Microsoft.Exchange.WebServices.Autodiscover;
    using System.Web.Configuration;
    namespace TestExchangeWebServices
    public partial class _Default : System.Web.UI.Page
    protected ExchangeService service;
    protected void Page_Load(object sender, EventArgs e)
    service = new ExchangeService(ExchangeVersion.Exchange2010);
    service.UseDefaultCredentials = true;
    service.Url = new Uri(WebConfigurationManager.AppSettings["EWSURL"]);
    SetAppointment("Test", DateTime.Now, "Test");
    public void SetAppointment(string Subject, DateTime AptDateTime, string Body)
    Appointment apt = new Appointment(service);
    apt.Subject = Subject;
    apt.Body = Body;
    apt.Body.BodyType = BodyType.HTML;
    apt.Start = AptDateTime;
    apt.End = apt.Start.AddMinutes(30.00);
    apt.ReminderMinutesBeforeStart = 15;
    apt.IsReminderSet = true;
    HttpContext.Current.Trace.Write("Before Impersonation: System.Security.Principal.WindowsIdentity.GetCurrent().Name = " + System.Security.Principal.WindowsIdentity.GetCurrent().Name );
    System.Security.Principal.WindowsImpersonationContext impersonationContext;
    impersonationContext = ((System.Security.Principal.WindowsIdentity)HttpContext.Current.User.Identity).Impersonate();// //System.Threading.Thread.CurrentPrincipal.Identity
    HttpContext.Current.Trace.Write("Before Saving Appointment. System.Security.Principal.WindowsIdentity.GetCurrent().Name = " + System.Security.Principal.WindowsIdentity.GetCurrent().Name);
    //This is where the call is made and error occurs
    apt.Save(SendInvitationsMode.SendToNone);
    HttpContext.Current.Trace.Write("After Saving Appointment.");
    impersonationContext.Undo();
    Web.Config
    <?xml version="1.0"?>
    <configuration>
    <appSettings configProtectionProvider="RsaProtectedConfigurationProvider">
    <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
    xmlns="http://www.w3.org/2001/04/xmlenc#">
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
    <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
    <KeyName>Rsa Key</KeyName>
    </KeyInfo>
    <CipherData>
    <CipherValue>0Sw7QiYFKoD65nCXfakXUhJrjapk4uyQ9u6aPBStxB1XBIIPtXbuZJZb/GyMxgl7Gi3sqIkoq66BKa+MSzjAkpkIfnZmOhMNVomKofC3rlEf9NeIAdCEvjcmENhfGyA6aEJj96mGDxRDBE/FP1iQ8Z3x8Rob+HG1sbD0YJy2rpA=</CipherValue>
    </CipherData>
    </EncryptedKey>
    </KeyInfo>
    <CipherData>
    <CipherValue>HmmlAzyuedvlQ/+grwRKjTs5Z7sg5dYShHFYsFcI0q2ugkZ7oYYNTTEycyqzKyXmaaqwyE2lAsApApSvT+JDys021+sMrqLrF37xAkjRimKbPTylgznRZLQx2qKAZstb6qIis2mcLykgURtp2ytfoPl83jJzEU1y6PtB0loB/p4=</CipherValue>
    </CipherData>
    </EncryptedData>
    </appSettings>
    <connectionStrings>
    <add name="ApplicationServices"
    connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
    providerName="System.Data.SqlClient" />
    </connectionStrings>
    <system.web>
    <identity impersonate="false"/>
    <customErrors mode="Off"></customErrors>
    <compilation debug="true" targetFramework="4.0" />
    <authentication mode="Windows">
    </authentication>
    <membership>
    <providers>
    <clear/>
    <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
    enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
    maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
    applicationName="/" />
    </providers>
    </membership>
    <profile>
    <providers>
    <clear/>
    <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
    </providers>
    </profile>
    <roleManager enabled="false">
    <providers>
    <clear/>
    <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
    <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
    </providers>
    </roleManager>
    </system.web>
    <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <httpErrors errorMode="Detailed" />
    <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
    </configuration>

    Glen, thanks for the response! I had already implemented a solution that is working for me as follows. Anyway your input is much appreciated.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Microsoft.Exchange.WebServices.Data;
    using Microsoft.Exchange.WebServices.Autodiscover;
    using System.Web.Configuration;
    //for impersonation before making calls
    using System.Security.Principal;
    using System.Web.Security;
    using System.Runtime.InteropServices;
    namespace TestExchangeWebServices
    public partial class _Default : System.Web.UI.Page
    protected ExchangeService service;
    //The following Impersonator*** variables are of the exchange account which has been configured to impersonate other users by enabling impersonation on the exchange server as they show at this link: http://msdn.microsoft.com/en-us/library/office/bb204095(v=exchg.140).aspx
    protected string ImpersonatorUsername = WebConfigurationManager.AppSettings["ImpersonatorUsername"];
    protected string ImpersonatorPassword = WebConfigurationManager.AppSettings["ImpersonatorPassword"];
    protected string ImpersonatorDomain = WebConfigurationManager.AppSettings["ImpersonatorDomain"];
    // This is for the user for whom the appointment need to be set on their exchange server. This user will be impersonated by the above impersonator. You do not need to get the password information for this user, just the email address will work.
    private string Username = HttpContext.Current.User.Identity.Name.Split('\\').Last(); //extract the username out of the "Domain\Username" format. It doesn't have to be the currently logged in user. As per your need you can use the username of any other company user for whom you know the email address.
    protected string ImpersonatedEmailAddress ;//= Username +"@"+ WebConfigurationManager.AppSettings["EmailDomain"];
    //start impersonation setup block. Credits: Impersonate a Specific User in Code http://support.microsoft.com/kb/306158#4
    public const int LOGON32_LOGON_INTERACTIVE = 2;
    public const int LOGON32_PROVIDER_DEFAULT = 0;
    WindowsImpersonationContext impersonationContext;
    [DllImport("advapi32.dll")]
    public static extern int LogonUserA(String lpszUserName,
    String lpszDomain,
    String lpszPassword,
    int dwLogonType,
    int dwLogonProvider,
    ref IntPtr phToken);
    [DllImport("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
    public static extern int DuplicateToken(IntPtr hToken,
    int impersonationLevel,
    ref IntPtr hNewToken);
    [DllImport("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
    public static extern bool RevertToSelf();
    [DllImport("kernel32.dll", CharSet = CharSet.Auto)]
    public static extern bool CloseHandle(IntPtr handle);
    //end impersonation setup block;
    protected void Page_Load(object sender, EventArgs e)
    ImpersonatedEmailAddress = Username + "@" + WebConfigurationManager.AppSettings["EmailDomain"]; //form the email address out of the username, provided they both are same
    service = new ExchangeService(ExchangeVersion.Exchange2010);
    //service.UseDefaultCredentials = true;
    service.Credentials = new WebCredentials(ImpersonatorUsername, ImpersonatorPassword, ImpersonatorDomain);
    service.Url = new Uri(WebConfigurationManager.AppSettings["EWSURL"]);
    service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, ImpersonatedEmailAddress);
    SetAppointment("Test", DateTime.Now, "Test");
    public void SetAppointment(string Subject, DateTime AptDateTime, string Body)
    Appointment apt = new Appointment(service);
    apt.Subject = Subject;
    apt.Body = Body;
    apt.Body.BodyType = BodyType.HTML;
    apt.Start = AptDateTime;
    apt.End = apt.Start.AddMinutes(30.00);
    apt.ReminderMinutesBeforeStart = 15;
    apt.IsReminderSet = true;
    if (impersonateValidUser(ImpersonatorUsername, ImpersonatorDomain, ImpersonatorPassword)) //For this code to work you will have to enable impersonation on the Exchange server. This code works on the web application running on the company server, but not from my XP PC that is not part of the domain but is on VPN connection.
    HttpContext.Current.Trace.Write("Before Saving Appointment. System.Security.Principal.WindowsIdentity.GetCurrent().Name = " + System.Security.Principal.WindowsIdentity.GetCurrent().Name);
    apt.Save(SendInvitationsMode.SendToNone);
    HttpContext.Current.Trace.Write("After Saving Appointment.");
    Label1.Text = String.Format("Appointment set successfully for {0}", ImpersonatedEmailAddress);
    else //fall back to the code that uses logged in user's window identity and not impersonation. This code "strangely" worked from the web application installed on my Windows XP PC that was not part of the domain but was on VPN connection and yet saved appointments on the company's exchange server. I guess, the VPN connection compensates for all the mumbo-jumbo round about impersonation code in the impersonateValidUser method. Hack, this code worked even I had not configured the impersonation on the exchange server as they tell you to do at this link: http://msdn.microsoft.com/en-us/library/office/bb204095(v=exchg.140).aspx
    service.Credentials = null;
    service.ImpersonatedUserId = null;
    service.UseDefaultCredentials = true;
    HttpContext.Current.Trace.Write("Before Impersonation: System.Security.Principal.WindowsIdentity.GetCurrent().Name = " + System.Security.Principal.WindowsIdentity.GetCurrent().Name);
    //this is not impersonation. It uses the logged in user's window identity. The window identity does not have to be that of the company domain. The windows identity of Local PC that is not part of the domain will also work
    System.Security.Principal.WindowsImpersonationContext impersonationContext;
    impersonationContext = ((System.Security.Principal.WindowsIdentity)HttpContext.Current.User.Identity).Impersonate();// //System.Threading.Thread.CurrentPrincipal.Identity
    HttpContext.Current.Trace.Write("Before Saving Appointment. System.Security.Principal.WindowsIdentity.GetCurrent().Name = " + System.Security.Principal.WindowsIdentity.GetCurrent().Name);
    apt.Save(SendInvitationsMode.SendToNone);
    impersonationContext.Undo();
    //impersonation methods. Credit: Impersonate a Specific User in Code: http://support.microsoft.com/kb/306158#4
    private bool impersonateValidUser(String userName, String domain, String password)
    WindowsIdentity tempWindowsIdentity;
    IntPtr token = IntPtr.Zero;
    IntPtr tokenDuplicate = IntPtr.Zero;
    if (RevertToSelf())
    if (LogonUserA(userName, domain, password, LOGON32_LOGON_INTERACTIVE,
    LOGON32_PROVIDER_DEFAULT, ref token) != 0)
    if (DuplicateToken(token, 2, ref tokenDuplicate) != 0)
    tempWindowsIdentity = new WindowsIdentity(tokenDuplicate);
    impersonationContext = tempWindowsIdentity.Impersonate();
    if (impersonationContext != null)
    CloseHandle(token);
    CloseHandle(tokenDuplicate);
    return true;
    if (token != IntPtr.Zero)
    CloseHandle(token);
    if (tokenDuplicate != IntPtr.Zero)
    CloseHandle(tokenDuplicate);
    return false;
    private void undoImpersonation()
    impersonationContext.Undo();
     

  • ConversationId property vs ConversationIndex property in Exchange Web Services managed API

    EWS Managed API have two properties:ConversaionId and ConversationIndex
    What is the difference between them? I guess ConversationId is
    the the ConversationIndex of
    the first mail in the conversation which is essentially of 22 bytes, while ConversationIndex is
    the index of that particular reply in the conversation thread, essentially of 22 bytes + multiples of 5 bytes for each reply in the conversation. Is it like that?
    Also ConversationId is
    accessible only with Exchange Server 2010 onwards. So cant we access ConversationId in
    the Exchange Server 2007?

    I just found this thread that indicates that you can use an extended property definition to access the ConversationId in Exchange 2007. Very smart!
    http://stackoverflow.com/questions/7487570/implementing-outlook-2010s-group-by-conversation-using-ews-and-exchange-2007
    Henning's answer:
    You can fetch the ConversationId and the ConversationIndex via extended properties:
    private static readonly ExtendedPropertyDefinition ConversationIdProperty = new ExtendedPropertyDefinition(0x3013, MapiPropertyType.Binary);
    private static readonly ExtendedPropertyDefinition ConversationIndexProperty = new ExtendedPropertyDefinition(0x0071, MapiPropertyType.Binary);
    var items = service.FindItems(WellKnownFolderName.Inbox, new ItemView(512) { PropertySet = new PropertySet(BasePropertySet.FirstClassProperties,
    ConversationIdProperty, ConversationIndexProperty)});
    Both are binary properties. Their content is described in great detail here:
    [MS-OXOMSG]: E-Mail Object Protocol Specification, section 2.2.1.2 and 2.2.1.3.
    The properties themselves are defined in
    [MS-OXPROPS]: Exchange Server Protocols Master Property List.

  • Silverlight enabled Web service package deployment

    I'm programming Silverlight app and it uses a Silverlight-enabled WCF service to send email using EWS. It created  XAP
    package and deployed to Sharepoint. It works on my local machine but it doesn't work after deployment. What are the steps involved for the deployment. Does this XAP package includes WCF service? Do I have to deploy WCF service separately? Please let me
    know if there are any suggestions. I am using Sharepoint 2010, Silverlight 5 and .NET 4.0.

    Hello,
    The TechNet Sandbox forum is designed for users to try out the new forums functionality. Please be respectful of others, and do not expect replies to questions asked here.
    As it's off-topic here, I am moving the question to the
    Where is the forum for... forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Outbound TLS web services from api gateway

    Hello,
    We want to call a webservice with TLS 1.1. OR 1.2 from the api gateway.
    This is the error i get:
      transient failure connecting to remote: peer disconnected unexpectedly.

    Hi,
    I will assuming you actually mean TLS and not LTS.
    If you want to use a specific Cipher you have to specify a custom list in your connection filter in the Ciphers field instead of DEFAULT.
    List of ciphers: https://www.openssl.org/docs/apps/ciphers.html
    Example in this screenshot.
    Another common reason for the specific error message you don't have a CA Certificate in your certificate store for the endpoint you are trying to establish a connection to.
    Cheers,
    Stefan

  • Best Way to Expose our JAVA API as web service

    we have develop an API and now, we want these API available as web services. the API abstracts the developer from database connection and the developer has to only concern himself of the object model. our problem with this API is that if we distribute this to our co-developers, their applications will be connecting directly to our database. but if we have this as a webservice, the connections to the databse will be isolated between the host that's running the webservice and the database.
    what's the best way to move these API/objects to webservices? what are our options?
    thanks,

    You can pretty much put anything you want into a web service. But remember they are designed for network/internet calls so it might make sense to bulk wrap your API calls. Due to the large amount of XML that is required by a web service if your API is large and you will have many webservices you probably want to get a tool that can generate this for you.

Maybe you are looking for

  • How to get current row data in table control

    Hi , expert ,    I am professional in oracle ,  but  now I am a new guy in SAP ABAP . I  have a question in UI How to get current row data and click pushbutton  in table control  to open next screen ? I want to get the current data and open next scre

  • 0FI_AR_4 DELTA  SO SLOWLY

    Hi, I use infopackege 0FI_AR_4_d to extracted the Datasourse 0FI_AR_4 Customers: Line Items with Delta. The runtime is 18h 59m 8s,but it only have 114 records. It's too slowly. Processing is overdue. And the maximum wait time for this request has not

  • Cursor moving problem

    Hi guys! I face a problem with my flash movie and I will like to ask for help. My movie consists of a map (jpg) and numerous buttons (with the shape of umbrellas) . I have created the movie in thefollowing way: when you place the cursor over the butt

  • Keyboard on DV6 6069eo

    Anyone that knows how to replace the keyboard on a HP DV6 6069eo, or knows where i can get a manual wich shows how to do it This question was solved. View Solution.

  • Deleting background apps

    How do you delete apps running in the background? Some of them use a lot of battery power.  Really, doesn't anyone Check these systems before they are released to the public?