File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark ""XML stream of the object(s)..."" Watch ""XML stream of the object(s)..."" New topic
Author

"XML stream of the object(s)..."

dieman nambawan
Greenhorn

Joined: Jul 11, 2005
Posts: 12
The transmaster interface description is really very confusing.

I am struggling to understand one thing: after I've sent my HTTP POST containing the XML-RPC request, will the response from the TransMaster server contain the XML authorization response or not?!?!? Or will it be sent later? What does the "stream of objects" mean??

I know, I know: "if you're not sure, use asynchronous". But how do I recieve a stream of plain XML then? TCP sockets again? Do we really need a trip back to the Stone Age?

What do you think, guys? Please any thoughts.
[ August 11, 2005: Message edited by: dieman nambawan ]
rottscha rotti
Greenhorn

Joined: Jan 18, 2005
Posts: 21
Hi,
You neen an answer "authorised" or "not authorised" from TransMaster very quick. How should you use asynchronous messaging then?
rottscha rotti
Greenhorn

Joined: Jan 18, 2005
Posts: 21
Hi again,
I think it is clear mentioned that the respone contains somehow the info
"authorised" or "not authorised". But the format is not clear because Transmaster says: "The response would look something like:....."

I will make the assumtion that the format is the same as mentioned in the spec .
Steven Wong
Ranch Hand

Joined: Mar 07, 2002
Posts: 295
You will need an XML parser and a response object designed back on the XML response that is passed back by TransMaster


best regards,<br />Steven<br />SCJP, SCEA
Steven Wong
Ranch Hand

Joined: Mar 07, 2002
Posts: 295
Hi guys,

What do you all understand with the following statement?
Please help - confused here.

The response will not be using the XML-RPC response format, but instead will be an XML stream of the object(s) requested.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by Steven Wong:
The response will not be using the XML-RPC response format, but instead will be an XML stream of the object(s) requested.


As I do not have access to the actual assignment, I can only base my suggestion on the text you have provided. I suspect that
  • The request follows the XML-RPC specification.
  • The response does not follow the XML-RPC specification but instead simply returns the result in some custom format. It may be a JavaBean encoded with XMLEncoder or it could be something totally homegrown - not java related - I can't tell from the information here.


  • An easy introduction to XML-RPC can be found on the Processing XML with Java site, particularly the XML-RPC, A Simple XML-RPC Client and A DOM based XML-RPC servlet sections.

    On an architectural level I believe you would just acknowledge in your design that you would need to include a proprietary or custom designed component/library that deals with the non-standard data exchange protocol.
    [ October 01, 2005: Message edited by: Peer Reynders ]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: "XML stream of the object(s)..."