boliz
08-28-2006, 03:04 PM
hi all!
i am tring to get an answear form WS that expect complex data type (here this is taken from the wsdl):
- <element name="getNavigationTree">
- <complexType>
- <sequence>
<element name="requestParam" type="s0:GetNavigationTreeRequest" nillable="true" />
</sequence>
</complexType>
</element>
the complex type in java is:
public class GetNavigationTreeRequest implements java.io.Serializable {
private boolean aggregateCollection;
private com.sap.test11.KeyValueEntry[] environment;
private java.util.Calendar lastModification;
private java.lang.String[] nodeAdditionalParams;
private int numberOfLevels;
private java.lang.String[] requiredCollections;
private java.lang.String rootNodeId;
i tried to make the same on flex class like this
package javaobject
{
[Bindable]
[RemoteClass(alias="javaobject.GetNavigationTreeRequest")]
public class GetNavigationTreeRequest
{
import javaobject.KeyValueEntry;
private var _aggregateCollection:Boolean;
private var _environment:KeyValueEntry;
private var _lastModification:Date;
private var _nodeAdditionalParams:Array;
private var _numberOfLevels:Number;
private var _requiredCollections:Array;
private var _rootNodeId:String;
// Define public getter.
public function get aggregateCollection():Boolean
{
return _aggregateCollection;
}
// Define public setter.
public function set aggregateCollection(value:Boolean):void
{
_aggregateCollection = value;
}
...
...
and when i am doing wsNav.getNavigationTree.send()
i am getting:
RPC Fault faultString="Error #1069: Property aggregateCollection not found on String and there is no default value.
can somone help me?
i am tring to get an answear form WS that expect complex data type (here this is taken from the wsdl):
- <element name="getNavigationTree">
- <complexType>
- <sequence>
<element name="requestParam" type="s0:GetNavigationTreeRequest" nillable="true" />
</sequence>
</complexType>
</element>
the complex type in java is:
public class GetNavigationTreeRequest implements java.io.Serializable {
private boolean aggregateCollection;
private com.sap.test11.KeyValueEntry[] environment;
private java.util.Calendar lastModification;
private java.lang.String[] nodeAdditionalParams;
private int numberOfLevels;
private java.lang.String[] requiredCollections;
private java.lang.String rootNodeId;
i tried to make the same on flex class like this
package javaobject
{
[Bindable]
[RemoteClass(alias="javaobject.GetNavigationTreeRequest")]
public class GetNavigationTreeRequest
{
import javaobject.KeyValueEntry;
private var _aggregateCollection:Boolean;
private var _environment:KeyValueEntry;
private var _lastModification:Date;
private var _nodeAdditionalParams:Array;
private var _numberOfLevels:Number;
private var _requiredCollections:Array;
private var _rootNodeId:String;
// Define public getter.
public function get aggregateCollection():Boolean
{
return _aggregateCollection;
}
// Define public setter.
public function set aggregateCollection(value:Boolean):void
{
_aggregateCollection = value;
}
...
...
and when i am doing wsNav.getNavigationTree.send()
i am getting:
RPC Fault faultString="Error #1069: Property aggregateCollection not found on String and there is no default value.
can somone help me?