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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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