Problems with Webservices

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Problems with Webservices

Postby danilomarcondes » Tue Oct 14, 2008 10:41 am

Hi.
I'm working with some webservices and I'm having some difficulties.

I've made a class which builds a XML string, and sends it through the 'sstAsUrl post:' method.
When the server which I'm sending the string receives it, it returns me a lot of messed characters with an error.
But, if I save the string in a '.xml' file, copy the text, paste it in a workspace and try to send it with both same method and server, it works!

I really don't understand what's happening. I think maybe it's something about codification, but I'm not sure.
I've already tried to send the string as a byte array, but it didn't work.

The string's head always is:
'<?xml version="1.0" encoding="ISO-8859-1"?>'

Any sugestions would be very helpful.
Thanks.
Danilo Marcondes
danilomarcondes
 
Posts: 8
Joined: Wed Sep 24, 2008 10:33 am

Re: Problems with Webservices

Postby danilomarcondes » Thu Oct 16, 2008 8:56 am

This morning I discovered my solution.
When I was building the XML String with my class, I used several times a String containing the characters 10 and 13, to jump to the next line (it was better for me to visualize the code).
I don't know why, but the server which I'm sending the XML wasn't accepting those two specific characters.
I just had to remove them, and now I'm sending the information with no problem.
Danilo Marcondes
danilomarcondes
 
Posts: 8
Joined: Wed Sep 24, 2008 10:33 am


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest