RE: application design issue

2005-06-02 Thread Kiran Kumar
Hi, I am also having the same requirement and exploring different options.One 
option which I am currently exploring :
 
Switch from 'RPC' style to 'Document'/'Wrapped'. Then define a XSD for your 
response XML and import that XSD in wsdl:types. Refer the import XSD type in 
port and message response elements. 
 
Run the WSDL2Java , which will generate the VOs for the corresponding elements 
that you defined in your XSD. Populate these VOs with data in your service 
impelmentation class.
 
This should solve the problem. 
 
PS: Apache Axis uses BeanSerializerFactory, BeanDeserializerFactory (refer 
generated deploy.wsdd file) to bind java objects with XML.
 
Regards, Kiran



From: James Taylor [mailto:[EMAIL PROTECTED]
Sent: Thu 6/2/2005 9:22 AM
To: axis-user@ws.apache.org
Subject: application design issue



Hey folks,
  just got a question on a design issue regarding web services.
  I have a rpc web service that returns information as an xml string.
How would I add this xml to the soap message?? Would I be better off using JAXM
if I'm doing this as I'm not passing objects just String which bassically are
documents?
  Regards,
  James.

--
Between the question and the answer lies free will





This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.




winmail.dat

Re: application design issue

2005-06-02 Thread Jeff
James, you are thinking like a programmer and not like a
scientist/engineer/all other non-computer professionals !!!

RPC is legitimate and can be very useful but it's worth bearing in mind that
RPC applications have nothing whatsoever to do with XML. The XML is simply a
platform-independent transport protocol for structured, typed data. In pure
RPC web services, no one uses the XML directly. in pure RPC web clients, no
one uses the XML directly.

When you talk about returning an XML string, I suspect it's because both the
web service and the client really are interested in the XML. In such cases,
it is better to use document/literal style. Almost all the work I do is
focussed on XML and involves moving XML documents around. Naturally, at some
stage data must be used to populate XML documents and data must be extracted
from XML documents but that does not detract from the fact that the
documents themselves have status and longevity. As a simple example, suppose
a web service processes purchase orders and returned receipts. Good
implementations would require both types of document to be signed so that,
for accounting purposes or disputes, each document is archived in a form
that is verifiably authentic. You can see that in cases like this, it makes
no sense to sign the SOAP envelopes because such signatures will be
discarded upon receipt. In fact, I often consider dispensing with SOAP
altogether: okay, it supports routing but how many people use SOAP routing?
Some do but for many people, REST is preferable. Take a look at the work
done by the OpenGIS Consortium...not much RPC/SOAP there!


Jeff



- Original Message - 
From: James Taylor [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Thursday, June 02, 2005 10:22 AM
Subject: application design issue


Hey folks,
  just got a question on a design issue regarding web services.
  I have a rpc web service that returns information as an xml
string.
How would I add this xml to the soap message?? Would I be better off using
JAXM
if I'm doing this as I'm not passing objects just String which bassically
are
documents?
  Regards,
  James.

--
Between the question and the answer lies free will