Skip to main content

CRM Online 2011 WebServices - SOAP Only Client

This example retrieves data from CRM Online using pure SOAP calls only and no additional assemblies to illustrate the underlying SOAP interactions. It is useful if you're planning to interact with CRM Online web services from a non-.NET environment.

C# (40.5 KB)
4.9 Star
9,407 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • this version is available in windows phone application ?
    1 Posts | Last post May 31, 2013
    • Hi Girish Raja thank you so much for this code is very helpful
      my question is if that code is available with phone application ?
  • what is the security standard used for OCP security method?
    1 Posts | Last post April 22, 2013
    • Hi Girish, I'm able to run the sample code from you using VS evaluation copy. Now I'm trying to do get it working on my site using a Ruby Gem called Savon. I'm getting stuck at the security step which you called OCP in your comment.
      What is the security standard used here? Is it wsse or diget or both? How do I debug from this point on?
      Soap message generated in Savon using wsse auth:
      <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="" xmlns:xsi="" xmlns:trust="" xmlns:env=""><env:Header><wsse:Security xmlns:wsse=""><wsse:UsernameToken wsu:Id="UsernameToken-1" xmlns:wsu=""><wsse:Username></wsse:Username><wsse:Password Type="">mypassword</wsse:Password></wsse:UsernameToken><wsu:Timestamp wsu:Id="Timestamp-2" xmlns:wsu=""><wsu:Created>2013-04-22T22:42:52Z</wsu:Created><wsu:Expires>2013-04-22T22:43:52Z</wsu:Expires></wsu:Timestamp></wsse:Security></env:Header><env:Body><trust:RequestSecurityToken></trust:RequestSecurityToken></env:Body></env:Envelope>
      But I got:
      ACS10001: An error occurred while processing the SOAP header.
      Trace ID: e444bcbf-a82d-422c-8ff5-57051ac6c6e1
      Timestamp: 2013-04-22 22:42:54Z
      Any idea how to debug?
  • Retreive WSDL with Ajaz
    1 Posts | Last post April 17, 2013
    • Hello Girish,
      I am try to us this in an office 2013 office application with javascript. I am running into a problem of every time I do my Ajax call it brings it back gzip encoded. Do you know how I could modify my request to not accept encoding?
  • onmicrosoft login
    3 Posts | Last post March 22, 2013
    • I have used a * login and it fails at Step2 with "The entered and stored passwords do not match."
      I have the latest code and it sends user details to live.
    • Answered my own problem I didn't use the correct url. 
    • But I do get a lovely "An error occurred when verifying security for the message." when I try and query the service, the code provided works fine but my code doesn't.  
      I've compared the xml and other than the security codes and times (codes are the same length) they are identical. 
    2 Posts | Last post February 26, 2013
    • Hi, 
      I have tried to follow this example, but somehow i cannot seem to "convert" this to php.
      And I have also tried to look at Ben Speakman's great example.
      But something must have changed in the auth. After this code has been written?
      Can someone pleace enlighten what needs to be changed in Ben Speakman's example for it to work. ? 
      Thanks in advanvce
    • Oh, And a link to the PHP git code: :)
  • CRM2011 Onpremise Authentication Using SOAP Only
    1 Posts | Last post January 12, 2013
    • Hi girish raja,
      thank you so much for helping the crm2011 online web services using soap only for non .net developers,  i would like if you help us to do CRM2011 Onpremise Authentication authentication using soap only
      seeking for help thanks in advance
  • Need more clarification to execute the sample.
    1 Posts | Last post November 21, 2012
    • Hi Girish Raja, I need more detailed implementation to execute the source you provided here. Can you please guide me execute your snippet.
  • Sample program doesn't work
    2 Posts | Last post August 29, 2012
    • I have used failed at Step2 with "The entered and stored passwords do not match."
    • The code sample has been updated to reflect the new OCP (office 365 style) authentication. I’ll shortly blog about the details of the updated sample but if you re-download the sample, you should be good to go.
  • It not work now
    2 Posts | Last post June 29, 2012
    • I test it with my dynamaics crm but it not work
    • Hello there,
      We had some web service changes internally and the sample has now been modified to use the Windows Live login URLs & URNs that is dynamically sent through the discovery service. 
  • How to relate the sequence of SOAP messages to WSDL?
    2 Posts | Last post June 29, 2012
    • hi Girish,
      Your sample code is certainly very very helpful. What might be even more helpful is how did you come up with this sequence by looking at the WSDL? WSDL does not seem have any mention of any "device".
      Also can you tell what this device registration process achieves?
    • I looked at the .NET sample in the CRM SDK and while running the sample, captured all the web traffic through fiddler. The sample is just replying the entire web traffic using plain GET/POST operations through C#.
1 - 10 of 13 Items