473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Cannot call my simple test webservice from PPC device emulator

Hi,

On the web I found a simple sample/tutorial for a webservice, some kind of
chat software.
I implemented the server and the client. When I run the client form on the
host PC everything works fine.
When I run it on the PPC device emulator it keeps saying that it cannot
connect to the server.
The device emu is cradled and I can surf the web with Pocket Internet
Explorer. But: when I call the ChatService.asmx file from Pocket Explorer
and try to test invoke one of the methods it doesn't work either ("The page
you requested does not exist").

To make a long story short: it looks like I can connect to any website and
also to http://taz:3220/website1/chatservice.asmx ("Taz" is the name of my
host PC) but cannot call any webservice.

Is there a another C# tutorial which shows detailled settings and
configurations to make webservice calls from the device emulator? This whole
thing has been bugging me for two days now.

Regards René
ChatClient code:

(The Web Reference URL of "WebReference" is set to
http://127.0.0.1:3220/WebSite1/ChatService.asmx.
I have tried to substitute the IP with the host's name "taz" but it didn't
work either)

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ChatClient.WebReference;

namespace ChatClient
{
public partial class Form1 : Form
{

private static ChatService server = null;
public Form1()
{
InitializeComponent();
}

private void sendBtn_Click(object sender, EventArgs e)
{
try
{
if (server == null)
{
server = new ChatService();
}

historyTextBox.Text =
server.PostMessage(nickTextBox.Text, msgTextBox.Text);
msgTextBox.Text = "";
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}

private void updateBtn_Click(object sender, EventArgs e)
{
try
{
if (server == null)
{
server = new ChatService();
}
historyTextBox.Text = server.GetMessages();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
Feb 4 '06 #1
0 1645

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rocio | last post by:
I have a windows app. written in VB6, now we need to expose some of its classes through a web service. I am only able to expose the classes using late binding becasue that's the way the original...
1
by: Nalaka | last post by:
Hi, I have a webservice application(asp.net 2.0) running on IIS 6.0 ... win 2003. I can call the webservice from the local machine, but if I call the web service from a different machine, the...
0
by: S. Berwanger | last post by:
Hallo, I'm trouble debugging a Webservice application on the WinCE 4.1 emulator from VS 2003. The Webservice gives back Datasets from a SQL Database. When I'm starting the application for the...
1
by: A.M-SG | last post by:
Hi, I have a web service with two soap extensions enabled on it. When I run the default IIS method invoke page, the invoke button bypasses all my soap extensions. But when I call the...
0
by: pumaken68 | last post by:
Does anyone has experience with calling web service from pocket pc 2003 project in VS 2005 environment? I just migrated a smart device(pocket pc 2003) solution from VS 2003 to VS 2005. There are...
6
by: alho | last post by:
The web service is called by a program running on pocket pc. When to call the web service, the first call is still ok, but for the second or later calls, it will throw "403 Forbidden" WebException....
2
by: jojoba | last post by:
Hello to all! I have a fairly simple webservice running in asp.net ajax under c# (vs 2008). I built the service and it runs just dandy when i test it by itself in visual studio. However, to...
4
by: eschneider | last post by:
I get the following error when trying to browse the .asmx. I get the same thing when trying to add a reference. using .NET 2.0 There is no error message. Any ideas? Thanks,
0
by: Rambaldi | last post by:
Hi there, I can connect to the WebMethod from the WM6 emulator, but i cant connect from the device :S Shouldnt the device work as fine as the Emulator??? I change the web reference url to my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.