error in deserializing wcf function

Please somebody knows how to solve this error: "Error in deserializing body of request message for operation ‘Get_Unit_Info’. OperationFormatter encountered an invalid Message body. Expected to find node type ‘Element’ with name ‘Get_Unit_Info’ and namespace ‘’. Found node type ‘Element’ with name ‘parameters’ and namespace ‘’.

I’m using WCF soapclient function to call for a function named “Get_Unit_Info” and this is my code:

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/”>
soap:Header

</soap:Header>
soap:Body

</soap:Body>
</soap:Envelope>

Chassis Number:
BL Number:
<?php class Params_Get_Unit_Info { public $CHASSIS=""; public $BLNO=""; } if(isset($_POST['chassie'])||isset($_POST['bl'])||isset($_POST['submitform'])){ $chass_nb=$_POST['chassie']; $bl_nb=$_POST['bl']; $parameters=array($chass_nb,$bl_nb); $PARAMS=new Params_Get_Unit_Info; $PARAMS->CHASSIS=$chass_nb; $PARAMS->BLNO=$bl_nb; $i_Params_Get_Unit_Info = array(); $i_Params_Get_Unit_Info['CHASSIS']=046069; $i_Params_Get_Unit_Info['BLNO']=111; echo "\n"; try{ $client = new SoapClient( "http://77.42.157.236:1008/LogiSoft/AppWCF.svc?wsdl" ); $response = $client->Get_Unit_Info(&$i_Params_Get_Unit_Info,"",""); print_r($response); } catch (Exception $e) { echo $e->getMessage(); } }?>
Sponsor our Newsletter | Privacy Policy | Terms of Service