[flexcoders] Re: Anyone actually able to save data from flex

2006-09-01 Thread mthielman11
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 out the post and the application
type I get the xml to show in the call on the server but the body is empty

/testServer/store?a=bodject=%3Cphysician%3E%3Ctest%3Eabc%3C%2Ftest%3E%3C%2Fphysician%3E

maybe we are extremely dense but we still can not get this save to work.  




--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 I think the problem is as someone else noted, that HTTPService needs a
 string, and you are trying to pass it an object.
 
  
 
 Note that in Mike Collins' example he uses toXMLString().  I use string
 in the example I sent you directly.
 
  
 
 Also, is your server side app getting the querystring arguments (a=b)
 successfully?  In 1.5 it was illegal to put arguments on the url, I do
 not know if that has changed in 2.0.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of mthielman11
 Sent: Thursday, August 31, 2006 2:48 PM
 To: flexcoders@yahoogroups.com
 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{dataModel}/obj
 /mx:request
 /mx:HTTPService
 
 mx:XML id=dataModel format=xmls
 physician
 testabx/test
 /physician
 /mx:XML
 
 private function storePhysician_Basics():void {
 srvsave.url=parentApplication.dataServerURL+store?a=b;
 srvsave.send();
 }
 
 and we are getting the following error:
 
 Error: Error #1023: Stack overflow occurred.
 at mx.utils::ObjectUtil$/getClassInfo()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: Anyone actually able to save data from flex

2006-09-01 Thread Tracy Spratt












I see in the docs where you
should be able to send an XML document using application/xml.



I have never done this, I have only used string
name=value pairs.



Tracy











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of mthielman11
Sent: Friday, September 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 out the post and the application
type I get the xml to show in the call on the server but the body is empty

/testServer/store?a=bodject=%3Cphysician%3E%3Ctest%3Eabc%3C%2Ftest%3E%3C%2Fphysician%3E

maybe we are extremely dense but we still can not get this save to work. 

--- In [EMAIL PROTECTED]ups.com,
Tracy Spratt [EMAIL PROTECTED] wrote:

 I think the problem is as someone else noted, that HTTPService needs a
 string, and you are trying to pass it an object.
 
 
 
 Note that in Mike Collins' example he uses toXMLString(). I use
string
 in the example I sent you directly.
 
 
 
 Also, is your server side app getting the querystring arguments (a=b)
 successfully? In 1.5 it was illegal to put arguments on the url, I do
 not know if that has changed in 2.0.
 
 
 
 Tracy
 
 
 
 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of mthielman11
 Sent: Thursday, August 31, 2006 2:48 PM
 To: [EMAIL PROTECTED]ups.com
 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{dataModel}/obj
 /mx:request
 /mx:HTTPService
 
 mx:XML id=dataModel format=xmls
 physician
 testabx/test
 /physician
 /mx:XML
 
 private function storePhysician_Basics():void {
 srvsave.url="">parentApplication.dataServerURL+store?a=b;
 srvsave.send();
 }
 
 and we are getting the following error:
 
 Error: Error #1023: Stack overflow occurred.
 at mx.utils::ObjectUtil$/getClassInfo()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()







__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread Dirk Eismann
It works fine for me - if you receive stream errors then this may be a
security issue or an issue with the server not being able to handle the
result correctly.

Instead of sending a XML structure, have you tried POSTing simple String
values? Does this work for you? 


Dirk.




 -Original 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 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 has 
 any ideas, how about some place where i might be able to find 
 an answer.  I tried the Adobe forums and no one ever seems ro 
 respond over there.  
 
 Help :)
 
 
 --- In flexcoders@yahoogroups.com, Mike Collins 
 [EMAIL PROTECTED] wrote:
 
  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() {
  
  var variables:Object = new Object();
  // Build request
  variables.parent1firstname =
  parent1firstname.text;
  variables.parent1lastname = parent1lastname.text;

   // Submit   
  submitData.request = variables;
  submitData.send();
  }
 
 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
  
 
 
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread mthielman11
--- 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.



 You don't say what your backend is.

Web server is resin.  Database server is PostgreSQL

 You don't post its logs.



 You don't say you've verified the request leaves the Flash player
'on the 
 wire' and even hits your server.

We know it hits the server because the server logs the request.  We
see the Post request on the server but there is no content.


 
 The more info you give, the more chance someone will spot whatever
wrinkle has 
 got into your setup.

This information is based of when we mess with our code a bit to
eliminate the stream errors.  Whenever we change content type to
application/xml we get stream error 2032


Also I have tried sending logs and code but it keeps seeming to get
cut off.  It looks fine when I preview the message but the final
message only contains a line or two of my code.

Thanks.


 
 Honestly, it really is very very easy :-)
 
 -- 
 Tom Chiverton
 Helping to greatly orchestrate dynamic clusters
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread mthielman11
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 
url=http://x.x.x.154:8080/testServer/store?A=B; useProxy=false
method=POST
mx:request xmlns=
  review
 titleTesting/title
 authorJohn Smith/author
 scoreThe One/score
 textPLease Work/text
  /review
   /mx:request
   /mx:HTTPService
mx:Canvas width=100% height=100%
mx:Button label=Submit click=reviewCreateRequest.send();/
 
/mx:Canvas
/mx:Application





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread Tom Chiverton
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 you make the request using a normal web browser ?
Can you get any of the many examples that use public web services working ?

-- 
Tom Chiverton
Helping to centrally market plug-and-play e-services



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread Jeff Tapper
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 havent 
personally done it that way.

At 10:32 AM 8/30/2006, mthielman11 wrote:

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
url=http://0.0.0.4:8080/ZebraServer/store?a=b; method=POST
resultFormat=e4x contentType=application/xml /

 mx:XML id=dataModel format=e4x 
 physician
 testabc/test
 /physician
 /mx:XML

 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 //public var xmldata =
parentDocument.parentDocument.phyRequest.lastResult;

   private function storePhysician_Basics():void {
 srvsave.send(dataModel);
 }
 ]]
 /mx:Script
mx:Button label=Save click=storePhysician_Basics();/

/mx:Application






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread mthielman11
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. URL:
http://10.250.20.154:8080/ZebraServer/store?a=b;]. URL:
http://10.250.20.154:8080/ZebraServer/store?a=b;]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at ::DirectHTTPMessageResponder/errorHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread Mike Collins
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 mx.controls.Alert;
import mx.utils.StringUtil;
[Bindable]
var registerurl:String = 'http://www.xx.com/test1.cfm';
public function httpFault() {
Alert.show('Hello World!', 'Fault')
}
public function httpResult() {

Alert.show(mx.utils.StringUtil.trim(submitData.lastResult.toString()),
'Success')
}
public function submitURL() {
var variables:Object = new Object();
variables.xmlout = dataModel.toXMLString();
submitData.request = variables;
submitData.send();
}
]]
/mx:Script
mx:XML id=dataModel  xmlns=
rootnodeid100/idlabelTest/label/node/root
/mx:XML

mx:HTTPService id=submitData url={registerurl}
resultFormat=text  method=POST fault=httpFault()
result=httpResult() /
mx:Button id=bt   width=100% label=Send  click=submitURL()  /
/mx:Application







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread Tom Chiverton
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 something, but there is no body when you look for it in 
your (Java ?) code ?

-- 
Tom Chiverton
Helping to synergistically reintermediate unique methodologies



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread mthielman11
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
  /mx:HTTPService

 mx:XML id=dataModel format=xmls
  physician
 testabx/test
 /physician
 /mx:XML

 private function storePhysician_Basics():void {
 srvsave.url=parentApplication.dataServerURL+store?a=b;
 srvsave.send();
 }

and we are getting the following error:

Error: Error #1023: Stack overflow occurred.
 at mx.utils::ObjectUtil$/getClassInfo()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
 at mx.rpc.xml::SimpleXMLEncoder/encodeValue()





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread Tracy Spratt












I have an sample zip file that uses
HTTPService to retrieve and save an xml file via a JSP page.



I will send it to you directly.



Tracy











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mthielman11
Sent: Wednesday, August 30, 2006
8:06 PM
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 this many ways and honestly this has become very, very
frustrating 
for everyone involved. If no one has any ideas, how about some place where i
might be 
able to find an answer. I tried the Adobe forums and no one ever seems ro
respond over 
there. 

Help :)

--- In [EMAIL PROTECTED]ups.com,
Mike Collins [EMAIL PROTECTED]. wrote:

 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() {
 
 var variables:Object = new Object();
 // Build request
 variables.parent1firstname = 
 parent1firstname.text;
 variables.parent1lastname = parent1lastname.text;
 
 // Submit 
 submitData.request = variables;
 submitData.send();
 }







__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Re: Anyone actually able to save data from flex

2006-08-31 Thread Tracy Spratt












I think the problem is as someone else
noted, that HTTPService needs a string, and you are trying to pass it an
object.



Note that in Mike Collins example
he uses toXMLString(). I use string in the example I sent you directly.



Also, is your server side app getting the
querystring arguments (a=b) successfully? In 1.5 it was illegal to put
arguments on the url, I do not know if that has changed in 2.0.



Tracy











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mthielman11
Sent: Thursday, August 31, 2006
2:48 PM
To: flexcoders@yahoogroups.com
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{dataModel}/obj
/mx:request
/mx:HTTPService

mx:XML id=dataModel format=xmls
physician
testabx/test
/physician
/mx:XML

private function storePhysician_Basics():void {
srvsave.url="">parentApplication.dataServerURL+store?a=b;
srvsave.send();
}

and we are getting the following error:

Error: Error #1023: Stack overflow occurred.
at mx.utils::ObjectUtil$/getClassInfo()
at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
at mx.rpc.xml::SimpleXMLEncoder/encodeValue()
at mx.rpc.xml::SimpleXMLEncoder/encodeValue()






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Re: Anyone actually able to save data from flex

2006-08-30 Thread mthielman11
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
url=http://0.0.0.4:8080/ZebraServer/store?a=b; method=POST
resultFormat=e4x contentType=application/xml /

mx:XML id=dataModel format=e4x 
physician
testabc/test
/physician
/mx:XML

mx:Script
![CDATA[  
import mx.controls.Alert;
//public var xmldata =
parentDocument.parentDocument.phyRequest.lastResult;

  private function storePhysician_Basics():void {
srvsave.send(dataModel);
}
]]
/mx:Script
mx:Button label=Save click=storePhysician_Basics();/

/mx:Application






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Anyone actually able to save data from flex

2006-08-30 Thread Mike Collins
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() {

var variables:Object = new Object();
// Build request
variables.parent1firstname = 
parent1firstname.text;
variables.parent1lastname = parent1lastname.text;
  
 // Submit   
submitData.request = variables;
submitData.send();
}








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Anyone actually able to save data from flex

2006-08-30 Thread mthielman11
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 has any ideas, how about some place where i 
might be 
able to find an answer.  I tried the Adobe forums and no one ever seems ro 
respond over 
there.  

Help :)


--- In flexcoders@yahoogroups.com, Mike Collins [EMAIL PROTECTED] wrote:

 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() {
   
   var variables:Object = new Object();
   // Build request
   variables.parent1firstname = 
 parent1firstname.text;
 variables.parent1lastname = parent1lastname.text;
   
// Submit   
 submitData.request = variables;
 submitData.send();
 }







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/