473,915 Members | 5,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.asm x 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 "WebReferen ce" 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.Collecti ons.Generic;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows. Forms;
using ChatClient.WebR eference;

namespace ChatClient
{
public partial class Form1 : Form
{

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

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

historyTextBox. Text =
server.PostMess age(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.GetMessa ges();
}
catch (Exception ex)
{
MessageBox.Show (ex.Message);
}
}
}
}
Feb 4 '06 #1
0 1679

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

Similar topics

1
15732
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 VB6 was written. I ahve already exposed some of the original classes, and they work fine. Now, I added a new ActiveX component to the windows app (in vb6). I am able to call it by late binding from within the vb6 app. itself, and from a dummy vbs...
1
2390
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 error "The page cannot be found" appears. Searching on the internet, I came across a link that suggested that, this is because.... on IIS "web service extentions" are not enabled by default...
0
1088
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 first time everything works fine. Later I can exist the application without a problems and returns to VS as expected. But the second start hangs ("Anwendung wird gestartet" - Application launching is the last message).
1
1930
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 web method through another
0
1814
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 3 projects inside solution: 1. pocket PC 2003 windows form project; 2. Business rules 3. a web service which will be used to download and upload data via wireless from/to backend database. After converted and built successfully, the web service...
6
3387
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. When to test it using the web interface on pocket IE, everything is fine. Before there was no such problem, it only happened within a week or so. I suspect it's caused by the server's firewall settings, but how come the first call is ok? This...
2
5598
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 make it work, i had to break up the webmethod into the BeginXXX, EndXXX model as per http://msdn2.microsoft.com/en-us/library/aa480516.aspx But now, i can no longer call this method from javascript (since to
4
4446
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
1427
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 local machine but it does just make it work to the emulator. Why this is happening??? I got an apresentation like in 3/4 hours :S and i got to show the app in the device :S
0
10039
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9883
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
11069
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10543
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9734
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8102
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7259
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4346
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.