nusoap

How is the max size of a SOAP message determined?

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? ...

How do I interpret a WSDL with references to a namespace java: on a non-java client?

I'm trying to integrate against a SOAP web service, running on Apache Axis. The WSDL specifies a namespace with a URI, that looks like: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="java:dk.tdc.serviceproviderweb.datatypes" elementFormDefault="qualified" attributeFormDefault="qualified" targetNamespace="...

How to invoke a C# web service through PHP?

I've written a web service using ASP.NET (in C#) and I'm attempting to write an example PHP client using NuSOAP. Where I'm tripped up on are examples of how to do this; some show soapval being used (and I don't quite understand the parameters - for example passing false as string types, etc.), while others are just using straight arrays...

duplicate tags in nusoap

I'm using nusoap to connect to a soap webservice. The xml that the class sends to the service is constructed from an array, ie: $params = array("param1" => "value1", "param2" => "value1"); $client->call('HelloWorld', $params, 'namespace', 'SOAPAction'); This works fine. A multidimensional array also constructs a nice nested xml messag...

How do RESTful and SOAP Web Services differ in practice?

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 ...

Moving from NuSOAP to PHP5 SOAP

Hi, 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 $cl...

Extract public key from cer file to use in nusoap

Can someone tell me how can I extract a public keu in .pem format from a .cer file ? I'm trying to configure webservice over https with nusoap. Tks, ED ...

How can I disable a compiled in extension in PHP

My home system has a version of PHP compiled with the SOAP extension. The live system has a version of PHP without the SOAP extension, and most of the scripts rely on the NuSOAP library quite heavily. The fact that NuSOAP and the SOAP extension use the same names for their classes is a terrible headache. How can I disable the SOAP exten...

How to use nuSOAP for messages with multiple namespaces

Hello, I'm trying to access a WebService using nuSOAP (because I'm bound to PHP4 here) that uses more than 1 namespace in a message. Is that possible? An example request message would look like this: <soapenv:Envelope ... xmlns:ns1="http://domain.tld/namespace1" xmlns:ns2="http://domain.tld/namespace2"&gt; <soapenv:Header/> <s...

File from SOAP, how to save?

I am working with a client on getting a gzip from their webservice. I am able to get a response with my following call: $response = $client->call('branchzipdata', $param); $filename = "test.gzip"; if (!$handle = fopen($filename, 'a')) { echo "Cannot open file ($filename)"; exit; } if (fwrite($handle, $response) === FALSE) { ...

NuSOAP: how to change content-type of request?

When consuming a .NET WCF webservice I get the following response (error): Unsupported HTTP response status 415 Cannot process the message because the content type 'text/xml; charset=UTF-8' was not the expected type 'application/soap+xml; charset=utf-8'. How do I change the content type? I can't find it in the NuSOAP forums/doc...

NuSOAP and response with Array

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( ...

Drupal-Salesforce with NuSOAP

We have a Drupal 6 application (PHP 5) using the Salesforce module for integration. Everything works great on our current server, but we are moving to a server which does not allow the PHP SOAP extension, which the Salesforce module relies upon. NuSOAP does work on the new server. From our initial effort, it's a very difficult task to p...

NuSOAP on XAMPP with PHP5: failed to open stream

Hey guys, I have a problem (again). This time I am trying to use NuSoap w/ XAMPP 1.7.1 which includes PHP5 and MySQL ... I wrote a soap-client: <?php // Pull in the NuSOAP code require_once('nusoap.php'); // Create the client instance $client = new soapclient('http://localhost/mysql/helloworld2.php'); // Check for an error $err = $clien...

C# struct and NuSOAP(php)

Hello Im trying to build a client in c# that talks with some remote (php)server with SOAP using the NuSOAP library. Here im using a struct/object that will containt the user info of some user: public struct UserProfile { public string username; public string password; public string email; ...

Fire off nusoap from php, don't wait for results

I have a script that currently has a step where I trigger a voice broadcast after a customer signs up. It's a nusoap call to callfire. The latency there is rather high, and it's added about 2 seconds to my sub-second sign up process. As a result, I have people hitting the sign up button more than once. Is there a way to tell the app ...

Has anyone succeeded at downloading orders from Amazon Seller Central using PHP?

It looks like this question has been asked before, here and in other places on the web, but I have yet to find any solid documentation on how it's done. We need a way to pragmatically "suck" orders out of Amazon Seller Central on a regular basis, and insert the data into a database on our server for processing. There's hints that you ca...

PHP SOAP client Consuming .Net 2.0 web service

I'm trying to set authentication headers and call a .Net 2.0 web service method, but it appears that the .Net web service is having an issue interpreting the Authentication Headers. Has anyone come across this issue? I'm using the PHP SoapClient class. ...

[PHP, SOAP] How do I pass "simpleContent" type into SOAP using Nusoap library

I am having trouble trying to pass an array of data to a Nusoap client request to a WSDL server. The spec is a mixture of attribute values and simpleContent values. The WDSL spec looks something like this: <s:complexType name="RequestMessage"> <s:sequence> <s:element minOccurs="0" name="Address" type="s0:MessageAddress"/> <s:...

How declare WSDL for PHP function that returns multiple TYPES?

Hi, I'm writing a PHP web service and one function. I want to set up a web service in PHP. I need to generate the WSDL description for this web service so it's accessible from I.e. visual studio. It takes documents / search strings as inputs and recommends similar documents as output. I return an array with a first element resultCode...