2003SE's emulater use WebService meet error

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

Hello, I meet some problem when i use the CH SP 2003 SE Emulator. I have
bulid a simple webservice that contains only the helloworld method. I alse
write a simple app to contact with the service.On the form i add a textbox
to get the return value of the webService.
code like this:
try
{
SEService.WebService.Service1 myService = new
SEService.WebService.Service1();
this.textBox1.Text = myService.HelloWorld();
}
catch( Exception ex )
{
MessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK,
MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
}
I get the exception "WebException" When i use the SP2003SE emulator to run
this code.
But it can be used in the SP2003 emulator and the return value is right.
Can anyone help me?

Thanks
 
hello, I have set the url to my ip, not the localhost. This can be used in
SP2003 emulator but can't be used in SP2003 SE. When used in SP2003 SE it
only throw a "WebException" Exception.
What was the meaning of the "WebException" exception ?
 
I see. Follow these steps:

1. Run emulator;
2. Start->Settings->More...->Data Connections;
3. Press menu, Edit Connections->Proxy Connections;
4. Press menu, Add. "Add Proxy" dialog windows will be open. Set
"Description", "Connects from" to "Work" and "Connects to" to "The
Internet" value then press Done, Done, Done;
5. The last step. Set Internet connection to "NetCard" value. Press Done.


Hope this help,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Back
Top