Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing complex types
Message
 
À
30/03/2005 16:29:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01000066
Message ID:
01000116
Vues:
27
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;
}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform