PDA

View Full Version : سوال: مشکل با nusoap



nemo php
شنبه 16 آذر 1392, 11:54 صبح
سلام
این کد منه اگه کسی متونه کمک کنه یه لطفی کنه بگه باید کجاشو در ست کنم تا نتیجه بگیرمو
هیچ مقداری رو بر نمیگردونه.
client



<?php

require_once 'include/config.php';
include("include/lib/nusoap.php");
$application = new Application();
$client=new nusoap_client('http://localhost/include/search.wsdl',true);
$showtable=array("show" => array("show"));
$grid=$client->call("Show_All_Result",$showtable);
$application->assign('gride',$grid);
$application->display('index.tpl');
?>




server.php





<?php
include("lib/nusoap.php");
$server=new nusoap_server('http://localhost/include/search.wsdl');
$server->configureWSDL('Show_All_Result', 'http://localhost/include/');
$server->register("Show_All_Result");
function Show_All_Result($showtable)
{
$return=show::selectAll();
return $return;
}

$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';

$server->service($HTTP_RAW_POST_DATA);
?>




wsdl file:




<?xml version ='1.0' encoding ='UTF-8' ?>
<definitions name='search'
targetNamespace='http://localhost/include/search.wsdl'
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<message name='ActiveAccountRequest'>
<part name='show' type='xsd:array'/>
</message>
<message name='ActiveAccountResponse'>
<part name='return' type='tns:stringArray'/>
</message>
<portType name='searchPortType'>
<operation name='Show_All_Result'>
<input message='tns:ActiveAccountRequest'/>
<output message='tns:ActiveAccountResponse'/>
</operation>
</portType>
<binding name='searchBinding' type='tns:searchPortType'>
<soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http'/>
<operation name='Show_All_Result'>
<soap:operation soapAction='urn:HelloAction'/>
<input>
<soap:body use='encoded' namespace='urn:search'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</input>
<output>
<soap:body use='encoded' namespace='urn:search'
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
</output>
</operation>
</binding>
<service name='resultService'>
<port name='searchPortType' binding='tns:searchBinding'>
<soap:address location='http://localhost/include/server.php'/>
</port>
</service>
</definitions>



واینهم .tpl




{section name=co loop=$gride}
<tr>
<th width="86" height="17" scope="col"> <span id="result_box5" lang="en" xml:lang="en">{$gride[co].daterecive}</span></th>
<th width="79" scope="col"><span id="result_box4" lang="en" xml:lang="en">{$gride[co].datesend}</span></th>
<th width="55" scope="col"><span id="result_box3" lang="en" xml:lang="en">{$gride[co].mabda}</span></th>
<th width="79" scope="col"><span id="result_box2" lang="en" xml:lang="en">{$gride[co].maghsad}</span></th>
<th width="78" scope="col"><span id="result_box" lang="en" xml:lang="en">{$gride[co].mahmole}</span></th>
<th width="35" scope="col">{$gride[co].id}</th>
</tr>
{/section}

nemo php
یک شنبه 17 آذر 1392, 09:15 صبح
مشکلم حل شد ممنون

mehdi mah
سه شنبه 30 اردیبهشت 1393, 16:02 عصر
مشکل چی بود اشتراک بزارید مطلع بشیم