Thanks for your help,
I have created a valid Caché user which has the privilege to run the
csp application (web service). I have also changed the 'Enable/
Disable Authentication allowed' (Under CSP applications) to Password
from Authenticated.
I understand that in .Net I need to add username and password to the
SOAP header. However before I can do this I would need to add a
Service Reference (in the .Net Project) to the Web service. But when
trying to do so I get this error shown below. The reason for this is
because the Cache login page is being returned instead, this is
because it seems to need a username and password to even add a service
reference in a .Net project.
Is there a way to add the Username/password when adding a web
reference?
Thanks
Andy
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: 'http://
192.168.218.4/csp/test/Test.MyService.cls?WSDL'.
The content type text/html; charset=ISO-8859-1 of the response message
does not match the content type of the binding (application/soap+xml;
charset=utf-8). If using a custom encoder, be sure that the
IsContentTypeSupported method is implemented properly. The first 1024
bytes of the response were: '<html><head>
<title>Login CACHE2007</title>
<link rel="stylesheet" type="text/css" href="/csp/sys/
intersystems.css">
<script language="javascript">
// called when page is loaded
function pageLoad()
{
// see if we can give focus to the UserName field:
if (self.document.Login && self.document.Login.CacheUserName) {
self.document.Login.CacheUserName.focus();
self.document.Login.CacheUserName.select();
}
return true;
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
onload="pageLoad();">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
style="background: red; margin:0px;">
<tr>
<td nowrap bgcolor="#FFFAE7" valign="top" align="left"><a
target="_top" href="
http://www.intersystems.com/index.html"><img src="/
csp/sys/images/logo-topl-intersystems.gif" border="0"></a></td>
<td nowrap bgcolor="#FFFAE7" valign="top" align="left">
<div class="wizardltlabel" style="margin-top:10px;"><span
style="font-size:8pt; padding-'.
If the service is defined in the current solution, try building the
solution and adding the service reference again.