?
Solved

URGENT: Web Service Server in Windows CE Device (4.2, 5.0)?

Posted on 2005-03-14
15
Medium Priority
?
538 Views
Last Modified: 2013-12-27
Hello,

   I would like to know if an embedded device running Windows CE (4.2 or 5.0) can be a Web Service Server.
   I know that it can be a Web Service Client, but I would like to publish web services with asmx extensions, can I do this??

Thanks.
0
Comment
Question by:atxondo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 7
15 Comments
 
LVL 3

Expert Comment

by:rugu_16
ID: 13537004
No you cant
where is the IIS on windwos CE?
so currently you can only consume web services but cant publish one and provide service via
mobile device.

Thank you
0
 
LVL 3

Author Comment

by:atxondo
ID: 13544066
But which is the reason??

The web server that is offered in windows CE seems to be compatible with VBScript and JScript.
And what about SOAP?? In Windows CE you can add SOAP Client and Server functionality, and I cant do anything with it??

Thank you.
0
 
LVL 16

Expert Comment

by:nonubik
ID: 13628682
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 3

Author Comment

by:atxondo
ID: 13696994
Hello,

I see that a Web service can be published using a COM object, but that forces to program using C++.
I would be interesed to program the Web Service with C#, because all my other components are made using C# and .Net CF.
I would like to program the Web Services like are made in .Net, with ASMX files. Can these be done in a embedded Device??
0
 
LVL 16

Expert Comment

by:nonubik
ID: 13697022
> COM object, but that forces to program using C++.
COM is not C++. Can be VB, C#, etc.

>I would like to program the Web Services like are made in .Net, with ASMX files. Can these be done in a embedded Device??
I think so. The .NET 2003 environment has a project template for pocket/smart devices under C# that can be used.
0
 
LVL 3

Author Comment

by:atxondo
ID: 13698258
Thanks,
I will study how to make COM objects using C#.
0
 
LVL 16

Expert Comment

by:nonubik
ID: 13704527
>I will study how to make COM objects using C#.

Can take a look here: http://codeproject.com/csharp/COM_Object_in_C_.asp, http://codeproject.com/csharp/com_components.asp
0
 
LVL 16

Accepted Solution

by:
nonubik earned 1500 total points
ID: 13704535
0
 
LVL 3

Author Comment

by:atxondo
ID: 13753134
Another cuestion:

Instances of object can be passed as parameters?

Thanks.
0
 
LVL 16

Expert Comment

by:nonubik
ID: 13753178
Usually a webservice returns an XML file. You can taylor it to return all the data members of a class instance so that you can build the object on the client side.
0
 
LVL 3

Author Comment

by:atxondo
ID: 13753319
Is this posible?? Supose that B is the class that has been published as a Web Service.

public class A
{
    private string str={"str1","str2","str3"};

    public A()
    {
    }
    public HelloWorld()
    {
        return "Hello";
    }
}

public class B
{
    public A instA= new A();
   
    public B()
    {
    }
    public bool SayHello(string usr)
    {
        try
        {
            A.HelloWorl(usr);
            return true;
        }
        catch(Exception ex)
        {
        }
        return false;
    }

    //And what about these??
    public A yourAInstance()
    {
         return instA;
    }
}
0
 
LVL 16

Expert Comment

by:nonubik
ID: 13753362
You do not return instances to objects from the server as they were not created on the client. You need to serialize them. Instead you can send all the data members of an instance (instA) from the server and build a new object on the client having the server side instance's data members.
0
 
LVL 3

Author Comment

by:atxondo
ID: 13753594
If I understand what are you saying, a server can't return or pass a instance of a created class to the client.
The server could modify a instance that the client passes him as a parameter??

public yourInstance(ref A inst)
{
   inst=instA;
}

Supose that the instance can only be created in the server, in this case, there are Hardware limitations. I want to use a service that is runing in the server, and design the client in a embedded device, with limitations.

Thanks.
0
 
LVL 3

Author Comment

by:atxondo
ID: 13815597
There is a free web server for embedded system, that enables users to publish asmx and c# web services.
The link to that page is:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/NETCFMA.asp

This is very useful, I think it's enough for me, but this server is  a limitated part of a complex web server.

I was waiting for something like this.
Nonetheless I will give the points to nonubik, to thank his help and atention.

Best Regards.
0
 
LVL 16

Expert Comment

by:nonubik
ID: 13815664
Sorry for misunderstanding your original question and thanx for your appreciation
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question