Web server reference VS2005

J

JennPenn07

Hi, I am trying to follow this article on creating a custom web part for
PWA2007. http://msdn.microsoft.com/en-us/library/bb851478.aspx

I am having trouble with adding a web reference. I enter the url as
described in the article, but the add web reference box returns this error

the document at the url http://pwaserver/pwa/_vti_bin/PSI/project.asmx was
not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Root element is missing.'.
- Report from 'WSDL Document' is 'The document format is not recognized (the
content type is 'text/html; charset=utf-8').'.
- Report from 'http://pwaserver/pwa/_vti_bin/PSI/project.asmx' is 'The
document format is not recognized (the content type is 'text/html;
charset=utf-8').'.
- Report from 'XML Schema' is 'The document format is not recognized (the
content type is 'text/html; charset=utf-8').'.

I am not sure where to go from here, any suggestions is greatly appreciated.
 
A

Assaf

Hi JennPenn07,
Try navigating to the url of your web service and see what you recieve
It looks like it would be an html document with some kind of error (404
maybe...) instead of the service wsdl xml.
This should give you a direction on the service url.

Another thing for you to try is, if you have permissions to access the iis
of the project server machine, you can go to the folder of the services
(_vti_bin\PSI) and from there, select the service you want and right click ->
browse it.
You should take this url and see if it works.
 
J

JennPenn07

Thanks for your response. I can navigate to the url and it lists all
available services. in the Add Web Reference dialog i can see this same
info, but i cant add. Also in the Add Web Reference dialog, when i click the
Service Desctiption link, i appends ?WDSL to my url which allows me to add
the reference.

I am now able to create the UpcommingTasksWP and add it to PWA which proves
it works now, but it seems like a work around to a problem that should be
fixed.

Any insite on this?
 
A

Assaf

Maybe I'm not correct here but it sounds like the correct behavior.
The service reference class should be created based on the service wsdl
description.
The page used by the url (not the ?wsdl) is an html page with basic text
describing the service - not its wsdl description.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top