Search Results

Search found 2 results on 1 pages for 'lodewijk'.

Page 1/1 | 1 

  • How can I add a prefix to a WCF ServiceContract Namespace

    - by Lodewijk
    Hi, I'm trying to implement an UPnP MediaServer in WCF. I'm slowly getting there, but now I've hit a brick wall. I need to add a prefix to the ServiceContract namespace. Right now I have the following: [ServiceContract(Namespace = "urn:schemas-upnp-org:service:ContentDirectory:1")] public interface IContentDirectory { [OperationContract(Action = "urn:schemas-upnp-org:service:ContentDirectory:1#Browse")] void Browse(string ObjectID, string BrowseFlag, string Filter, ulong StartingIndex, ulong RequestedCount, string SortCriteria, out string Result, out ulong NumberReturned, out ulong TotalMatches, out ulong UpdateID); } This listens to the correct soap-messages. However, I need the soap-body to begin with <u:Browse xmlns-u="urn:schemas-upnp-org:service:ContentDirectory:1"> and WCF is now listening to: <Browse xmlns="urn:schemas-upnp-org:service:ContentDirectory:1"> How do I get the prefix there? Does it matter? Or is there another reason why the parameters are not passed into the Browse method?

    Read the article

  • Add mask to input

    - by Lodewijk Wensveen
    I'm trying to achieve the seemingly impossible task of adding an mask to a input field. I have the following code: function addActivationCode(){ newRow = jQuery("div.activationcode:last-child").clone(); newRow.insertAfter(jQuery("div.activationcode:last-child")); newRow.attr("id", "coderow-" + Math.round(Math.random() * 10000)); newRow.find("input").val(""); find("input").mask("9999-9999-9999-9999"); newRow.find("a.coderemove").attr("onclick", "removeActivationCode('" + newRow.attr("id") + "'); return false;"); } function removeActivationCode(id){ jQuery("div#" + id).remove(); } Now I to get the .mask working on my input fields, so far I've only got it working on the new row I'm making and not on the original one. Can anyone help me out?

    Read the article

1