Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Webservice Nusoap
Randallmaster
post
Post #1





Grupa: Zarejestrowani
Postów: 677
Pomógł: 11
Dołączył: 18.11.2009

Ostrzeżenie: (0%)
-----


Stworzyłem taki webservice za pomocą nusoap:

  1. $this->namespace = $this->Session->host;
  2. $server = new soap_server();
  3. $server->debug_flag = false;
  4. $server->configureWSDL('WebService', $this->namespace, 'http://'.$_SERVER['HTTP_HOST'] . $this->webroot . $this->params['controller'] );
  5. $server->soap_defencoding = 'UTF-8';
  6. $server->decode_utf8 = false;
  7. $server->wsdl->schemaTargetNamespace = $this->namespace;
  8.  
  9. //register position
  10. $server->register(
  11. 'WsController.contractors', //name of function
  12. array("array"=>"xsd:Array", "email"=>"xsd:string", "password"=>"xsd:string"), //inputs
  13. array("return"=>"xsd:Array") //outputs //Array - tablica
  14. );
  15. //register position - end
  16.  
  17. $HTTP_RAW_POST_DATA = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : '';
  18. $server->service($HTTP_RAW_POST_DATA);


problem mam z tym miejscem:
  1. array("array"=>"xsd:Array"


Dlaczego po połączeniu się z webservice mam informację że to pole jest sringiem?
Czy poprawnie dodałem tablicę array?
Go to the top of the page
+Quote Post

Posty w temacie
- Randallmaster   [PHP]Webservice Nusoap   8.01.2015, 13:37:03
- - com   daj ten komunikat   8.01.2015, 15:05:25
- - Randallmaster   Nie miałem zdefiniowanego: [PHP] pobierz, plainte...   8.01.2015, 15:27:22


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.09.2025 - 20:41