Oh,

your explanation is very usefull for me. And I see the difference between
the rpc and the message oriented system.
So my projekt seems to be an rpc oriented system.

Let me short write sometihng about it.
We have a test application, a shop system whith the following
functionality.
You can browse through a product catalog, geting information about
categories and products.
Products and categories will be represented by JAVA EJB�s.
o encapsulate all the problems which coming up by using remote objects,
(do you understand, sorry)
we have adapter which let us use the functionality.
So in my service class I do remote operations to get such ejb�s and put it
in the adapter and return it
to the client. The adapter is BEAN specific so I can use the
BeanDe-/Serializer.

That seems to me like your problem to return the huge vector. Am I right?

If I understand it right, in this case it would be better to use the
message oriented system.
Do I have to bulid such a structure by my self?

<Catalog xmlns="http://www.xxx.xxx"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://www.xxx.xxx
xxx.xsd">
  <Categories>
    <Category>
      <ParentID>-1</ParentID>
      <ID>1</ID>
      <Name>HIFI</Name>
      <Description>home electronic</Description>
      <Sub-Categories/>
      <Favorites/>
      <Products/>
      <NoOfItems>0</NoOfItems>
    </Category>
  </Categories>
</Catalog>

That is what I dont understand. I have a Schema file  my categories and
products. It would be fine to
put it togehter and get finaly the xml.
Does the app. in the message oriented system return a big xml stream?
A string like this way
....
    DocumentBuilder xdb = XMLParserUtils.getXMLDocBuilder();
    Document doc = xdb.newDocument();
    Element bookEl = doc.createElement("AddressBook");

    bookEl.appendChild(doc.createTextNode("\n"));

    for (Enumeration keys = name2AddressTable.keys();
         keys.hasMoreElements();)
    {
      String name = (String)keys.nextElement();
      Address address = (Address)name2AddressTable.get(name);
      Element listingEl = doc.createElement("Listing");
      Element nameEl = doc.createElement("Name");
      nameEl.appendChild(doc.createTextNode(name));
      listingEl.appendChild(doc.createTextNode("\n    "));
      listingEl.appendChild(nameEl);
      listingEl.appendChild(doc.createTextNode("\n    "));
      Element addressEl = doc.createElement("Address");
      Element streetNumEl = doc.createElement("StreetNum");
      streetNumEl.appendChild(doc.createTextNode(address.getStreetNum() +
""));
      addressEl.appendChild(doc.createTextNode("\n      "));
      addressEl.appendChild(streetNumEl);
....

  return bookEL

...


...its from the addressbook example from  apache soap.
Can you possibly show me some examples for a better understanding.

Many thx in advance.
daniel
____________________________________________

SinnerSchrader Deutschland GmbH
Communication & Technology

mailto:[EMAIL PROTECTED]
http://www.sinnerschrader.com
fon +49.(0) 40.39 88 55-0
fax +49.(0) 40.39 88 55-55
gasstrasse 8-16 | 22761 hamburg | germany
____________________________________________

Reply via email to