Hey!

I want to use this plugin ckWebServicePlugin for develop my WS.

In the first time, it easy to test a basic function like Multiply.

But I want to return an object Doctrine and I have an error :

[16-Feb-2010 11:49:56] PHP Fatal error:  SOAP-ERROR: Encoding: object
hasn't 'canCid' property in D:\wamp\www\testCk
\sf_sandbox_1_2\sf_sandbox\plugins\ckWebServicePlugin\lib\controller
\ckWebServiceController.class.php on line 140

[16-Feb-2010 11:49:56] Internal Server Error



app.yml:

# You can find more information about this file on the symfony
website:
# http://www.symfony-project.org/reference/1_4/en/11-App

# default values
all:
  enable_soap_parameter: off
  ck_web_service_plugin:
    persist: %SOAP_PERSISTENCE_SESSION%
    # the location of your wsdl file
    wsdl: %SF_WEB_DIR%/MathApi.wsdl
    # the class that will be registered as handler for webservice
requests
    handler: ckSoapHandler
    soap_version: %SOAP_1_2%

soap:
  # enable the `ckSoapParameterFilter`
  enable_soap_parameter: on
  ck_web_service_plugin:
    # the location of your wsdl file
    wsdl: %SF_WEB_DIR%/MathApi.wsdl
    # the class that will be registered as handler for webservice
requests
    handler: MathApiHandler
    soap_options:
      encoding: utf-8
      soap_version: %SOAP_1_2%
      persist: %SOAP_PERSISTENCE_SESSION%
      classmap:
        # mapping of wsdl types to PHP types
        TrCanal:              ckGenericObjectAdapter_TrCanal
        TrQuestionnaire:      ckGenericObjectAdapter_TrQuestionnaire
        TrQuestion:           ckGenericObjectAdapter_TrQuestion
        TrReponse:            ckGenericObjectAdapter_TrReponse
        TrQuestionArray:      ckGenericArray
        TrReponseArray:       ckGenericArray






filters.yml:

# You can find more information about this file on the symfony
website:
# http://www.symfony-project.org/reference/1_4/en/12-Filters

rendering: ~
security:  ~

soap_parameter:
  class: ckSoapParameterFilter
  param:
    # `app_enable_soap_parameter` has to be set to `on` so the filter
is only enabled in soap mode
    condition: %APP_ENABLE_SOAP_PARAMETER%

# insert your own filters here

common: false

cache:     ~
execution: ~




WSaction:

public function executeGetCanal($request)
  {
        $this->result = new TrCanal();
        $this->result->setCanCid(10);
        $this->result->setCanCnom("test canal");
        $this->result->setCanLnom("test code");

        return sfView::SUCCESS;
  }



TrCanal.class.php

<?php

/**
 * @PropertyStrategy('ckDoctrinePropertyStrategy')
 */
class TrCanal extends BaseTrCanal
{
        public function __toString() {
                return $this->getCanLnom();
        }
}



Apparently, the ckDoctrinePropertyStrategy do not functionnaly
correctly....

Are you idea?

Help me, i don't understand

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.

Reply via email to