Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: temp_FIAP temp_FIAP_fetch tepco_demand BlueUSB_f_IEEE1888 ... more
Diff: fiap.cpp
- Revision:
- 5:f0b636449aa3
- Parent:
- 4:edbcc1833b58
- Child:
- 6:52e95ea60ec1
diff -r edbcc1833b58 -r f0b636449aa3 fiap.cpp
--- a/fiap.cpp Mon Aug 20 12:52:50 2012 +0000
+++ b/fiap.cpp Wed Aug 22 00:04:32 2012 +0000
@@ -89,6 +89,11 @@
if (debug_mode)printf("post.start \n\r");
HTTPResult r = http.postXML(_fiap_storage,"http://soap.fiap.org/query",InData,&stream);
if (debug_mode) printf("post.end \n\r");
+ if (debug_mode){
+ printf("****\n\r");
+ printf(rstr);
+ printf("\n\r****\n\r");
+ }
if(!r) {
if (debug_mode)printf("Success \n");
} else {
@@ -255,7 +260,9 @@
SP_XmlNodeList * points;
if (strlen(rstr)>0) {
if (debug_mode)printf("\n\r data Get Ok\n\r");
+
SP_XmlDomParser parser;
+
// if (debug_mode)printf("stream readlen = %d \n\r",stream.readLen());
// outBuffer[stream.readLen()]=0;
if (debug_mode)printf("check0\n\r");
@@ -307,7 +314,7 @@
{
HTTPClient http;
int i;
- char str[800];
+ char rstr[800];
char requestBuffer[50];
post_xml_initialize();
strcpy(_soap_text,_soap_header);
@@ -334,10 +341,15 @@
// http.setRequestHeader("SOAPAction","\"http://soap.fiap.org/data\"");
// InData=new HTTPText();
HTTPText InData(_soap_text);
- HTTPText OutData(str,800);
+ HTTPText OutData(rstr,800);
HTTPResult r = http.postXML(_fiap_storage,"http://soap.fiap.org/data",InData,&OutData);
if(!r) {
if (debug_mode)printf("Success \n");
+ if (debug_mode){
+ printf("****\n\r");
+ printf(rstr);
+ printf("\n\r****\n\r");
+ }
} else {
if (r==HTTP_PROCESSING) {
if (debug_mode)printf("Processing \n");