users@jax-rpc.java.net

Re: Re : Defining General Purpose Itf In JAXRPC

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Mon, 23 Feb 2004 10:09:47 -0800

Sameer,
XML schema can be bound to SOAPElement per the spec, but the spec does
not require or even suggests how SOAPElement can be bound to XML schema.
The sample you speak of is in the XML->Java direction, not Java->XML.
This may be addressed in JAXRPC 2.0.

Sameer Tyagi wrote:

> Hi.
>
> Quick question, why does the SI throw an exception when the argument is
> a SOAPElement. For example
> public void processSOAPDocument(SOAPElement processSOAPDocument)
> [exec] error: Type "javax.xml.soap.SOAPElement" implements more than one
> interface, interfaces: "javax.xml.soap.Node", "org.w3c.dom.Element" ...
>
> However if the same SOAPElement is wrapped in a JavaBean with get/set
> methods then it works..
>
> (Page 73,74 of spec contains an example of a SOPElement method)
>
> /s
>
>
>
>
>
>
> From: Kevin Jones <kevinj_at_develop.com>
> Date: Fri, 21 Nov 2003 23:02:53 -0000
> Content-Type: text/plain;
> charset="US-ASCII"
> Subject: Defining General Purpose Itf In JAXRPC
>
> Thanks Doug,
>
> Any plans to do this?
>
> Kevin Jones
> http://kevinj.develop.com
>
> > -----Original Message-----
> > From: Doug Kohlert [mailto:Doug.Kohlert_at_Sun.COM]
> > Sent: 21 November 2003 19:14
> > To: users_at_jax-rpc.dev.java.net
> > Subject: Re: Defining General Purpose Itf In JAXRPC
> >
> >
> > Not at this time.
> >
> > Kevin Jones wrote:
> > > I'm guessing the answer to this is no, but...
> > >
> > > In the JAXRPC RI can I define a Java interface that takes
> > XML rather
> > > than one that takes specific Java types, and then generate
> > the server
> > > from that itf definition. i.e. what I want to do is to have
> > >
> > > public boolean foo(Node n) or
> > > public boolean foo(Document d) or
> > > public boolean foo(SOAPElement s) or something similar
> > >
> > > In Axis I have the option of 'message' based services. I can have a
> > > method that looks like one of the following
> > >
> > > public Element [] method(Element [] bodies);
> > > public SOAPBodyElement [] method (SOAPBodyElement []
> > bodies); public
> > > Document method(Document body); public void
> > method(SOAPEnvelope req,
> > > SOAPEnvelope resp);
> > >
> > > And get access to the SOAP message as raw XML.
> > >
> > > Kevin Jones
> > > http://kevinj.develop.com
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> > > For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
> > >
> > >
> >
> >
> > --
> > Doug Kohlert
> > Java Software Division
> > Sun Microsystems, Inc.
> > phone: 503 345-9806
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> > For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>

-- 
Doug Kohlert
Java Software Division
Sun Microsystems, Inc.
phone: 503 345-9806
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net