It is a third party's web service which I need to use for integration of our vfp application with theirs.
I am trying to translate their example C# .Net to vfp:
' I have no problem creating the web service in vfp:
ECSAgentServices obj = new ECSAgentServices();
SecurityIdentifier si = new SecurityIdentifier();
AgentId aid = new AgentId();
aid.agentAlias = “1”;
ReqAgentState requestAgentState = new ReqAgentState();
requestAgentState.reqAgentState = AgentState.loggedOn;
ReasonCode reason = new ReasonCode();
reason.reasonCode = “loggedOn”
RequestId rid;
' method I am trying to call in vfp where I get an OLE error code 0X80020005: Type mismatch
rid = obj.SetAgentState(si, aid, reqAgentState, reason);
The above classes are defined as follows:
public class SecurityIdentifier
{
public String token;
public int seq;
}
public class AgentId
{
public String agentAlias;
}
public class ReqAgentState
{
public enum AgentState
{
loggedOff,
loggedOn,
notReady,
ready
}
public AgentState reqAgentState;
}
public class ReasonCode
{
public String reasonCode;
}
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only