Hello,
You can't help me more ?
Please
- Log in to post comments
Hello,
You can't help me more ?
Please
Yes this is my SOAP request:
<SOAP-ENV:Envelope xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-sece…" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<ns1:Security>
<ns1:UsernameToken>
<ns1:Username>USERNAME</ns1:Username> <ns1:Password>USERPASS</ns1:Password> </ns1:UsernameToken> </ns1:Security> </SOAP-ENV:Header>
<SOAP-ENV:Body>
<param0>
<ClsINOUTContext>
<AccessCode>CCP</AccessCode> </ClsINOUTContext>
</param0>
<param1>
<strINPatientIPP>11111111</strINPatientIPP> </param1>
Yes this is my SOAP request:
<SOAP-ENV:Envelope xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-sece…" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<ns1:Security>
<ns1:UsernameToken>
<ns1:Username>USERNAME</ns1:Username> <ns1:Password>USERPASS</ns1:Password> </ns1:UsernameToken> </ns1:Security> </SOAP-ENV:Header>
<SOAP-ENV:Body>
<param0>
<ClsINOUTContext>
<AccessCode>CCP</AccessCode> </ClsINOUTContext>
</param0>
<param1>
<strINPatientIPP>11111111</strINPatientIPP> </param1>
Yes, this is the reply:
array (size=2)
'GetPatientInfoResult' => string 'false' (length=5)
'ClsINOUTContext' =>
object(stdClass)[10]
public 'AccessCode' => string '[ACCCODE]' (length=3)
public 'UserName' => string '[USERNAME]' (length=6)
public 'HospID' => string '01' (length=2)
public 'Group' => string '[GROUPE]' (length=7)
public 'Environment' => string 'PRD' (length=3)
public 'Status' => string 'MA==' (length=4)
public 'ClassFunction' => string 'com.siemens.med.hs.Country.WebServices.pats.ClassPatientServices' (length=62)
public 'CurrentFunction' => string 'GetPatientInfo' (length=14)
public 'SHSErrCode' => string '0' (length=1)
public 'ErrDesc' => string 'Erreur: IPP manquant.' (length=21)
public 'ErrorExists' => string 'true' (length=4)
public 'ErrCount' => string '1' (length=1)
public 'AvertExists' => string 'false' (length=5)
public 'AvertCount' => string '0' (length=1)
public 'RunAsWebService' => string 'true' (length=4)
public 'TraceWrite' => string 'false' (length=5)
public 'TraceLogToFile' => string 'false' (length=5)
public 'TraceLogFile' => string '/sms/logfile.txt' (length=16)
public 'NameSpace' => string '[DD]' (length=11)
public 'GUID' => string '[N°]' (length=36)
public 'IsInTestMode' => string 'false' (length=5)Hello,
I'm not very far from the result, what's missing ? Help me please
Thanks a lot
Hello
No ideas about my last problem ?
Thanks
hello all !
I progress it's a good news ;-), so now I have this code :
try {
//
$clsINOUTContext = new StdClass();
$clsINOUTContext->ClsINOUTContext = new StdClass();
$clsINOUTContext->ClsINOUTContext->AccessCode = 'AAA';
//
$params = array(
'ClsINOUTContext' => $clsINOUTContext,
'strINPatientIPP' => "11111111"
);
echo '<xmp>';
print_r($params);
echo '</xmp>';
$options = array('soapaction'=>$uri.'/[URL].ClassPatientServices.GetPatientInfo');
//Call WS
$result = $client->__soapCall("GetPatientInfo",$params,$options);
var_dump($result);
} catch (Exception $e) {
echo "Exception occured: " . $e;
The result is this :
array (size=2)
'GetPatientInfoResult' => string 'false' (length=5)
'ClsINOUTContext' =>
object(stdClass)[9]
[...]
public 'ErrDesc' => string 'Erreur: IPP manquant.' (length=21)
public 'ErrorExists' => string 'true' (length=4)
public 'ErrCount' => string '1' (length=1)
[...]You know the problem because i send the IPP in string ?
Thanks for your help it's run better,
but now I have this error :
Exception occured: SoapFault exception: [SOAP-ENV:Client] Erreur dans le WebService: Erreur interne détectée. ERROR #6237: Unexpected tag in XML input: AccessCode (ending at line 2 character 379). in C:\wamp\www\clinicom_webservice\index.php:93 Stack trace: #0 C:\wamp\www\clinicom_webservice\index.php(93): SoapClient->__soapCall('GetPatientInfo', Array, Array) #1 {main}
My code :
//
$IPP = '111111113';
//
$clsINOUTContext = new stdClass();
$clsINOUTContext->AccessCode = 'CWP';
//
$ClsOUTInfosPatient = new stdClass();
$params = array(
'clsINOUTContext' => $clsINOUTContext,
'strINPatientIPP' => $IPP,
'ClsOUTInfosPatient' => $ClsOUTInfosPatient
);
$options = array('soapaction'=>$uri.'/[Country].WebServices.pats.ClassPatientServices.GetPatientInfo');
//Call WS
$result = $client->__soapCall("GetPatientInfo",$params,$options);
var_dump($result);
Can you help me ?
Yes you understand very well what's i need.
To complete my questioni just want know parameter to call GetPatientInfo, i must define context in php source ?
Thanks for your helping