Press "Enter" to skip to content

Author: László Gazsi

Add custom HTTP header to an Axis 2 SOAP request

A few days ago I had a challenging task in Java: I had to add a custom header to my SOAP request using Axis 2. But the custom header had to be passed as a HTTP header, not in the SOAP Envelope, since it was used by a Filter and it had nothing to do with the rest of the request. The Filter simply gets a ServletRequest, gets the extra parameter from the HTTP header and does something with it, without having to parse the SOAP Envelope. It’s not that hard to do, there is documentation on this issue, but because there can hardly be found a good example, one may waste several hours trying different solutions.

Continue reading Add custom HTTP header to an Axis 2 SOAP request

Comments closed

WordPress update error

A few days ago one of my previous client has contacted me and complained about not being able to auto-update two of his WordPress-based websites. I thought it was some file permission problem, probably the directory the update script was going to be saved was not writable, so I’ve told him to set the permissions of the upgrade folder to 777 and try updating his WordPress again, but didn’t solve the problem…

Continue reading WordPress update error

Comments closed

PHP – load session by a given session ID

Last week I have bumped into a small problem that caused me a few hours head ache… I had a desktop application written in Adobe AIR and a server offering web services in PHP. The users of the desktop application could log in and their session variables had to be stored on the server. The only data the desktop application stored was the session ID returned by the web service after logging in.

Continue reading PHP – load session by a given session ID

Comments closed