I took your suggestion and use Charles to determine what was being sent.
This is the request that I send.
Parameters Array
[0] Object
person_title String
person_type String
pref_display String
is_active Boolean false
company_person_id String
person_id String
company_id String ABCDEFG
last_name String
lang_pref String
first_name String
mid_name String
The structure is correct, but the type casting is wrong.
It should look like this.
Parameters Array
[0] Object com.rottmanj.model.vo.CompanyPersonVO
person_title String
person_type String
pref_display String
is_active Boolean false
company_person_id String
person_id String
company_id String ABCDEFG
last_name String
lang_pref String
first_name String
mid_name String
I am just not sure as to why it is not properly type casting the object
correctly.
Here is my current AS/VO code.
/*
@brief: Display all company people
*/
private function aGetCompanyPerson():void
{
var personVO:CompanyPersonVO = new
CompanyPersonVO()
personVO.company_id = "ABCDEFG";
roCompany.sGetPerson_Company(personVO);
}
/*
@brief: ResultEvent for get keys
*/
private function
rGetCompanyPerson(event:ResultEvent):void
{
acPerson = new ArrayCollection(event.result as
Array);
}
VO:
package com.rottmanj.model.vo
{
import mx.collections.ArrayCollection;
[RemoteClass(alias="com.rottmanj.model.vo.CompanyPersonVO")];
[Bindable]
public class CompanyPersonVO
{
public var company_person_id:String
= "";
public var person_id:String
= "";
public var company_id:String
= "";
public var person_type:String
= "";
public var person_title:String
= "";
public var first_name:String
= "";
public var mid_name:String
= "";
public var last_name:String
= "";
public var pref_display:String
= "";
public var lang_pref:String
= "";
public var is_active:Boolean
= false;
public function CompanyPersonVO()
{
}
}
}