Sounds like you are making it way more difficult that it really is.  You
shouldn't be working at the SOAP envelope level anyway; Flex takes care of
all of that for you.
Essentially, the generated code will give you a proxy method for each
webservice method, and then will dispatch a custom event for each webservice
method.  You just need to listen to this event (e.g. *Operationname*
ResultEvent).

Have a look at
http://livedocs.adobe.com/flex/3/html/help.html?content=data_4.html for good
examples.

(Note that I assume you are generating the webservice wrappers using Flex
Builder instead of instaniating a WebService object yourself.)


On Wed, Jun 10, 2009 at 4:34 PM, Scanzano, Henry <[email protected]> wrote:

> Folks,
>
> I have an issue that is likely caused by the lack of experience
> in using Web Services in FLEX. I've tried multiple means to get
> examples. What is on the Adobe site is dated. The other issue is
> that the Flex documentation doesn't provide a decent description
> of the steps that need to be performed. I got this far by examining
> the generated Action Script.
>
> Regardless, I imported the WSDL in Flex Builder. It created all
> the necessary classes. I was able to send a request to a J2EE
> application server and the server responded perfectly.
>
> When the FLEX client receives the response it creates an event.
> I catch the event and then an error occurs. The SOAP/XML response
> message has 2 elements - Response Message Header and the Response
> Message Body. The Header has a valid pointer so I can look at
> the status information. However, the Body has a null pointer.
> In the XML declaration the Response Message Body is optional
> because if the status returns a failure code, then the Body
> will not contain any information. This is very typical approach.
>
> If anyone has used Web Services in Flex, is there any steps that you
> feel I may have missed or perhaps provide any suggestions.
>
> I also asked Adobe (technical experts). Nothing struck them immediately
> so they are attempting to replicate the problem. It has been 3 days so
> I'm reaching out to others.
>
> Thx Henry
>
> *****
>
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential, proprietary, and/or
> privileged material. Any review, retransmission, dissemination or other use
> of, or taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material from all
> computers. GA623
>
>
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by http://www.fusionlink.com
> -------------------------------------------------------------
>
>
>


-- 
Scott Talsma
CTO, echoEleven

Reply via email to