actually able to save data from flex
Lets try this again. I continue to have trouble posting my coding
example.
Here is what we have tried now.
mx:HTTPService id=srvsave url= useProxy=false method=POST
contentType=application/xml
mx:request
obj{dataModel}/obj
/mx:request
01, 2006
9:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Anyone
actually able to save data from flex
I passed this info to my other programmers and they
insist the
documentation says we need to send the XML as an odject. We are using
odjects to retrieve data. If I take
Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of mthielman11
Sent: Thursday, August 31, 2006 2:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Anyone actually able to save data from flex
OK we tried this method as well. We have now spent
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:
On Thursday 31 August 2006 01:06, mthielman11 wrote:
Help :)
You don't say what happens.
Well what happens is the post gets logged on the server but the server
does not see the XML data. There is no content body.
We can not even get a simple sample like this to work. I can retieve
and view data from the server but the posting is not working.
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:HTTPService id=reviewCreateRequest
On Thursday 31 August 2006 14:23, mthielman11 wrote:
wrote:
On Thursday 31 August 2006 01:06, mthielman11 wrote:
Help :)
You don't say what happens.
Well what happens is the post gets logged on the server but the server
does not see the XML data. There is no content body.
What if
well, the server side method needs to be built to accept the xml. in our
case, we found it easier to build webservice methods and pass it a single
xml argument, rather than working with a servlet/.asp page to accept it as
an http get/post. I'm sure you could do it with httpService, but i
Here is the http service command. If i add
contentType=application/xml and/or add method=POST we get
[RPC Fault faultString=HTTP request error
faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent
type=ioError bubbles=false cancelable=false eventPhase=2 text=Error
#2032: Stream Error.
Here is one sample.
Server side code:
File test1.cfm
cfoutput#xmlout#/cfoutput
MXML
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=335
height=100%
paddingTop=2 paddingLeft=0 paddingRight=1
mx:Script
![CDATA[
import
On Thursday 31 August 2006 14:48, mthielman11 wrote:
We can not even get a simple sample like this to work. I can retieve
and view data from the server but the posting is not working.
Right.
And the web server is seeing the post, and there is a post body if you inspect
it with Wireshark or
Lets try this again. I continue to have trouble posting my coding
example.
Here is what we have tried now.
mx:HTTPService id=srvsave url= useProxy=false method=POST
contentType=application/xml
mx:request
obj{dataModel}/obj
/mx:request
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Anyone
actually able to save data from flex
OK we tried this method as well. We have now spent
another entire day on this! Does
anyone have a simple example of sending an XML file (or XML model) Via aHTTP
service
Post?? We have tried
Subject: [flexcoders] Re: Anyone
actually able to save data from flex
Lets try this again. I continue to have trouble
posting my coding
example.
Here is what we have tried now.
mx:HTTPService id=srvsave url=""
useProxy=false method=POST
contentType=application/xml
mx:request
obj
do you mind me asking how. We can not even get this very simple
sample to work.
?xml version=1.0 encoding=utf-8?
mx:Application pageTitle=Flex 2 Style Explorer
xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100%
mx:HTTPService id=srvsave
HTTPService passes strings not objects so that is most likely the
issue. Either convert the DataModel to a xml string or do something
like this to pass in the variables as form variables.
If you want to pass objects you need to use RemoteObject calls.
public function submitURL() {
OK we tried this method as well. We have now spent another entire day on this!
Does
anyone have a simple example of sending an XML file (or XML model) Via aHTTP
service
Post?? We have tried this many ways and honestly this has become very, very
frustrating
for everyone involved. If no one
16 matches
Mail list logo