out_only operations support

carlosguillo.hotmail.com's picture
Hi everyone. I am developing a Web Service with 2 operations in the bottom-up way. One of the operations has not input parameters and return something (OUT_ONLY operation type). When i try to generate the wsdl (?wsdl) i get: "Error in generating the WSDL". The question is: ¿Does WSF/PHP suppport this king of operations? or ¿I need some king of special annotations to obtain the wsdl with no errors? I try to add a input parameter to that operation and the wsdl generation works fine....but it would be great if i could desing the operation in the OUT_ONLY way. The source code is: include_once '../../esquemas/mensaje.php'; // define PHP functions that maps to WSDL operations /** * Operacion que retorna la informacion de todas las dependencias registradas en el sistema ORFEO * @author cgprada * @fecha 03-02-2010 * * @return object Message $getInformacionDependenciasResponse Mensaje complejo que contiene un registro por cada dependencia con la informacion respectiva. */ function getInformacionDependencias() { $respuesta = new Message(); return $respuesta; } /** * Operacion que devuelve la informacion asociada a una dependencia. * @author cgprada * @fecha 03-02-2010 * @param string $codigoDependencia Codido de la dependencia de la cual se desea obtener la informacion. * (maps to the xs:string XML schema type) * @return object Message $getInformacionDependenciaResponse Mensaje que contiene un listado de propiedades que contiene la informacion de la dependencia solicitada */ function getInformacionDependencia($codigoDependencia) { $respuesta = new Message(); return $respuesta; } // define the class map $class_map = array("Property" => "Property","Properties" => "Properties","Record" => "Record","Message" => "Message"); // define the operations map $operations = array( "getInformacionDependencias" => "getInformacionDependencias", "getInformacionDependencia" => "getInformacionDependencia"); // define the actions => operations map $opParams = array("getInformacionDependencias"=> "MIXED", "getInformacionDependencia"=> "MIXED"); $service = new WSService(array ( "classmap" => $class_map, "operations" => $operations, "opParams" => $opParams, "bindingStyle"=> "doclit", "serviceName"=>"OrfeoDependenciaWS")); // process client requests and reply $service->reply();
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)