Joined: 13 Apr 2011 |
Posts: 1 |
|
|
|
Posted: Wed Apr 13, 2011 8:34 pm |
|
|
|
|
|
I am trying to connect to SAP ECC6 Web Services through NuSoap. But can't get this thing to work.
My best hunch is this has something to do with SOAP is using port 8000
When I test this same WS in soapUI 3.6.1, it works perfectly, so I don't think WS is wrong.
Any help is greatly appreciated.
Thank you in advance.
CODE:
<?php
require_once('lib/nusoap.php');
$client = new nusoap_client("http://sapdev-db:8000/sap/bc/srt/wsdl/bndg_E04FFDC316C269F1A89D0050568D07E7/wsdl11/allinone/ws_policy/document?sap-client=015",'wsdl');
$client->setCredentials("WEBPRD","bmc999");
$args = array('FromDate' => '2010-02-06','ToDate' => '2010-02-26','Bukrs' => '','FromKostl' => '','FromPernr' => '','ToDate' => '','ToKostl' => '','ToPernr' => '');
$proxy = $client->getProxy();
$result = $proxy->ZhrFisLaborDistDet($args);
print_r($result);
?>
ERROR:
Notice: Undefined property: wsdl::$currentPortOperation in F:\wwwroot\Intranet\SOAP\lib\nusoap.php on line 4971
Array ( [faultcode] => soap-env:Server [faultstring] => Array ( [!xml:lang] => en [!] => CX_SXML_PARSE_ERROR:Exception CX_SOAP_ROOT occurred (program: CL_SOAP_RUNTIME_ROOT==========CP, include: CL_SOAP_RUNTIME_ROOT==========CM004, line: 130)..Exception CX_SOAP_ROOT occurred (program: CL_SOAP_MESSAGE_NEW===========CP, include: CL_SOAP_MESSAGE_NEW===========CM00R, line: 39)..Error while parsing an XML stream: 'document not wellformed'. ) [detail] => Array ( [SystemFault] => Array ( [0] => Array ( [Host] => undefined [Component] => APPL [ChainedException] => Array ( [0] => Array ( [Exception_Name] => CX_SOAP_CORE [Exception_Text] => CX_SXML_PARSE_ERROR:Exception CX_SOAP_ROOT occurred (program: CL_SOAP_RUNTIME_ROOT==========CP, include: CL_SOAP_RUNTIME_ROOT==========CM004, line: 130)..Exception CX_SOAP_ROOT occurred (program: CL_SOAP_MESSAGE_NEW===========CP, include: CL_SOAP_MESSAGE_NEW===========CM00R, line: 39)..Error while parsing an XML stream: 'document not wellformed'. ) [1] => Array ( [Exception_Name] => CX_SOAP_ROOT [Exception_Text] => Exception CX_SOAP_ROOT occurred (program: CL_SOAP_RUNTIME_ROOT==========CP, include: CL_SOAP_RUNTIME_ROOT==========CM004, line: 130). ) [2] => Array ( [Exception_Name] => CX_SOAP_ROOT [Exception_Text] => Exception CX_SOAP_ROOT occurred (program: CL_SOAP_MESSAGE_NEW===========CP, include: CL_SOAP_MESSAGE_NEW===========CM00R, line: 39). ) [3] => Array ( [Exception_Name] => CX_SXML_PARSE_ERROR [Exception_Text] => Error while parsing an XML stream: 'document not wellformed'. ) ) ) [1] => Array ( [Host] => undefined [Component] => APPL [ChainedException] => Array ( [values] => Array ( [EXCEPTION] => Array ( [CX_ROOT] => Array ( [TEXTID] => 0018FE864EEE1DECA69CF9C71ACB337F [PREVIOUS] => Array ( [CX_ROOT] => Array ( [TEXTID] => 16AA9A3937A9BB56E10000000A11447B [PREVIOUS] => Array ( [CX_ROOT] => Array ( [TEXTID] => 16AA9A3937A9BB56E10000000A11447B [PREVIOUS] => Array ( [CX_ROOT] => Array ( [TEXTID] => 001560AA0E081DEB8CA398D5EBFB9406 [PREVIOUS] => [KERNEL_ERRID] => UNCAUGHT_EXCEPTION [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 243 [CONTID] => 196 ) ) [CX_DYNAMIC_CHECK] => [CX_SXML_ERROR] => [CX_SXML_PARSE_ERROR] => Array ( [ERROR_TEXT] => document not wellformed [RAWSTRING] => [X-ML_OFFSET] => 353 ) ) [KERNEL_ERRID] => [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 221 [CONTID] => 5712 ) ) [CX_NO_CHECK] => [CX_SOAP_ROOT] => ) [KERNEL_ERRID] => [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 94 [CONTID] => 1238 ) ) [CX_NO_CHECK] => [CX_SOAP_ROOT] => ) [KERNEL_ERRID] => [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 0 [CONTID] => 0 ) ) [CX_NO_CHECK] => [CX_SOAP_CORE] => Array ( [E_LOCATION] => Array ( [CLASS] => CL_SOAP_RUNTIME_ROOT==========CP [METHOD] => CL_SOAP_RUNTIME_ROOT==========CM004 [ID] => 130 ) [E_TEXT] => CX_SXML_PARSE_ERROR:Exception CX_SOAP_ROOT occurred (program: CL_SOAP_RUNTIME_ROOT==========CP, include: CL_SOAP_RUNTIME_ROOT==========CM004, line: 130)..Exception CX_SOAP_ROOT occurred (program: CL_SOAP_MESSAGE_NEW===========CP, include: CL_SOAP_MESSAGE_NEW===========CM00R, line: 39)..Error while parsing an XML stream: 'document not wellformed'. [E_ID] => 1001 [E_FAULT_LOCATION] => 1 [E_AREA] => APPL [E_HOST] => 0 [E_PROCESS_CONTROL] => ) ) ) [heap] => Array ( [CX_SOAP_CORE] => Array ( [CX_ROOT] => Array ( [TEXTID] => 0018FE864EEE1DECA69CF9C71ACB337F [PREVIOUS] => Array ( [CX_ROOT] => Array ( [TEXTID] => 16AA9A3937A9BB56E10000000A11447B [PREVIOUS] => Array ( [CX_ROOT] => Array ( [TEXTID] => 16AA9A3937A9BB56E10000000A11447B [PREVIOUS] => Array ( [CX_ROOT] => Array ( [TEXTID] => 001560AA0E081DEB8CA398D5EBFB9406 [PREVIOUS] => [KERNEL_ERRID] => UNCAUGHT_EXCEPTION [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 243 [CONTID] => 196 ) ) [CX_DYNAMIC_CHECK] => [CX_SXML_ERROR] => [CX_SXML_PARSE_ERROR] => Array ( [ERROR_TEXT] => document not wellformed [RAWSTRING] => [X-ML_OFFSET] => 353 ) ) [KERNEL_ERRID] => [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 221 [CONTID] => 5712 ) ) [CX_NO_CHECK] => [CX_SOAP_ROOT] => ) [KERNEL_ERRID] => [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 94 [CONTID] => 1238 ) ) [CX_NO_CHECK] => [CX_SOAP_ROOT] => ) [KERNEL_ERRID] => [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 0 [CONTID] => 0 ) ) [CX_NO_CHECK] => [CX_SOAP_CORE] => Array ( [E_LOCATION] => Array ( [CLASS] => CL_SOAP_RUNTIME_ROOT==========CP [METHOD] => CL_SOAP_RUNTIME_ROOT==========CM004 [ID] => 130 ) [E_TEXT] => CX_SXML_PARSE_ERROR:Exception CX_SOAP_ROOT occurred (program: CL_SOAP_RUNTIME_ROOT==========CP, include: CL_SOAP_RUNTIME_ROOT==========CM004, line: 130)..Exception CX_SOAP_ROOT occurred (program: CL_SOAP_MESSAGE_NEW===========CP, include: CL_SOAP_MESSAGE_NEW===========CM00R, line: 39)..Error while parsing an XML stream: 'document not wellformed'. [E_ID] => 1001 [E_FAULT_LOCATION] => 1 [E_AREA] => APPL [E_HOST] => 0 [E_PROCESS_CONTROL] => ) [!id] => o221 ) [CX_SOAP_ROOT] => Array ( [0] => Array ( [CX_ROOT] => Array ( [TEXTID] => 16AA9A3937A9BB56E10000000A11447B [PREVIOUS] => Array ( [CX_ROOT] => Array ( [TEXTID] => 16AA9A3937A9BB56E10000000A11447B [PREVIOUS] => Array ( [CX_ROOT] => Array ( [TEXTID] => 001560AA0E081DEB8CA398D5EBFB9406 [PREVIOUS] => [KERNEL_ERRID] => UNCAUGHT_EXCEPTION [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 243 [CONTID] => 196 ) ) [CX_DYNAMIC_CHECK] => [CX_SXML_ERROR] => [CX_SXML_PARSE_ERROR] => Array ( [ERROR_TEXT] => document not wellformed [RAWSTRING] => [X-ML_OFFSET] => 353 ) ) [KERNEL_ERRID] => [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 221 [CONTID] => 5712 ) ) [CX_NO_CHECK] => [CX_SOAP_ROOT] => ) [KERNEL_ERRID] => [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 94 [CONTID] => 1238 ) ) [CX_NO_CHECK] => [CX_SOAP_ROOT] => [!id] => o198 ) [1] => Array ( [CX_ROOT] => Array ( [TEXTID] => 16AA9A3937A9BB56E10000000A11447B [PREVIOUS] => Array ( [CX_ROOT] => Array ( [TEXTID] => 001560AA0E081DEB8CA398D5EBFB9406 [PREVIOUS] => [KERNEL_ERRID] => UNCAUGHT_EXCEPTION [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 243 [CONTID] => 196 ) ) [CX_DYNAMIC_CHECK] => [CX_SXML_ERROR] => [CX_SXML_PARSE_ERROR] => Array ( [ERROR_TEXT] => document not wellformed [RAWSTRING] => [X-ML_OFFSET] => 353 ) ) [KERNEL_ERRID] => [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 221 [CONTID] => 5712 ) ) [CX_NO_CHECK] => [CX_SOAP_ROOT] => [!id] => o188 ) ) [CX_SXML_PARSE_ERROR] => Array ( [CX_ROOT] => Array ( [TEXTID] => 001560AA0E081DEB8CA398D5EBFB9406 [PREVIOUS] => [KERNEL_ERRID] => UNCAUGHT_EXCEPTION [INTERNAL_SOURCE_POS] => Array ( [PROGID] => 243 [CONTID] => 196 ) ) [CX_DYNAMIC_CHECK] => [CX_SXML_ERROR] => [CX_SXML_PARSE_ERROR] => Array ( [ERROR_TEXT] => document not wellformed [RAWSTRING] => [X-ML_OFFSET] => 353 ) [!id] => o183 ) ) [!version] => 1.0 ) ) ) ) )
|