how to specify port? soapclient(http://218.5.XX.XXX:20001... |
Site Admin
|
Take a look at the NuSoap samples provided on this forum first. You don't have to write/parse/transmit/receive any XMLs. It all is done by NuSoap.
|
||||||||||||
|
Re: how to specify port? soapclient(http://218.5.XX.XXX:2000 |
|
just do following ..
if you have alerady WSDL then there is no need to apply whole soap xml message just call using paramters , here http://mywebserver:20001/xxxx?wsdl should be display......in newsoapclient(.............) include_once("nusoap.php"); $Client = new soapclient('http://mywebserver:20001/', 'true'); $msg = array('epp' => array( 'command' => array ( 'creads' => array('clID' => '135617','option' => array('version' => '1.0','lang' => 'en')), 'clTRID' => 'L147481028182940_0', 'login' => array('chksum' => '9c4175211a307ee384bc2a13fbe0e4af') ))); $response = $Client->call('login', $msg); $err = $Client->getError(); function error($err='',$response) { if ($err) { echo '<h2>Failed to access WSDL</h2><pre>' . $err . '</pre>'; exit(); } else { /* call queryRcx */ if ($this->fault) { echo '<h3>Fault</h3><pre>'; print_r($response); echo '</pre>'; exit(); } /* faults during call */ if($this->fault) { echo "FAULT: <p>code: {$this->faultcode}<br />"; echo "String: {$this->faultstring}<br />"; echo '<pre>' . htmlspecialchars($this->request, ENT_QUOTES) . '</pre>'; echo '<pre>' . htmlspecialchars($this->response, ENT_QUOTES) . '</pre>'; //exit(); } else { echo '<h2>Request</h2>'; echo '<pre>' . htmlspecialchars($this->request, ENT_QUOTES) . '</pre>'; echo '<h2>Response</h2>'; echo '<pre>' . htmlspecialchars($this->response, ENT_QUOTES) . '</pre>'; echo '<h2>Debug</h2><pre>' . htmlspecialchars($this->debug_str, ENT_QUOTES) . '</pre>'; echo '<h2>Result</h2><pre>'; print_r($response); echo '</pre>'; } |
||||||||||||
|
Site Admin
|
Check if url you supplied into the soapclient constructor returns a WSDL content.
|
||||||||||||
_________________ The PHP IDE team |
how to specify port? soapclient(http://218.5.XX.XXX:20001... |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by