web services - works on emulator not on PPC 2003

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?
 
K

Katie

Yes and No.

I can open it from my laptop IE.

I can open it from my ppc when connected to my pc via USB and ActiveSync.

However,

When using my ppc *network adapter* i can NOT open it from the ppc pie but I
can get to other internet webpages just not my pc webpages.

Any idea?

Alex Feinman said:
Can you open that url from PocketIE?

Katie said:
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?
 
K

Katie

I do have it set to "Work". The problem may be that my pc is not connected
to the work Domain. As a contractor I only have internet access. both my PC
and PPC are not on the Domain but they both have connections to the internet
through the LAN. Can i configure something that will work or do i need to be
on the Domain? I tried setting the WINS IP address on my PPC network card to
the IP of my PC but this doesnt help.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top