How to  Test HTTP EVENT generators

Hi I have created a HTTP EventGenerator
with url "/TEST/getDataServlet". This eg is then configured for an XML Channel.
Now while testing the EG by giving the posting an xml from java program or by invoking
http://<ipaddress>:<portnumber>/TEST/getDataServlet
I get the error
java.security.PrivilegedActionException: com.bea.wli.broker.MessageBrokerException: [WLI-Core:481031]The message-type for channel "/TESTOM/Samples/TestHTTPChannel" is defined as "xml", which is not type-compatible with the message being published.
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
My query is how to post the xml data to this EG. Docs says HTTPEg creates a servlet.
need to know how to test this.
thx
siva

Hi Stefan, I configured the way you have put it, but I get the error "no receiver could be determined"
Here are my settings:
Sender service - HTTP_SEND
sender o/b interface - PROD_MSG_INT_OB_ASYNC
receiver service - FILE_RECEIVE
receiver i/b interface - PROD_MSG_INT_IB_ASYNC
receiver communication channel - FILE adapter
JAVA script:
String Party       = "MFC";
String Service     = "HTTP_SEND";
String XINameSpace = "mfc%3Anamespace1";
String Interface   = "PROD_MSG_INT_OB_ASYNC";
String Url   = "http://nemo:8000/sap/xi/adapter_plain?";
XML DATA File:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:PRODUCT xmlns:ns0="mfc:namespace1">
<ID>E</ID>
<NAME>thank god</NAME>
<BRAND>SOME BRAND</BRAND>
</ns0:PRODUCT>
Stefan Am I missing anything?
XML error message:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Receiver Identification
  -->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
  <SAP:Category>XIServer</SAP:Category>
  <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_BE</SAP:Code>
  <SAP:P1 />
  <SAP:P2 />
  <SAP:P3 />
  <SAP:P4 />
  <SAP:AdditionalText />
  <SAP:ApplicationFaultMessage namespace="" />
  <SAP:Stack>No receiver could be determined</SAP:Stack>
  <SAP:Retry>N</SAP:Retry>
  </SAP:Error>
It would be great if you have solution for this.
Regards
felix

Similar Messages

  • How to test HTTP file?

    Hi all,
    I have a simple senario to test HTTP file.
    I want HTTP file to be written into XI as a file.
    Can anyone tell me the steps involved in this?
    I have created a HTTP service as sender with HTTP as communication channel, sender message interface.
    Is there anything I have to fill in receiver tab?
    I have the XI as business system receiver with file communication channnel.
    How about the sender message interface for HTTP, should it be ASYNC, ABSTRACT?
    I created the receiver determination, interface determination, receiver agreement.
    Am I missing anything?
    I appreciate your response.
    Regards,
    felix.

    Hi Stefan, I configured the way you have put it, but I get the error "no receiver could be determined"
    Here are my settings:
    Sender service - HTTP_SEND
    sender o/b interface - PROD_MSG_INT_OB_ASYNC
    receiver service - FILE_RECEIVE
    receiver i/b interface - PROD_MSG_INT_IB_ASYNC
    receiver communication channel - FILE adapter
    JAVA script:
    String Party       = "MFC";
    String Service     = "HTTP_SEND";
    String XINameSpace = "mfc%3Anamespace1";
    String Interface   = "PROD_MSG_INT_OB_ASYNC";
    String Url   = "http://nemo:8000/sap/xi/adapter_plain?";
    XML DATA File:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:PRODUCT xmlns:ns0="mfc:namespace1">
    <ID>E</ID>
    <NAME>thank god</NAME>
    <BRAND>SOME BRAND</BRAND>
    </ns0:PRODUCT>
    Stefan Am I missing anything?
    XML error message:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Identification
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_BE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    It would be great if you have solution for this.
    Regards
    felix

  • How to test Https enabled in SR?

    HI Gems,
       I have soap sender scenario and published my service in SR as well. When i test my service from SR, i see both(Http and
    Https) bindings have Http it self but in the bottom at target url i can see Http for Http and Https for Https.
    Can you explain how to test my service in Https and what point i have to check in SR whether my service works for Https or not?
    Please advice...
    Thanks
    Prabhakar

    I've got the target address from the Service registry and executed in Soap UI and was success in testing.
    Now i wonder, in other system Https port is not configured and system accepted with the same port as i tested in another.
    I even checked in SMICM, No Https port is configured. Can any one help me out in this....
    Thanks
    Prabhakar

  • How to test HTTP request for Sender SOAP Channel

    Hi all,
    We are testing Soap requests from SOAP UI tool.
    We are able to call HTTPS calls from SOAPUI tool, but unable to call HTTP request.
    we eanbles ssl and able to post https requests.
    please advice .
    Thanks
    RGDASARI

    Hi Stefan, I configured the way you have put it, but I get the error "no receiver could be determined"
    Here are my settings:
    Sender service - HTTP_SEND
    sender o/b interface - PROD_MSG_INT_OB_ASYNC
    receiver service - FILE_RECEIVE
    receiver i/b interface - PROD_MSG_INT_IB_ASYNC
    receiver communication channel - FILE adapter
    JAVA script:
    String Party       = "MFC";
    String Service     = "HTTP_SEND";
    String XINameSpace = "mfc%3Anamespace1";
    String Interface   = "PROD_MSG_INT_OB_ASYNC";
    String Url   = "http://nemo:8000/sap/xi/adapter_plain?";
    XML DATA File:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:PRODUCT xmlns:ns0="mfc:namespace1">
    <ID>E</ID>
    <NAME>thank god</NAME>
    <BRAND>SOME BRAND</BRAND>
    </ns0:PRODUCT>
    Stefan Am I missing anything?
    XML error message:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Identification
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_BE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>No receiver could be determined</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    It would be great if you have solution for this.
    Regards
    felix

  • How to monitor Http Request and Response when load testing is going on

    Hi,
    can any one please let me know how to monitor http request sent and response received for each virtual ID when a load test is going on ?
    Thanks,

    You used to be able to see what the VUs "see" using the "VU Monitor" (it would only do a simple rendering of the HTML but it served it's purpose). However this was replaced (in v12 I think?) by the "VU Log". While this offers simlilar functionality, I have had problems getting to see the same level of detail. You may need to use the "debug" modes. Also check the "Content" tab within the VU Logs (it is the closest equivalent to the HTML you would see in the responses in the old VU Monitor).

  • How do I test HTTPS scenario

    I am able to test HTTP scenarios using the application described below
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    However, I want to be able to test the same scenario using secure HTTP (https) before I hand it over to my customer. The app described above doesn't support HTTPS. Does anyone have any suggestions?
    Many thanks in advance.
    Edited by: Robert Warde on Mar 26, 2008 2:51 PM

    Hi Robert
    To test using HTTPS you have to configure SSL Before that make sure that you have entered proper port number for https .it is 443(default) for https and 80(default) for http

  • How to Access Custom Event using AS3?

    Hi All,
    Maybe it's that its Monday morning and my brain is still foggy, but I can't seem to figure out how to set custom events using AS3.
    I have a custom GridRow itemRenderer, and have declared the event using the appropriate metatags.
    Then I create the GR item dynamically using AS3 instantiation, but the event is not available for selection in the intellisense drop-down.
    Let's take the following as an example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Grid
         xmlns:mx="http://www.adobe.com/2006/mxml"
         xmlns:renderers="com.brassworks.renderers.*"
         creationComplete="componentInit();"
    >
         <mx:Script>
              <![CDATA[
                   private function componentInit():void
                        newRow     :MyRow     = new MyRow();
                        //newRow.myEvent is not an available option to set
              ]]>
         </mx:Script>
    </mx:Grid>
    Then the itemRenderer:
    <?xml version="1.0" encoding="utf-8"?>
    <GridRow
         xmlns:mx="http://www.adobe.com/2006/mxml"
         xmlns:classes="com.brassworks.components.classes.*"
         creationComplete="componentInit();"
    >
         <mx:Metadata>
              [Event(name="myEvent", type="flash.events.Event")]
         </mx:Metadata>
         <mx:Script>
              <![CDATA[
                   private function itemChanged(event:Event):void
                   Alert.show("test");
                   this.dispatchEvent(new Event("myEvent"));
              ]]>
         </mx:Script>
         <mx:GridItem>
              <mx:TextInput
                   change="itemChanged"
              />
         </mx:GridItem>
    </GridRow>
    How do I go about setting the handler method for custom events on instantiated items? Do I need to do this via the AddEventListener() method? Does this mean that events aren't exposed in ActionScript like they are in MXML? (In MXML all I have to do is <MyRow myEvent="handler(event)" />.)
    Thanks!
    -Mike

    Yes, I you need to do this via the addEventListener() method.
    myRow.addEventListener( "myEvent", myHandler );
    I hope that helps.
    Ben Edwards

  • How to test Process chain in BW

    Hi Guys,
                  Can U give me some introduction to Process chains and how to test it in BW 3.5
    Thanks for Ur time.
    Cheers
    Senthil

    Hi,
    A process chain is a defined sequence of interdependent processes required to perform acomplex task in an SAPBW environment. Data maintenance tasks in SAPBW are notrestricted to uploading data. Aggregate rollups, index maintenance, master data and ODS activation, and a variety of other jobs are required to update data, guarantee best-possible performance, and maintain data integrity. Typical SAPBW implementa-tions have complex interdependent networks of jobs in place that run every night, week,or month.Previous releases of SAPBW did not provide an integrated solution for scheduling and monitoring those kinds of job networks. This has changed with the introduction of process chains in release 3.0. Process chains allow you to define complex job networks consisting of standard SAPBW jobs, as well as custom jobs; they support visualizing the job network and centrally controlling and monitoring the processes.
    (from "Mastering the SAP BIW")
    New Features in BI 2004s Process Chains
    /people/mallikarjuna.reddy7/blog/2007/02/08/new-features-in-bi-2004s-process-chains
    Designing
    /people/vishvesh.bahirat/blog/2006/11/29/bw-process-chain-design
    Process chain creation in 2004s - step by step
    /people/juergen.noe/blog/2008/01/11/process-chain-creation--step-by-step
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/using%20process%20chains%20in%20sap%20business%20information%20warehouse
    Testing
    We need to test the PC chains.
    You need to test if the extractions are working fine, data is getting loaded into targets, post load activities like activation, rollup, compression etc are successfull etc.
    We schedule / trigger the chains and monitor them. We ensure that all the process types are happening successfully.
    One major area we concentrate on is to identify dependcies in the chain. This will ensure less erros and also reduce chain timings by a great extend. Dependencies should be kept to a minimum whereever possible.
    Also in cases where we use events/third party shceduling tools to trigger BW chains we check that out.
    Thanks,
    JituK

  • HTTP event generator

    I have the following problem: I want to start a process with an event generated by the HTTP event generator. So far so good.
    The problem I have is that I want this process to return a result. I have not been able to drag a Client response on my JPD file because Workshop complains that this is incompatible with static subscriptions and I can't find out how to design a process that start with a dynamic subscription ?
    Does anyone can help ?

    Jeff,
    1. Using event generators you are using the message broker. The message broker is basically an anonymous publish-subscribe mechanism, the receiver does not no anything about the sender (Except it is in the message payload or metadata). So you cannot directly respond to it.
    2. Dynamic subscriptions are also related to the MB and will neither help, Dynamic subscriptions are subscriptions from an already running workflow, meaning the MB sends messages to distinct instances at runtime.
    3. Depending on your business case, you could think about starting a workflow via the webservice interface or via HTTP directly.
    -Kai

  • How to interpret acpi events?

    Hi.
    I installed acpid and with a little tweaking of the handler.sh I got the basic actions to be recognized. Now, how can i get a list, or something, of all avalible events and thay're explanation.  Whan i monitor the /var/log/messages.log i often get 'ACPI group/action undefined: processor / CPU0' or '... termal_zone / TZ1'. How can i find out what those events meen, and how i can use them.
    edit: BTW, i tested the fn key and it seems to work with a lot of keys, including the one for seting up the brightness of the monitor. Does that have something to do with acpid?
    Last edited by KRTac (2008-07-17 00:03:19)

    I don't know that there is any definitive source where you can look up the ACPI events, their parameters and what they mean. Perhaps the ACPI specification (http://www.acpi.info/spec.htm) might have some info, but its 600+ pages of very boring reading. Also note that different manufacturers will use different events. When I moved from a Dell to a ThinkPad I had to modify my ACPI scripts to change names of a number of events and parameters.
    Probably the best you could do is log every ACPI event, run tail -f on the log file and put the laptop through its paces, noting which events correspond to which actions. Try things like opening/shutting the lid (if its a laptop), press various Fn buttons, unplug and plug in the AC cord, run the battery down to zero, run the temperature up as high as you can. This is basically what I did when I first set up my custom ACPI scripts.
    Another thing you should do is look at other peoples ACPI scripts. That will give you ideas about how to use ACPI events. Look up your laptop on http://www.linux-laptop.net/ and scan through the configs to see if anyone set up ACPI scripts.
    Finally, the Fn keys may or may not have to do with ACPI. You can check this by logging ACPI events. My Thinkpad sends an event for every Fn combination. However, some combos have an action hard-wired so that ACPI is not needed. For example, the monitor brightness probably does not have to do with ACPI.
    Good luck.

  • How to manually generate events in SMC 3.5 ?

    Dear,
    We are using the SDK of SMC 3.5 to build an application. To test the application, how can we generate events manually ? I'd like to have a script on Solaris that, when run, generates an event in the SMC database. Does anyone have such a script ?
    Best regards,
    Marc.

    Convert the CR2 files to DNG files, a folder at a time, using the latest DNG Converter that is from Adobe:  http://www.adobe.com/downloads/updates/
    OR buy an upgrade to LR 4.x.

  • How does the invoke event for an Air iOS app work?

    Hi,
    If my app gets invoked for the first time the invoke event isn't fired.
    If the app gets invoked for the second time it is working.
    How to get the event.arguments[0] every time the app gets opened/invoked?
    NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onAppInvoke);
    function onAppInvoke(event:InvokeEvent):void {
    trace("INVOKE ARGS: "+event.arguments[0]);
    Thanks

    Helo fideld, officially Adobe Air don't support Danish language. But I may help you.
    1. Download this file https://www.dropbox.com/s/ytx44mxzdgmlfq2/adt.jar
    2. Go to Air SDK\lib\ folder and backup your original adt.jar
    3. Copy my one from step 1
    You may understand that patched adt.jar was produced by me and not by Adobe.
    I just done this for you as a part of community friendly support. It's allow to add "da" language.
    1. Open your *-app.xml
    2. Add lang="da"
    3. Go to supportedLanguages in XML and add "da" also there so it's will be like "en fr de da".
    Patched ADT was made from original latest 4.0.0.1619 and you must use http://labs.adobe.com/downloads/air.html 4.0.0.1619 before apply this patch
    This works well, just tested!

  • Problems creating RDBMS Event Generators in a WebLogic cluster

    Hi Everybody,
    I just set up an integration cluster with one admin server and two managed servers into only one computer.
    My deployed Application needs an RDBMS Event generator with 5 channel rules to be created and when I create the first channel rule I get this exception:
    java.lang.NullPointerException
    at com.bea.wli.management.configuration.RDBMSEventGenChannelConfiguration.equals(RDBMSEventGenChannelConfiguration.java:285)
    at java.util.LinkedList.indexOf(LinkedList.java:398)
    at java.util.LinkedList.contains(LinkedList.java:176)
    at java.util.AbstractCollection.removeAll(AbstractCollection.java:354)
    at com.bea.wli.management.mbconnector.rdbms.RDBMSEventGenConfigManager.setChannels(RDBMSEventGenConfigManager.java:886)
    at com.bea.wli.management.mbconnector.GenericEventGenConfigurationMBeanImpl.setChannels(GenericEventGenConfigurationMBeanImpl.java:59)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
    at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
    at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1662)
    at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1109)
    at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:372)
    at com.bea.wli.management.internal.WLIConfigurationMBeanImpl.setAttribute(WLIConfigurationMBeanImpl.java:152)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
    at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
    at weblogic.management.internal.RemoteMBeanServerImpl.private_setAttribute(RemoteMBeanServerImpl.java:431)
    at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:387)
    at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:735)
    at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:469)
    at com.bea.wli.management.configuration.GenericEventGenConfigurationMBean_Stub.setChannels([Lcom.bea.wli.management.configuration.GenericEventGenChannelConfiguration;)V(Unknown Source)
    at com.bea.wli.oam.eg.framework.XEGHelper.updateEventGenerator(XEGHelper.java:243)
    at com.bea.wli.oam.eg.framework.XEGMainServlet.saveGenerator(XEGMainServlet.java:709)
    at com.bea.wli.oam.rdbmseg.RDBMSMainServlet.submitChannel(RDBMSMainServlet.java:349)
    at com.bea.wli.oam.eg.framework.XEGMainServlet.processRequest(XEGMainServlet.java:88)
    at com.bea.wli.oam.eg.framework.XEGMainServlet.doPost(XEGMainServlet.java:151)
    at com.bea.wli.oam.core.BaseServlet.userService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Unknown Source)
    at com.bea.wli.oam.core.BaseServlet.run()Ljava.lang.Object;(Unknown Source)
    at
    The funny thing is that in my one server development / test production environment I don't have any problems at the time of the RDBMS Event generators...
    Please anyone can help me? Any special JMS queue need to be created or something?? I'm becoming desperate!!
    Thank you all!
    Oscar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Well
    At last I've found the answer...
    In order to successfully create an RDBMS Event Generator, the creation app (in this case, wliconsole) must have access to the destination datasource. Thus, both connection pool and datasource targeted by the RDBMS EG must be deployed in the same server running the wliconsole.
    In this particular case, I just had to redeploy my datasources targetting all servers in the cluster plus the admin server and that's it...
    See you...
    O.

  • How to cancel the event in Item Adding and display javascript message and prevent the page from redirecting to the SharePoint Error Page?

    How to cancel the event in Item Adding without going to the SharePoint Error Page?
    Prevent duplicate item in a SharePoint List
    The following Event Handler code will prevent users from creating duplicate value in "Title" field.
    ItemAdding Event Handler
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    if (properties.ListTitle.Equals("My List"))
    try
    using(SPSite thisSite = new SPSite(properties.WebUrl))
    SPWeb thisWeb = thisSite.OpenWeb();
    SPList list = thisWeb.Lists[properties.ListId];
    SPQuery query = new SPQuery();
    query.Query = @"<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + properties.AfterProperties["Title"] + "</Value></Eq></Where>";
    SPListItemCollection listItem = list.GetItems(query);
    if (listItem.Count > 0)
    properties.Cancel = true;
    properties.ErrorMessage = "Item with this Name already exists. Please create a unique Name.";
    catch (Exception ex)
    PortalLog.LogString("Error occured in event ItemAdding(SPItemEventProperties properties)() @ AAA.BBB.PreventDuplicateItem class. Exception Message:" + ex.Message.ToString());
    throw new SPException("An error occured while processing the My List Feature. Please contact your Portal Administrator");
    Feature.xml
    <?xml version="1.0" encoding="utf-8"?>
    <Feature Id="1c2100ca-bad5-41f5-9707-7bf4edc08383"
    Title="Prevents Duplicate Item"
    Description="Prevents duplicate Name in the "My List" List"
    Version="12.0.0.0"
    Hidden="FALSE"
    Scope="Web"
    DefaultResourceFile="core"
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
    <ElementManifest Location="elements.xml"/>
    </ElementManifests>
    </Feature>
    Element.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListTemplateId="100">
    <Receiver>
    <Name>AddingEventHandler</Name>
    <Type>ItemAdding</Type>
    <SequenceNumber>10000</SequenceNumber>
    <Assembly>AAA.BBB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8003cf0cbff32406</Assembly>
    <Class>AAA.BBB.PreventDuplicateItem</Class>
    <Data></Data>
    <Filter></Filter>
    </Receiver>
    </Receivers>
    </Elements>
    Below link explains adding the list events.
    http://www.dotnetspark.com/kb/1369-step-by-step-guide-to-list-events-handling.aspx
    Reference link:
    http://msdn.microsoft.com/en-us/library/ms437502(v=office.12).aspx
    http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspx
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

    Recommended way for binding the list event handler to the list instance is through feature receivers.
    You need to create a feature file like the below sample
    <?xmlversion="1.0"encoding="utf-8"?>
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/"
    Id="{20FF80BB-83D9-41bc-8FFA-E589067AF783}"
    Title="Installs MyFeatureReceiver"
    Description="Installs MyFeatureReceiver" Hidden="False" Version="1.0.0.0" Scope="Site"
    ReceiverClass="ClassLibrary1.MyFeatureReceiver"
    ReceiverAssembly="ClassLibrary1, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=6c5894e55cb0f391">
    </Feature>For registering/binding the list event handler to the list instance, use the below sample codeusing System;
    using Microsoft.SharePoint;
    namespace ClassLibrary1
        public class MyFeatureReceiver: SPFeatureReceiver
            public override void FeatureActivated(SPFeatureReceiverProperties properties)
                SPSite siteCollection = properties.Feature.Parent as SPSite;
                SPWeb site = siteCollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                SPEventReceiverDefinition rd = list.EventReceivers.Add();
                rd.Name = "My Event Receiver";
                rd.Class = "ClassLibrary1.MyListEventReceiver1";
                rd.Assembly = "ClassLibrary1, Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=6c5894e55cb0f391";
                rd.Data = "My Event Receiver data";
                rd.Type = SPEventReceiverType.FieldAdding;
                rd.Update();
            public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
                SPSite sitecollection = properties.Feature.Parent as SPSite;
                SPWeb site = sitecollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                foreach (SPEventReceiverDefinition rd in list.EventReceivers)
                    if (rd.Name == "My Event Receiver")
                        rd.Delete();
            public override void FeatureInstalled(SPFeatureReceiverProperties properties)
            public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
    }Reference link: http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspxOther ways of registering the list event handlers to the List instance are through code, stsadm commands and content types.
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

  • I just installed Yosemite.  Notifications Center will not show ICal entries that were on my ICal at time of installation.  How do I get events to show in Notification Center?

    I just installed Yosemite.  Notifications Center will not show ICal entries that were on my ICal at time of installation.  How do I get events to show in Notification Center?

    Submit your feedback requesting this feature directly to Apple using the appropriate link on the Feedback page:
    http://www.apple.com/feedback

Maybe you are looking for

  • Excise configuration in case of Third party sales

    In case of third party sales of a excisable material, where the goods are supplied directly to customer by the vendor. However the customer invoice is sent to the customer my organization How will the excise entries take place? Because in this case g

  • Web service call problem with complex types input

    We are trying to call a web service and pass as parameter some complex types. When invoking the web service everything works well on flex side, but on the server side the input parameters we get from flex are not correct - complex type is removed and

  • Macbook pro won't boot with two new 4GB RAM sticks.

    I have a mid 2010 Macbook Pro. It came with two 2GB RAM sticks. After downloading Lion, my computer started to get sluggish so I thought I would upgrade the ram. I bought two 4GB Corsair RAM sticks and tried to install them. My computer will boot up

  • Not able to keep defualt value in UDF Field

    Hello Frnds, I have one question to you, I want to keep default value in one of the UDF field which is ContNo which is exist in A/R invoice. I want to keep default value =9999999 So to do this I have followed the following process:- First I went to T

  • Fault Handling in BPEL

    Hi, Can anyone explain me how do I handle the faults in my BPEL process. What I want to do is whenever any Faults occur in my Invoke activity I want to capture the error messages and send an email to myself with the error messages. Appreciate if anyo