This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » General plug-ins » ckWebServicePlungin Recive byte[] parameter
ckWebServicePlungin Recive byte[] parameter [message #103258] Thu, 29 July 2010 20:16
lebb  is currently offline lebb
Messages: 1
Registered: July 2010
Location: Mexico
Junior Member
Hi

I need to recive a byte[] as parameter on a WS method.

My WSMethod:


  /**
   * New File
   *
   * @WSMethod(webservice='VisitorApi')
   *
   * @param string $id_visitor Visitor ID
   * @param string $id_game Game ID
   * @param string $mime_type Mime Type
   * @param string $file_path File Path
   * @param string $main text
   * @param byte[] $barray Array bytes
   *
   * @return string The result
   */



My app.yml:


soap:
  # enable the `ckSoapParameterFilter`
  enable_soap_parameter: on
  ck_web_service_plugin:
    wsdl: %SF_WEB_DIR%/VisitorApi.wsdl
    handler: VisitorApiHandler
    soap_options:
      classmap:
        # mapping of wsdl types to PHP types
        StringArray: ckGenericArray
        ByteArray: ckGenericArray




But I recive this error message with the webservice:generate-wsdl task:

PHP Catchable fatal error: Argument 1 passed to ckWsdlPart::setType() must be an instance of ckXsdType, null given,


Can anyone help me with this? I am quite new with this plugin.
Thank you!
Previous Topic:sfImageTransformPlugin - doesn't resize well
Next Topic:sfWidgetFormInputSWFUploadPlugin problem
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software