« Good post on relationship types in Microsoft CRM 4.0 | Main | CRM User Cannot Query Filtered Views »

February 19, 2008

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e54fb34b6f883300e5506c1ef98834

Listed below are links to weblogs that reference Calling the CRM Web Service with JavaScript:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Maria

Thank you for this very detailed description. I have one follow-up question that I hope you can help me with - when running on a hosted solution of CRM, this doesn't work "as is" - it's as if there is some authentication step missing. When I try to call the web service I'm asked for my credentials, and even after supplying them receive an "access denied" error. Do you know what I need to do in order to get past this?

Maria

Never mind, figured it out thanks to http://www.stunnware.com/crm2/topic.aspx?id=JSWebService2
Thanks anyway.

Anatoly

You are wrong! With xmlhttp.send(xmlPost) you must use
xmlhttp.open('POST', 'http://crmserver/mscrmservices/2006/crmservice.asmx', false);// third parameter sets is request synchronous or not.
When you set false, you need set handler to event
xmlhttp.onreadystatechange

if you want to use method GET
xmlhttp.open('GET', 'http://crmserver/mscrmservices/2006/crmservice.asmx&' + parameters, false);

with xmlhttp.send(null);

Remember that parameters length


Do not confuse people please!

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

CustomerEffective is a Microsoft Gold Certified Partner specializing in Customer Relationship Management (CRM) implementation, development and integration. We help organizations improve profitability through automation of sales, service and marketing processes.

Twitter Updates

    follow me on Twitter

    Search The Blog

    • Search the Blog
       

      WWW
      blog.customereffective.com
    Subscribe to this blog's feed

     Subscribe in a reader

    Add to Google Reader or Homepage

    Enter your email address:

    Delivered by FeedBurner