OpenNETCF.Web.Services2.SecurityHeader

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]));
}
}
 
S

Simon Hart [MVP]

Firstly ensure you can see the network. Try using Pocket IE to connect to the
web server on your remote machine.

As a side note you know camelCasing shouldn't really be used in .NET.
 
N

Nina

Do I have to install Pocket IE on my computer?
Looks like it doesn't design to run on Windows XP.

Simon Hart said:
Firstly ensure you can see the network. Try using Pocket IE to connect to the
web server on your remote machine.

As a side note you know camelCasing shouldn't really be used in .NET.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Nina said:
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]));
}
}
 
S

Simon Hart [MVP]

What device are you trying to run this code on?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Nina said:
Do I have to install Pocket IE on my computer?
Looks like it doesn't design to run on Windows XP.

Simon Hart said:
Firstly ensure you can see the network. Try using Pocket IE to connect to the
web server on your remote machine.

As a side note you know camelCasing shouldn't really be used in .NET.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Nina said:
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]));
}
}
 
N

Nina

I'm working on PC right now using Mobile 6 Emulator.
My connection from Windows application using Microsoft.Web.Services3
is working but on Mobile development I use OpenNETCF.Web.Services2
and it doesn't give me any errors but don't establish connection and doesn't
sent a request.

Simon Hart said:
What device are you trying to run this code on?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Nina said:
Do I have to install Pocket IE on my computer?
Looks like it doesn't design to run on Windows XP.

Simon Hart said:
Firstly ensure you can see the network. Try using Pocket IE to connect to the
web server on your remote machine.

As a side note you know camelCasing shouldn't really be used in .NET.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


:

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]));
}
}
 
S

Simon Hart [MVP]

Pocket IE should be part of the WM6 image. Look in programs. Try and access
your desktop web server. Usually these problems are connectivity issues. ie:
http://169.254.2.2/iishelp.

--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Nina said:
I'm working on PC right now using Mobile 6 Emulator.
My connection from Windows application using Microsoft.Web.Services3
is working but on Mobile development I use OpenNETCF.Web.Services2
and it doesn't give me any errors but don't establish connection and doesn't
sent a request.

Simon Hart said:
What device are you trying to run this code on?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Nina said:
Do I have to install Pocket IE on my computer?
Looks like it doesn't design to run on Windows XP.

:

Firstly ensure you can see the network. Try using Pocket IE to connect to the
web server on your remote machine.

As a side note you know camelCasing shouldn't really be used in .NET.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


:

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]));
}
}
 
N

Nina

I checked connectivity. It works. I use Network Protocol Analyzer Ethereal to
see status of connection and it shows successful connection when I just
refresh web references in my application. But when I actually run an
application no request from my PC is sending.

Simon Hart said:
Pocket IE should be part of the WM6 image. Look in programs. Try and access
your desktop web server. Usually these problems are connectivity issues. ie:
http://169.254.2.2/iishelp.

--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Nina said:
I'm working on PC right now using Mobile 6 Emulator.
My connection from Windows application using Microsoft.Web.Services3
is working but on Mobile development I use OpenNETCF.Web.Services2
and it doesn't give me any errors but don't establish connection and doesn't
sent a request.

Simon Hart said:
What device are you trying to run this code on?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


:

Do I have to install Pocket IE on my computer?
Looks like it doesn't design to run on Windows XP.

:

Firstly ensure you can see the network. Try using Pocket IE to connect to the
web server on your remote machine.

As a side note you know camelCasing shouldn't really be used in .NET.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


:

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]));
}
}
 
S

Simon Hart [MVP]

You might find this link useful if you are using SSL on WM6:
http://blogs.msdn.com/andrewarnottm...ork-fails-to-call-some-https-web-servers.aspx

--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Nina said:
I checked connectivity. It works. I use Network Protocol Analyzer Ethereal to
see status of connection and it shows successful connection when I just
refresh web references in my application. But when I actually run an
application no request from my PC is sending.

Simon Hart said:
Pocket IE should be part of the WM6 image. Look in programs. Try and access
your desktop web server. Usually these problems are connectivity issues. ie:
http://169.254.2.2/iishelp.

--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Nina said:
I'm working on PC right now using Mobile 6 Emulator.
My connection from Windows application using Microsoft.Web.Services3
is working but on Mobile development I use OpenNETCF.Web.Services2
and it doesn't give me any errors but don't establish connection and doesn't
sent a request.

:

What device are you trying to run this code on?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


:

Do I have to install Pocket IE on my computer?
Looks like it doesn't design to run on Windows XP.

:

Firstly ensure you can see the network. Try using Pocket IE to connect to the
web server on your remote machine.

As a side note you know camelCasing shouldn't really be used in .NET.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


:

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]));
}
}
 
N

Nina

Thank you, Simon
I found why it didn't work. It doesn't work with emulator. It only works
with real device.

Simon Hart said:
You might find this link useful if you are using SSL on WM6:
http://blogs.msdn.com/andrewarnottm...ork-fails-to-call-some-https-web-servers.aspx

--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


Nina said:
I checked connectivity. It works. I use Network Protocol Analyzer Ethereal to
see status of connection and it shows successful connection when I just
refresh web references in my application. But when I actually run an
application no request from my PC is sending.

Simon Hart said:
Pocket IE should be part of the WM6 image. Look in programs. Try and access
your desktop web server. Usually these problems are connectivity issues. ie:
http://169.254.2.2/iishelp.

--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


:

I'm working on PC right now using Mobile 6 Emulator.
My connection from Windows application using Microsoft.Web.Services3
is working but on Mobile development I use OpenNETCF.Web.Services2
and it doesn't give me any errors but don't establish connection and doesn't
sent a request.

:

What device are you trying to run this code on?
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


:

Do I have to install Pocket IE on my computer?
Looks like it doesn't design to run on Windows XP.

:

Firstly ensure you can see the network. Try using Pocket IE to connect to the
web server on your remote machine.

As a side note you know camelCasing shouldn't really be used in .NET.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


:

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]));
}
}
 
D

Douglas Kim

Can you tell me how to solve it?



Nin wrote:

Thank you, SimonI found why it didn't work. It doesn't work with emulator.
20-May-08

Thank you, Simo
I found why it did not work. It does not work with emulator. It only work
with real device

:

Previous Posts In This Thread:

OpenNETCF.Web.Services2.SecurityHeader
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.StallInfoServic
{
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]));

}

Firstly ensure you can see the network.
Firstly ensure you can see the network. Try using Pocket IE to connect to the
web server on your remote machine

As a side note you know camelCasing shouldn't really be used in .NET
--
Simon Har
Visual Developer - Device Application Development MV
http://simonrhart.blogspot.co

:

Do I have to install Pocket IE on my computer?
Do I have to install Pocket IE on my computer
Looks like it does not design to run on Windows XP

:

What device are you trying to run this code on?
What device are you trying to run this code on
-
Simon Har
Visual Developer - Device Application Development MV
http://simonrhart.blogspot.co

:

I'm working on PC right now using Mobile 6 Emulator.
I'm working on PC right now using Mobile 6 Emulator
My connection from Windows application using Microsoft.Web.Services
is working but on Mobile development I use OpenNETCF.Web.Services
and it doesn't give me any errors but don't establish connection and doesn'
sent a request

:

Pocket IE should be part of the WM6 image. Look in programs.
Pocket IE should be part of the WM6 image. Look in programs. Try and access
your desktop web server. Usually these problems are connectivity issues. ie:
http://169.254.2.2/iishelp

--
Simon Har
Visual Developer - Device Application Development MV
http://simonrhart.blogspot.co

:

I checked connectivity. It works.
I checked connectivity. It works. I use Network Protocol Analyzer Ethereal to
see status of connection and it shows successful connection when I just
refresh web references in my application. But when I actually run an
application no request from my PC is sending.

:

RE: OpenNETCF.Web.Services2.SecurityHeader
You might find this link useful if you are using SSL on WM6:
http://blogs.msdn.com/andrewarnottm...ork-fails-to-call-some-https-web-servers.aspx

--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


:

Thank you, SimonI found why it didn't work. It doesn't work with emulator.
Thank you, Simon
I found why it did not work. It does not work with emulator. It only works
with real device.

:

EggHeadCafe - Software Developer Portal of Choice
Silverlight IsolatedStorage Compressed Object Cache
http://www.eggheadcafe.com/tutorial...a-5b86b0c676c9/silverlight-isolatedstora.aspx
 
D

Douglas Kim

Is really working with device only?



Nin wrote:

Thank you, SimonI found why it didn't work. It doesn't work with emulator.
20-May-08

Thank you, Simo
I found why it did not work. It does not work with emulator. It only work
with real device

:

Previous Posts In This Thread:

OpenNETCF.Web.Services2.SecurityHeader
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.StallInfoServic
{
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]));

}

Firstly ensure you can see the network.
Firstly ensure you can see the network. Try using Pocket IE to connect to the
web server on your remote machine

As a side note you know camelCasing shouldn't really be used in .NET
--
Simon Har
Visual Developer - Device Application Development MV
http://simonrhart.blogspot.co

:

Do I have to install Pocket IE on my computer?
Do I have to install Pocket IE on my computer
Looks like it does not design to run on Windows XP

:

What device are you trying to run this code on?
What device are you trying to run this code on
-
Simon Har
Visual Developer - Device Application Development MV
http://simonrhart.blogspot.co

:

I'm working on PC right now using Mobile 6 Emulator.
I'm working on PC right now using Mobile 6 Emulator
My connection from Windows application using Microsoft.Web.Services
is working but on Mobile development I use OpenNETCF.Web.Services
and it doesn't give me any errors but don't establish connection and doesn'
sent a request

:

Pocket IE should be part of the WM6 image. Look in programs.
Pocket IE should be part of the WM6 image. Look in programs. Try and access
your desktop web server. Usually these problems are connectivity issues. ie:
http://169.254.2.2/iishelp

--
Simon Har
Visual Developer - Device Application Development MV
http://simonrhart.blogspot.co

:

I checked connectivity. It works.
I checked connectivity. It works. I use Network Protocol Analyzer Ethereal to
see status of connection and it shows successful connection when I just
refresh web references in my application. But when I actually run an
application no request from my PC is sending.

:

RE: OpenNETCF.Web.Services2.SecurityHeader
You might find this link useful if you are using SSL on WM6:
http://blogs.msdn.com/andrewarnottm...ork-fails-to-call-some-https-web-servers.aspx

--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


:

Thank you, SimonI found why it didn't work. It doesn't work with emulator.
Thank you, Simon
I found why it did not work. It does not work with emulator. It only works
with real device.

:

I'm having same problem.
Can you tell me how to solve it?

EggHeadCafe - Software Developer Portal of Choice
WSE: X509 Certificates and Digital Signature
http://www.eggheadcafe.com/tutorial...f0-a01d33c1e0fe/wse-x509-certificates-an.aspx
 
Top