K
Katie
Hi,
I have setup a web service on my dev pc and can connect to my web service
using the 2003 ppc emulator (my pc is connected to my work network). With
the emulator everything works fine. I have the emulator set to use the
internet connection and i have the emulators network adapter WINS setting
set to the IP of my PC. I start activesync then run my app and all works
well from the emulator.
However, if i try using my ppc 2003 device with a network card and the exact
same settings as the emulator i get the following error.
"An unhandled exception of type 'System.Net.WebException' occurred in
System.Web.Services.dll -- Additional information: Unable to connect to the
remote server"
I have tried using both the computer name and ip. both work on the emulator.
CODE BELOW:
public SOAPheaderService() {
this.Url =
"http://tos/CustomSoapHeadersService/CustomSoapHeadersService.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("AuthHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.o
rg/Authenticate", RequestNamespace="http://tempuri.org/",
ResponseNamespace="http://tempuri.org/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public bool Authenticate() {
object[] results = this.Invoke("Authenticate", new object[0]);
return ((bool)(results[0])); '<< THE ERROR OCCURS HERE <<
}
any ideas?
I have setup a web service on my dev pc and can connect to my web service
using the 2003 ppc emulator (my pc is connected to my work network). With
the emulator everything works fine. I have the emulator set to use the
internet connection and i have the emulators network adapter WINS setting
set to the IP of my PC. I start activesync then run my app and all works
well from the emulator.
However, if i try using my ppc 2003 device with a network card and the exact
same settings as the emulator i get the following error.
"An unhandled exception of type 'System.Net.WebException' occurred in
System.Web.Services.dll -- Additional information: Unable to connect to the
remote server"
I have tried using both the computer name and ip. both work on the emulator.
CODE BELOW:
public SOAPheaderService() {
this.Url =
"http://tos/CustomSoapHeadersService/CustomSoapHeadersService.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("AuthHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.o
rg/Authenticate", RequestNamespace="http://tempuri.org/",
ResponseNamespace="http://tempuri.org/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public bool Authenticate() {
object[] results = this.Invoke("Authenticate", new object[0]);
return ((bool)(results[0])); '<< THE ERROR OCCURS HERE <<
}
any ideas?