Call WebService from C# on PocketPC

S

Shahzaib Younis

Hello everyone,

I worte a simple "Hello World" WebService and a window client in C# to call
the WebService.
Win-Client does work fine on my laptop but when I deploy the
win-client(Compact) application on
PocketPC it doesn't work and give error.

I found at google that there are some PocketSoap stuff that I might need to
consider, first of all
why do I need PocketSoap, Is there any other way to deal with this??

And PocketSoap seems to work only from eVC++ as CompactFramework doesn't
provide COM
interoperability.

I'm in urgent need to make the calling webservice work. I will appreciate
any pointers or suggestions.

Thanks,
Shahzaib.
 
M

Microsoft MVP ¸­¨Õ»a\(Jan Yeh\) for Windows CE .NE

C# + .NET Compact Framework can call web services without problems.

So, you can tell us what problem are you encountering...

--
Best Regards,
Jan Yeh

MVP(Windows CE.NET), MCAD, .NETcf Developer & Consultant
Mobile Mind Co., Ltd. @ Taiwan
 
S

Shahzaib Younis

when I call webservice on PocketPC IE which is connected to Laptop by USB
port

with the following link:



http://192.168.0.2:9090/SomeService/SomeService.asmx



It does work fine and show me the list of available methods that I can
invoke.



But to call webservice from PocketPC win-application, I use first wsdl.exe
utility to

generate proxy class and then after creating a dll of the proxy-class I use
the dll as refernce

in my Compact-Windows Application to call required methods.



Desktop application works fine, but Pocket PC application doesn't work.



Now, I'm confused that where in all this process we tell pocketPC the
ip-address of

webservice. The only place I can think of is, when we use wsdl.exe utilty;
at that

time we do give the full path of webService to let it generate proxy class
and

in my understanding then proxy-class should know at what address to call
webservice.



So, I exactly don't know if pocket-pc application internally use localhost,
but what

about the PocketPC emulator that runs on the same laptop; that should work
if it uses

localhost bydefault, but it also doesn't work and generate the same error. I
don't remember

what was the error as the system is in my house at this time and not in my
access.



So is there some thing particular that I'm missing to mentioned explicitly
web-service ip-address

in my pocketpc-client application.



Thanks for your prompt responses.



Shahzaib.
 
S

Shahzaib Younis

I will appreciate prompt reply:-

when I call webservice on PocketPC IE which is connected to Laptop by USB
port with the following link:

http://192.168.0.2:9090/SomeService/SomeService.asmx

It does work fine and show me the list of available methods that I can
invoke.

But to call webservice from PocketPC win-application, I use first wsdl.exe
utility to generate proxy class and then after creating a dll of the
proxy-class I use
the dll as refernce in my Compact-Windows Application to call required
methods.

Desktop application works fine, but Pocket PC application doesn't work.
Now, I'm confused that where in all this process we tell pocketPC the
ip-address of webservice. The only place I can think of is, when we use
wsdl.exe utilty;
at that time we do give the full path of webService to let it generate proxy
class and in my
understanding then proxy-class should know at what address to call
webservice.

So, I exactly don't know if pocket-pc application internally use localhost,
but what about the PocketPC emulator that runs on the same laptop; that
should work if it uses localhost bydefault, but it also doesn't work and
generate the
same error. I don't remember what was the error as the system is in my house
at this time
and not in my access.

So is there some thing particular that I'm missing to mentioned explicitly
web-service ip-address in my pocketpc-client application.

Thanks for your prompt responses.
Shahzaib.

"Microsoft MVP ¸­¨Õ»a(Jan Yeh) for Windows CE .NET"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top