none
Call webservice from mobile handled c# RRS feed

  • Question

  •  am trying to consume a web service via smart device project in c#.

    I have web service on my server that respond via windows application fine. (The web service uploads any file type to the server). This is my goal to send files from handled pda.

    But from smart device, I can add the web reference but in the code I can't recognize the service.

    Someone know why?

    [EDIT]

    You can see image:

    www.nahshol.com/z.jpg

    also, the error is: The type or namespace name 'Uploader' does not exist in the namespace 'SmartDeviceProject1' (are you missing an assembly reference?)

    So... can't tell exacly what is the problem because i'm not so strong in mobile.

    [/EDIT]

    Wednesday, July 24, 2013 5:35 PM

Answers

  • Hi,

    Did you check it on mobile device envirment? smart device project?

    • Marked as answer by bk-1 Saturday, July 27, 2013 5:41 PM
    Friday, July 26, 2013 9:24 AM

All replies

  • Hi,

    If you click on the Uploader web reference and then click on the Show All Files button, do you see a Reference.cs file?

    Thanks

    Paul Diston


    http://www.smartmobiledevice.co.uk http://www.smdwp.co.uk


    • Edited by SMDWP Thursday, July 25, 2013 8:35 AM Typo
    Thursday, July 25, 2013 8:35 AM
  • Hi,

    All the files there with yellow exclamation mark.

    I know 1 thing strengh - when i click on Uploader and click on View in object browser I can't find the webservice...

    Thanks,


    • Edited by bk-1 Thursday, July 25, 2013 9:19 AM fixx
    Thursday, July 25, 2013 9:06 AM
  • Hi,

    The Show All Files button is located in the Solution Explorer window, at the top, to the left of the Refresh button.

    In the Reference.cs file, there is the namespace that the Uploader web service is sitting in, you need to use this namespace in your Form1.cs.

    Hope this helps.

    Paul Diston


    http://www.smartmobiledevice.co.uk http://www.smdwp.co.uk

    Thursday, July 25, 2013 9:20 AM
  • Hi,

    All the files there with yellow exclamation mark.

    I have 2 questions:

    1. Why I can't change Uploader namespace to project namespace? and if yes, how? do I need to change the webservice itself?

    2. Why there isn't automatically file reference.cs when i create the webservice? on the solution.

    thanks.


    • Edited by bk-1 Thursday, July 25, 2013 3:59 PM fixed
    Thursday, July 25, 2013 11:42 AM
  • hi bk-1,

    Thanks for your post.

    According to your describes,I would suggest retry  the add web reference of the steps.if so, in the code you  can't recognize the service,you can add it manually.

    thanks.

    Friday, July 26, 2013 6:47 AM
    Moderator
  • Hi,

    Thanks on your help.

    Add it again without luck...

    how i can add it manually?

    this is the webservice..

    www.nahshol.com/fileuploader.asmx

    could you check it?

    Friday, July 26, 2013 7:29 AM
  • hi bk-1,

    I check it in my local machine,it works.you can follow below steps to check it again:

    1.right-click->add service reference->click'Advanced'->click'Add Web reference'->please write URL in textbox->Enter'Go'.

    please refer to more:(http://msdn.microsoft.com/en-us/library/ms583494(v=office.14).aspx)

    hope this help you.

    if so,please remember to mark the replies as answer if they help and unmark  them if they provide no help.

    Friday, July 26, 2013 8:28 AM
    Moderator
  • Hi,

    Did you check it on mobile device envirment? smart device project?

    • Marked as answer by bk-1 Saturday, July 27, 2013 5:41 PM
    Friday, July 26, 2013 9:24 AM