B
Bsiang Tan
Dear all experts,
I am trying to passing non-primitive data like TimeSpan, Point and etc
from my web application to my web service.
And I found it can't let me pass. Am I miss something there ?
For example, I have a web method call
[WebMethod]
public System.Drawing.Point GetPoint()
{
return new Point(2, 2);
}
and in my Web Application code :
Point point = Service.GetPoint();
It give me an error that : Cannot implicitly convert type 'Service.Point'
to 'System.Drawing.Point'
I met the same problem when I try pass TimeSpan data from my Web App to my
Web Service.
Can anyone teach me how to make it ?
Thank for your helpful hands.
Best regard,
Bsiang.
I am trying to passing non-primitive data like TimeSpan, Point and etc
from my web application to my web service.
And I found it can't let me pass. Am I miss something there ?
For example, I have a web method call
[WebMethod]
public System.Drawing.Point GetPoint()
{
return new Point(2, 2);
}
and in my Web Application code :
Point point = Service.GetPoint();
It give me an error that : Cannot implicitly convert type 'Service.Point'
to 'System.Drawing.Point'
I met the same problem when I try pass TimeSpan data from my Web App to my
Web Service.
Can anyone teach me how to make it ?
Thank for your helpful hands.
Best regard,
Bsiang.