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: "
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi=" xmlns:xsd=" xmlns:soap=" <soap:Body>
<GetServerTime xmlns=" />
</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=" xmlns:xsd=" xmlns:soap=" <soap:Body>
<GetServerTimeResponse xmlns=" <GetServerTimeResult>
<milliseconds xmlns=" </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,
ROSER72
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: "
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi=" xmlns:xsd=" xmlns:soap=" <soap:Body>
<GetServerTime xmlns=" />
</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=" xmlns:xsd=" xmlns:soap=" <soap:Body>
<GetServerTimeResponse xmlns=" <GetServerTimeResult>
<milliseconds xmlns=" </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,
ROSER72