English 中文(简体)
• 如何使NSOAP与书状1.4合作?
原标题:How to make NuSOAP works with Symfony 1.4?

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);

最佳回答

也许你们应当选择一种更好的融合于同义词的选择。 http://www.symfony-project.org/plugins/ckWebservicePlugin” rel=“nofollow”>ckWebservicePlugin。 这一假胜地被严格地融入了国名,比使用《新社会行动计划》更为选择。

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签