SOAP-ERROR: Parsing Schema: element has both 'type' attribute and subtype
Hi,
i have created web service link which deals with calling a Pl/sql procedure with the help of DBAdapter in jdev 10.1.3.4 .here i am trying to insert a row in tables.my webservice is working fine from BPEL console
my collegue who is working on PHP is trying to access the the wsdl link with the help of Appcelator and php
code for php
<?php
//include("general.php");
$wsdl_url = 'http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/CreateRepairOrder/1.0/CreateRepairOrder?wsdl';
//$wsdl_url = 'http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl';
$client = new SoapClient($wsdl_url,array('trace' => 1,'exceptions' => 0));
print_r($client);
exit;
class CreateOrderNd
{
var $PARTY_ID="";
var $CUST_ACCOUNT_ID="";
var $INVENTORY_ITEM_ID="";
var $SERIAL_NUMBER="";
var $UNIT_OF_MEASURE="";
var $QUANTITY="";
var $ITEM_CROSS_REFERENCE="";
var $PROBLEM_DESCRIPTION="";
function CreateOrderNd($PartyNam,$AccountId,$ItemId_requestdata,$SerialNumber_requestdata,$uom_requestdata,
$quantity_requestdata,$ItemCrossReference_requestdata,$ProblemDescription_requestdata)
{
$this->PARTY_ID=$PartyName;
$this->CUST_ACCOUNT_ID=$AccountId;
$this->INVENTORY_ITEM_ID=$ItemId_requestdata;
$this->SERIAL_NUMBER=$SerialNumber_requestdata;
$this->UNIT_OF_MEASURE=$uom_requestdata;
$this->QUANTITY=$quantity_requestdata;
$this->ITEM_CROSS_REFERENCE=$ItemCrossReference_requestdata;
$this->PROBLEM_DESCRIPTION=$ProblemDescription_requestdata;
}
}
$parm = new CustomerNd($PartyName_requestdata,$AccountId_requestdata,$ItemId_requestdata,$SerialNumber_requestdata,$uom_requestdata,
$quantity_requestdata,$ItemCrossReference_requestdata,$ProblemDescription_requestdata);
$parm = new CustomerNd('Bus%','');
$parm = new CreateOrderNd(4429,1608,6761,'0722AB05','Ea',1,'abc123','Network error');
$ret=$client->process($parm);
print_r($ret);
?>
when she/he access it they are facing a error
SOAP-ERROR: Parsing Schema: element has both 'type' attribute and subtype
and some times it will give
Warning: SoapClient::SoapClient(http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl) http://function.SoapClient-SoapClient: failed to open stream: HTTP request failed! in C:\xampp\htdocs\DepotExtensions\version9\app\services\CreateOrderNd.class.php on line 6
Warning: SoapClient::SoapClient() http://function.SoapClient-SoapClient: I/O warning : failed to load external entity "http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl" in C:\xampp\htdocs\DepotExtensions\version9\app\services\CreateOrderNd.class.php on line 6
Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl' in C:\xampp\htdocs\DepotExtensions\version9\app\services\CreateOrderNd.class.php on line 6