One of my companys software vendors convinced me to let them develop a web service that would allow me to create records in our financial database. Their web service/commercial software is running on Server 2008. My web service client is running on Server 2008/XAMPP. At first their function worked fine, but now it always gives me fatal errors.
Heres my code:
PHP Code:
$ws = new SoapClient(http://local_server:8082/ws/Spectrum%20Web%20Service?wsdl);
// Display available XML elements...
var_dump($ws->__getTypes());
echo <hr />
;
// Display available XML functions...
var_dump($ws->__getFunctions());
echo <hr />
;
// Build argument list (array)...
$args[COMPANY] = TC1;
$args[WONUM] = iABC123b;
$args[SITE] = ELMHURSLIB;
$args[WODIV] = 0101G;
$args[WOSTATUS] = ;
$args[WOCONTRACT] = ;
$args[WOCMPO] = ;
$args[WOPRIORITY] = ;
$args[WOQUOTE] = ;
$args[WOSUMMARY] = Second test.;
// Run function...
$result = $ws->TK_CONTEC_479941_WOWSCALL($args);
This gives me the following output (Note the "Connection refused" part):
array(4) { [0]=> string(207) "struct TK_CONTEC_479941_WOWSCALL { string COMPANY; string WONUM;
string SITE; string WODIV; string WOSTATUS; string WOCONTRACT; string WOCMPO; string WOPRIORITY;
string WOQUOTE; string WOSUMMARY; }" [1]=> string(62) "struct TK_CONTEC_479941_WOWSCALLResponse
{ reports reports; }" [2]=> string(34) "struct reports { report report; }" [3]=>
string(36) "struct report { string report_el; }" }
---------------------------------------------------------------------------------------------------
array(1) { [0]=> string(98) "TK_CONTEC_479941_WOWSCALLResponse
TK_CONTEC_479941_WOWSCALL(TK_CONTEC_479941_WOWSCALL $parameters)" }
---------------------------------------------------------------------------------------------------
Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Server] Error executing Web Service:
class com.northgateis.proiv.api.ProivException:Exception running Task: Task execute failed:
Connection refused: connect in C:xampphtdocsws_test.php:41 Stack trace: #0 [internal function]:
SoapClient->__call(TK_CONTEC_47994..., Array) #1 C:xampphtdocsws_test.php(41):
SoapClient->TK_CONTEC_479941_WOWSCALL(Array) #2 {main} thrown in C:xampphtdocsws_test.php on
line 41
Interestingly, if I run the function with no parameters, I get a different (but still fatal) error:
Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] Error identifying Web Service: class
com.northgateis.proiv.ws.servlet.WebServiceIdentificationException: Parameter COMPANY
had 0 entry in the message part. Expecting 1. in C:xampphtdocsws_test.php:41
Stack trace: #0 [internal function]: SoapClient->__call(TK_CONTEC_47994..., Array) #1
C:xampphtdocsws_test.php(41): SoapClient->TK_CONTEC_479941_WOWSCALL(NULL) #2 {main} thrown in
C:xampphtdocsws_test.php on line 41
Am I doing something wrong on my end (missing connection parameters...?), or is this a problem in the vendors WSDL function (or anywhere on their server)?
One of my companys software vendors convinced me to let them develop a web service that would allow me to create records in our financial database. Their web service/commercial software is running on Server 2008. My web service client is running on Server 2008/XAMPP. At first their function worked fine, but now it always gives me fatal errors.
Heres my code:
PHP Code:
$ws = new SoapClient(http://local_server:8082/ws/Spectrum%20Web%20Service?wsdl);
// Display available XML elements...
var_dump($ws->__getTypes());
echo <hr />
;
// Display available XML functions...
var_dump($ws->__getFunctions());
echo <hr />
;
// Build argument list (array)...
$args[COMPANY] = TC1;
$args[WONUM] = iABC123b;
$args[SITE] = ELMHURSLIB;
$args[WODIV] = 0101G;
$args[WOSTATUS] = ;
$args[WOCONTRACT] = ;
$args[WOCMPO] = ;
$args[WOPRIORITY] = ;
$args[WOQUOTE] = ;
$args[WOSUMMARY] = Second test.;
// Run function...
$result = $ws->TK_CONTEC_479941_WOWSCALL($args);
This gives me the following output (Note the "Connection refused" part):
array(4) { [0]=> string(207) "struct TK_CONTEC_479941_WOWSCALL { string COMPANY; string WONUM;
string SITE; string WODIV; string WOSTATUS; string WOCONTRACT; string WOCMPO; string WOPRIORITY;
string WOQUOTE; string WOSUMMARY; }" [1]=> string(62) "struct TK_CONTEC_479941_WOWSCALLResponse
{ reports reports; }" [2]=> string(34) "struct reports { report report; }" [3]=>
string(36) "struct report { string report_el; }" }
---------------------------------------------------------------------------------------------------
array(1) { [0]=> string(98) "TK_CONTEC_479941_WOWSCALLResponse
TK_CONTEC_479941_WOWSCALL(TK_CONTEC_479941_WOWSCALL $parameters)" }
---------------------------------------------------------------------------------------------------
Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Server] Error executing Web Service:
class com.northgateis.proiv.api.ProivException:Exception running Task: Task execute failed:
Connection refused: connect in C:xampphtdocsws_test.php:41 Stack trace: #0 [internal function]:
SoapClient->__call(TK_CONTEC_47994..., Array) #1 C:xampphtdocsws_test.php(41):
SoapClient->TK_CONTEC_479941_WOWSCALL(Array) #2 {main} thrown in C:xampphtdocsws_test.php on
line 41
Interestingly, if I run the function with no parameters, I get a different (but still fatal) error:
Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] Error identifying Web Service: class
com.northgateis.proiv.ws.servlet.WebServiceIdentificationException: Parameter COMPANY
had 0 entry in the message part. Expecting 1. in C:xampphtdocsws_test.php:41
Stack trace: #0 [internal function]: SoapClient->__call(TK_CONTEC_47994..., Array) #1
C:xampphtdocsws_test.php(41): SoapClient->TK_CONTEC_479941_WOWSCALL(NULL) #2 {main} thrown in
C:xampphtdocsws_test.php on line 41
Am I doing something wrong on my end (missing connection parameters...?), or is this a problem in the vendors WSDL function (or anywhere on their server)?
|
|
Search Webmaster Help and Solution
[RESOLVED] Soap errorsRelated ItemsQuery failed: connection to localhost:3354 failed (errno=111, msg=Connection refused). |
