Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

webservice?


  • Please log in to reply
22 replies to this topic

#21 nakchak

nakchak

    Advanced Member

  • Members
  • PipPipPip
  • 404 posts
  • LocationBristol, UK

Posted 17 July 2012 - 01:17 PM

HTTPClient is a typo on my part, it should be HTTP_Client.

Also the IntegratedSocket creator is wrong it should be:
new IntegratedSocket("http://xxx", 80)

//not 

new IntegratedSocket("http://xxx, 80")

Probably should proof posts more whilst i am at work :P

Nak.

#22 Hans75

Hans75

    Member

  • Members
  • PipPip
  • 12 posts
  • LocationDen Bosch, Netherlands

Posted 17 July 2012 - 01:18 PM

And Integratedsocket renamed itself into SimpleSocket?


Got it Working!... thanks again a step furtter... now i can log data and communicate to my own asp.net webservice,

HTTP_Client WebSession = new HTTP_Client("myrestwebserviceurl");
// Requests the latest source
HTTP_Client.HTTP_Response Response = WebSession.Get("/Service1.svc/pooldata/2");
if (Response.ResponseCode != 200)
{
Debug.Print("Invalid Response");
}
R = Response.ToString();
Debug.Print(Response.ResponseCode.ToString());
Debug.Print®;

#23 Hans75

Hans75

    Member

  • Members
  • PipPip
  • 12 posts
  • LocationDen Bosch, Netherlands

Posted 17 July 2012 - 01:23 PM

HTTPClient is a typo on my part, it should be HTTP_Client.

Also the IntegratedSocket creator is wrong it should be:

new IntegratedSocket("http://xxx", 80)

//not 

new IntegratedSocket("http://xxx, 80")

Probably should proof posts more whilst i am at work :P

Nak.


Thanks anyway.. otherwise i wouldn learn anything., its always the debugging process where you pick up most ofthe knowledge ;-)
the quote error was easy to find... but i got lost in the integratedsocket.. but found out i can live without it completely, just passing the URL.. (dont ask me why ;-))




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.