E
Eric
Hello,
I have a c# client program that sends a userID and Password to a
webservice that validates the user. The client is sucessfully sending
the Client context and the webservice is receiving it and processing
it, but I don't get back the ReturnCode saying wether it was OK or
not. Here is a snippet from the client code and the code generated by
the wsdl file.
Client Code that is sending the Client Context and receiving the
results.
TDMSOAPProxyService webService = new TDMSOAPProxyService();
ClientContext clientContext = new ClientContext();
clientContext.tdmUserId = logonId;
clientContext.tdmPassword = password;
TDMBASE64SOAPResult results = webService.logon(clientContext , args);
Error = results.errors;
Results = results.result;
ReturnCode = results.returnCode;
Here is the code generated from the WSDL
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="TdmSoapCli", ResponseNamespace="TdmSoapCli")]
[return: System.Xml.Serialization.SoapElementAttribute("logonReturn")]
public TDMBASE64SOAPResult logon(ClientContext ctx, string[]
args) {
object[] results = this.Invoke("logon", new object[] {
ctx,
args});
return ((TDMBASE64SOAPResult)(results[0]));
}
/// <remarks/>
public System.IAsyncResult Beginlogon(ClientContext ctx,
string[] args, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("logon", new object[] {
ctx,
args}, callback, asyncState);
}
/// <remarks/>
public TDMBASE64SOAPResult Endlogon(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((TDMBASE64SOAPResult)(results[0]));
}
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("ClientContext",
"TdmSoapCli")]
public class ClientContext {
/// <remarks/>
public string tdmPassword;
/// <remarks/>
public string vault;
/// <remarks/>
public string tdmUserId;
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("BASE64Attachment",
"TdmSoapCli")]
public class BASE64Attachment {
/// <remarks/>
[System.Xml.Serialization.SoapElementAttribute(DataType="base64Binary")]
public System.Byte[] attachment;
/// <remarks/>
public string fileName;
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("TDMBASE64SOAPResult",
"TdmSoapCli")]
public class TDMBASE64SOAPResult {
/// <remarks/>
public string[] result;
/// <remarks/>
public int returnCode;
/// <remarks/>
public BASE64Attachment attachment;
/// <remarks/>
public string[] errors;
I have a c# client program that sends a userID and Password to a
webservice that validates the user. The client is sucessfully sending
the Client context and the webservice is receiving it and processing
it, but I don't get back the ReturnCode saying wether it was OK or
not. Here is a snippet from the client code and the code generated by
the wsdl file.
Client Code that is sending the Client Context and receiving the
results.
TDMSOAPProxyService webService = new TDMSOAPProxyService();
ClientContext clientContext = new ClientContext();
clientContext.tdmUserId = logonId;
clientContext.tdmPassword = password;
TDMBASE64SOAPResult results = webService.logon(clientContext , args);
Error = results.errors;
Results = results.result;
ReturnCode = results.returnCode;
Here is the code generated from the WSDL
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="TdmSoapCli", ResponseNamespace="TdmSoapCli")]
[return: System.Xml.Serialization.SoapElementAttribute("logonReturn")]
public TDMBASE64SOAPResult logon(ClientContext ctx, string[]
args) {
object[] results = this.Invoke("logon", new object[] {
ctx,
args});
return ((TDMBASE64SOAPResult)(results[0]));
}
/// <remarks/>
public System.IAsyncResult Beginlogon(ClientContext ctx,
string[] args, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("logon", new object[] {
ctx,
args}, callback, asyncState);
}
/// <remarks/>
public TDMBASE64SOAPResult Endlogon(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((TDMBASE64SOAPResult)(results[0]));
}
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("ClientContext",
"TdmSoapCli")]
public class ClientContext {
/// <remarks/>
public string tdmPassword;
/// <remarks/>
public string vault;
/// <remarks/>
public string tdmUserId;
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("BASE64Attachment",
"TdmSoapCli")]
public class BASE64Attachment {
/// <remarks/>
[System.Xml.Serialization.SoapElementAttribute(DataType="base64Binary")]
public System.Byte[] attachment;
/// <remarks/>
public string fileName;
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("TDMBASE64SOAPResult",
"TdmSoapCli")]
public class TDMBASE64SOAPResult {
/// <remarks/>
public string[] result;
/// <remarks/>
public int returnCode;
/// <remarks/>
public BASE64Attachment attachment;
/// <remarks/>
public string[] errors;