locked
Project 2010 SDK - Service reference not updating RRS feed

  • Question

  • Hi,

    I am using the ListProjects Sample in the Project 2010 SDK and unable to update the service reference. When I Change the reference to the correct url for my server, I get  the error below:


    The HTML document does not contain Web service discovery information, Metadata contains a reference that cannot be resolved.'https:/localhost/dts/_vti_bin/psi/listProjects.svc.

    The HTTP request is unauthorised with client authentication scheme 'Anonymous'. The Authentication received from the server was 'NTLM'

    The remote server returned an error:(401) unauthorized

    Has anybody come across this, I am not sure why it is coming with unauthorized as I am logged in using the system account.

     

    Any pointers?

    Thanks.

     


    Regards, Naweed
    Friday, August 19, 2011 9:55 AM

Answers

All replies

  • Hi Naweed,

    listProjects isn't a built in servcice - the service is actually called Project,svc.  Does that work for you?

    Best regards,

    Brian.


    Blog | Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page
    Friday, August 26, 2011 8:42 PM
  • Hi Brian,

    Thanks for spotting this, I actually copied the URL from the sample app in teh SDK.

    I am still getting error 401 after updating the URL to .'https://localhost/MYPWA_GUID/_vti_bin/psi/lProject.svc"

    I have also followed the steps described at http://msdn.microsoft.com/en-us/library/ee872368.aspx. Not even able to to add a new service reference. This seems to be a permission issue, I have also tried setting anonymous access in ISS but with no luck.

    Would you know where this would be coming from?

    Thanks,

    Naweed

     

     


    Regards, Naweed

    Saturday, August 27, 2011 2:23 PM
  • My mistake Naweed - I didn't realize which sample you were using - and the Project Server Web Part with JSGrid walkthrough does indeen use ListProject.svc.  However, this is a PSI extension rather than an out of the box service - so needs to be configured.  I'm just working through the walkthrough now - I will let you know how it goes.

    Best regards,

    Brian.


    Blog | Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page
    Monday, August 29, 2011 7:22 PM
  • Hi Brian,

    I did not realised that this was a PSI extension however I did make some progress. I was not able to add any other service reference as I the reference URL I was using was wrong. Was using http://localhost/c317f4510eb943179f5f6369c65276c8/_vti_bin/psi/Project.svc which contains _vti.. rather than using http://localhost:32843/c317f4510eb943179f5f6369c65276c8/psi/Project.svc as per documentation. Also I was reverting back the webconfig before adding the reference.

    This is now under control and I can add service references correctly. Thanks for pointing out, been struggling for 2 weeks.

    Let me know once you get the listProject sample working, I will try to get it  to wortk too as I have a similar dev requirement and would like to use this as a starting point.

    Regards,

    Naweed


    Regards, Naweed
    Tuesday, August 30, 2011 3:02 AM
  • Glad you made good progress Naweed.  I got the ListProjects PSI extension working - and then the web part to consume the web service.  I followed the steps in the SDK at http://msdn.microsoft.com/en-us/library/ff943562.aspx for the PSI Extension and the sample code is included in the samples zip file in the PSIExtensions\ListProjects folder.  I found it useful to walk through the article rather than just use the sample code - but good to have it there for reference.  Once I had that working the webpart was quite straighforward.

    Best regards,

    Brian.


    Blog | Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    Project Server TechCenter | Project Developer Center | Project Server Help | Project Product Page
    • Marked as answer by Naweed Jaulim Tuesday, August 30, 2011 4:52 PM
    Tuesday, August 30, 2011 2:07 PM
  • This is makes more sense now after taking a look at the link you provided. I think I should be ok to take it from here.

    I will give it a go and hopefully be on the move again. Thanks a lot for your assistance.

    Much Appreciated.

    Regards,

    Naweed


    Regards, Naweed
    Tuesday, August 30, 2011 4:51 PM