Newbie: Help with webservice request

Hi,

I have very little programming skills and I'm willing to create my first first service request.

The Webservice method I'm trying to invoke is as follows:
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /ccmmwebservices/CIUtilityWs.asmx HTTP/1.1
Host: 10.85.0.113
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://webservices.ci.ccmm.applications.nortel.com/GetServerTime"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetServerTime xmlns="http://webservices.ci.ccmm.applications.nortel.com" />
</soap:Body>
</soap:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetServerTimeResponse xmlns="http://webservices.ci.ccmm.applications.nortel.com">
<GetServerTimeResult>
<milliseconds xmlns="http://datatypes.ci.ccmm.applications.nortel.com">long</milliseconds>
</GetServerTimeResult>
</GetServerTimeResponse>
</soap:Body>
</soap:Envelope>


I've created the follwing code:


protected void Login_Click(object sender, EventArgs e)
{
MyServices.CIUtilityWs gs = new MyServices.CIUtilityWs();
long result = gs.GetServerTime();


}

However Visual Studio kepps on telling me that cannot implicitly convert type "MyServices.CIDateTime CIUtilityWs.GetServerTime" to Long.

Can anyone tell me what am I doing wrong?

Thanks in advance,
ahartoch
Topic archived. No new replies allowed.