Sunday, April 15, 2012

Enabling service meta data to be viewable

add Httpget and Httppost in protocols in configuration like

    
"<"configuration">"
    "<"system.web">"
    "<"webServices">"
        "<"protocols">"
            "<"add name="HttpGet"/">"
            "<"add name="HttpPost"/">"
        "<"/protocols">"
    "<"/webServices">"
    "<"/system.web">"
"<"/configuration">"

End Point not found

My friend was having the issue End point not found while try to open a wcf service in internet explorer ,
service was using webhttpbinding and json as a data transfer medium,
when ever tried to browse svc file it shows error , end point not found , no event entery .
i just find out somewhere that
"web" endpoint was exposed as a JSON endpoint. It was not compatible with WSDL.
so i tried to call a method and it worked fine , returned json response.

Thursday, April 5, 2012

Combine text files into one

Combine text files into one with single DOS command

 I found a DOS command to merge multiple files into one, making it much easier to sniff out bugs.
copy *.txt target.txt