nusoap

PHP Web Service NuSOAP complex type

橙三吉。 提交于 2019-12-06 15:52:09
问题 I wrote php web service using NuSOAP and client script. I used array complex type to return an array of complex type, but it's print nothing!! server.php <?php // Pull in the NuSOAP code require_once('nusoap-php5-0.9/lib/nusoap.php'); ini_set ('soap.wsdl_cache_enabled', 0); // Create the server instance $server = new soap_server(); // Initialize WSDL support $server->configureWSDL('GetCus', 'urn:GetCus'); $server->wsdl->addComplexType( 'Product', 'complexType', 'struct', 'all', '', array(

PHP Parse Soap Response Issue - SimpleXMLElement

大兔子大兔子 提交于 2019-12-06 15:49:34
I'm having problems using PHP SimpleXMLElement and simpleSMLToArray() function to parse a SOAP Response. I'm getting the SOAP response from my SOAP Server just fine. I'm writing both the SOAP Client and Server in this case. I'm using NuSoap for the server. To me, the soap response looks perfect, but the PHP5 Soap Client doesn't seem to parse it. So, as in the past, I'm using SimpleXMLElement and the function simpleXMLToArray() from PHP.NET ( http://php.net/manual/en/book.simplexml.php ), but can't seem to get an array. <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap

nusoap codeigniter webservice server and client

喜你入骨 提交于 2019-12-06 14:51:02
问题 I am new in webservice, and have been looking in how to create web service, at the moment, I think I somehow manage to make one but it does not return any result. I am using nusoap and also Codeigniter. The WebService Server is in an application called WebServiceTester below is the code for the Bills_WS controller that serve as the server: class Bills_WS extends CI_Controller { function __construct() { parent:: __construct (); } public function index() { $this->load->library('Nusoap_lib');

How is the max size of a SOAP message determined?

家住魔仙堡 提交于 2019-12-06 08:20:25
问题 I'm using NuSOAP on PHP 5.2.6 and I'm seeing that the max message size is only 1000 bytes (which makes it tough to do anything meaningful). Is this set in the endpoint's WSDL or is this something I can configure in NuSOAP? 回答1: Regarding the FUD about a "1000 bytes limit"... I looked up the nusoap_client sourcecode and found that the limit is only effective for debug output . This means all data is processed and passed on to the webservice (regardless of its size), but only the first 1000

Nusoap with https

杀马特。学长 韩版系。学妹 提交于 2019-12-06 07:18:33
I am unsure if there is any difference for PHP-Nusoap client in sending web services request to http and https. For the user testing, the client was using http://xxx.xxx.xxx.xxx:3833/ws/ws.svc?wsdl which was working fine. However when the client moved to the production server with https (replace the http in previous link with https) I don't get any reply. Thanks in advance I had the same problem, as it was working fine on http, but wasn't on https. Just to share my whole programming path here, to help others. I originally followed this tutorial: php webservice with nusoap and c# . Only thing

NuSOAP and response with Array

本秂侑毒 提交于 2019-12-06 05:37:18
问题 I've NuSOAP web-server: ... $server->register('getMembersEvents', array('date' => 'xsd:string'), array('Events' => 'tns:Events'), 'urn:my', false, 'rpc', false, 'Description' ); $server->wsdl->addComplexType( 'Events', 'complexType', 'array', '', 'SOAP-ENC:Array', array('Event' =>array ('name' => 'Event', 'type' => 'tns:Event')), array( 'Event' => array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:Event[]') ), 'tns:Event' ); $server->wsdl->addComplexType( 'Event', 'complexType', 'struct

NuSOAP and content type

こ雲淡風輕ζ 提交于 2019-12-05 05:37:05
Can't figure out how to make NuSOAP use UTF-8 for a content type. it keeps spitting out "ISO-8859-1". here's the relevant code bits that I've tried: $soapclient=new soapclient($url1,'wsdl'); $soapclient->http_encoding='utf-8'; $soapclient->defencoding='utf-8'; if($soapclient->fault){ $retdata=$soapclient->fault; }else{ if($soapclient->getError()){ $retdata=$soapclient->getError(); }else{ $params=array($xmldata); $retdata=$soapclient->call($doit,$params,$url1,$url2); } } here's the request: POST xxxxxxxxxxxx HTTP/1.0 Host: xxxxxxxxxxxxx User-Agent: NuSOAP/0.9.5 (1.123) Content-Type: text/xml;

TLS v1.2 ciphers to use in PHP NUSOAP SoapClient

我与影子孤独终老i 提交于 2019-12-05 03:29:06
I want to connect to a server that only supports TLS 1.2. What possible ciphers can I specify to stream context in the PHP NUSOAP SoapClient creation? <?php $objSoapClient = new SoapClient( "https://example.com/?wsdl", array( "encoding"=>"ISO-8859-1", "stream_context"=>stream_context_create( array( "ssl"=>array("ciphers"=>"<????>") ) ) ) ); ?> TLS v1.2 is described in RFC5246 , you can read it here . List of ciphers you can find in openssl wiki , use the second line without trailing 256 . You can manually get a list of ciphers used by running openssl ciphers -v | grep -v 'TLSv1.2' on the

How do RESTful and SOAP Web Services differ in practice?

有些话、适合烂在心里 提交于 2019-12-04 23:07:38
问题 I am implementing web services for a PHP application and am trying to understand what both standard web services and RESTful web services have to offer. My intent is to write wrapper code to abstract away the web service details so that developers can just "instantiate remote objects" and use them. Here are my thoughts, perhaps some of you could add your experience and expand this: RESTful Web Servcies are basically just "XML feeds on demand", so e.g. you could write wrapper code for a client

PHP Web Service NuSOAP complex type

。_饼干妹妹 提交于 2019-12-04 21:04:58
I wrote php web service using NuSOAP and client script. I used array complex type to return an array of complex type, but it's print nothing!! server.php <?php // Pull in the NuSOAP code require_once('nusoap-php5-0.9/lib/nusoap.php'); ini_set ('soap.wsdl_cache_enabled', 0); // Create the server instance $server = new soap_server(); // Initialize WSDL support $server->configureWSDL('GetCus', 'urn:GetCus'); $server->wsdl->addComplexType( 'Product', 'complexType', 'struct', 'all', '', array( 'Name' => array('name'=>'name','type'=>'xsd:string'), 'Code' => array('name'=>'product_number','type'=>