Sep 30 2007

First Post from Windows Live Writer

Category:Bil@l @ 09:57

I am posting my first post from the Windows Live Writer. I haven't tested it yet, but you can have a look at it and see how it works:

Windows Live Writer

You can add images easily and they get uploaded automatically to your blog as shown below:

DSC00400

You can add tables, hyperlinks, tags, videos, etc ...

Check it out, really cool!

Regards

Tags:

Sep 28 2007

Method Overloading in WebServices

Category:Bil@l @ 13:11

Sometimes there is a need to have two Web methods with the same name but off course different number of parameters. When developing Web Services, it is not enough to just ad two methods with different parameters as you do when developing an API.

In Web Services you need to specify MessageName to be different for each overload method as follows:

[WebMethod(MessageName="LogMessage1"),
    SoapDocumentMethod(OneWay=true)
]
public void LogMessage(string message)
[WebMethod(MessageName="LogMessage2"),
    SoapDocumentMethod(OneWay=true)
]
public void LogMessage(string message, string userName)

 

Hope this helps,
Regards

 

Tags:

Sep 28 2007

One-Way WebServices Methods

Category:Bil@l @ 12:58

When designing Web Services, we sometimes need to call methods that don’t have any response.

Defining such methods as void is not the solution for one-way Web Service methods.

What you need to do is specify the SoapDocumentMethod to be OneWay and here is an example: