UPDATES: i've run on localhost a java soap client example, and sniff again 
packet. Client request first of all wsdl file from server, send ok, then 
prepare the http+xml request.
On my arduino i don't need the wsdl file because i manually build http 
request. This is how i've implement http request on arduino:

char server[] = "http://arduino-data-server.appspot.com";; //server address
if(client.connect(server, 80)) {
    Serial.println("Connected to server, preparing request.");
    //prepare soap request
    
    client.println("POST /dataserver HTTP/1.1");
    client.println("Accept: text/xml, multipart/related");
    client.println("Content-Type: text/xml; charset=utf-8");
    client.println("SOAPAction: 
\"http://example.com/Functions/SendDataRequest\"";);
    client.println("User-Agent: unknow");
    client.println("Content-Lenght: 208");
    client.println("Host: arduino-data-server.appspot.com");
    client.println("Connection: Keep-Alive");
    client.println();
    client.println("<?xml version=\"1.0\"");
    client.println("<S:Envelope 
xmlns:S=\"http://schemas.xmlsoap.org/soap/envelope/\"";);
    client.println("<S:Body>");
    client.println("<ns2:sendData xmlsn:ns2=\"http://example.com\";>");
    client.println("<arg0> 33 </arg0>");
    client.println("<arg1> 77% </arg1>");
    client.println("</ns2:sendData>");
    client.println("</S:Body>");
    client.println("</S:Envelope>");
  
    Serial.println("richiesta inviata");
}

but there's something strange. If i've write a wrong http request, on my 
server log i should see an error log, but no log of arduino request appear 
on my log. Also if i call only connect function i should see something on 
log, but nothing of this happen


Il giorno giovedì 3 ottobre 2013 23:27:00 UTC+2, Vinny P ha scritto:
>
> On Thu, Oct 3, 2013 at 7:08 AM, giuseppe giorgio 
> <[email protected]<javascript:>
> > wrote:
>
>> i need to write a full http request for invoke a soap webservice hosted 
>> on app engine, but i'm not able to send request. I'm programming an arduino 
>> borad, and there's no library for invoke webservice (so i need to built it).
>> what code should do it's to open an http connection with webservice, then 
>> send http request with xml for call service, but if i open connection by 
>> using webservice address, nothing works.
>>
>
>
> Is the connection itself working? Try taking the code from 
> http://arduino.cc/en/Tutorial/WiFiWebClientRepeating and checking to make 
> sure you can pull a simple text file or HTML page from your application. 
>
> If the client is working, then you should see logs in the Admin Console. 
> Do those logs say anything?
>
>  
> -----------------
> -Vinny P
> Technology & Media Advisor
> Chicago, IL
>
> App Engine Code Samples: http://www.learntogoogleit.com
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to