php - SOAP Request to ICICI WSDL -


i trying construct soap request below wsdl

https://scrmhr.icicibank.com/crmnextwebapi/crmnextservice.svc?singlewsdl

using php .

my requirement

1> make login function call username , pwd able make 2> , make call save function . call failing getting error "failed authorize!! please check usercontext valid."

i forming save function input below .

$param1 = array(   'usercontext' => array (        'issuccess'=>$issuccess,        'clienttimeoffset'=> $clienttimeoffset,        'expireson'=> $expireson,        'isutc'=> 0,        'longdateformat' =>'',        'longdatetimeformat' =>'',        'token'=> $token,        'userfieldname'=>'',        'userfieldvalue'=>''),    'crmnextobject' => array (       'campaignkey' => '250695',       'custom' => array(         'channel_l' => 48,         'business_line_l'=>7,         'type_l' => 2,         'source_of_lead_l'=>50,         'loan_amount_l'=>50000,                                   'tenure_in_months_l'=>10,         'occupation_l'=>3,                            'customer_relationship_l'=>185456356854),                 'email'=>'hltestlead@gmail.com',       'firstname'=>'testbharath',       'lastname'=>'reddy',       'layoutkey'=>'102166',       'leadownerkey'=>'1',       'leadownertypeid'=>1,       'mobilephone'=>'9791133676',       'productcategoryid'=>1036,       'productkey'=>'1060',       'ratingkey'=>'1',       'salutationkey'=>'1',       'statuscodekey'=>'141'),  'returnobjectonsave' => true);  //print_r($param1); $credentialobject1 = new soapvar($param1, soap_enc_object); //$credentialobject1  = new soapvar($param1,xsd_anyxml); var_dump($credentialobject1);  $response2 = $client->__soapcall('save', array('save'=> $credentialobject1)); echo "<br>------------------<br>";     var_dump($client->__getlastrequest()); echo "<br>==================<br>"; var_dump($response2); 

based on wsdl array message construction right


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -