Working with Multi-tenancy in Visual Stuidio
-
12 มีนาคม 2551 13:37
Hi
Got a CRM 4 installation with 3 organisations (lets call them org1, org2 and org3). From Visual Studio I made a web reference to http://localhost/mscrmservices/2007/crmservice.asmx. However the custom entities (published) in org1 are unknown to Visual Studio. How can I from Visual Studio choose what organisation to work on?
ตอบทั้งหมด
-
12 มีนาคม 2551 16:09เจ้าของ
-
12 มีนาคม 2551 16:57ผู้ดูแล
Organization myOrg = new Organization();
myOrg.UniqueName = "TestOrg";
myOrg.FriendlyName = "Display Name for TestOrg";
myOrg.SqlServerName = "testsql"; // Replace this with the name of your sql server.
myOrg.SrsUrl = "http://localhost/ReportServer"; // Replace this with the name of your SRS Server URL.
myOrg.BaseCurrencyCode = "USD";
myOrg.BaseCurrencyName = "US Dollar";
myOrg.BaseCurrencySymbol = "$";
see http://blogs.msdn.com/crm/archive/2008/01/18/multi-tenancy-in-crm-4.aspx
Regards,
Imran
http://microsoftcrm3.blogspot.com
-
12 มีนาคม 2551 23:07ผู้ดูแลIn a multi-tenant environment you're better off downloading the WSDL from the customization area in the CRM web application for the relevant organisation, and building a proxy class using the wsdl command line tool. Let us know if you need more detail on how to do this
-
13 มีนาคม 2551 0:05ผู้ดูแล
Hi Christian,
unfortunately http://localhost/orgname/... is no good as it gives back default WSDL.
The correct endpoint for a particular organisation is:
http://localhost/MSCrmServices/2007/CrmServiceWsdl.aspx?uniquename=OrgName
"Politically correct" method of getting custom WSDL endpoint is to open CRM and to navigate to
Settings->Customization->Download Web Services Description Files
Hope this helps
George -
13 มีนาคม 2551 8:28
Having to download the WSDL from CRM just takes to long to do. I like the http://localhost/MSCrmServices/2007/CrmServiceWsdl.aspx?uniquename=OrgName
option more . Thank you.