In the soap response I can see the doctor id (2). In Java the doctor field of the patient points to null (because as shown in the previous post, the doctor is not transfered).
By the way in Open ERP I would get not the doctor but at least the in id in the Python object. One more shame on Oracle/Sun stuff.
Anyway, I created another web service that does not return a single patient record but a compound of entities (a collection of patients and doctors) :
public class wsbr {
private Collection
private Collection
public Collection
public void setPatientCollection(Collection
public Collection
public void setDoctorCollection(Collection
}
Building a web service that returns such object and populating properly the two collection makes possible to transfer the entire graph which is rebuilt properly at the client side (automatically).
Here is the soap :
So my solution is to build a big compound referencing object that will ensure that all references will be carried properly.
No comments:
Post a Comment