• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • Last Modified:

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

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
atxondo
Asked:
atxondo
  • 7
  • 7
1 Solution
 
rugu_16Commented:
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
 
atxondoAuthor Commented:
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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

 
atxondoAuthor Commented:
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
 
nonubikCommented:
> 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
 
atxondoAuthor Commented:
Thanks,
I will study how to make COM objects using C#.
0
 
nonubikCommented:
>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
 
nonubikCommented:
0
 
atxondoAuthor Commented:
Another cuestion:

Instances of object can be passed as parameters?

Thanks.
0
 
nonubikCommented:
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
 
atxondoAuthor Commented:
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
 
nonubikCommented:
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
 
atxondoAuthor Commented:
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
 
atxondoAuthor Commented:
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
 
nonubikCommented:
Sorry for misunderstanding your original question and thanx for your appreciation
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 7
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now