Is it possible to remove the 'soap12' namespace from the WSDL for basicHttpBinding endpoints (i.e soap 1.1 clients)?

Hello,
We want to import the WSDL from a running WCF service endpoint (which is using basic HTTP binding) in order to implement the same web service interface in a Lotus Notes application. Unfortunately the proxy generator for Lotus Notes doesn't like the particular dialect of WSDL that our WCF service is exposing, in particular it throws a wobbly when it sees
xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/.
Even though soap1.2 isn't being used, the basic http binding is leaving this reference in the wsdl and Lotus Notes seems to think this is a SOAP 1.2 WSDL file even though I know it's a SOAP 1.1 compatible file.
In order to get around this I'm using disco.exe to pull the wsdl files down locally, manually edit the files to remove this unused name space and then edit all the schema import locations to convert lines such as http://localhost:7780/MEX?xsd=xsd0 to lines such as file://\wsdl\MEX.xsd etc...
Is there a simple setting somewhere that will remove that 'soap12' fragment from the wsdl? It's a bit of a pain because we are in a development phase and so the WSDL isn't completely stable at the moment and is changing frequently which requires this manual editing stage.
Thanks
Paul.

The following method works correctly for me:
public class Soap11WsdlExporter : WsdlExporter
    public override MetadataSet GetGeneratedMetadata()
        var metadataSet = base.GetGeneratedMetadata();
        foreach (var metadataSection in metadataSet.MetadataSections)
            var description = metadataSection.Metadata as System.Web.Services.Description.ServiceDescription;
            if (description != null)
                var namespaces = description.Namespaces.ToArray();
                var newNamespaces = new XmlSerializerNamespaces();
                foreach (var ns in namespaces)
                    if (ns.Name.ToLower() != "soap12")
                        newNamespaces.Add(ns.Name, ns.Namespace);
                description.Namespaces = newNamespaces;
        return metadataSet;
public class MyServiceHostFactory : ServiceHostFactory
    protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
        ServiceHost serviceHost = new ServiceHost(serviceType, baseAddresses);
        var useSoap11 = true;
        //We only removing SOAP12 namespace only if all the bindings use SOAP11.
        foreach(var endPoint in serviceHost.Description.Endpoints)
            useSoap11 &= endPoint.Binding.MessageVersion.Envelope == EnvelopeVersion.Soap11;
        if (useSoap11)
            var behavior = serviceHost.Description.Behaviors.Find<ServiceMetadataBehavior>();
            if (behavior != null)
                behavior.MetadataExporter = new Soap11WsdlExporter();
        return serviceHost;
Hope this helps
Another Paradigm Shift
http://shevaspace.blogspot.com

Similar Messages

  • Is it possible to remove my hard drive from the Macbook and install it in a new Macbook Pro?

    I currently have a 2009 Macbook and am wanting to upgrade to a new Macbook Pro.  I have upgraded my hard drive in the macbook to a 500gb and have a duel boot with Windows 7 installed with Boot Camp along with other software that I do not want to lose.  Is it possible to remove my hard drive from the Macbook and install it in a new Macbook Pro?

    A much better solution is to hook your two Mac together and the first time you start the new Mac and it asks if you wish to recover data from another Mac, answer yes. This will invoke Setup Assitant which will do the job for you but intelligently.
    I know because I just used Setup Assitant. It worked like  a charm.
    Allan

  • Is it possible to remove a crash report from the server?

    I clicked on the Crash Reporter button thinking that it would let me review the report before it was sent out. Unfortunately, all it did was send the report. I do not want that report on the server and I would like to have it removed but I do not know how to go about this.
    OS: Windows 7 Ultimate 64-bit (SP1)
    FF: 17.0.1

    There is no personal Information on a crash Report unless you put something personally identifiable in the comment field. For example, here is a crash report I had on my machine awhile back: https://crash-stats.mozilla.com/report/index/bp-1de8924f-7068-4702-a410-89c492121220.
    You can go to about:crashes in your address bar, and click on the report to view the info there to satisfy yourself that there is nothing in the report. But submitting crash reports is very useful because it gives us the ability to view what crashes are plaguing our users and what we need to fix.

  • Is there a way to remove the folder icons from the bookmarks toolbar without removing the favicons for the websites?

    Hi
    In Firefox , I would like to remove the folder icons in my bookmarks toolbar. However I do not want to remove the favicons (logos) from the websites in the bookmark folders and the bookmarks toolbar.
    If possible I would like to use userchrome to do this. (I'm not very good at userchromes though, so a clear explenation would be highly appreciated)
    Thanks

    Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #personal-bookmarks .bookmark-item[container] .toolbarbutton-icon {display:none !important;}
    </nowiki></pre>
    * http://kb.mozillazine.org/Editing_configuration
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html

  • How can I remove the Location column from the search results in a .chm file?

    How can I remove the Location column from the search results in a .chm file?
    I generated the file in Robohelp HTML 9.
    As far as I know it's used when you've combined more than one source into the final help file. It is possible (though I don't remember doing it) that I did that once a couple of years ago but now I'm only using one source - the project that's generating the .chm.
    Can anyone tell me how I can remove it?
    Thanks
    Tom

    In Project Setup look at the Window properties. I think you will find Advanced Search is ticked.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How do I remove the Skype icon from the desktop that is on my left on the taskbar ?

    Greetings to all, I have a Windows 7. 64--bit with SP--1. I have been unable, by searching, to find a way to remove the Skype icon from the desktop. It is on my left on the taskbar. Do I need to remove it in the registry ? If yes, how ? Thank you Ldxrunner

    Hi,
    Are you trying to remove Skype entirely, or just get rid of the tool tray icon?
    IIRC, you get that icon as long as Skype is running in the background.  There's a checkbox in Skype options that will keep it from running on startup.  That will eliminate the icon but you won't get notified for incoming calls.
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • I have got a lot of apps, which are not installed on any of my iDevices anymore. is there a possibility to remove all those apps from iTunes without searching which ones are, and which ones aren't installed on one of my iDevices?

    I have got a lot of apps, which are not installed on any of my iDevices anymore. is there a possibility to remove all those apps from iTunes without searching which ones are, and which ones aren't installed on one of my iDevices?

    Assuming all the device(s) have been synced to this computer as its Home computer. The easiest way would be to delete all the apps from iTunes. After which connect your device(s) to the computer (iTunes) and transfer purchases from the device(s) by right click (control click) the device name in the left sidebar and the click transfer purchases. When done only the apps on your device(s) will be in you iTunes library.
    Hope that helps

  • How can I remove a mailbox address from the "From" drop down box in a new e-mail my old e-mail address continue to populate as the sender address

    How can I remove a mailbox address from the "From" drop down box in a new e-mail my old e-mail address continue to populate as the sender address

    Hello,
    Try Mail>Preferences>Accounts icon>Account Information tab>Click on the Outgoing SMTP server drop down, choose edit Server list, highlight the old one & click Remove.
    (Such convolution is worthy of Windows® in my estimation)

  • Can I remove a SPECIFIC file from the "Recents" list?

         As far as I can see, Adobe Reader for Android has only the option of clearing ALL the files in the "Recents" list. It doesn't have the option of removing a specific file from the "Recents" list.
         Maybe I'm just missing the option I'm talking about or Adobe Reader doesn't really have that feature.
         Sensible answers to my question will be greatly appreciated. Thanks!

    Hi iSTULIN
    I assume you can delete the complete list, not the single file ...
    Please check the below link : http://blogs.adobe.com/readermobile/2011/09/09/faqs-for-adobe-reader-on-android/
    You can raise a feature request on the below link : https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • How do I stop my MacBook removing all my icons from the desktop ?

    How do I stop my MacBook removing all my icons from the desktop ?

    Hi Matt
    After I create say a word document, file it on my desktop and then shut down my machine. The next time I open up the MacBook the file icon has been removed from the desktop. I can still retrieve the file in a folder labeled with the month I created it. But why has the OS removed it from the desktop and how can I stop it happening?
    It happens to alias icons as well!
    Regards

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

  • How can I remove multiple copies of the same song from the iTunes listing?

    How can I remove multiple copies of the same song from the iTunes listing. The program seems to be picking up the same songs from, for example, my user area and my public area in the C drive

    As above, Apple's official advice is here... HT2905 - How to find and remove duplicate items in your iTunes library, however it is a manual process and the article fails to explain some of the potential pitfalls.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve/merge ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    tt2

  • Help. Need to remove one of the listed QuickTimes from the "open with" menu

    When I bring up the 'Open with' menu on an audio file I have QuickTime Player (7.3.1) and just below that I have QuickTime Player (7.2.1). I would like to remove the 7.2.1 listing from this menu. There is on one version on my computer (7.3.1). The last update must have placed the newer listing in this menu and left the older listing. Is there a way to remove the older listing from the open with menu?

    Did you ever do an archival and install of your OS? If so, you have what is called previous system fold on your main hard drive. This is where you can find the player to the version. If not I guess what happen to you is strange...mmm... And I guess it could happen.

  • How do I remove my iWeb pages from the Home folder so I can publish to a new host?

    I have moved my MobileMe site to a new service (GoDaddy).  The basic transfer went very smoothly.  With one tiny hitch:  the new URL text.
    IWeb places web  pages in folders, each folder being a  "site." The name of the root folder automatically becomes a "pointer" to the web site -- and part of the URL text.
    My current root folder  is named DavidChartrand -- me.  So..... when I published everything over to GoDaddy the text "DavidChartrand" was attached to my URL. 
    Instead of seeing www.davidchartrand.com in the URL bar, visitors  see:   www.davidchartrand.com.com/DavidChartrand
    GoDaddy staff says this is simply a quirk in iWeb's design.  Fine, but it's annoying.  Is there anyway I can keep using iWeb but somehow remove the root folder.....that is, remove my site pages from the root folder and and then re-publish? GoDaddy tech support swears it  has many former MobileMe/iWeb users who have done this successfully but offered had no idea how.
    David

    The way iWeb publishes its websites, in its own folder, the normal URL is http://www.domain_name.com/Site_name/Page_name.html.  This is a normal URL for any web host.
    If you want to get rid of the site name you will need to publish your website to a folder on your hard drive and upload only the contents of the website folder to your server with a 3rd party FTP client like YummyLite, Transmit or Cyberduck.  That will get rid of the site name in the URL. 
    Of course remove the existing website foldr from the server beforehand.
    I believe the folder you publish to on GoDaddy is named public_html.  You might try renaming your website to "public_html" and publish to GoDaddy.  In theory iWeb will see the website's folder already on the server and publish the website file into it. 
    It works that way with HostExcellence.com which names the home folder the same as the domain name associated with it. This tutorial explains more about it: iW16 - Using HostExcellence.com with iWeb
    OT

  • How can I  remove my credit card from the automatic billing for my account?

    How can I remove my credit card from the automatic billing for my account?

    The following has instructions for changing iTunes payment method: http://support.apple.com/kb/ht1918

Maybe you are looking for

  • Apps will not open at login. what can i do?

    hi, i've set a few of my apps to open at login/startup. the problem is they never open, i have to open each of them manually. it is really frustrating. i've set my apps through System Preferences and the apps themselves. is there anything i can do to

  • 1.4.2_02 to 1.4.2_04 prob

    Hello! I have recently uninstalled jdk1.4.2_02 and installed jdk1.4.2_04, but when I go to start JWS, it says "Bad installation. Error invoking Java VM (SysExec) C:\Program Files\Java\j2re1.4.2_02\bin\javaw.exe" I have searched all files on my comput

  • Query Selection Box Descriptions

    When I set up selections options in the 'WHERE' statement the selection fields default to standard text such as: Posting Date                          Greater or equal Posting Date                          Smaller or equal Description in Foreign Lang

  • Clients Disconnecting

    We aeem to have an issue where certain clients (looks only like win7) keep disconnecting from the WIFI. We have APs running in FlexConnect mode and registered to a remote controller. XP clients seem to be ok. Anyone come across this, or know where to

  • IllegalMonitorStateException on notify()

    I have a ready thread that runs a timer from up to down: public void run(){                     int counter = timeInSeconds;                     try {                          if (countDown){                               while (counter > 0 && !stop)