Zend Framework

Zend_Amf documentation of service namespaces

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Zend_Amf
  • Labels:
    None
  • Language:
    English

Description

When adding multiple classes to a server, the documentation has the following to say about namespacing:

"You could also mix and match multiple classes and functions. When doing so, we suggest namespacing each to ensure that no method name collisions occur; this can be done by simply passing a second string argument to either addFunction() or setClass(): "

And later in the documentation is the following:

"When namespacing, you would use "myservice.<namespace>.<method>":
myservice.world.hello("Wade");"

This is either insufficient or incorrect information on how to get a remote object in Flex to use namespaces set up by the server. Just using myservice.<namespace>.<method> (with "<namespace>" and "<method>" replaced with correct values) results in a Flex Builder error:

ReferenceError: Error #1069: Property <method> not found on mx.rpc.remoting.mxml.Operation and there is no default value.

Activity

Hide
Jon Whitcraft added a comment -

I have run into this problem what is the proper way to do it? Currently I do this:

myService.source = 'dvr';
myService.edges();
Show
Jon Whitcraft added a comment - I have run into this problem what is the proper way to do it? Currently I do this:
myService.source = 'dvr';
myService.edges();

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: