|
paul that is the same question I have, but seems like no
one is answering anything for that question?
Thanks,
Parikh, Pratik | Software
Engineer | Cerner Corporation | (1)-816-201-1298
| [EMAIL PROTECTED] | www.cerner.com
From: Paul Grillo [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 26, 2005 9:10 AM To: [email protected] Subject: RE: How to access and use Serializer independently? Thanks
for the hint. I
am not intending to send this anywhere, it is not created in the context of any
message. I know how to get at the XML when running a message through
handlers. Are
you suggesting that what I have to do is to invoke it in such a way that a
handler is called, the XML is extracted and the invocation is then
aborted? I
was hoping that a call the generatedobject.getSerializer().doSomething could
generate XML or DOM without utilizing the axis
engine/handlers. From:
Parikh,Pratik [mailto:[EMAIL PROTECTED] Hi
Paul, I
would guess yes. You will have to write a handler for
it. Thanks, Parikh,
Pratik From: Paul
Grillo [mailto:[EMAIL PROTECTED] Can’t
believe that nobody has tried this. Let me reword it, and maybe somebody
can give me a yes/no answer. Is
it possible to populate an axis1.2 generated java binding object (from
WSDL2Java) and generate XML to an outputstream? yes
or no would be good. if
yes, a general idea on how would be helpful I
thank anybody that can help. From: Paul
Grillo I’ve
been playing with this for awhile, and there just “seems” to be a lot of
coupling that makes it difficult to do this. Essentially
I have a service running perfectly using the default serializer/deserializer for
Axis 1.2 Now
I would like to incorporate a REST interface on a few simple messages we
support. Scenario. FooRequest
and FooResponse are classes that work just fine. They have been generated
by WSDLtoJava and we use them with our service. I
now get a Post that contains parameters that allow me to create FooRequest from
the httpRequest. We scrub it and do it
properly. We
then take FooRequest and pass it to our backend processor that knows how to
return the FooResponse object. Normally this object is passed back to the
Axis engine and it handles it for non-REST
input. Now,
all I really want to do is take FooResponse and use Axis Deserializer to
generate XML or a DOM from which I can get to the XML so that I can write it
back to the Web Client httpResponse. How
do I do that? Is there not an easy way to use the getSerializer built into
the generated objects and invoke it? If so, what is the magic sequence to
do this? I’m
hoping the answer is far shorter than the
question. Thanks
for any help -paul
|
- RE: How to access and use Serializer independently? Parikh,Pratik
- RE: How to access and use Serializer independently? Parikh,Pratik
- RE: How to access and use Serializer independently? Paul Grillo
