Is there a way to enter the url in browser in such a way that it also has the object needed as argument of a wcf webservice? In easy words. I've a webservice's operation contract which receives an object. What url should I type in browser to call that function? Thanks!
Asked
Active
Viewed 414 times
1 Answers
1
I've a webservice's operation contract which receives an object. What url should I type in browser to call that function?
NO, that's wrong way of doing it; instead have your operation accepts the object as argument and pass it while calling it like
[OperationContract]
public void Operation1(Student stu) { ... };
While calling
Student stu = new Student();
wcfproxy.Operation1(stu);
This post may help
-
I know that. But I want to know if I want to do it in url. Can I. If yes how? – Musarrat Saeed Jul 04 '15 at 19:32
-
okay. And what to do if the client is an android application? what code is needed? – Musarrat Saeed Jul 04 '15 at 19:47
-
So the link you gave me. Means there is no other way like typing in the url manually in browser. Right? – Musarrat Saeed Jul 04 '15 at 19:55