views:

461

answers:

6

Hi Guys,

Could someone please tell me how to access CRM (IFD) webservices from outside the domain?

Thanks in advance

lasa

A: 

A VPN setup is often a good way to accomplish this. That will involve opening the appropriate ports in your (or your company's) firewall, as well.

Gabriel Hurley
A: 

Isn’t there a straight forward way of accomplishing this, such as setting crm authentication token? I already tried this but it was throwing 401 unauthorised errors

lasa
When you say different domain do you mean different user domains within the same network? If you're on the same network with different domains, then you don't need VPN. You just need to make sure the domain/username values match a valid user entry as the SystemUser. Are you sure your CRM authenication token is using the correct user's domain name and credentials? I do the same thing (access the CRM web service from a server on a different domain than the CRM server using user credentials that are also different domain from the CRM server (same as caller server).
Jim W
Nope i mean over the internet. hence i cannot use the internal hostname when providing the webservice url
lasa
Can you ping and access your CRM server (using normal web site not via web servies) from the external clients or is it protected via your company's firewall, etc.?
Jim W
Yeh i can, it just does not authenticate, i created a systemuser in the remote machine which matches a valid user of the crm, and tried to get in as this user,but still no luck.
lasa
A: 

First you'll have to set up the instance for IFD support. Microsoft has an IFD setup tool.

You'll then want to make sure your website is exposed to the internet. It sounds like you can successfully ping it from the above comments.

You can then use the web services if you provide the appropriate url and network credentials.

service.Credentials = new System.Net.NetworkCredential("username",
                "pass@word1", "domain");
benjynito
A: 

thats exactly what i did and i found out that theres nothing wrong with the way i access the web services but sommeone has turned off basic authentication of the CRM application, turned it back on and problem is solved

A: 

@ above dude how did u turned off authentication of CRM application ? is it from web.config ? please help

munjalshah
A: 

hi munjalshah, actually if you right click on the website(from iis) and go into the security section, it lets you select the authentication type , eg: anonymous, basic or windows. you should not require to turn off the authentication in CRM, as i found out you need to have basic authentication enabled in order to access remotely.

regards, lasa

lasa