nusoap

nusoap codeigniter webservice server and client

谁说我不能喝 提交于 2019-12-04 21:00:21
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'); $namespace = "http://localhost:8080/webservicetester/bills_ws.php?wsdl"; $server = new nusoap_server;

How is the max size of a SOAP message determined?

南楼画角 提交于 2019-12-04 12:38:29
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? Daniel Alvarez Arribas 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 bytes (or more precisely: characters) are shown in the debug log. Here's the code: $this

NuSOAP and response with Array

我的梦境 提交于 2019-12-04 10:25:36
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', 'all', '', array( 'field1' => array('name' => 'MemberNumber', 'type' => 'xsd:int'), // ... 'fieldN'

wsdl error: no proper separation of headers and document

做~自己de王妃 提交于 2019-12-04 04:40:01
问题 I'm using NUSOAP to use a soap interface to microsoftdynamics. I'm getting this error "wsdl error: Getting https://testserver2013.api.crm4.dynamics.com/XRMServices/2011/Organization.svc?wsdl=wsdl0 - HTTP ERROR: no proper separation of headers and document" , I'm a bit confused. I'm assuming the xml document is fine, is there a problem with the headers, or is it likely i'm incorrectly reading it! thanks. the xml of the document looks like this <ms-xrm:FailoverPolicy xmlns:ms-xrm="http:/

How do RESTful and SOAP Web Services differ in practice?

谁都会走 提交于 2019-12-03 13:29:08
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 application so it could query the server application in this way: $users = Users::getUsers("state =

Nusoap use existing WSDL how to?

折月煮酒 提交于 2019-12-02 09:21:08
问题 so I have a WSDL I've been giving as documentation for a soap service. I need to implement this service exactly as defined and I don't want to rewrite the wsdl using nusoap. Is there a way to tell the object nusoap_server = new soap_server(); to use an existing wsdl and then implement the functions from the existing wsdl? thanks 回答1: $WSDL = '/path/to/wsdl/file'; $nusoap_server = new soap_server($WSDL); The only problem with this is that nusoap may not create the response correctly, but it

Nusoap use existing WSDL how to?

寵の児 提交于 2019-12-02 05:08:22
so I have a WSDL I've been giving as documentation for a soap service. I need to implement this service exactly as defined and I don't want to rewrite the wsdl using nusoap. Is there a way to tell the object nusoap_server = new soap_server(); to use an existing wsdl and then implement the functions from the existing wsdl? thanks $WSDL = '/path/to/wsdl/file'; $nusoap_server = new soap_server($WSDL); The only problem with this is that nusoap may not create the response correctly, but it will host the wsdl file. I had to customize my xml responses. Which you can tell nusoap to do but you will

Moving from NuSOAP to PHP5 SOAP

喜你入骨 提交于 2019-12-01 05:23:54
I have been working on a script with PHP4 that relies on NuSOAP. Now, I'm trying to move this to PHP5, and use the buildin support for SOAP there. $wsdlPath = ""; // I have obviously set these variables to something meaningful, just hidden for the sake of security $apiPath = ""; $username = ""; $password = ""; // PHP5 style $client = new soapclient($wsdlPath, array('login'=>username, 'password'=> $password, 'soap_version'=> SOAP_1_2, 'location'=> $apiPath, 'trace'=> 1)); // PHP4/NuSOAP style $client = new soapclient($wsdlPath, true); client->setEndpoint($apiPath); $client->setCredentials(

Moving from NuSOAP to PHP5 SOAP

只谈情不闲聊 提交于 2019-12-01 02:46:52
问题 I have been working on a script with PHP4 that relies on NuSOAP. Now, I'm trying to move this to PHP5, and use the buildin support for SOAP there. $wsdlPath = ""; // I have obviously set these variables to something meaningful, just hidden for the sake of security $apiPath = ""; $username = ""; $password = ""; // PHP5 style $client = new soapclient($wsdlPath, array('login'=>username, 'password'=> $password, 'soap_version'=> SOAP_1_2, 'location'=> $apiPath, 'trace'=> 1)); // PHP4/NuSOAP style

Parsing a SOAP response with PHP in different ways [duplicate]

五迷三道 提交于 2019-11-30 22:06:40
Possible Duplicate: How to parse SOAP response without SoapClient I have a simple nuSoap XML response: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <LoginResult xmlns="http://Siddin.ServiceContracts/2006/09">FE99E5267950B241F96C96DC492ACAC542F67A55</LoginResult> </soap:Body> </soap:Envelope> Now I'm trying to parse it with simplexml_load_string as suggested here: parse an XML with SimpleXML which has multiple namespaces