471,337 Members | 1,034 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 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 1564

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Rocio | last post: by
1 post views Thread by Nalaka | last post: by
reply views Thread by S. Berwanger | last post: by
reply views Thread by rosydwin | last post: by

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.