Yes, I actually just finished about a 20 minute 'step into' session
where I tried to monitor every step along the way (there are TONS).
Unfortunately, it was near impossible to follow the flow of control
and figure out where they're getting lost. op.arguments retains the
correct data even after the call, so something is happening during the
encoding that is not copying the values correctly. The values do not
seem to get passed into the AsyncToken even. Below is a piece I copied
from the debugger that shows the args object (which gets assigned to
op.arguments) correctly populated but the token with empty nodes in
its body property. I am at a complete loss.
pc = Operation.as$39.OperationPendingCall (@23b2a61)
args = Object (@235b881)
groupingRequests = Object (@235b781)
GroupName = "RPRTool"
Parameters = Array (@2350df1)
[0] = Object (@235b701)
Name = "PLAN_N1"
Value = "78167"
[1] = Object (@235b6e1)
[2] = Object (@235b6c1)
[3] = Object (@235b741)
[4] = Object (@235b441)
[5] = Object (@235b181)
[6] = Object (@235b261)
[7] = Object (@235b681)
[8] = Object (@235bf01)
[9] = Object (@235bea1)
[10] = Object (@235b521)
[11] = Object (@235be41)
[12] = Object (@235bca1)
length = 13 [0xd]
headers = Array (@2357821)
token = mx.rpc.AsyncToken (@2129f61)
message = mx.messaging.messages.SOAPMessage (@2050c59)
body = "<?xml version="1.0"
encoding="utf-8"?>\n<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><GetDataByGrouping
xmlns="http://fmr.com/BackOffice/ClientMeasures"><ns1:groupingRequests
xmlns:ns1="http://server.com/BackOffice/ClientMeasures"><ns1:DataGroupingRequest
/><ns1:DataGroupingRequest /><ns1:DataGroupingRequest
/><ns1:DataGroupingRequest /><ns1:DataGroupingRequest
/><ns1:DataGroupingRequest /><ns1:DataGroupingRequest
/><ns1:DataGroupingRequest /><ns1:DataGroupingRequest
/><ns1:DataGroupingRequest /><ns1:DataGroupingRequest
/><ns1:DataGroupingRequest /><ns1:DataGroupingRequest
/></ns1:groupingRequests></GetDataByGrouping></SOAP-ENV:Body></SOAP-ENV:Envelope>"
clientId = "DirectHTTPChannel0"
contentType = "text/xml; charset=utf-8"
destination = "DefaultHTTP"
headers = Object (@2259ba1)
DSEndpoint = "direct_http_channel"
httpHeaders = Object (@23b2921)
SOAPAction =
""http://server.com/BackOffice/ClientMeasures/GetDataByGrouping""
messageId = "D3441EA6-EBB1-4117-ACA6-11FE678DDBFA"
method = "POST"
recordHeaders = false
timestamp = 0 [0x0]
timeToLive = 0 [0x0]
url = "http://server/Webservices/ClientMeasures.asmx"
responders = null
result = null
--- In [email protected], "Douglas Knudsen"
<[EMAIL PROTECTED]> wrote:
>
> have you tried using the debugger to see when and where these args
turn up
> null?
>
> DK
>
> On 8/15/06, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> >
> > > if you call GetDataByGrouping() you're ignoring the arguments.
> > I don't think that is the case. That is how I call all of my SOAP
> > methods and all but the one in question work every time, and even this
> > one usually works.
> >
> > I tried op.send() and it produces the exact same result as before. I
> > really need to get this figured out. I am doing a presentation on Flex
> > to some senior people in our group on Friday to tout its abilities and
> > a web service intermittently failing is not going to help my cause.
> >
> > Any help is greatly appreciated.
> >
> > Thanks,
> > Ben
> >
> >
> > --- In [email protected], "Matt Chotin" <mchotin@> wrote:
> > >
> > > You should be calling op.send(), if you call GetDataByGrouping()
you're
> > > ignoring the arguments.
> > >
> > >
> > >
> > > Matt
> > >
> > >
> > >
> > > ________________________________
> > >
> > > From: [email protected]
[mailto:[EMAIL PROTECTED] On
> > > Behalf Of ben.clinkinbeard
> > > Sent: Monday, August 14, 2006 2:14 PM
> > > To: [email protected]
> > > Subject: [flexcoders] Operation.arguments is populated but nulls are
> > > sent
> > >
> > >
> > >
> > > I am having a very odd error, and it only happens sometimes. I am
> > > creating an object structure and then assigning that to the
arguments
> > > property of my mx.rpc.soap.Operation object like this:
> > >
> > > op.arguments = args;
> > >
> > > I then call the SOAP method like this:
> > >
> > > var call:AsyncToken = service.GetDataByGrouping();
> > > call.addResponder(responder);
> > >
> > > Sometimes (I've not figured out a pattern), Flex somehow loses
all of
> > > the contents of the arguments property and sends nulls. It is
sending
> > > the same number of nulls as there were properties though, so I am
> > > super confused. The Operation.arguments object is still
populated with
> > > the correct data, but none of it gets sent. Does anyone have any
idea
> > > what is going on here? I am pasting the entire method from my
delegate
> > > below.
> > >
> > > // in the delegate constructor
> > > service = ServiceLocator.getInstance().getService("cmws") as
WebService;
> > >
> > > // in the method called by my command class
> > > var op:Operation = service.getOperation("GetDataByGrouping") as
> > > Operation;
> > > op.resultFormat = "e4x";
> > > // temp object to store arguments
> > > var args:Object = new Object();
> > > args.groupingRequests = new Object();
> > > args.groupingRequests.GroupName = "RPRTool";
> > > args.groupingRequests.Parameters = new Array();
> > > ... populate Parameters array ...
> > > op.arguments = args;
> > > var call:AsyncToken = service.GetDataByGrouping();
> > > call.addResponder(responder);
> > >
> > > // results in sendign an object like this
> > > <ns1:groupingRequests
> > > xmlns:ns1="http://fmr.com/BackOffice/ClientMeasures
> > > <http://fmr.com/BackOffice/ClientMeasures> ">
> > > <ns1:DataGroupingRequest/>
> > > <ns1:DataGroupingRequest/>
> > > <ns1:DataGroupingRequest/>
> > >
> > > Ben
> > >
> >
> >
> >
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>
--
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/