Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [WebService(Namespace="http://kennyw.com/sampleservices/")]
- public class MyService : System.Web.Services.WebService
- {
- [WebMethod]
- public string Hello(string name)
- {
- return string.Format(“Hello {0}.”, name);
- }
- }
- [ServiceContract(Namespace="http://kennyw.com/WCFservices/")]
- [WebService(Namespace="http://kennyw.com/sampleservices/")]
- public class MyService : System.Web.Services.WebService
- {
- [WebMethod]
- [OperationContract]
- public string Hello(string name)
- {
- return string.Format(“Hello {0}.”, name);
- }
- }
- namespace Foo
- {
- [ServiceContract(Namespace="http://kennyw.com/WCFservices/")]
- [WebService(Namespace="http://kennyw.com/sampleservices/")]
- public class MyService : System.Web.Services.WebService
- {
- [WebMethod]
- [OperationContract]
- public string Hello(string name)
- {
- return string.Format(“Hello {0}.”, name);
- }
- }
- }
- <services>
- <service name="YourServiceName">
- <endpoint address="" behaviorConfiguration="httpBehavior" binding="webHttpBinding" contract="Foo.MyService"/>
- </service>
- </services>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement