my ppc can't connect to web services

i have create webservice and i can connect to ws by win app but i can't connect using my ppc

i try to connect to my ws on my pc http://localhost:2996/ws it work!

can anyone help me

thank you!


Answer this question

my ppc can't connect to web services

  • MikeHiland

    Hi,

    You didn't specify how you connect to the webservice from the ppc, was it through ActiveSync or GPRS, and are you using real Device or the Emulator

    please specify more info to know how help you.


    Regards,

    Ahmed H. Waly



  • Michael1956

    hi,

    I also faced the same prob.u r using VS 2005 If yes, then when u create the webservice, u have option of providing HTTP while selecting new site or service, provide url as "http://localhost/projectname. By default it would be File System.

    Other thing, while selecting the web service provide the ip address and not the loclhost.I hope thiss will help u.



  • cpaesano

    That is exactly right, but in fact it only works from this particular PC. Please see link below on why is that and how to fix it.

    http://forums.microsoft.com/MSDN/Search/Search.aspx words=localhost+issue&localechoice=9&SiteID=1&searchscope=forumgroupscope&ForumGroupID=11



  • hazz

    Ahmed Waly wrote:

    Hi,

    You didn't specify how you connect to the webservice from the ppc, was it through ActiveSync or GPRS, and are you using real Device or the Emulator

    please specify more info to know how help you.


    Regards,

    Ahmed H. Waly



    i connect to wy ms through ActiveSync (by port usb) using real device (windows mobile 5)

    i try to connect to my pc on my ppc using 192.168.0.2 (my pc ip on LAN, open this url on pocket ie) it redirect to 192.168.0.2/localstart.asp and it has error msg

    HTTP 500.100 - Internal Server Error - ASP error
    Internet Information Services

    thank you!


  • cPrince

    because "localhost" means your pc! Change the properties of the WebReference to

    http://{your ip address}/ws


  • DC Ross

    Hi,
    Let's try from the begining.
    you connect you pda to the PC using the USB port and activesync, right
    if so, then do the following..

    from the PDA after connecting it, open the PPC ie and type in the address bar:
    http://yourPCName/WSFoldername/WSName.aspx

    if every thing is correct and your pda is really connected to your pc correctly, it should open the WS page, if not, then u have a problem in the connection like a blocking firewall on the PC, or not configuring the pda settings correctly.

    But if the page is displayed correctly, then the error is in the code, try to make the refrence to the WS in the app by the PC name not localhost or ip, because of the way u connect the pda, it takes the same ip, and this could make some conflicts..

    Do this and reply me with the result please..


    Regards,

    Ahmed H. Waly



  • my ppc can't connect to web services