I have XML like this
<soapenv:Envelope xmlns:soapenv="http://xxx.xxx.com" xmlns:impl="http://xxx.xxx.com/" xmlns:ehr="http://xxx.xxx.com/ehr">
<soapenv:Header/>
<soapenv:Body>
<impl:doClaim>
<!--Optional:-->
<claim>
<!--Optional:-->
<sourceApp>CLM</sourceApp>
<patientRole>
<ehr:id extension="?"/>
<ehr:patient>
<ehr:firstName>?</ehr:firstName>
<!--Optional:-->
<ehr:lastName>?</ehr:lastName>
<ehr:prefixName>?</ehr:prefixName>
<!--Optional:-->
<ehr:gender>?</ehr:gender>
<!--Optional:-->
<ehr:birthTime>?</ehr:birthTime>
<!--Optional:-->
<ehr:addr>
<ehr:streetAddressLine>?</ehr:streetAddressLine>
<ehr:city>?</ehr:city>
<ehr:state>?</ehr:state>
<ehr:postalCode>?</ehr:postalCode>
<ehr:country>?</ehr:country>
</ehr:addr>
</ehr:patient>
<ehr:providerOrganization>
<ehr:id extension="?"/>
<ehr:name>?</ehr:name>
</ehr:providerOrganization>
</patientRole>
</claim>
</impl:doClaim>
</soapenv:Body>
</soapenv:Envelope>
and PHP code like this
$parameter = array(
//PATIENT ROLE
//PATIENT
"firstName" => "JACKIE",
"lastName" => "CHAN",
"prefixName" => "Mr",
"gender" => "M",
"birthTime" => "19840711",
//ADDRESS
"streetAddressLine" => "HONGKONG",
"city" => "HONGKONG",
"state" => "CHINA",
"postalCode" => "16511",
"country" => "CHINA",
"telecom" => "8816991688",
//PROVIDER ORGANIZATION
"name" => "XXX HOSPITAL"
);
$result = $client->__soapCall("doClaim",$parameter);
print_r($result);
after I call the webService, it's return Error. i dont know how to trace. because its my new experience to using web service. the question mark is the place to send the parameter / data
is there anyone know the solutions..?
SOLUTIONS BY MYSELF
$parameter = array(
//CLAIM
"claim" => array(
"sourceApp" => "CLAIM",
//PATIENT ROLE
"patientRole" => array(
"id" => array("extension" => "3175025108806666"),
//PATIENT
"patient" => array(
"firstName" => "HENDRO",
"lastName" => "AGUS",
"prefixName" => "Mr",
"gender" => "M",
"birthTime" => "19840711",
//ADDRESS
"addr" => array(
"streetAddressLine" => "SAWANGAN",
"city" => "DEPOK",
"state" => "WEST JAVA",
"postalCode" => "16511",
"country" => "INDONESIA",
),
"telecom" => "087881695916"
),
//PROVIDER ORGANIZATION
"providerOrganization" => array(
"id" => array("extension" => "3171023"),
"name" => "RS PUSAT PERTAMINA"
)
)
)