Passing parameters in url of c# soap web service?

You can access them in QueryString. To access the query string use HttpContext.Current.Request.QueryString.

If you're going to call it this way, the parameter names should match those expected by the webservice. You also need to include your method name, e.g. : http://MyWebService. Asmx/MyMethodName?

MyParam=true&myOtherParam=false.

When you say the method name, could this be the name of the constructor that is used when the service is first used. – Boardy Nov 2 at 13:15 Do you not have a method (function) in your web service decorated with the WebMethod attribute? – Widor Nov 2 at 13:17 Yea I do, but I thought it would be simpler to set variables from the parameters in a constructor then modifying several methods which is what I would need to do – Boardy Nov 2 at 13:20 Whichever method you want to call (the one that has that attribute) should be specified in your URL.

– Widor Nov 2 at 13:21.

I would recommend looking at Restful WCF. Your service contract will look something like this: ServiceContract public interface IYourService { OperationContract, WebInvoke(Method = "GET", UriTemplate = "YourMethod? MyParam={myParam}&myOtherParam={myOtherParam}") void YourMethod(bool myParam, bool myOtherParam) {...} }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions