how to get rid of tempuri as import namespace in WCF

Posted on 2011-10-26
Last Modified: 2012-05-12
i want to get rid of the tempuri namespace in my WCF web service.  so i did this:

in the svc.cs file:

[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, Namespace = Constants.DATALOOKUP_NAMESPACE)]

in the interface file:

[ServiceContract(Namespace = Constants.DATALOOKUP_NAMESPACE)]

however, in the wsdl file i still see the import namespace as tempuri:\

<wsdl:definitions name="HeartBeatIntegration" targetNamespace="" xmlns:wsdl="" xmlns:wsa10="" xmlns:wsx="" xmlns:soap12="" xmlns:wsu="" xmlns:wsp="" xmlns:wsap="" xmlns:msc="" xmlns:wsa="" xmlns:wsam="" xmlns:wsaw="" xmlns:tns="" xmlns:soap="" xmlns:i0="" xmlns:xsd="" xmlns:soapenc="">
  <wsdl:import namespace="" location="" />

can someone tell me how to get rid of these remaining tempuri namespaces?  thanks.
Question by:mmingfeilam
    1 Comment
    LVL 21

    Accepted Solution

    Those could be coming from your Data and/or Message contracts.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    This tutorial will show you how to add an attribute to an XML ( stream returned from a Windows Communication Foundation ( (WCF) Web Service.  Some knowled…
    While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now