You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-user@ws.apache.org by "Jackson, Douglas" <dj...@ugs.com> on 2005/08/24 17:37:29 UTC
going from strings to parts
I have a String that represents a value that I want to assign to a Part.
I had thought to use Axis to deserialize the String into a Java object
and
assign that java object to the Part. I am able to get a Deserializer
using
Axis's DeserializationContext, but it seems to be Sax based (I am using
axis 1.1 right now). I have not found a way to use something in Axis,
give
it a String, and get a Java object out.
My questions are:
1. Is my approach wrong - should I be trying to go to DOM and
assigning the element to the part?
2. Can I just put the String in the part? (I don't think so,
but...)
3. Does anyone know of a way to take advantage of axis's
deserializers to produce an object?
In the one case I have been trying I am actually trying to assign a
simple string to an "xsd:string", so I
am not sure how that would be converted to dom...
This needs to be general purpose, and I want to take advantage of the
server-config.wsdd file for type
mappings etc. Thus using axis seems attractive to me. However, the DOM
thing is attractive also, because
I need to do some xpath stuff to pull data out of the Parts.
I did look for the code to convert to deserialize to DOM on axis-dev,
but did not see it. If someone could
send me a link to that I would appreciate it.
-Doug.