forwarding soap message

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
donkeyshizny
Forum Newbie
Posts: 1
Joined: Fri Oct 30, 2009 7:59 pm

forwarding soap message

Post by donkeyshizny »

I've got an application that, for security reasons, needs to run all of it remote procedure calls through a proxy. I'm using php. In my php file I get the following information about the soap request I'm intercepting.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body/>
</SOAP-ENV:Envelope>

HTTP_SOAPACTION : "https://secure.modpay.com/ws/GetModpayVersionInfo"
CONTENT_TYPE : text/xml; charset=utf-8
SERVER_PROTOCOL : HTTP/1.1
REQUEST_METHOD : POST


Can somebody tell me how I can forward this on to the webservice. I tried to use curl and set the post variable to the soap envelope, and the url to the soapAction url, but nothing. I don't want to use something like nuSoap, just want to correctly forward the info on to the webservice using curl. Anybody know how to do that?
Post Reply