locked
Service doesn't expose all operations RRS feed

  • Question

  • My problem is the following: I have a service, the interface contains 4 methods and only 2 are exposed when deployed to IIS. If I run the webserive in vs.net integrated web server (casini) I can see all the methods.

    There is nothing strange about the methods.
    First I though I did something wrong with the datacontract. But then I let the service just return a string. And still no result:
    Does anyone have advise for me:

    Here is my interface:

    [ServiceContract]
        public interface IMobileServices
        {
            [OperationContract]
            String RetrieveFlows();

            [OperationContract]
            bool ProcessReceive(string receiveResult);

            [OperationContract]
            string RetrieveSomeData();

            [OperationContract]
            String RetrieveDDDMData(string dmlnr);

        }

    The RetrieveSomeData for instance, that looks like this:

    public string RetrieveSomeData()
            {
                return "blabla";
            }

    I just created this to do a test. But nothing. It only shows the first two operations.
    Am I missing something?
    Wednesday, May 27, 2009 1:58 PM

Answers

  • This can only happen if IIS and VS Dev Server are pointing to different locations
    Vivek Desai MCTS (WCF)
    • Marked as answer by Spoofer Thursday, May 28, 2009 7:20 AM
    Wednesday, May 27, 2009 2:53 PM

All replies

  • This can only happen if IIS and VS Dev Server are pointing to different locations
    Vivek Desai MCTS (WCF)
    • Marked as answer by Spoofer Thursday, May 28, 2009 7:20 AM
    Wednesday, May 27, 2009 2:53 PM
  • They were pointing to the same files, I have no explanation for this
    Too weird
    Wednesday, May 27, 2009 5:42 PM
  • I used your [SC] and I was able to see all 4 operations under wsdl:portType node (hosted in IIS)

    I am not sure if this will help but can you please post <system.serviceModel> section of your web.config.


    Amit Sharma
    Wednesday, May 27, 2009 6:54 PM
  • try rebuild and deploy the wcf sevice agian.
    you have a dream,you gonna protect it! http://www.cnblogs.com/frank_xl
    Thursday, May 28, 2009 3:07 AM
  • Sorry today, after some sleep I checked my setup again and I noticed that I was refering to the wrong virtual directory.
    It couldn't be anything else
    Thursday, May 28, 2009 7:20 AM