locked
HowTo localize a web service description RRS feed

  • Question

  • User-300525227 posted

    Hello,

     I'm trying without success to localize a web service desciption.

    Example:

        [WebMethod(Description = "Add 2 numbers")]
        public Double Add(double num1, double num2)

          .

          .

     

    Question:

    How can I replace the description string with a resource string?

    I added a global resource and inserted a resurce string, but the syntax below didn't work.

        [WebMethod(Description = Resource.myResource.WM_Add2Numbers)]
        public Double Add(double num1, double num2)

     

    Can anybody help me?

     

    regards

    Christian 

     

     


     


     

    Thursday, June 7, 2007 6:04 PM

Answers

  • User-1602404920 posted

    Hi Cristian,

     Are you setting your language in the webservice?  My understanding is that they don't use the same threadas the rest of the application, so you will have to pull in the language you want to the service and reset the language of the thread.

     reagrds,

    Michael
     

     
     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 8, 2007 5:04 AM