locked
I have a php webservice, how could i use it in my windows store app? RRS feed

  • Question

  • I have a php webservice, how could i use it in my windows store app?
    Thursday, October 3, 2013 10:28 AM

Answers

  • Please see my blog post on connection to a web service:
    http://blogs.msdn.com/b/wsdevsol/archive/2012/12/21/help-me-how-do-i-connect-to-an-asmx-web-service.aspx

    This should be similar to your PHP web service.


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by Narendramacha Thursday, October 3, 2013 5:21 PM
    Thursday, October 3, 2013 1:56 PM
    Moderator

All replies

  • Please see my blog post on connection to a web service:
    http://blogs.msdn.com/b/wsdevsol/archive/2012/12/21/help-me-how-do-i-connect-to-an-asmx-web-service.aspx

    This should be similar to your PHP web service.


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by Narendramacha Thursday, October 3, 2013 5:21 PM
    Thursday, October 3, 2013 1:56 PM
    Moderator
  • But Matt, the php service is not having ASMX extension and it is returning JSON object as response.... at this kind of senario how could i add reference.
    Thursday, October 3, 2013 5:22 PM
  • Then you'll have to create your own way to call it using HttpClient. 
    http://msdn.microsoft.com/en-us/library/windows/apps/hh781239.aspx


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, October 3, 2013 6:22 PM
    Moderator