SOAP call

From: Date: Tue, 09 Sep 2008 22:32:35 +0000
Subject: SOAP call
Groups: php.general 
Request: Send a blank email to php-general+get-279754@lists.php.net to get a copy of this message
Is there a way to call a SOAP function and pass the required XML as an argument instead of an object? I can get this to work: $oClient = new SoapClient( $sWSDL_URI, array( 'trace' => TRUE, 'exceptions' => TRUE ); $oArgObj = new ArgObj(); $oArgObj->node1 = 'value' $oArgObj->node2 = 'value' $oArgObj->node3 = 'value' $oClient->doMyAction( $oArgObj ); but not this: $oClient = new SoapClient( $sWSDL_URI, array( 'trace' => TRUE, 'exceptions' => TRUE ); $sXML = '<doMyAction><node1>value</node1><node2>value</node2><node3>value</node3></doMyAction>'; Which, if I look at the result from __getLastRequest(), is exactly what the XML sent looks like (minus the SOAP body, etc). The error I keep gettings is "xml-resolve-missing-var-error". Is there any way I can just send the XML? Or does it have to be an object with the appropriate properties set? thnx, Chris

« previous php.general (#279754) next »