Random Snippet of Code and Life

Archive for March, 2007


29
Mar

Connecting to a SOAP web service server in Java (Part 2)

There are several things we need to do in the java client.
1) Create an URLConnection to the endpoint
2) Set the HttpRequest Header parameters
3) Send the XML file over (either by writing the whole file line by line thru the outputstream or read in the XML file from a FileReader and write the bytes over, we […]

Popularity: 8% [?]


29
Mar

Connecting to a SOAP web service server in Java (Part 1)

I was trying use one of the services provided by http://www.webserviceX.NET last night. It was supposed to be an relatively task, but I end up getting http 500 and 403 errors without know why.
Whats error code 500 and 405 anyway?
This is what wikipedia says
500 Internal Server Error
405 Method […]

Popularity: 7% [?]


25
Mar

JavaScript bug hunting tool demonstrated

JavaScript bug hunting tool demonstrated
CNET News.com
Security researcher demonstrated a tool that turns PCs of unknowing Web surfers into hacker help, but his company told him he couldn’t release it.
More here

Popularity: 4% [?]

Popularity: 4% [?]


24
Mar

SQL Date Formatting (for oracle, ms sql, mysql)

How many times have you scream in frustration when you try to manipulate that stupid datetime in your database?
Here is some good site with guides on doing it easily)

Oracle
http://infolab.stanford.edu/~ullman/fcdb/oracle/or-time.html

MS SQL
http://www.databasejournal.com/features/mssql/article.php/2197931

MY SQL
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html

Popularity: 6% [?]

Popularity: 6% [?]


21
Mar

Passing parameter from one page to the other page

There are several ways we can pass parameter from one to another page.
1) Using the URL/QueryString input to Response.Redirect method
To pass the parameter, we simply append each parameter in a name=value pair fashion to the end of the url after a “?”.
For eg. Response.Redirecti(”~/Abc.aspx?name1=value1;name2=value2″);
separate each parameter with a “;”
*This is similiar to using GET method […]

Popularity: 13% [?]

Random Snippet of Code and Life is is proudly powered by Wordpress
Navigation Theme by GPS Gazette