

Having worked on Java and Microsoft technologies, I always found that programming using Microsoft languages like C# is lot easier than coding in Java. There could be many reasons why I felt so and some of them are that MS offers one standard IDE (VS2008) unlike in Java where you have various editors like Eclipse (with MyEclipse), JBuilder, JDeveloper, etc. I personally feel that MyEclipse and Eclipse is a powerful combo than VS 2008 but still it is easier/faster to develop a windows based client in C# than in Java.
Of late, I have been working with CRM web services, trying to develop a custom web application that can consume web services offered by CRM 4.0. I have developed an ASP.NET website and have accomplished what I intended to.
Now, I wanted to experiment with Java a bit (it's been quite some since I had started MyEclipse on my machine ;-) ). I have generated the Java classes using WSDL2Java from Axis1.x. I followed some examples posted in forums and got a sample working using the CRMDiscoveryService. I followed the same process to consume CRMService but hard luck. All the time I encountered "401 User Unauthorized".
After lot of googling, I came to know that Axis1.x doesn't support NTLM authentication (not sure how it worked for CRMDiscoveryService !!). Some posts suggested that the latest stable release of Axis1.x doesn't support NTLM authentication and that we need to download the latest nightly build and the latest sources from SVN. I did that but no luck yet !!
One of my friends suggested to use Axis2 instead of Axis1.x. I have downloaded the latest binaries and source code of Axis2 but the error remained the same - "401 User Unauthorized".
This is real frustrating, 'coz when you say that webservices are aimed to bring about platform independence, getting a client (from a different platform) to work with MS CRM webservices is not that easy !!
Microsoft is famous for the documentation, samples and look-and-feel and I am hoping that someone from Microsoft or Sun finds this post and comes up with some helpful samples and documentation on how to develop clients in Java to consume MS CRM 4.0 web services :-)
Till then, keeping shouting in forums ;-)
Of late, I have been working with CRM web services, trying to develop a custom web application that can consume web services offered by CRM 4.0. I have developed an ASP.NET website and have accomplished what I intended to.
Now, I wanted to experiment with Java a bit (it's been quite some since I had started MyEclipse on my machine ;-) ). I have generated the Java classes using WSDL2Java from Axis1.x. I followed some examples posted in forums and got a sample working using the CRMDiscoveryService. I followed the same process to consume CRMService but hard luck. All the time I encountered "401 User Unauthorized".
After lot of googling, I came to know that Axis1.x doesn't support NTLM authentication (not sure how it worked for CRMDiscoveryService !!). Some posts suggested that the latest stable release of Axis1.x doesn't support NTLM authentication and that we need to download the latest nightly build and the latest sources from SVN. I did that but no luck yet !!
One of my friends suggested to use Axis2 instead of Axis1.x. I have downloaded the latest binaries and source code of Axis2 but the error remained the same - "401 User Unauthorized".
This is real frustrating, 'coz when you say that webservices are aimed to bring about platform independence, getting a client (from a different platform) to work with MS CRM webservices is not that easy !!
Microsoft is famous for the documentation, samples and look-and-feel and I am hoping that someone from Microsoft or Sun finds this post and comes up with some helpful samples and documentation on how to develop clients in Java to consume MS CRM 4.0 web services :-)
Till then, keeping shouting in forums ;-)

