Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I'm converting an ASP system with PHP, and I need to replace a SOAP call.
I've checked out the various Soap tutorials and fora, and the code seems to be be not the normal SOAP usage.
It does not use WSDL, just xml messages.
Anyone able to help with the parameters to be used in the PHP version.
------------------------
ASP code to be converted
[syntax="asp"]set objHTTP = CreateObject("Msxml2.ServerXMLHTTP")
'Set up to post to our localhost server
' PRODUCTION SERVER
objHTTP.open "post", "http://123.456.654.321/thehost/interface/xml",false
'Set a standard SOAP/ XML header for the content-type
objHTTP.setRequestHeader "Content-Type", "text/xml"
'Make the SOAP call
objHTTP.send strEnvelope
strOut = objHTTP.responsetext
strOut = replaceUNICODE(strOut)
GetSoap = strOut
------------------------
I assume the PHP should look something like this!
Code: Select all
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
'uri' => "http://test-uri/",
'style' => SOAP_DOCUMENT,
'use' => SOAP_LITERAL
)); $Response = $client->__doRequest ( string request, string location, string action, int version )
... and what should values should I use for <request> <location> <action> <version >
Everah | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]