That is the ultimate question and there is absolutely no straight answer. One is not better than the other, they both have their merits and disadvantages. Google on .net vs java and you'll get plenty of discussions but more often than not it comes down to developer preference (or platform).
I started out developing Java web applications and have moved into .NET. I'm quite happy where I am but would also happily move back to Java.
I tried to figure out (for couple of days now) how to check to see if a remote file exists on a different server where the web application is running. If it was on a same server I would just use server.mappath and I would have no problem. But the files are on a totally different server on different domain. So, what I'd like to do is just say checkIfThisFileExistsOnRemoteServer(http://someserver.com/directory/file.pdf)
Is there a asp.net (C# or VB.NET, does not matter) way to do this.
Yes, I am using HTTP and I'd like to get that 404 response if the file does not exist. My question was how to make this request and how to read the response inside asp.net. In college I learnt application layer protocols and I'd just send the requests to remote server such as SMTP, HTTP and send me responses like 404, 500 or whatever. I just want to do the same thing in ASP.NET.
I am working on WSE 2.0 and come around a situation where i need to develop a non WSE client which consumes a WSE 2.0 enabled web service.
I have developed a SOAP message for the non wse client.
For this i extracted a "request SOAP message" to the same web service from a client which makes use of WSE 2.0.
i copied all this SOAP message as it is in to a client side variable and built the SOAP message for the non wse client.
When i send the request it gives the error that invalid username token.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001