locked
Crm 2011 - can't find classes AddItemCampaignResponse and AddMemberListResponse RRS feed

Answers

All replies

  • You need to reference the Microsoft.Crm.Sdk.Messages namespace with a using statement in your code.

    You will need to add a refrence to the MIcrosoft.Crm.Sdk.Proxy assembly in your visual studio project first,


    Jamie Miley
    Check out my about.me profile!
    http://mileyja.blogspot.com
    Linked-In Profile
    Follow Me on Twitter!
    Thursday, August 18, 2011 6:06 PM
    Moderator
  • Hi,

    Its working fine for me, try adding again the Service Reference with the following Url:

    http://crmweb1:5555/mscrmservices/2007/CrmServiceWsdl.aspx?uniquename=orgname

    try also update the web service reference by right click on web service reference and select Update Service Reference  and accessing it via Web Service namespace and i.e

    CrmWebServiceReference2007Name.AddMemberListResponse AddmemberResponse = new AddMemberListResponse(); 
    

     

     


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    • Marked as answer by NaveedAnwar Friday, August 19, 2011 2:16 PM
    Thursday, August 18, 2011 6:34 PM
  • here we go again! I changed the URL to go after a different server and I lost all the definitinos. so I thought, no problem, I'll go back to the original url on the original server...doesn't work...

    saw that I needed to apply rollup 3...applied it (and rebooted)...didn't solve the problem....am I the only one having this issue? pasted the definitions header ...maybe there is a clue in there...

    <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s2="http://schemas.microsoft.com/crm/2007/WebServices/Response" xmlns:s6="http://schemas.microsoft.com/crm/2006/WebServices/BusinessEntity" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tns="http://schemas.microsoft.com/crm/2007/WebServices" xmlns:s5="http://schemas.microsoft.com/crm/2006/WebServices" xmlns:s9="http://schemas.microsoft.com/crm/2006/WebServices/BusinessEntityCollection" xmlns:s8="http://schemas.microsoft.com/crm/2009/Query" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:s3="http://schemas.microsoft.com/crm/2007/CoreTypes" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s4="http://microsoft.com/wsdl/types/" xmlns:s7="http://schemas.microsoft.com/crm/2006/Query" xmlns:s1="http://schemas.microsoft.com/crm/2007/WebServices/Request" targetNamespace="http://schemas.microsoft.com/crm/2007/WebServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

    Thursday, September 1, 2011 1:05 PM
  • ok...progress!

    The prototype prod server has a certificate on it...so if I use the https: protocol, I get the definitions with crmNumber, picklist, etc...

    the prototype dev server doesn't have a cert so I am using http: and it doesn't have the definitions.

     

    the header using SSL on the prod server is different as well:

    <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s3="http://schemas.microsoft.com/crm/2006/Query" xmlns:s2="http://schemas.microsoft.com/crm/2009/Query" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:s5="http://schemas.microsoft.com/crm/2006/Scheduling" xmlns:s6="http://schemas.microsoft.com/crm/2007/CoreTypes" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://schemas.microsoft.com/crm/2007/WebServices" xmlns:s1="http://schemas.microsoft.com/crm/2006/CoreTypes" xmlns:s0="http://microsoft.com/wsdl/types/" xmlns:s4="http://schemas.microsoft.com/crm/2006/WebServices" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://schemas.microsoft.com/crm/2007/WebServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

     

    Thursday, September 1, 2011 1:42 PM