Jump to content

Cannot write file during SOAP request.


alemadlei

Recommended Posts

Hi. I really hope you can help me with this one.

 

I have programmed a SOAP web service. I started testing it on my development machine (Windows). I use WAMP.

 

I access the web service using .Net, Visual Studio 2005.

 

Now, I performed some actions to log errors if they were to happen during the request. I also store the request in a folder inside the web service folder structure.

 

Something like this:

 

    MySOAPServiceFolder

        |

        |--- Requests

 

I use function

 

get_file_contents( 'php://input' );

 

to read the request and use

 

file_put_contents ( dirname ( __FILE__ ) . "/Requests/{$requestId}.xml " );

 

to store them.

 

Now, on my Windows machine It works perfectly. The requests are logged. But when I move the service to our Linux web server,

no files are stored.

 

I even tried  to write some bogus stuff and the file was not created.

 

I already checked permissions, and set a recursive 777 with chmod (desperate move).

 

PHP error log does not store any error either.

 

PHP versions are superior to 5.0 on both machines.

 

Is there something that should be configured on php.ini that allows a SOAP request to write to a file?

 

Thanks.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/90688-cannot-write-file-during-soap-request/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.