mycodenotes.blogspot.com
Code Notes: April 2008
http://mycodenotes.blogspot.com/2008_04_01_archive.html
Wednesday, April 30, 2008. Basic Authentication: Call Java Web Service from C#. Protected override System.Net.WebRequest GetWebRequest(Uri uri){. System.Net.WebRequest request = base.GetWebRequest (uri);. String username = "Test";. String password = "Test";. String auth = username ":" password;. Byte[] binaryData = new Byte[auth.Length];. BinaryData = Encoding.UTF8.GetBytes(auth);auth = Convert.ToBase64String(binaryData);. Auth = "Basic " auth;. Request.Headers["AUTHORIZATION"] = auth;.
mycodenotes.blogspot.com
Code Notes: Coverting Date to XMLGregorianCalendar format in java
http://mycodenotes.blogspot.com/2008/02/coverting-date-to-xmlgregoriancalendar.html
Friday, February 29, 2008. Coverting Date to XMLGregorianCalendar format in java. Private XMLGregorianCalendar Date2XMLDate(Date d). Calendar c = new GregorianCalendar();. Int month = c.get(Calendar.MONTH) 1;. Int day = c.get(Calendar.DAY OF MONTH);. Int year = c.get(Calendar.YEAR);. DatatypeFactory df = DatatypeFactory.newInstance();. XMLGregorianCalendar x = df.newXMLGregorianCalendarDate(year, month, day, c.getTimeZone().getOffset(d.getTime() /(60*60*1000) ;. I would go on. February 8, 2009 at 11:59 AM.
mycodenotes.blogspot.com
Code Notes: How to add nodes to a TreeView WebBrowser control by using Visual C# .NET
http://mycodenotes.blogspot.com/2008/02/how-to-add-nodes-to-treeview-webbrowser.html
Friday, February 8, 2008. How to add nodes to a TreeView WebBrowser control by using Visual C# .NET. Download the IE Web Controls here. And follow instructions in ReadMe.txt to install. 1 Add the TreeView Control to the WebForm1.aspx. 2 Click F7 and you will be in Code View. Using Microsoft.Web.UI.WebControls;. TreeNode head ;. Private void Button1 Click(object sender, System.EventArgs e). Head = new TreeNode();. HeadText = "My First Tree Node";. TreeView1.Nodes.Add(head);/ Adding Nodes.
mycodenotes.blogspot.com
Code Notes: March 2008
http://mycodenotes.blogspot.com/2008_03_01_archive.html
Friday, March 7, 2008. Remote Debugging a Web Service using Eclipse and Tomcat. This is working with Tomcat 5.0.X, Eclipse 3.2, JDK 1.4.2 *. Step 1. Configure Tomcat. A) Open up the configuration GUI ("Configure Tomcat"). B) Select the Java tab. C) Into the Java Options include (substituting the correct locations). Xrunjdwp:transport=dt socket,address=8000,server=y,suspend=n. Djavaendorsed.dirs=c: tomcat common endorsed. NB: These are all on separate lines, with a. D) Select the Startup tab.
mycodenotes.blogspot.com
Code Notes: Consuming a Web Service in .NET
http://mycodenotes.blogspot.com/2008/02/consuming-web-service-in-net.html
Thursday, February 7, 2008. Consuming a Web Service in .NET. 1 Get the WSDL location(http:/ localhost:8080/als-2.2.1/als? Wsdl), make sure the XSD location in it is correct(http:/ localhost:8080/als-2.2.1/als? 2 Use wsdl.exe. In the Command Window,. C: Program Files Microsoft Visual Studio .NET 2003 SDK v1.1 Bin wsdl http:/ localhost:8080/als-2.2.1/als? If you get errors:. Microsoft (R) Web Services Description Language Utility. Microsoft (R) .NET Framework, Version 1.1.4322.573]. Coverting Date to XMLGr...
mycodenotes.blogspot.com
Code Notes: Converting DateTime Object from .NET to XSD
http://mycodenotes.blogspot.com/2008/02/converting-datetime-object-from-net-to.html
Friday, February 8, 2008. Converting DateTime Object from .NET to XSD. If you are trying to consume a Java Web Service in .NET simply follow the instruction in Consuming a Web Service in .NET. You might run into some issues when dealing with DateTime Object. You want to make sure that the format of DateTime being sent to the Web Service(WS) is the one it expects. The WS i was working with required the DateTime in XSD format. You can use XmlConvert. Public String toXSDDateFormat(DateTime d). Return d1 d2;.
mycodenotes.blogspot.com
Code Notes: Remote Debugging a Web Service using Eclipse and Tomcat
http://mycodenotes.blogspot.com/2008/03/remote-debugging-web-service-using.html
Friday, March 7, 2008. Remote Debugging a Web Service using Eclipse and Tomcat. This is working with Tomcat 5.0.X, Eclipse 3.2, JDK 1.4.2 *. Step 1. Configure Tomcat. A) Open up the configuration GUI ("Configure Tomcat"). B) Select the Java tab. C) Into the Java Options include (substituting the correct locations). Xrunjdwp:transport=dt socket,address=8000,server=y,suspend=n. Djavaendorsed.dirs=c: tomcat common endorsed. NB: These are all on separate lines, with a. D) Select the Startup tab.
mycodenotes.blogspot.com
Code Notes: February 2008
http://mycodenotes.blogspot.com/2008_02_01_archive.html
Friday, February 29, 2008. Coverting Date to XMLGregorianCalendar format in java. Private XMLGregorianCalendar Date2XMLDate(Date d). Calendar c = new GregorianCalendar();. Int month = c.get(Calendar.MONTH) 1;. Int day = c.get(Calendar.DAY OF MONTH);. Int year = c.get(Calendar.YEAR);. DatatypeFactory df = DatatypeFactory.newInstance();. XMLGregorianCalendar x = df.newXMLGregorianCalendarDate(year, month, day, c.getTimeZone().getOffset(d.getTime() /(60*60*1000) ;. Friday, February 8, 2008. TreeNode head ;.
mycodenotes.blogspot.com
Code Notes: Basic Authentication: Call Java Web Service from C#
http://mycodenotes.blogspot.com/2008/04/basic-authentication-call-java-web.html
Wednesday, April 30, 2008. Basic Authentication: Call Java Web Service from C#. Protected override System.Net.WebRequest GetWebRequest(Uri uri){. System.Net.WebRequest request = base.GetWebRequest (uri);. String username = "Test";. String password = "Test";. String auth = username ":" password;. Byte[] binaryData = new Byte[auth.Length];. BinaryData = Encoding.UTF8.GetBytes(auth);auth = Convert.ToBase64String(binaryData);. Auth = "Basic " auth;. Request.Headers["AUTHORIZATION"] = auth;.
mycodenotes.blogspot.com
Code Notes: July 2008
http://mycodenotes.blogspot.com/2008_07_01_archive.html
Friday, July 4, 2008. Creating your own Certificate Authority using OpenSSL. It took me a long time to put all this together, but now it seems extremely simple. I hope it comes in handy to others who are trying to setup a private CA. There are three parts:. A) Creating a Certificate Authority. B) Setting up the Server(Tomcat). C) Setting up the client. This article does not cover certificate revocation. A) Creating a Certificate Authority. There are two ways to do this. Using scripts provided by OpenSSL.