Geeks With Blogs
Molnar Tibor blog

Recently I created a web part for Project Server 2007 and I had to use PSI which is a set of web services which are coming withe the PS 2007 installation.

When a PSI web service is addded in Visual Studio to a project, the chosen web service url has the form of http://{machinename}/pwa/_vti_bin/psi/{webservicename}.asmx but in the app.config file and in the settings class of the project, for a reason unknown by me the url of the web service is set to http://{machinename}/_vti_bin/psi/{webservicename}.asmx, the /pwa part is left out from the url.

When accessing the web service, a WebException with the 'Object moved' message is thrown, which is not really meaningfull. The solution is to modify manually the generated url both in the app.config and in the settings file (Settings.Designer.cs).

Posted on Tuesday, January 22, 2008 9:42 PM SharePoint 2007 | Back to top


Comments on this post: 'Object moved' WebException when calling Project server interface (PSI) web services

# re: 'Object moved' WebException when calling Project server interface (PSI) web services
Requesting Gravatar...
Thanks!
I was having this issue and you right it wasn'tr very descriptive.

Thanks for taking the time to post this, with more blogs like this the world would be a better place.
Left by Greg on Oct 07, 2009 8:42 AM

# re: 'Object moved' WebException when calling Project server interface (PSI) web services
Requesting Gravatar...
thanks bro.. you saved me :)
Left by jayaraja on May 13, 2010 8:03 AM

# re: 'Object moved' WebException when calling Project server interface (PSI) web services
Requesting Gravatar...
I got reference code from some where and i was struggling debugging.
When accessing the web service, a WebException with the 'Object moved' message is thrown.
In my code which is .cs file, i have given wrong url path to save. URL path should be matched.
Left by G on Sep 23, 2011 1:34 PM

Your comment:
 (will show your gravatar)


Copyright © Molnar Tibor | Powered by: GeeksWithBlogs.net