NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
NuSoap and SAP ECC6


Joined: 13 Apr 2011
Posts: 1
Reply with quote
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 ) ) ) ) )
View user's profileFind all posts by SonnDosaSend private message


Joined: 08 Aug 2011
Posts: 1
Reply with quote
I also experienced this. how do I fix this?
View user's profileFind all posts by jorjastandishSend private messageYahoo Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
According to the logs, it looks like server returned incorrect (not well-formed) XML in its SOAP fault reply.
Although it's not clear why the fault itself was returned. Perhaps an invalid/unexpected data was passed. You may want to check what's going on your server.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
did you ever solve this: Undefined property: wsdl::$currentP


Joined: 07 Jul 2013
Posts: 1
Reply with quote
Hi there, did you solve this problem? im having same answer , i just change from a hosting to my own server and im having this message, in the hosting everything use to work fine.

Thanks a lot for any help or answer.
View user's profileFind all posts by diegosanSend private messageSend e-mail
NuSoap and SAP ECC6
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic