¿Puedo usar un punto de inicio de sesión en el nombre del método del servicio web?

I have to create webservice with method that contains '.' sign in it`s name. Is there any way I can do that in c# webservice?

I have to create web service that other company will use and their require is to call a method with specified name, for example "some.function". I've tried using MessageName with WebMethod attribute like this:

[WebMethod(MessageName="some.function")]
public string MyFunction(){
  return "something";
}

but soap client still has to call MyFunction, not some.function (I tried writing client in php, ruby, c#).

preguntado el 28 de julio de 12 a las 23:07

por favor vea mi pregunta editada -

You can not declare a method name containing a .. But a webservice containing dot? yes. -

A webService is, at the end, sending and receiving xml-soap messages(or json or xml or pure text etc.). You can always hook somewhere, read the message and dispatch to an appropriate function. I used many times HttpListener for these type of requests. -

0 Respuestas

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.