views:

11

answers:

0

In Alfresco, Add a testing web script helloworld.get. and it's working fine by following url testing: http://myserver/alfresco/service/helloworld?name=myname

Then I want to test if I can access this web script in Silverlight application. I tried o add ServiceReference with following uri: http://myserver/alfresco/service/index/uri/

But I can't get in. It always ask me for authentication info even I enter the right info which is working fine for http://myserver/alfresco/service/helloworld?name=myname.

If I tried uri like http://myserver/alfresco/service/index

It gave me following error: The HTML document does not contain Web service discovery information. Metadata contains a reference that cannot be resolved: 'http://myserver/alfresco/service/index'. The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="Alfresco"'. The remote server returned an error: (401) Unauthorized. If the service is defined in the current solution, try building the solution and adding the service reference again.

How to reslove this problem?