![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 251 Pomógł: 2 Dołączył: 24.08.2005 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Probuje przy wykorzystaniu: Cytat Definicję testowej usługi autoryzacji można znaleźć pod adresem: https://ewus.nfz.gov.pl/ws-broker-server-ew...vices/Auth?wsdl Definicję testowej usługi ServiceBroker można znaleźć pod adresem: https://ewus.nfz.gov.pl/ws-broker-server-ew...viceBroker?wsdl pobrac info o pacjencie. Analizujac xml'e: Kod <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:auth="http://xml.kamsoft.pl/ws/kaas/login_types"> <soapenv:Header/> <soapenv:Body> <auth:login> <auth:credentials> <auth:item> <auth:name>domain</auth:name> <auth:value><auth:stringValue>01</auth:stringValue></auth:value> </auth:item> <auth:item> <auth:name>type</auth:name> <auth:value><auth:stringValue>SWD</auth:stringValue></auth:value> </auth:item> <auth:item> <auth:name>idntSwd</auth:name> <auth:value><auth:stringValue>123456789</auth:stringValue></auth:value> </auth:item> <auth:item> <auth:name>login</auth:name> <auth:value><auth:stringValue>TEST</auth:stringValue></auth:value> </auth:item> </auth:credentials> <auth:password>qwerty!@#</auth:password> </auth:login> </soapenv:Body> </soapenv:Envelope> Kod <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <ns1:session id="6F3FE3EA6BE54C5630F4F08E6FD0B803" xmlns:ns1="http://xml.kamsoft.pl/ws/common"/> <ns1:authToken id="BSbgyPBVy9Ww0B6al0DFuf" xmlns:ns1="http://xml.kamsoft.pl/ws/common"/> </soapenv:Header> <soapenv:Body> <ns1:loginReturn xmlns:ns1="http://xml.kamsoft.pl/ws/kaas/login_types">3</ns1:loginReturn> </soapenv:Body> </soapenv:Envelope> udalo mi sie zalogowac za pomoca stworzonego skrypyu: Kod <? $client=new SoapClient('https://ewus.nfz.gov.pl/ws-broker-server-ewus-auth-test/services/Auth?wsdl'); $responce=$client->login(['credentials'=>[['name'=>'domain','value'=>['stringValue'=>'01']],['name'=>'type','value'=>['stringValue'=>'SWD']],['name'=>'idntSwd','value'=>['stringValue'=>'123456789']],['name'=>'login','value'=>['stringValue'=>'TEST']]],'password'=>'qwerty!@#']); print($responce); ?> Pytanie co dalej .......jak odebrac stringi session i authToken w naglowka odpowiedzi? Sa one potrzebne w kolejnym zapytaniu zwracajacym dane pacjenta. |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 48 Pomógł: 1 Dołączył: 1.04.2012 Skąd: Świętokrzyskie Ostrzeżenie: (0%) ![]() ![]() |
w odpowiedzi na zapytanie otrzymujesz string, który musisz odpowiednio podzielić, siedzę nad tym teraz, jak zrobię wrzucę tutaj
ps. dzięki wielkie gilek (z jakiegoś powodu nie mogę dodać Ci "pomógł") Ten post edytował eMCeH 8.01.2013, 23:02:35 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 16.10.2025 - 19:48 |