Answered by:
publish webservice on crm server to access crm data from website (extranet)

Question
-
I have created a web service which has few web methods to retriev data from crm . I have add crm webservice in to my custome web service so I can publish this and open the port to extranet webserver to read data from crm.
question is when publishing webservice in IIS how do I give permissions to application pool , by default application pool identity set to "ApplicationPoolIdenty" and Managed Pipeline Mode "Intergrated" when I check do I need to create specific user account or do I need to set it Network service ? what should I do.
also when I try to add this webservice as Add web reference to my web application project it gave me permission error
Monday, June 13, 2011 4:29 PM
Answers
-
it's depend on how you want your webservice should be available in extranet, if you are going to expose this webservice in extranet you should select Network Service, I will suggest you to refer below links
http://www.advancedinstaller.com/user-guide/iis-app-pool-identity.html
http://www.codeproject.com/KB/aspnet/IIS7ASPNet.aspx
http://www.developer.com/net/asp/article.php/2245511/IIS-and-ASPNET-The-Application-Pool.htm
Mahain : My Dynamics CRM Blog
- Marked as answer by pathiya007 Friday, September 2, 2011 11:59 AM
Tuesday, June 14, 2011 7:05 AMModerator
All replies
-
hi,
The CRM already have webservices that could be used to retrieve the data from CRM.
for CRM 4.0
http://technet.microsoft.com/en-us/library/cc151013.aspx
http://technet.microsoft.com/en-us/library/bb887784.aspx
http://technet.microsoft.com/en-us/library/bb890248.aspx
to use them from outside all you need is to have enable the IFD :
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=3861E56D-B5ED-4F7F-B2FD-5A53BC71DAFC
once it is configured. you can use these web services.
If you still wish to use your own web services.
"when I try to add this webservice as Add web reference to my web application project it gave me permission error"
are you able to browse the same from your browser ?
if yes then download the WSDL and add that WSDL in your app as web reference, this will do the trick.
But I still prefer to use the available CRM web services instead of creating your own set of services.
hope this helps.
vishal swami
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"
http://msdynamics4you.blogspot.com
- Proposed as answer by VishalSwamiMicrosoft employee Tuesday, June 14, 2011 6:32 AM
- Edited by VishalSwamiMicrosoft employee Tuesday, June 14, 2011 6:33 AM clarity
Tuesday, June 14, 2011 6:30 AM -
it's depend on how you want your webservice should be available in extranet, if you are going to expose this webservice in extranet you should select Network Service, I will suggest you to refer below links
http://www.advancedinstaller.com/user-guide/iis-app-pool-identity.html
http://www.codeproject.com/KB/aspnet/IIS7ASPNet.aspx
http://www.developer.com/net/asp/article.php/2245511/IIS-and-ASPNET-The-Application-Pool.htm
Mahain : My Dynamics CRM Blog
- Marked as answer by pathiya007 Friday, September 2, 2011 11:59 AM
Tuesday, June 14, 2011 7:05 AMModerator -
Yes I am using CRM web service within my own web service, We cannot directly call CRm web service via web application on extranet. so I have created my own web service reference to crm web service and create limited methods to my project , so that whole crm data not open to web.
I'll try WSDL
to get IFD need to pay for licence aren't we.
Tuesday, June 14, 2011 8:27 AM -
With regard to licensing, the only thing that makes a difference is whether the end users are CRM users, or whether they are not CRM users. In the former case, each CRM user will need a CRM CAL, whether they connect via IFD or not. In the latter case, you'll need to purchase one External Connector License, again irrespective of how the connection is made
Microsoft CRM MVP - http://mscrmuk.blogspot.com http://www.excitation.co.ukTuesday, June 14, 2011 9:51 AMModerator -
end users not crm users, this web service give access to company website users to signup and create new accounts in crm, retriev accounts infor after login, create orders and add order products when complete shopping cart
I have test all the webservice fuctions in crm server, work fine I tryied http://*****:port/webservicename.asmx this gives me input box to enter search value and show the result.
but I tried to browse webservice on external web server with external ip to crm server http://******:port/websevicename.asmx I cannot see the input box when I click on webservice method
where did I go wrong?
please help
Tuesday, June 14, 2011 11:50 AM