Oczywiscie IWA ma obustronne SOAP adaptery ..
Mam dla Ciebie propozycje zapisz w Ajax i SOAP
przesylanie zalaczonych ponizej obiektow miedzy
Przegladarka a web serverem innym niz tym z ktorego
zaladowano strone. I prosze umiesc ja tutaj ...
// // Przegladarka (Przyladowe JavaScript Objekty) // function _Button() { this._name_ = "_button"; this.id = ""; this.st = ""; this.zi = 16; this.va = "Button"; this.vl = 0; this.cn = 1; } function _Label() { this._name_ = "_label"; this.id = ""; this.st = ""; this.zi = 17; this.va = "Label"; } function _Url() { this._name_ = "_url"; this.id = ""; this.st = ""; this.zi = 17; this.va = "Url"; } function _Link() { this._name_ = "_link"; this.id = ""; this.st = ""; this.zi = 17; this.va = "Link"; } var objects = new Array(new _Button(), new _Label(), new _Url(), new _Link()); top.MyService.service("MyLocalService.php?http://jakis_url/MyRemoteService.php","service", [["sa,"objects",objects], ["sr",response_function]]); function response_function(boday, args, error) { }
<?php // MyLocalService.php $request = new Request(); $request->forward(); // wyslanie reqestu do http://jakis_url/MyRemoteService.php $request->response(); // MyRemoteService.php $request = new Request(); switch($request->service()) { case "service": $objects = $request->arg("objects"); // odczytanie obiektow wyslanych z przegladarki forearch($objects as $object) { // iteracja przez liste obiektow switch(get_class($object)) { // jaka jest klasa obiektu case "_button": .................... } } break; } $request->response(); ?>
Prawda jest taka, ze czasami cos teoretycznie wyglada dobrze ale w
praktyce sie nieco komplikuje ..
Czekam z niecierpliwoscia na Twoj przyklad
i Pozdrawiam ..