N
Nina
I try connect to secure server and connection doesn't work. My project on
Visual Studio 2005, Compact Framework 2.0 platform. Function getRegions I
use from Web References. Error message: "Could not establish connection to
network".
Is anybody know what is wrong? It doesn't send request at all.
private void cmdExecute_Click(object sender, EventArgs e)
{
RegionRequest request = new RegionRequest();
sUserName = txtUserName.Text;
sPassword = txtPassword.Text;
request.token = txtToken.Text;
StallInfoServiceWrapper service = new StallInfoServiceWrapper();
service.securityHeader = new OpenNETCF.Web.Services2.SecurityHeader();
service.securityHeader.UsernameToken = new
OpenNETCF.Web.Services2.UsernameToken(sUserName, sPassword,
OpenNETCF.Web.Services2.PasswordOption.SendPlainText,
OpenNETCF.Web.Services2.EncodingType.HexBinary);
RegionType[] result = service.getRegions(request);
}
//-----------------------
public class StallInfoServiceWrapper :
com.digitalpaytech.sandbox.StallInfoService
{
public OpenNETCF.Web.Services2.SecurityHeader securityHeader;
[SoapHeader("securityHeader")]
[OpenNETCF.Web.Services2.HeadersExtension()]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://ws.digitalpioneer.com/stallInfo/getRegions",
Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle
= System.Web.Services.Protocols.SoapParameterStyle.Bare)]
[return: System.Xml.Serialization.XmlArrayAttribute("RegionResponse",
Namespace = "http://ws.digitalpioneer.com/stallInfo")]
[return: System.Xml.Serialization.XmlArrayItemAttribute("regions", Form =
System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = false)]public new
RegionType[]
getRegions([System.Xml.Serialization.XmlElementAttribute(Namespace =
"http://ws.digitalpioneer.com/stallInfo")] RegionRequest RegionRequest)
{
object[] results = this.Invoke("getRegions", new object[] {
RegionRequest});
return ((RegionType[])(results[0]));
}
}
Visual Studio 2005, Compact Framework 2.0 platform. Function getRegions I
use from Web References. Error message: "Could not establish connection to
network".
Is anybody know what is wrong? It doesn't send request at all.
private void cmdExecute_Click(object sender, EventArgs e)
{
RegionRequest request = new RegionRequest();
sUserName = txtUserName.Text;
sPassword = txtPassword.Text;
request.token = txtToken.Text;
StallInfoServiceWrapper service = new StallInfoServiceWrapper();
service.securityHeader = new OpenNETCF.Web.Services2.SecurityHeader();
service.securityHeader.UsernameToken = new
OpenNETCF.Web.Services2.UsernameToken(sUserName, sPassword,
OpenNETCF.Web.Services2.PasswordOption.SendPlainText,
OpenNETCF.Web.Services2.EncodingType.HexBinary);
RegionType[] result = service.getRegions(request);
}
//-----------------------
public class StallInfoServiceWrapper :
com.digitalpaytech.sandbox.StallInfoService
{
public OpenNETCF.Web.Services2.SecurityHeader securityHeader;
[SoapHeader("securityHeader")]
[OpenNETCF.Web.Services2.HeadersExtension()]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://ws.digitalpioneer.com/stallInfo/getRegions",
Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle
= System.Web.Services.Protocols.SoapParameterStyle.Bare)]
[return: System.Xml.Serialization.XmlArrayAttribute("RegionResponse",
Namespace = "http://ws.digitalpioneer.com/stallInfo")]
[return: System.Xml.Serialization.XmlArrayItemAttribute("regions", Form =
System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = false)]public new
RegionType[]
getRegions([System.Xml.Serialization.XmlElementAttribute(Namespace =
"http://ws.digitalpioneer.com/stallInfo")] RegionRequest RegionRequest)
{
object[] results = this.Invoke("getRegions", new object[] {
RegionRequest});
return ((RegionType[])(results[0]));
}
}