required arguments in Flex 1.5 - kills webservice

Posted: 12-31-2005, 09:41 PM
I am running Flex1.5 with Tomcat 5.0. I dropped the samples.war file in webapps
and everything worked great.

I am planning to use on example, the NamedWebServiceDemo, with mods as my
first application. I simply recompiled the EmployeeManager.java file in
{tomcat}\webapps\samples\WEB-INF\classes\samples\explorer in preparation for
actually changing it a bit. NOW the application fails with the message:

Required parameter 'in0' not found in input argument.

I did find one reference to this error
(http://www.macromedia.com/support/do...migration.html)

message stating that 1.5 enforces arguments. I did not change arguments for
anything and this should still work. I decompiled the included class file and
it is, except for variable names, identical to the file EmployeeManager.java
file that I have.

I am stuck! I do not see how to get around this behavior.


Reply With Quote

Responses to "required arguments in Flex 1.5 - kills webservice"

thymecd@sina.com
Guest
Posts: n/a
 
Re: required arguments in Flex 1.5 - kills webservice
Posted: 01-23-2006, 10:30 AM
I met the same problem.
My previous code:
<mx:operation name="updateUser">
<mx:request>
<id>{dg.selectedItem.id}</id>
<name>{txtname.text}</name>
<password>{txtpass.text}</password>
<age>{txtage.text}</age>
</mx:request>
</mx:operation>
But it did not work.
My current code:
<mx:operation name="updateUser">
<mx:request>
<in0>{dg.selectedItem.id}</in0>
<in1>{txtname.text}</in1>
<in2>{txtpass.text}</in2>
<in3>{txtage.text}</in3>
</mx:request>
</mx:operation>
It runs correctly now.
I am not sure why. But I think, user who invoke the web service should
not know the arguments' name of the remote method. So we should depend
on the position of the arguments, not the name of the arguments to
match the remote method.

Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash remoting kills IIS? remecTim Coldfusion Flash Integration 2 06-06-2005 04:47 PM
MX6.1 Updater1 kills IIS6 (w3wp.exe) and eats allMEM Igel Macromedia ColdFusion 0 02-19-2005 11:37 AM
Ineroperability of Webservice arguments. Kevin Burton ASP.NET Web Services 1 01-12-2004 12:16 PM
#16331 [Com]: Running phpinfo() kills Tomcat jawwad_hussain at yahoo dot com PHP Development 1 10-22-2003 12:06 PM
flash kills keyCommands Todd R. Coulson Macromedia Director Lingo 0 08-26-2003 03:40 PM