david_codringto
12 years agoNew Contributor
Web Service - 'Object moved' error
Hi,
Firstly, I'm new to SOAP so please bear with me.
I'm trying to connect to the Web Service but getting the following error :
The request failed with the error message:
--
<head><title>Object moved</title></head>
<body><h1>Object Moved</h1>This object may be found <a HREF="http://www.PragmaticSW.com/SiteMap.asp">here</a>.</body>
The test code I am using is a C# representation of the VB program TestWebService :
[System.Web.Services.WebServiceBindingAttribute(Name = "ServiceSoap", Namespace = "http://www.pragmaticsw.com/")]
class SoapHttpRequest : SoapHttpClientProtocol
{
public SoapHttpRequest()
{
this.Url = "http://www.pragmaticsw.com/GetLoginInfo";
}
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.pragmaticsw.com/GetLoginInfo", RequestNamespace = "http://www.pragmaticsw.com/", ResponseNamespace = "http://www.pragmaticsw.com/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[WebMethod(MessageName = "GetLoginInfo")]
public int request_GetLoginInfo()
{
object[] results = this.Invoke("GetLoginInfo", new object[] { "agSP", "a.b@c.net", "password123" });
return ((int)results[0]);
}
}
Can anyone see any blindingly obvious errors?
Thanks
Dave