Answered by:
Dynamics 2011 Online + JAVA

Question
-
Hi,
I'm trying to connect to Discovery and Organization service on Dynamics 2011 Online via Java. I have created the proxies for the WSDL's using JAX-WS wsimport successfully. I'm now stuck as to what to do to program in Authentication (with Live ID) after this. I've looked at the SDK which hand cranks the calls to generate the Device Token and User Token (wsdlbasedproxies) and was wondering if I needed to do the same thing in Java and how to go about doing this with JAX-WS. Anyone got some tips, examples to hand off to a newbie?
Thursday, August 4, 2011 8:35 PM
Answers
-
Perhaps this jLiveID could solve your problems?
http://www.jproductivity.com/products/jliveid/
- Marked as answer by Jamie MileyModerator Friday, August 31, 2012 5:53 PM
Friday, August 5, 2011 10:18 AM -
When I was trying to make this work in Android, the best resource I found was Girish Raja's SOAP-only sample. I ended up just porting that and got it working to authenticate with CRM Online in an Android app.
http://code.msdn.microsoft.com/CRM-Online-2011-WebServices-14913a16
You will have to translate it into Java but I can vouch that the messages do work from Android at least. It didn't take that long to translate if I recall.
Ken
- Marked as answer by Jamie MileyModerator Friday, August 31, 2012 5:53 PM
Wednesday, August 10, 2011 5:12 AM -
This is for 4.0 but the 4.0 web service is still in place in the 2011 Online environment.
https://github.com/gooddata/GoodData-CL/tree/master/connector/src/main/java/com/gooddata/msdynamics
I might have to make it my personal mission to rework this explicitly for 2011 at some point.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Wednesday, August 10, 2011 2:02 PM
- Marked as answer by Jamie MileyModerator Friday, August 31, 2012 5:53 PM
Wednesday, August 10, 2011 2:02 PMModerator -
Did you get this figured out? I guess I usually just create a .NET service that Java can call into that then makes the CRM calls.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Marked as answer by Jamie MileyModerator Friday, August 31, 2012 5:53 PM
Sunday, February 19, 2012 12:51 AMModerator
All replies
-
I don't know that I will be much help on this one, but I am going to follow the thread. I have seen this question come up a few times.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!Thursday, August 4, 2011 9:04 PMModerator -
hey, I also want to stay tuned to this thread.
cheers, S.Khan MCTSThursday, August 4, 2011 10:03 PM -
Perhaps this jLiveID could solve your problems?
http://www.jproductivity.com/products/jliveid/
- Marked as answer by Jamie MileyModerator Friday, August 31, 2012 5:53 PM
Friday, August 5, 2011 10:18 AM -
When I was trying to make this work in Android, the best resource I found was Girish Raja's SOAP-only sample. I ended up just porting that and got it working to authenticate with CRM Online in an Android app.
http://code.msdn.microsoft.com/CRM-Online-2011-WebServices-14913a16
You will have to translate it into Java but I can vouch that the messages do work from Android at least. It didn't take that long to translate if I recall.
Ken
- Marked as answer by Jamie MileyModerator Friday, August 31, 2012 5:53 PM
Wednesday, August 10, 2011 5:12 AM -
This is for 4.0 but the 4.0 web service is still in place in the 2011 Online environment.
https://github.com/gooddata/GoodData-CL/tree/master/connector/src/main/java/com/gooddata/msdynamics
I might have to make it my personal mission to rework this explicitly for 2011 at some point.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Proposed as answer by Jamie MileyModerator Wednesday, August 10, 2011 2:02 PM
- Marked as answer by Jamie MileyModerator Friday, August 31, 2012 5:53 PM
Wednesday, August 10, 2011 2:02 PMModerator -
I think the 4.0 method is to be depreciated at some point... there is an example of using standard soap binding in the SDK where they hand crank the authentication calls... I could reproduce that in java if I could figure out how to set the token using jax-ws. Is getting the token a standard?.. you actually need to request two tokens, one to authenticate the device and then use the response of that to get the user token... what happened when that token expires? How do you request a new token? Too many questions...Wednesday, August 10, 2011 2:35 PM
-
I absolutely agree with you, but it's a start on how to use the liveid stuff with Java and it's all I could find out there when I searched around.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!Wednesday, August 10, 2011 3:23 PMModerator -
Thanks,
Didn't mean to sound ungrateful :) That code sample really helps... Thanks for uploading it... How did you integrate this with the web service calls themselves of wasen't it for that reason? We're you using CXF or Metro or the like?
Tuesday, August 16, 2011 8:01 AM -
I haven't looked into the code too much. I don't do much Java development, but I did hook up the web service and play around a little bit in Netbeans using something called WS-JAX I think it was. It's something I did some research on though because there are a number of posts that have asked for this over the last few months.
You should come back and either mark an answer or at least mark the posts you thought were helpful as such. :)
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!Tuesday, August 16, 2011 2:13 PMModerator -
Did you get this figured out? I guess I usually just create a .NET service that Java can call into that then makes the CRM calls.
Jamie Miley
Check out my about.me profile!
http://mileyja.blogspot.com
Linked-In Profile
Follow Me on Twitter!- Marked as answer by Jamie MileyModerator Friday, August 31, 2012 5:53 PM
Sunday, February 19, 2012 12:51 AMModerator