I m trying to make my webservice in symfony with NuSOAP. I also made a client for test purpose. I managed to make it work in my /web/ directory, but i can t access my symfony methods from there. So i created a new module in my frontend app, and i copied the content of my nuSOAP server file into indexSuccess.php. When i try to consume it, i get no error but also no results, and what s really strange is $proxy->response returning my homepage.
在此,我索引Success。 php
require_once ("../lib/soap/nusoap.php");
$server = new soap_server();
$namespace = "Webservices";
$server->wsdl = new wsdl();
$server->wsdl->schemaTargetNamespace = $namespace;
$server->configureWSDL("Webservices", "Webservices");
function getDemandes($partnerCode)
{
$demandesArray = array();
$demandeArray[] = array( id => 5, poid_id => 25, demande_type => "Male" );
$demandeArray[] = array( id => 8, poid_id => 21, demande_type => "Female");
return $demandeArray;
}
$server->register(
getDemandes ,
array( partnerCode => xsd:string ),
array( getDemandesResponse => tns:ArrayOfDemandesDatas ),
$namespace,
false,
rpc ,
encoded ,
Return requests
);
$POST_DATA = isset($GLOBALS[ HTTP_RAW_POST_DATA ]) ? $GLOBALS[ HTTP_RAW_POST_DATA ] : ;
$server->service($POST_DATA);
exit();
www.un.org/Depts/DGACM/index_spanish.htm 经过进一步的研究,我发现“<代码”错误。 反应不是类型文本/xml:文本/html;Ccharset=utf-8 wheitch并不令人惊讶,因为我在<代码>$request-> response上做了缺席布局,即使用该校的美元和超额支付;layout(false);