Questions tagged [zend-soap]

Questions about the SOAP functionality packaged with Zend Framework: Zend_Soap_Server, Zend_Soap_Client etc.

Zend Framework ships with classes designed to simplify the setup, configuration and utilization of web services with PHP. The classes include Zend_Soap_Server, Zend_Soap_Client and Zend_Soap_Autodiscover, and provide:

  • WSDL file generation and auto-discovery,
  • WSDL and non-WSDL modes for Soap clients
  • a variety of member methods to map and manipulate SOAP headers and content

Zend Framework provides documentation for these classes at http://framework.zend.com/manual/1.12/en/zend.soap.html. The documentation is a great starting place, but may not answer questions from all use-cases. Use this tag to ask your question here.

70 questions
10
votes
2 answers

Zend Framework 2 SOAP AutoDiscover and complex types

I'm preparing the SOAP server and generating my WSDL using the follow code: //(... Controller action code ...) if (key_exists('wsdl', $params)) { $autodiscover = new AutoDiscover(); $autodiscover->setClass('WebServiceClass') …
leticia
  • 2,390
  • 5
  • 30
  • 41
4
votes
5 answers

Set Timeout SOAP client (Zend Framework)

I'm requesting a webservice using SOAP for which I need to set a request timeout. new Zend_Soap_Client(http://www.aaa.com/ws/Estimate.asmx?wsdl", array('encoding' => 'UTF-8'); I have also tried passing…
ravs
  • 41
  • 1
  • 2
4
votes
2 answers

zend soap server response set custom ns1 namespace

I am using Zend_Soap_Server (WSDL mode) for outputting an xml response to the client calls. However, i want to set a custom name for the ns1 namespace in the response. I noticed that the namespace in the response is set by default like:…
shasi kanth
  • 6,987
  • 24
  • 106
  • 158
3
votes
3 answers

Zend_Soap - Error parsing WSDL: Start tag expected, '<' not found

For the same WSDL, which is totally valid, I am able to access it properly using PEAR SOAP like this: $WSDL = new SOAP_WSDL($this->wsdlUrl); $proxy = $WSDL->getProxy(); But not able to make it work through Zend_Soap, when used like…
Jake
  • 25,479
  • 31
  • 107
  • 168
3
votes
2 answers

How do I remove the namespaces in Zend_Soap?

I am trying to use the tranlsation webservice from MyMemory: http://mymemory.translated.net/doc/spec.php Unfortunately, Zend_Soap_Client does generate an XML reqest object that is not recognized by the service. I guess it is because of the…
Marc
  • 377
  • 7
  • 19
3
votes
3 answers

Seemingly random SoapFault: not a valid method

I'm experiencing a problem with my SOAP solution. Sometimes I get an error saying the following: Function (functionA) is not a valid method for this service Edit 8 months later Although I could not find the cause of the problem I was able to work…
Alex
  • 423
  • 8
  • 23
2
votes
1 answer

how to use Zend_Soap_Client in windows server

I downloaded Zend framework, to my windows server... now I tried to use it with this code: // generate secret auth token require_once 'Zend/Soap/Client.php'; $soapClient = new Zend_Soap_Client('http://TheSite.com/webservice.php?wsdl'); $response =…
user975475
2
votes
0 answers

how can we create Soap Server in laravel and use that laravel wsdl url call for mobile app

BackEnd create route generate WSDL file using zend soap of Zendframework in laravel 7 if(isset($_GET['wsdl'])) { // Create wsdl object and register type(s). $wsdl = new Wsdl('wsdl', $this->endpoint); foreach($this->types…
Cat Fight
  • 21
  • 2
2
votes
0 answers

Webservice SOAP php zend-soap - return an array

I have a simple web service in php with zend-soap framework My web service class in hellows.php: class Hello { /** * Say hello. * * @param string $firstName * @param string $lastName * @param int $age * @return…
jjoselon
  • 2,641
  • 4
  • 23
  • 37
2
votes
2 answers

Zend_Soap_Client error calling ASP.net web service: '...not set to an instance of an object'

I'm trying to use Zend_Soap_Client to communicate with an ASP.net web service. Here's my client call: $client = new Zend_Soap_Client(null, array( 'location' => 'http://example.com/service.asmx', 'uri' => 'http://example.com/' )); $user =…
Tim Fountain
  • 33,093
  • 5
  • 41
  • 69
2
votes
1 answer

Zend_Soap : How to define return type struct in doc block?

I have a Web service set up using Zend_Soap, and some public methods in that Web service. The fact is i want to return a complex type. For instance, if i want to return a bidimensional array, like a rowset of a table how should i specify the doc…
krubach
  • 33
  • 6
2
votes
2 answers

Can't handle errors in PHP's SoapServer->handle() method

I've created a WSDL-based SOAP web service using PHP 5.3. I'm using Zend Framework to handle the service, and ZF in turn is layered atop PHP's built-in SoapServer class. In testing with SoapUI, I discovered that passing a parameter of invalid type…
mr. w
  • 2,348
  • 1
  • 21
  • 26
2
votes
5 answers

nuSoap or Zend Soap?

I would like to know the differences between nusoap and ZendSoap, which is the best? what benefits and disadvantages of each? Anyone who has used both technologies could make this comparison? Thank you
Cesar
  • 3,519
  • 2
  • 29
  • 43
2
votes
1 answer

Missing SOAP headers in envelope (Zend_Soap_Client, wsdl mode)

I am struggling with creating a proper SOAP envelope in a Zend Soap Client instance. Here is a sample of an expected envelope, generated from the WSDL file:
yycroman
  • 7,511
  • 1
  • 19
  • 21
2
votes
0 answers

Zend_Soap_Server parameters must be ordered?

I have a strange issue using my Zend_soap_server. if i have a method that looks like /** * This method will say hello * * @param string $param1 * @param integer $param2 * @param integer $param3 * @throws…
Giuseppe Lanza
  • 3,519
  • 1
  • 18
  • 40
1
2 3 4 5