Problem is that as I indicated originally I'm using a WebService, and there's no contentType property there.
The web service server expects a String as indicated in the wsdl. Still no dice... --- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> wrote: > > Here's straight from the docs: > The <mx:HTTPService> tag accepts the following tag attributes: > > <mx:HTTPService > Properties > concurrency="multiple|single|last" > contentType="application/x-www-form-urlencoded|application/xml" > destination="DefaultHTTP" > id="No default." > method="GET|POST|HEAD|OPTIONS|PUT|TRACE|DELETE" > resultFormat="object|array|xml|e4x|flashvars|text" > showBusyCursor="false|true" > makeObjectsBindable="false|true" > url="No default." > useProxy="false|true" > xmlEncode="No default." > xmlDecode="No default." > Events > fault="No default." > result="No default." > /> > > contentType="application/xml" - that'll get you what you need :D > > > --- In flexcoders@yahoogroups.com, "nathanpdaniel" <ndaniel@> > wrote: > > > > You should check out the Flex Reference for HTTPService - one > > parameter you can change is contentType (or something similar - > check > > for yourself because I have no idea what it actually is) - but you > > need to change your content type to XML (the docs tell you how). I > > was having issues with sending data via HTTPService when my system > > was able to read straight XML, I was having to hack my way around > > until I figured that one out. It's one simple parameter, then in > the > > send() function, you can send XML rather than an Object (array) of > > parameters! :D Hope this helps! > > -Nathan > > > > --- In flexcoders@yahoogroups.com, "fourctv" <fourctv@> wrote: > > > > > > I am sending an XML object as a parameter on a .send() to a web > > service. > > > > > > From my observation Flex sends the xml data encoded with > > a "macintosh" encoding (mac- > > > roman), even when sent from a Windows box. (I checked the traffic > > and that is what I see) > > > > > > I thought Flex would use utf-8 or utf-16, but any non-ascii chars > > arrives at the destination > > > as a 'macRoman' character! > > > > > > I need to inform the receiving party of the encoding used thus > the > > need to prefix the xml > > > stream with the <?xml..?> line and indicate the proper encoding. > > > > > > Right now I'm using something like: > > > soap.send('<?xml version="1.0" encoding="macintosh"? > > >'+formData.toXMLString()); > > > > > > where formData is my XML object. > > > > > > Is there any other way? or is this how one does it in Flex? > > > And what about changing the encoding, to say utf-8? Is there a > way > > to tell/force Flex to > > > use other encoding? > > > > > > Thanks for any pointers, > > > julio carneiro > > > > > > ps: maybe I see the encoding as "mac" because I'm generating > > my .swf on OS X? > > > > > >