I'm trying to get .Net C# application working using GP 10 webservices and VS 2010. I was able to install webservices on a local server and retrieve the wsdl from the server, create the reference and see all the classes. The first thing I noticed was there was not a class for DynamicsGP as shown in the examples. I found DynamicsGPSoapClient that seemed to have all the properties and methods so at is what I'm using. I did notice that it did not have a property for UseDefaultCredentials so I could not set it. Im trying to create a credit memo and when I call my first method I'm getting an error "The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM'." The webservices are running on a Windows Server 2008 server under IIS. Any ideas how authentication needs to be set up on the client? I've tried several changes to the app.config file but none seem to work. Any ideas. Does it have anything to do with not being able to set the UseDefaultCredentials property?
Update: got it to work by playing with IIS until it worked. I'm now getting an exception when I try and and use this method :
Policy payablesCreditMemoCreatePolicy = wsDynamicsGP.GetPolicyByOperation(
I can't get the exceptions managements console to work but that's another issue. I was able query the exceptions table and I'm getting an exception "String cannot be of zero length. Parameter name: name" It sounds like a property is not getting set but I'm not sure what it might be. I created another application with code straight out of an example and get the same exceptions. I did have to change the class from DynamicsGP to DynamicsGPSoapClient. Anyone have any ideas.
It seems to be webservice is not installed properly, You should see exceptions management Console as well as securit Console. In Security Console you should see all Policy. If you cannot view policies then Web Service is not installed properly.
Can you check event Viewer if it shows any Error there?
Please find below link about reinstallation of Web Service; Removed it completely and reinstall. I hope it will help you to resolve your issue.
Let me know how it goes.
I can see the exception console but when I try and use it I get an error "cannot access exception service" I found a post that was supposed to correct the problem but did not. One of the solutions was to not allow annoymous authentication for the web service but when I do that the web service throws an error when i try and access it. I can see and use the security console. I can see the exceptions in the exception table which is "String cannot be of zero length. Parameter name: name". There is nothing relevent in the event viewer. With GP 10 should I be able to see the GPDynamics class? I can see a class called GPDynamicsSoapClient which seems to have most of the same properties and methods and thats what I instantiated. I don't see a way of attaching a file to the post, I do have all the exceptions in a csv file. Any method I try to call throws the same error.
Can you see Securit Console-->Policy?
Yes I can see policy but when I click on it I get an unhandled exception and when I look at the log I have the same "String cannot be of zero length. Parameter name: name" error.
Error shows that Web Service is not properly Installed. Why don't you reinstall web serivce or try to resolve error first before going to use web services.
What about the problem of not seeing the GPDynamics class but using the GPDynamicsSoapClient instead. Is this normal for GP10?
I did all the steps to uninstall but it will not re-install. It acts like webservices is still installed. I assume its a problem in the registry. I could find the DynamicsGPWebServices key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ but I could not find the other registry entries you described.
What error you are facing while reinstalling Web Service?
Check this one also: sandipdjadhav.blogspot.com/.../dynamics-gp-web-service-installation.html
It comes up with a window that has "Install Addtional Companies', Repair and Remove options.
Try to remove WebSerivce completely from your system then reinstall it.
As I indicated in a previous post I followed your instructions for removing GP webservices. I followed your other post about the install errors and it still acts the same. there is nothing unusual in the installation log. I probably still have a registry entry but I've I've removed the only key I could find DynamicsGPWebServices key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\. Do you know of any other entries?
Got ahold of a document call How to manually uninstall Web Services for Microsoft Dynamics GP 10 and was able finally uninstall and re-install Web Services and it behaves the same way. Several wasted hours.
wow!!! Thats not good. So it shows error when you try to access policy? You need to contact now Microsoft. I believe unless you access policies without any error you won't be able to use Web Services correctly.
Do you think there is not error in your code?
Other Microsoft Sites
I'm a Customer
I'm a Partner
Use the official Twitter tags:
#MSDYNCOMM | #CONV13