WebMethods via plain URL

  • Thread starter Thread starter matthew.wooding
  • Start date Start date
M

matthew.wooding

Hello Wise people,

I have created a WebMethod declared like this:

[WebMethod]
[SoapDocumentMethod(ParameterStyle = SoapParameterStyle.Bare)]
public System.Xml.XmlDocument APIMessage(string xRequestString)
{
...

which works fine if you access it via http://www.blah.com/service.aspx/APIMessage
and pass in XML as a string starting xRequestString=...

My colleague needs to be able to post to the bare URL, eg:
http://www.blah.com/service.aspx. Is this possible? I've been prodding
this problem for a while but I'm a bit in the dark about SOAP and so
on. It doesn't seem like a wierd thing to want to do. (it was so easy
in classic asp!).

All advice appreciated.

Thanks.

--Matt
 
Matt,

There is no reason he can't post to that URL. After all, that's really
what a web service is. You just post to that URL and recieve the response.
ASP.NET just makes it that much easier for you to develop these services
that adhere to these standards by allowing you to attribute the methods you
want to expose and then doing the rest of the work (translating to/from
soap, etc, etc).

He just has to post the information correctly to the URL.
 
Back
Top