Last post Oct 08, 2012 09:09 AM by kushalrdalal
Oct 07, 2012 01:08 PM|JohnKainn|LINK
I have created a wcf web service. In it I have a method: GetData(int number).
I am able to call the method in code behind in aspx.cs page and get value returned.
I need to provide the url for the webservice method to be used in another webservice.
In App_WebReference the SourceUrl in Metadatafile is SourceUrl="http://[... Mywebsite.com ...]/Service1.svc?xsd=xsd2"
Is it possible to provide a url with parameters that can be used for another web service to consume.
I would appreciate your help.
Oct 08, 2012 05:09 AM|shanmugamm|LINK
i think u r checking ur web service url in wrong place.u need to check with your web.config or app.config
You could use the url without any parameters
Oct 08, 2012 09:09 AM|kushalrdalal|LINK
Is it normal wcf service or Restful wcf service?
What exactly you are trying to do?
You have GetData method in your service that you want to consume in another service then add reference to the service where you want to consume and then you can access that method.
If it is rest service with POST then you can have url with webmethod name and then client can access that method by posting the value.