By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,992 Members | 967 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,992 IT Pros & Developers. It's quick & easy.

Cannot call my simple test webservice from PPC device emulator

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.