Hi!

I have a problem when using the call-method.

I try to use service that's uses .Net and HTTPS. I had to use NuSOAP, apparently MS products doesn't work well with PHPSOAP.

Retrieving the WSDL seems to be working fine. But when trying to run a function i get the error "Service return error - HTTP Error: no proper separation of headers and document".

Here the test code i run through drush:

<?php

module_load_include('module', 'soapclient');

$soap_options = array(
 'use'   => 'literal',
 'style' => 'document',
);

$soap_server = "https://username:password@securews.decidas.com/decidasservice.wsdl";

$soap_client = soapclient_init_client($soap_server, TRUE, $soap_options);

$result = $soap_client['#return']->call('PersonSearch', array(
  'ConfigID'      => 24, 
  'Name'          => 'Kalle',
  'StreetAddress' => 'Långgatan 4',
  'City'          => 'Stockholm',
));

var_dump($result);
?>

And here is the output of the var_dump:

array(2) {
  ["#error"]=>
  string(79) "Service return error - HTTP Error: no proper separation of headers and document"
  ["#return"]=>
  bool(false)
}

I've tried 6.x-1.0-beta2 and 6.x-1.x-dev, same error. I've also tried to change the NuSOAP to the latest version (0.9.5)

Thank you for your time.

Comments

Tarnaurion’s picture

I solved by myself, by using NuSOAP directly whithout soapclient module.

Tarnaurion’s picture

Status: Active » Closed (fixed)