Android Question posting Xml With

alon

Active Member
Licensed User
Longtime User
Hi ,

I am using HttpJob lib for posting string to my web service,
I was using it for a while , and until now everything is working just fine.

The problem start when I am trying to post a string, which contains an xml values.
I am getting an error msg which contains html page.

So I was trying to pass a simple string to check if I did something wrong, but it turn ok.
So I would like to ask if there is a way to send the xml values as string and not as an xml.

Thanks In Advance.
 
Are you sending it with HttpJob.PostString? If so then it is sent as a string.
Yes I am sending it with poststring ,
but the problem is with the '<' character , so for the mean time I am sending other chars instead of '<' and '>' like '!' for '<' and '@' for '>'
and in my web service store procedure I am replacing the chars to the correct one.

so if there is better way for that I would like know.

Thanks
 
Upvote 0
Back
Top