Programmatically playing the "next" video in a playlist results in the old video playing as well

(Using OSMF v1.6)
When a video has finished playing, my player will automatically play the next video in a playlist, after doing the following:
var loadTrait:LoadTrait = myMediaElement.getTrait(MediaTraitType.LOAD) as LoadTrait;
loadTrait.unload();
myMediaContainer.removeMediaElement(myMediaElement);
myMediaPlayer.media = null;
--- proceeds to create the new mediaElement (ex: myNewMediaElement) with appropriate metadata, etc
myMediaContainer.addMediaElement(myNewMediaElement);
myMediaPlayer.media = myNewMediaElement;
Invariably this has resulted in the new video playing normally, but the *old* video also playing, I assume as an element/player/container behind the new one. So you get two simultaneous audio streams.
Executing the same sequence of commands with a user interaction (i.e. clicking a "next" button to play the next video) does not display this behavior.
I have done some searching and I cannot find anything else to try; does anyone have any ideas?
Thanks!

Hi jethroq,
please report an issue at https://bugs.adobe.com/jira/browse/FM providing a replication example code and asset links; it seems that you use also a youtube plugin, so it's hard for us to replicate your sutuation.

Similar Messages

  • How do I uninstall the old Chrome format as well as the Chrome browser

    I can't change the font on Chrome so I decided to uninstall it an re-install it, but then the old format is preserved, including the font (it's currently very hard to read font). So how can I erase the previous format as well so I can have a clean Chrome start.

    There is probably a .plist file /folder in your home/Library/Preferences folder. Trash that as well.

  • When using a youtube playlist I made it won't automatically go to the next video when using firefox but does with chrome,so what's wrong?

    When I play my youtube video playlist it won't automatically go to the next video as youtube is set to do.I have to manually start the nexrt video.What is wrong?If I use the chrome browser it works just fine,so it must be a problem with firefox.Anyone have any ideas?

    I suggest you to upgrade Firefox to version 7 and post back to us
    * getfirefox.com

  • Firefox hangs when trying to play YouTube videos. Ending task starts the video and application, but the same thing happens when trying to view the next video. Any advice is greatly appreciated.

    Task Manager shows that Firefox is still running. Clicking End Task restarts the video playing and application running (then I have to cancel the End Task and Close Program processes).

    Try uninstalling Flash Player 10.2 and install the previous version, 10.1.There have been a few reports of problems with Flash that have been solved by using the previous version. You can download the uninstaller for Flash, and get version 10.1 from http://kb2.adobe.com/cps/142/tn_14266.html
    The Adobe archive files contain multiple versions of 10.1 for all operating systems so is quite a large download, the old-apps lets you just download the Windows versions that you require - http://www.oldapps.com/flash_player.php
    You can also try disabling hardware acceleration on Flash to see if that helps. If you can access any Flash content, right-click on it and choose Settings. In the first section of the settings is the option to enable/disable hardware acceleration.

  • After 6.0.4.2 Upgrade next video in playlist won't display but I hear audio

    I've been fighting this since I did the 6.0.4.2 on my windows machine. Any Playlist of videos purchased or free will only playthe first video I click on but won't play the next video. Ijust hear the audio and see a still shot from the prior video. I did try to reintall 6.0.4.2 and opted to repair it and that hasn't helped.
    Any suggestions?
    P

    I still haven't received a reply on this problem. However, My reply to myself states a solution I found that worked for me. I hope it works for others. I forgot to return and give a deltailed explanation of what I did. Now it has been a while , I'll do my best to explain.
    Software with many settings like iTunes offers will usually us a User Preference file to hold the settings. This is the file I found and deleted so the very next time iTunes started it created a new file to replace the missing file. I then changed all the settings to the way I prefer them to be and they took hold and held. This solved my issue.
    You next question is, where to find that file. Look for this file in the directory structure like this;
    Open a Window that will allow you to see the drive structure. Go to your main drive. On that drive look for a Folder called Documents and Setting. From there got to the acount name you are logged in under. Then go to the
    folder called Application Data. After that and I should say under that look for a folder for Apple Computer. Under Apple Computer you will see a folder called iTunes. There will be some more folders but at this point you need to look at the files in the iTunes folder. You will want to delete the one "iTunes.pref" This was the file giving me some issues.
    Your case may be so this might not work for you but give it a try. It might help.

  • Youtube playlist won't autoplay next video

    Is anyone else having trouble with youtube playlist playback? At the end of a video, a thumbnail of the next video displays with "Up Next 1s" countdown timer frozen. I have to go back to the playlist and select and play the next track manually.

    Thanks for the update. If you restored using the apple TV menu, I would next use iTunes to restore it which will completely reinstall the operating system on the device. 
    Apple TV (2nd and 3rd generation): Restoring your Apple TV
    This restore process requires a micro-USB cable (sold separately), a computer with iTunes, and a high-speed Internet connection. This will install the latest software and revert the device to factory settings.
    Disconnect the power and HDMI cables from the Apple TV.
    Verify that you are using the latest version of iTunes:
    Mac: Choose iTunes > Check for Updates
    Windows: Choose Help > Check for Updates
    Open iTunes on your computer.
    Connect your Apple TV to a computer (determine which Apple TV model you have):
    Apple TV (2nd generation): Connect one end of the micro-USB cable to the back of your Apple TV, and the other end to one of your computer's USB ports.
    Apple TV (3rd generation): Connect one end of the micro-USB cable to the back of your Apple TV, and the other end to one of your computer's USB ports. Connect the power cable from your Apple TV to a power outlet.
    Click Restore Apple TV from the Apple TV summary page. This step may take some time, depending on the speed of your Internet connection.
    Note: If you don't see the above screen in iTunes, it may be necessary to choose Apple TV from the upper right of the iTunes window.
    During the restore, do not unplug any cables.
    After the restore process completes and the Apple TV icon disappears from iTunes, disconnect the micro-USB and power cables (if applicable), then reconnect to your TV with HDMI and power cables.
    Important: If the Apple TV remains plugged in to your computer with a micro-USB cable after restoring, it may loop back into restore mode. If this occurs, unplug all cables from Apple TV then connect with power and HDMI to your TV normally.

  • How do I get iTunes 11 to work as the old iTunes did in this respect: after playing a song in one playlist, I click on another playlist, highlight a song, press play, and get the result of that song playing & that playlist continuing?

       How do I get iTunes 11 to work as the old iTunes did in this respect: after playing a song in one playlist, I click on another playlist, highlight a song, press play, and get the result of that song playing & that playlist continuing?  As it goes now, one clicks on the song in the new playlist where the arrow is and then chooses 'Play Song Next.'  So, it plays next, but then the song after that is back in the old playlist.  I want to use iTunes smoothly without the extra clicks I've had to do in order to get the playlist to continue.  This is music for background while I play the violin at restaurants, and extra clicks and hassle is quite unappreciated, especailly since it worked fine in the previous iTunes.
       Thanks.

    At the top of the playlist where it shows the playlist title and the number of songs, there are two icons. Click the "play" triangle to add the entire playlist to "Up Next", or the "shuffle" symbol to do the same thing but in random order. But the currently playing track will stop playing, and all the songs in "Up Next" will be removed (replaced by the ones from this playlist).
    If you hold down the "option" key while clicking those icons, the currently playing song will continue playing, and the new playlist will be added to "Up Next" (above the songs that were already there).

  • Many of my older ITunes downloads play perfectly well on my IMac but constantly skip to the next song or suddenly stop playing on my IPhone. The problem is the same with both my old 4s and my new 5s. I have tried deleting and re-downloading to the phones.

    Many of my older ITunes downloads play perfectly well on my IMac but constantly skip to the next song or suddenly stop playing on my IPhone. The problem is the same with both my old 4s and my new 5s  phones. I have tried deleting and re-downloading my music library to the phones, but the result is always the same.

    I'm adding more information:
    in Finder, my iMovie folders are all visible and accessible.  When I click on a clip from iMovie Events folder, Quicktime opens and plays the clip.  ALL my video is not missing - it just isn't showing up in the Event Library!
    This happened all of a sudden, while I was working on iMovie project (on both computers).
    All my Projects are intact, and play when I open them. 

  • For Making iDVDs: How to do I set my videos so they automatically transition to the next video instead of going back to the main menu every time?

    Hello out there!
    Im trying to create a magic iDVD and I have some difficulty navigating my options. Some of my video's that I'd like to add are very short clips and I'd like view them back to back without having to go back to the main menu everytime after every short video clip. For example: a 1:08 minute video of my daughter's birthday and then a 3 minute video of her bithday...how do I make it so the 1:08 minute video automatically transitions to the 3 minute video without me having to go back to the main menu to manually select the next video?
    Please advise! Thank you so much
    citule

    You can't.  But (there's always a but) if you have enough room (i.e. playing time) available in the project you can create a slideshow in iDVD
    and add all of the videos to it.
    If you do that set the Slide Duration time to anything except Manual or Set to Music.  Also do not select an transition.
    When you click on the Create Project button in Magic Movie you'll be able to use the "+" button to add the slideshow to the top menu. 
    OT

  • I had to install a new hard drive because my old hard drives boot files became corrupted, and i want to get all of my music files off the old hard drive and regain all my play counts/ratings/playlists

    Greetings everyone
    as the title says, ive had to install a new hard drive  and i want to transfer my old itunes library onto the new drive, maintaining all playlists/play counts/ratings etc, album artwork if possible. The old hard drive is installed as a slave drive and is completely acessible, but due to the boot files being corrupted i cannot use it as the main drive and therefore operate my old itunes. Also, my ipod no longer contains my music library as itunes synced without my permission and wiped it.
    The only thing i have tried is copying all of my old music files from the old drive by selecting 'add folder to library' and then the old drive, then replacing the new itunes library.itl file with the one from my old itunes. This restores all my playlists and playcounts but when i try to play any of the songs it says that the files could not be found, and i dont fancy locating  8500 music files individually!
    Thankyou for taking the time to read my post, any help will be greatly appreciated.

    Ah, my reply was based on the assumption that you had a default installation of iTunes.
    i.e you had all your music in the iTunes media folder inside your iTunes folder.
    If your iTunes folder is so small compared to the amount of music you have, you must have a different arrangement.
    This complicates you situation considerably.
    iTunes can cope with moving around as long as all the music is in the iTunes media folder, not not if it isn't.
    Your first step should be to get iTunes working on the old drive. This will involve editing the xml library file so that the drive letter is correct and then rebuilding the library from the xml file.
    Then you will need to consolidate your library which moves everything into the iTunes media fodler. After that you will be able to use my first suggestion.
    Step 1
    Find the iTunes folder on the old drive and copy the two library files somewhere else so you can find them again. That's iTunes Library.itl and iTunes Library.xml.
    Now open the copy of iTunes Library.xml with WordPad.
    Look for lines starting:
    Location
    These contain the paths to tracks.
    You will need to use a find/replace to change the drive letter so that it is correct.
    Make sure that you include enough in the "find" so that you only change the right thing.
    Maybe /c:/ and replace with /d:/ or whatever.
    After that, tell iTunes to use the library on the old drive with a shift key start.
    Hold down the shift key and start iTunes, keep holding the shift key until you are prompted to choose a library. Navigate to the iTunes folder on the old drive and choose iTunes Library.itl.
    Then use the method in the following article to rebuild your library;
    http://support.apple.com/kb/HT1451
    Unfortunately the date added will be today for all tracks.
    If iTunes works correctly after this, consolidate your library
    File>>Library>>Organize>>consolidate
    This copies all tracks into to iTunes media folder and could create a problem if you do not have disk space so don't do it if you are unsure about free disk space.
    Check that iTunes works OK and then use the first method.
    Message was edited by: polydorus

  • Play next video

    Is there any way on the remote or iPhone app that you can skip to the next video? Like on a tv show you can just skip straight to the next episode?

    Obviously I could go select the next episode manually. What I need is a shortcut to jump instantly to the next episode.

  • Can I Skip Ahead To Next Video In Menu?

    I've set up my menus, submenus and videos in iDVD, burned a trial disc and am happy with it, except for one thing. When a video is done, I get taken back to the menu every time. I'd like to be able to skip ahead to the next video in the menu, but instead I get a video that isn't near where I want to be. Is there a way I can control what video the skip forward takes me to? How does iDVD determine where to go when the button is pressed?
    Thanks,

    iDVD is designed to return back to the main menu after each movie has finished. Nothing can be done about that unless you string your movies together in one large iMovie project, in which case they will play in sequence, and can be accessed by chapter markers (scene selection buttons).
    To answer your second question, if you have more than one video in a DVD, then each video should have a button to allow you to play it from the beginning. Scene selection buttons, on the other hand, are just entry points in a movie and when you select a scene the movie will continue to play from that point forward through all the other scenes until the movie ends.

  • I am using the old imovie HD on my old Mac laptop... it works fine, but when I export a video to YouTube there is a black frame around it.. how do i get rid of that? thanks!

    I am using the old imovie HD on my old Mac laptop... it works fine, but when I export a video to YouTube there is a black frame around it.. how do i get rid of that? thanks!

    Hi MyAppleID99,
    You may want to check to make sure the clip hasn't been moved back and forth between wide screen and standard aspect ratios; sometimes a combination of letterboxing and pillarboxing can lead to a black frame "windowbox" when playing the final video. You may find the following article helpful:
    Apple Support: What are Letterboxing, Pillarboxing and Windowboxing?
    http://support.apple.com/kb/ht2320
    Regards,
    - Brenden

  • Why did the playlist time format change in iTunes 10.6? Can I get the old format back?

    My iTunes playlists used to give a precise total play time. Now that I downloaded the new version of iTunes, the playlist just estimates the time. So, "1 hour" could mean 1 hour and 2 or 3 or 4 minutes. That is a big problem for people who teach 60-minute fitness classes! I plan my class around that playlist, and 3 or 4 minutes is a big deal. Now I am having to add up the time of songs by hand. What a pain!  Is there any way to get back the old format of time, which estimated exactly "59 minutes" or I think it was more precise, like "00:59:12."  I need this format back.  The estimate of "1.1 hours" is killing me.

    Hello. When I go to "About iTunes," it says "10" but then "10.6 (40)" underneath, in fine print.
    Actually, "40.3" minutes is different from the previous format.  It used to give the time in hh:mm:ss. This is an image of my problem:
    Now that the time is given in decimals, there are some minutes unaccounted for. I have a playlist that is 58 minutes (I added it on a calculator), but iTunes tells me it's 1 hour. I know it doesn't seem like a big deal but it matters when you have a 60 minute class and you are guided by your playlist.

  • Need help on how to programmatically pass the Binary Security Token from C# code in visual studio 2012

    Hi All,
    Below is my signed SOAP request. I don't have any web.config configuration for this also no idea on how to implement message level security. Could you please suggest on implementation.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:v1="http://www.notification/V1.0"
    xmlns:v11="http://www./effectivity/V1.0">
    <soapenv:Header>
    <wsse:Security
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <wsse:BinarySecurityToken
    EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
    ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
    wsu:Id="X509-9B329C3CD7BD01ABE81422559607628108">MIIKZTCCCE2gAwIBAgIKXdo6EQACAAXqazANBgkqhkiG9w0BAQUFADB3MRMwEQYKCZImiZPyLGQBGRYDbmV0MRowGAYKCZImiZPyLGQBGRYKYm9tYmFyZGllcjEUMBIGCgmSJomT8ixkARkWBGFlcm8xFDASBgoJkiaJk/IsZAEZFgRhZXJvMRgwFgYDVQQDEw9BZXJvLUlzc3VpbmctQ0EwHhcNMTUwMTIzMTkzMzIyWhcNMTcwMTIyMTkzMzIyWjCBvzELMAkGA1UEBhMCQ0ExDzANBgNVBAgTBlF1ZWJlYzERMA8GA1UEBxMITW9udHJlYWwxGDAWBgNVBAoTD0JvbWJhcmRpZXIgSW5jLjESMBAGA1UECxMJQWVyb3NwYWNlMScwJQYDVQQDEx5jb2xsYWItZGV2LmFlcm8uYm9tYmFyZGllci5uZXQxNTAzBgkqhkiG9w0BCQEWJm10bF9pdF9vcHNfd2luZG93c0BhZXJvLmJvbWJhcmRpZXIuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzlzvsKg9LVifnEtxq947BXIcMV14ivIOvBgcoTdH6cw44ZUErp8MCSVBZnzJCmaRl4Qb1zUBrIjJk0h5omQPbFTUcpE84oHfvlJzNLknCVirks94RAvqtQFl0RgCl6EKiT3yNNncSI1OjPlL1wmebtghTyyRH3mqixWn2L43AF114nH/uIm5zozxCCIqW4biwx7PaHbuT6Kj3UzmarTXoGCDE8mbwUfCaQowaNWSC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vDnmDbBfvozHPhAWBnmISz0t2ydb7R/SY1cl8NihamCPrtVN/azVDVqvj1kHkrVRM18BGSFowqGixMFQr4rDgB75214FN69a85AnxV5O5ip
    +U9g/JdW2qRSGcfUd1np2QActllDimc+33rp/nXIaoXjRlXhkm+WxCt3Ca5OgwnVm3a4Ceiljj
    +1i5
    +8XV2zngv6eq4HlrBg0sFPaHWdjrIGcNyaWW0h0dPQUuv4Gm3zKDkQ3AQSC3cV5qCqmh6fCaCsI3us2kSJjHMZa
    +OSDLI7K01pDP85TieHeoONBo8mRKsOQ0e1FGXH2BkbXSN1DgfJ1IzddaBbSsnjR5gNrRMmZJnCXnluT8Gmwyv9EKjMit6yt0sWwrADd5ZIjYUnxnrkgfXpPY2kqK2gOl12IHjFK6d5vUsGTlIv9H3OmtCWVBHpR125C0CZvU987z3u9Gv4Jiuv/LpDuv1bNuqNHsQfSqSYsjEreGIP
    +DapzhMOefiv+kN4nLj3Owk4VdQm9
    +dxekwaS7HFwAQGOVik877mXxmjRhwxtZPW0ZrWs3fZ2z90Ppki4cGN/rtaLGz
    +WwicrPt1B34296kQkkIolWtiGjkpnQ==</wsse:BinarySecurityToken>
    <ds:Signature Id="SIG-9B329C3CD7BD01ABE81422559607628111"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:SignedInfo>
    <ds:CanonicalizationMethod
    Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
    <ec:InclusiveNamespaces PrefixList="soapenv v1 v11"
    xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    </ds:CanonicalizationMethod>
    <ds:SignatureMethod
    Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
    <ds:Reference URI="#id-CF533499567BE717AA1422396248543100">
    <ds:Transforms>
    <ds:Transform
    Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
    <ec:InclusiveNamespaces PrefixList="v1 v11"
    xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    </ds:Transform>
    </ds:Transforms>
    <ds:DigestMethod
    Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
    <ds:DigestValue>AYy1/Ni9XTOZy4F3AFagcxkLnws=</ds:DigestValue>
    </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue>B/psgt7s4dcnlAFK9HWPYSPRQi
    +B75tj7zv6KCG2IFd3y3kE0k4DjNyK17ZcqhXkUdxcmDoydbnH
    4WUq7XmeG05w/VTbwn8g8RIoY48NaCOCQsXl6RztxhzRxbeocwngebUclJPnEPw3Nr0zguvNFuPa
    wBkqcYFAgwG2dlwl/B8QVjvu1xjeXlVP5uHfubdpP
    +tG0OnCWztG16108ORqtA2Df3Aj/JnXk2jt
    RcIx6fPNna
    +mv/MtCGOpSO4vDOf66He/UunkKjo/O5OvO9wuRhZOMJcSEkwVHCBAr9qbRGR72snq
    C15GRcCpFyZIP7tElyY1WhBppKNi9j+YA0w9cQ==</ds:SignatureValue>
    <ds:KeyInfo Id="KI-9B329C3CD7BD01ABE81422559607628109">
    <wsse:SecurityTokenReference
    wsu:Id="STR-9B329C3CD7BD01ABE81422559607628110">
    <wsse:Reference
    URI="#X509-9B329C3CD7BD01ABE81422559607628108"
    ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
    </wsse:SecurityTokenReference>
    </ds:KeyInfo>
    </ds:Signature>
    </wsse:Security>
    </soapenv:Header>
    <soapenv:Body wsu:Id="id-CF533499567BE717AA1422396248543100"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <v1:sendNotificationRequest>
    <v1:notificationHeader>
    <sourceAppID>PORTAL</sourceAppID>
    <creationTimestamp>2015-01-27T23:27:16.932Z</creationTimestamp>
    </v1:notificationHeader>
    <v1:notificationTarget>
    <!--Optional:-->
    <userID>?</userID>
    <!--Optional:-->
    <v1:emailChannel>
    <!--Optional:-->
    <v1:fromAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:fromAddress>
    <!--Zero or more repetitions:-->
    <v1:toAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:toAddress>
    <!--Zero or more repetitions:-->
    <v1:CCAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:CCAddress>
    <!--Zero or more repetitions:-->
    <v1:BCCAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:BCCAddress>
    </v1:emailChannel>
    <!--Optional:-->
    <v1:SMSChannel>
    <message>?</message>
    <phoneNumber>?</phoneNumber>
    </v1:SMSChannel>
    <!--Optional:-->
    <v1:portalNotifChannel>
    <creationDate>?</creationDate>
    <expiryDate>?</expiryDate>
    </v1:portalNotifChannel>
    </v1:notificationTarget>
    <!--Zero or more repetitions:-->
    <v1:company>
    <companyId>?</companyId>
    <!--Optional:-->
    <sourceSystemId>?</sourceSystemId>
    </v1:company>
    <!--Optional:-->
    <v11:aircraftEffectivity>
    <!--Zero or more repetitions:-->
    <v11:aircraftFamily>
    <aircraftFamilyName>?</aircraftFamilyName>
    <!--Zero or more repetitions:-->
    <v11:aircraftModel>
    <aircraftModelName>?</aircraftModelName>
    <!--Zero or more repetitions:-->
    <v11:aircraft>
    <aircraftSerialNumber>?</aircraftSerialNumber>
    </v11:aircraft>
    </v11:aircraftModel>
    </v11:aircraftFamily>
    </v11:aircraftEffectivity>
    <!--Optional:-->
    <v11:userEffectivity>
    <!--You have a CHOICE of the next 2 items at this level-->
    <!--Zero or more repetitions:-->
    <role_DN>?</role_DN>
    <!--Zero or more repetitions:-->
    <role_CN>?</role_CN>
    </v11:userEffectivity>
    <!--You have a CHOICE of the next 2 items at this level-->
    <!--Optional:-->
    <v1:forcedNotify>
    <!--You have a CHOICE of the next 2 items at this level-->
    <!--Zero or more repetitions:-->
    <v1:notificationTarget>
    <!--Optional:-->
    <userID>?</userID>
    <!--Optional:-->
    <v1:emailChannel>
    <!--Optional:-->
    <v1:fromAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:fromAddress>
    <!--Zero or more repetitions:-->
    <v1:toAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:toAddress>
    <!--Zero or more repetitions:-->
    <v1:CCAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:CCAddress>
    <!--Zero or more repetitions:-->
    <v1:BCCAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:BCCAddress>
    </v1:emailChannel>
    <!--Optional:-->
    <v1:SMSChannel>
    <message>?</message>
    <phoneNumber>?</phoneNumber>
    </v1:SMSChannel>
    <!--Optional:-->
    <v1:portalNotifChannel>
    <creationDate>?</creationDate>
    <expiryDate>?</expiryDate>
    </v1:portalNotifChannel>
    </v1:notificationTarget>
    <!--Optional:-->
    <notificationChannel>
    <!--Zero or more repetitions:-->
    <userID>?</userID>
    <forcedNotifyChannel>?</forcedNotifyChannel>
    <!--Optional:-->
    <v1:fromAddress>
    <v1:emailAddress>?</v1:emailAddress>
    <!--Optional:-->
    <v1:name>?</v1:name>
    </v1:fromAddress>
    </notificationChannel>
    <!--Optional:-->
    <v11:userEffectivity>
    <role_DN>cn=owner_purchasing,cn=owner,cn=eservices_basic_access,ou=eservices,ou=groups,dc=bombardier,dc=com</role_DN>
    <role_DN>cn=owner_broker,cn=owner,cn=eservices_basic_access,ou=eservices,ou=groups,dc=bombardier,dc=com</role_DN>
    </v11:userEffectivity>
    </v1:forcedNotify>
    <subject>AHMS Notification</subject>
    <payload>You are receiving an AHMS notification</payload>
    <v1:isGroupingAllowed>false</v1:isGroupingAllowed>
    <v1:emailAttachment>
    <v1:fileName>?</v1:fileName>
    <!--Optional:-->
    <v1:fileSize>?</v1:fileSize>
    <!--Zero or more repetitions:-->
    <Content>cid:354298590057</Content>
    <!--Zero or more repetitions:-->
    <ContentEncoding>?</ContentEncoding>
    <!--Zero or more repetitions:-->
    <ContentEncodingType>?</ContentEncodingType>
    </v1:emailAttachment>
    <!--Optional:-->
    <priority>?</priority>
    </v1:sendNotificationRequest>
    </soapenv:Body>
    </soapenv:Envelope>
    Any help would be great.
    I need to programmatically send the token to the webservice and initiate request and response accordingly
    Thanks in advance.

    Hi Shawn,
    Thanks for your help. I am still struggling. There is a Binary security token element which will contain the public version of the certificate,
    with the certificate itself sent along as base64 encoded data.
    Below is my code, if you can suggest:
    ClientSection clientSection = ClientSection)WebConfigurationManager.GetSection("system.serviceModel/client");
    ChannelEndpointElement endpoint = clientSection.Endpoints[0];
    string endpointStr = string.Format("Address: {0}; BindingConfiguration: {1}; Contract: {2}", endpoint.Address.ToString(), endpoint.BindingConfiguration, endpoint.Contract);
    EndpointAddress remoteAddress = new EndpointAddress(endpoint.Address.ToString());
    NotificationServiceClient client = new NotificationServiceClient(endpoint.BindingConfiguration, remoteAddress);
    X509Store store = new X509Store(StoreName.Root, StoreLocation.LocalMachine);
    store.Open(OpenFlags.ReadOnly);
    X509Certificate2 cert = new X509Certificate2();
    for (int i = 0; i < store.Certificates.Count; i++)
    if (store.Certificates[i].Subject == "E=[email protected], CN=collab-dev.aero.bombardier.net, OU=Aerospace, O=Bombardier Inc., L=Montreal, S=Quebec, C=CA")
    cert = store.Certificates[i];
    //byte[] rawdata = cert.GetRawCertData();
    //BinarySecretSecurityToken token = new BinarySecretSecurityToken(rawdata);
    X509SecurityToken token = new X509SecurityToken(cert);
    client.ClientCredentials.ClientCertificate.Certificate = cert;
    // instead of certificate the enoced token needs to be sent.
    Any help would be great. I am totally new to wcf.
    Thanks.

Maybe you are looking for