I have some code that calls a webservice on a different server. I think the web service is java, but I don't know. When the webservice has no authentication, it works. When it does have authentication, I get a 501 error.
How can I call the web service with credentials?
SearchService svc = new global::Search.SearchService();
svc.Url = svcAddress;
SearchRequest req = new SearchRequest();
SearchResponse resp = svc.search(req); //this fails when pointing at a url that needs auth