Advertisement

08.15.2007 at 04:09AM PDT, ID: 22763767
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

PHP SOAP Uncaught exception - might depend on server settings?

Tags: php, uncaught, soapfault, soap
Dear Experts,
I have a problem with a SOAP webservice written in PHP. The webservice is written by me and is used for a stock photography site to give the ability for external applications to upload images to the site.
The code worked perfectly on an old server, it works perfectly in the new dev environment but on production server with the exactly same piece of code I get the following error:
Fatal error: Uncaught SoapFault exception (...)
There shouldn't be any PHP-include errors, as if I call the PHP functions directly, they do the work well, but the same called from an external app or called through a PHP client run on the server this error is returned.
Might this happen because of different system setup or PHP settings? The php.ini, regarding SOAP related functions seem the same. Same PHP and Apache version as well. What other setting should be looked after?
Am chasing the problem in the right direction (server difference?) or this error is probably caused by something completely different?
If needed, I can post here some codes and the WSDL file as well.
Would appreciate any ideas that would come up to your mind, I'm getting pretty clueless. Thank you!
Start your free trial to view this solution
Question Stats
Zone: Web Development
Question Asked By: aburany
Solution Provided By: Computer101
Participating Experts: 2
Solution Grade: A
Views: 96
Translate:
Loading Advertisement...
08.17.2007 at 03:36AM PDT, ID: 19715687

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.17.2007 at 03:37AM PDT, ID: 19715689

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 03:28AM PDT, ID: 19744822

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 03:41AM PDT, ID: 19744870

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 03:41AM PDT, ID: 19744873

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 04:48AM PDT, ID: 19745146

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 05:10AM PDT, ID: 19745295

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 05:16AM PDT, ID: 19745341

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 05:18AM PDT, ID: 19745353

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 05:24AM PDT, ID: 19745406

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 05:29AM PDT, ID: 19745425

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 05:33AM PDT, ID: 19745453

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 05:36AM PDT, ID: 19745478

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 05:37AM PDT, ID: 19745482

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 05:43AM PDT, ID: 19745522

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 06:27AM PDT, ID: 19745876

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.22.2007 at 08:21AM PDT, ID: 19746967

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.23.2007 at 12:33AM PDT, ID: 19752169

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.23.2007 at 12:40AM PDT, ID: 19752187

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.18.2007 at 03:55AM PDT, ID: 19911610

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.19.2007 at 01:05AM PDT, ID: 19918916

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.09.2008 at 01:17PM PST, ID: 20622519

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.14.2008 at 06:19PM PST, ID: 20659544

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
08.17.2007 at 03:36AM PDT, ID: 19715687

Rank: Sage

Can you show the code generating the exception?

It's going to be a trial and error issue to resolve.

Also, make sure you have the same version of all related dlls/extensions on the live server and of PHP itself.

Run this as info.php

<?php phpinfo(); ?>

on all the servers and check the differences.

Paying attention to SOAP settings.

Make sure the SOAP cache folder exists and you have permissions.

Output for Soap from php -i for me ...

soap

Soap Client => enabled
Soap Server => enabled

Directive => Local Value => Master Value
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => D:\Data\PHP\SOAP_Cache => D:\Data\PHP\SOAP_Cache
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400


Erm.

That's all I can think of for the time being.
 
08.17.2007 at 03:37AM PDT, ID: 19715689

Rank: Sage

Hmmm.

Do you use an auto_(ap|pre)pend_file on you dev servers? If so is this configured on the live server?
 
08.22.2007 at 03:28AM PDT, ID: 19744822
Thank you for your answers!

First of all, we don't use append/prepend files. Otherwise here is a list of differences between dev and production servers I found in PHP, can this indicate you something important maybe?

On production there's eAcc also installed:
with eAccelerator v0.9.5, Copyright (c) 2004-2006 eAccelerator, by eAccelerator

Keep Alive set to ON on dev, OFF on production
Max Requests            Keep Alive: off

extra modules here:
Loaded Modules   mod_info mod_rewrite mod_ssl

HTTP headers:
on dev: Connection       close
on prod: Keep-Alive       timeout=5, max=100
       Connection       Keep-Alive

session values (lifetime, gc_probabilty) are different, though I think those wouldn't make any change

SOAP settings are the same on both boxes, and are the following:
Soap Client       enabled
Soap Server       enabled

Directive      Local Value      Master Value
soap.wsdl_cache_dir      /tmp      /tmp
soap.wsdl_cache_enabled      1      1
soap.wsdl_cache_ttl      86400      86400

 
08.22.2007 at 03:41AM PDT, ID: 19744870

Rank: Sage

What's in the exception. Can you show the FULL error. It may have nothing to do with config.

For example, file permissions, or DB access or something like that.
 
08.22.2007 at 03:41AM PDT, ID: 19744873

Rank: Sage

If you've got a URL we can see the error if it is too complicated, then that would be useful.
 
08.22.2007 at 04:48AM PDT, ID: 19745146
Here is the URL where you can see the whole error message:

http://www.stockxpert.com/plugin/client_delete.php

 
08.22.2007 at 05:10AM PDT, ID: 19745295

Rank: Sage

Can you show the code for __doRequest(). I would like to see the entire XML being generated and any response you may get.
 
08.22.2007 at 05:16AM PDT, ID: 19745341
Sure, this is the client:

<?php
  $client = new SoapClient("sxc.wsdl");

  print_r($client->delete("plugintest","1234", "testphoto2.jpg"));
?>

and this is the server:

<?php

require_once ("common_ws.php");
      
function login($username, $password) {
      return ws_login ($username, $password);
}

function upload($username, $password, $title, $caption, $keywords, $filename) {
      return ws_upload ($username, $password, $title, $caption, $keywords, $filename);
}

function delete($username, $password, $files) {
      return ws_delete ($username, $password, $files);
}

ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache

$server = new SoapServer("sxc.wsdl");
$server->addFunction("login");
$server->addFunction("upload");
$server->addFunction("delete");
$server->handle();
?>
 
08.22.2007 at 05:18AM PDT, ID: 19745353

Rank: Sage

Drilling down ... ws_delete() please?
 
08.22.2007 at 05:24AM PDT, ID: 19745406
It is in common_ws.php, a usual PHP file containing these functions. If I call those functions separately, they run well, returning the array needed. Just if called as SOAP webservice from the client above it fails. Here is the code for ws_common: (pointed out ... the other two functions in order not to make this post here too long:

<?

require_once ("../common.phtml");
require_once ("../../common.php");
include "iptc_lib.php";

function ws_login ($username, $password) {
...
      }

      function ws_delete ($username, $password, $files) {
            $loginres = ws_login ($username, $password);
      
            if ($loginres['status_num'] != 0)
                  return ($loginres);

            briefcase_chkdir($username);
            $dir=briefcase_getdir($username);

            $files = explode (",",$files);
            if (!is_array ($files))
                  return (array ('status_num' => '10', 'status_msg' => 'No files provided.'));
            foreach ($files as $f) {
                  if (is_file ($dir ."/". $f)) {
                        $fname = $dir ."/" .$f;
                        if (!unlink ($fname))
                              $error = true;
            }
            else {
                        $error = true;
                  }
                  }
            if ($error) {
                  return (array ('status_num' => '10', 'status_msg' => 'Could not delete all files.'));
                  }
            else {
                  return (array ('status_num' => '0', 'status_msg' => 'Successfully removed all files.'));
            }
      }
      
function ws_upload ($username, $password, $title, $caption, $keywords, $filename) {
...
}

?>
 
08.22.2007 at 05:29AM PDT, ID: 19745425

Rank: Sage

Ah.

SoapClient->__call() - Calls a SOAP function (deprecated)

This method is deprecated. Use SoapClient->__soapCall() instead of it.


I can't tell you when it was deprecated.
 
08.22.2007 at 05:33AM PDT, ID: 19745453

Rank: Sage

Can you show the wdsl file also.
 
08.22.2007 at 05:36AM PDT, ID: 19745478
Hmm, but where was the call function in my code...?

Here is the WSDL:

<?xml version ='1.0' encoding ='UTF-8' ?>
<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:sxc" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:sxc">
<types>
<xsd:schema targetNamespace="urn:sxc">
  <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
  <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
<xsd:complexType name="Status">
<xsd:all>
  <xsd:element name="status_num" type="xsd:int" />
  <xsd:element name="status_msg" type="xsd:string" />
  </xsd:all>
  </xsd:complexType>
  </xsd:schema>
  </types>
<message name="loginRequest">
  <part name="username" type="xsd:string" />
  <part name="password" type="xsd:string" />
  </message>
<message name="loginResponse">
  <part name="return" type="tns:Status" />
  </message>
<message name="uploadRequest">
  <part name="username" type="xsd:string" />
  <part name="password" type="xsd:string" />
  <part name="title" type="xsd:string" />
  <part name="caption" type="xsd:string" />
  <part name="keywords" type="xsd:string" />
  <part name="base64_photo" type="xsd:string" />
  </message>
<message name="uploadResponse">
  <part name="return" type="tns:Status" />
  </message>
<message name="deleteRequest">
  <part name="username" type="xsd:string" />
  <part name="password" type="xsd:string" />
  <part name="files" type="xsd:string" />
  </message>
<message name="deleteResponse">
  <part name="return" type="tns:Status" />
  </message>
<portType name="sxcPortType">
<operation name="login">
  <documentation>check for login validity</documentation>
  <input message="tns:loginRequest" />
  <output message="tns:loginResponse" />
  </operation>
<operation name="upload">
  <documentation>upload test</documentation>
  <input message="tns:uploadRequest" />
  <output message="tns:uploadResponse" />
  </operation>
<operation name="delete">
  <documentation>delete test</documentation>
  <input message="tns:deleteRequest" />
  <output message="tns:deleteResponse" />
  </operation>
  </portType>
<binding name="sxcBinding" type="tns:sxcPortType">
  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="login">
  <soap:operation soapAction="urn:sxc#login" style="rpc" />
<input>
  <soap:body use="encoded" namespace="urn:sxc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
  </input>
<output>
  <soap:body use="encoded" namespace="urn:sxc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
  </output>
  </operation>
<operation name="upload">
  <soap:operation soapAction="urn:sxc#upload" style="rpc" />
<input>
  <soap:body use="encoded" namespace="urn:sxc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
  </input>
<output>
  <soap:body use="encoded" namespace="urn:sxc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
  </output>
  </operation>
<operation name="delete">
  <soap:operation soapAction="urn:sxc#delete" style="rpc" />
<input>
  <soap:body use="encoded" namespace="urn:sxc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
  </input>
<output>
  <soap:body use="encoded" namespace="urn:sxc" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
  </output>
  </operation>
  </binding>
<service name="sxc">
<port name="sxcPort" binding="tns:sxcBinding">
  <soap:address location="http://stockxpert.com/plugin/sxc_wsdl.php" />
  </port>
  </service>
  </definitions>
 
08.22.2007 at 05:37AM PDT, ID: 19745482

Rank: Sage

wsdl  file.
 
08.22.2007 at 05:43AM PDT, ID: 19745522
Actually, sxc_wsdl.php is the server. (sorry for bit messed up naming)
 
08.22.2007 at 06:27AM PDT, ID: 19745876

Rank: Sage

http://stockxpert.com/plugin/sxc_wsdl.php

Outputs ...

<envelope SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><body><fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Bad Request. Can't find HTTP_RAW_POST_DATA</faultstring></fault></body></envelope>

What OS and webserver are the servers?

I vaguely remember this being an issue.

Can you check the

; Always populate the $HTTP_RAW_POST_DATA variable.
always_populate_raw_post_data = On

settings on both platforms.

 
08.22.2007 at 08:21AM PDT, ID: 19746967
; Always populate the $HTTP_RAW_POST_DATA variable.
always_populate_raw_post_data = On

it's commented out on both servers - have a ; before always_populate_raw_post_data = On

The servers are Ubuntu Linux, Apache2, PHP 5.1.2
 
08.23.2007 at 12:33AM PDT, ID: 19752169

Rank: Sage

Remove the ;

I am pretty sure that there is a way, even uncommented, that this field is NOT populated.

Checking source ...

 
08.23.2007 at 12:40AM PDT, ID: 19752187

Rank: Sage

From what I can tell, if you are sending the data via POST, then you use $_POST. If you are NOT using POST then you CAN use $HTTP_RAW_POST_DATA which seems wrong to me, but I may be reading that wrong.

Hmm.

soap.c is slightly different.

Can you check your php error log. There should be messages like ...

PHP-SOAP requires 'always_populate_raw_post_data' to be on please check your php.ini file

This will also generate the SOAP fault of ...

soap_server_fault("Server", "Bad Request. Can't find HTTP_RAW_POST_DATA" ...);

So. I think this is the issue.
 
09.18.2007 at 03:55AM PDT, ID: 19911610
Dear Sage,

sorry for the long delay - in the end there was a solution found to the problem. It wasn't exactly server setting related, but DNS related - due to some misconfiguration, the www.domain... from inside the server wasn't pointing back to the server, but to the load balancer in front of fronteds - this way, the server PHP couldn't be found from the WSDL file. After some configuring of DNS zone files the webservice worked perfectly.
I appreciate all your efforts to help with this, and would happily give you the points on this - however, I wouldn't accept one of your answers which wasn't exactly the solution. Could you advise me please how can I still add points?
 
09.19.2007 at 01:05AM PDT, ID: 19918916

Rank: Sage

If none of the comments constitute an answer, then you can ask for a refund in Community Support.
 
01.09.2008 at 01:17PM PST, ID: 20622519
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   PAQ with points refunded

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Venabili
EE Cleanup Volunteer
 
01.14.2008 at 06:19PM PST, ID: 20659544
PAQed with points refunded (500)

Computer101
EE Admin
Accepted Solution