HTTP XML POST

Quickly share your Android Code Snippets here...

HTTP XML POST

Postby semtexas » Sat Jul 17, 2010 7:11 pm

I'm tryin to parse some XML code to the page https://service.sms4you.lt/XMLInput.php

but i just don't know where to start, please help. :(
any help appreciated..

XML code i'm tryin to parse to the server:

Code: Select all
<SMS>
    <authentification>
        <username></username>
        <password></password>
    </authentification>
    <message>
        <sender></sender>
        <text></text>
        <type>long</type>
    </message>
    <recipients>
        <gsm messageId="clientmsgID1"></gsm>
        <gsm messageId="clientmsgID2"></gsm>
        <gsm messageId="clientmsgID3"></gsm>
        <gsm messageId="clientmsgID4"></gsm>
    <recipients>
</SMS>


Server webserver response:

Code: Select all
<RESPONSE>
    <status>status_code</status>
    <credits>credit_amount</credits>
</RESPONSE>


Best Regards
semtexas
semtexas
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Jul 17, 2010 7:01 pm

Top

Return to Code Snippets for Android

Who is online

Users browsing this forum: No registered users and 5 guests