users@jax-rpc.java.net

RE: JAX-RPC mapping file, really needed?

From: Merten Schumann <Merten.Schumann_at_asg.com>
Date: Mon, 11 Apr 2005 16:05:07 +0200

Just if anyone else is interested one day in this: it works for me to
create my web service's WSDL with Axis' java2wsdl (with correct method
parameter names from my implementation class) and use this WSDL along
with a small JAX-RPC mapping file (containing just the <package-mapping>
elements) in Sun AS and IBM WebSphere.

I could not get the jsr109 spec, the link is no longer valid IMHO. But,
as I expected, it seems it's enough to place these <package-mapping>
elements in the JAX-RPC mapping file. At least things work for my simple
methods (just consuming and returning Strings, no arrays or complex
types).

So, it seems I achieved my goal to have my original method parameter
names - instead of String_1, String_2 and so on - in the web service
interface, yeah :-)

cu
   Merten

> -----Original Message-----
> From: Merten Schumann [mailto:Merten.Schumann_at_asg.com]
> Sent: Friday, April 08, 2005 3:19 PM
> To: users_at_jax-rpc.dev.java.net
> Subject: RE: JAX-RPC mapping file, really needed?
>
> Kevin,
>
> you are right, thanx. Usually I try to avoid reading this
> spec stuff, my
> way is try-and-find-out. :-) Actually
> ftp://www-126.ibm.com/pub/jsr109/spec/1.0/websvcs-1_0-fr.pdf is not
> working for me for some reason.
> I'll continue with this stuff next week.
>
> cu
> Merten
>
> > -----Original Message-----
> > From: Kevin Jones [mailto:kevinj_at_develop.com]
> > Sent: Friday, April 08, 2005 2:52 PM
> > To: users_at_jax-rpc.dev.java.net
> > Subject: RE: JAX-RPC mapping file, really needed?
> >
> > Merten,
> >
> > you need to read the JSR-109 spec, it defines what needs to
> > go in a mapping
> > file and when you need to generate the individual parts of the file.
> > Sections 7 (esp 7.3) and 8 are probably what you need,
> >
> > Kevin Jones
> > http://kevinj.develop.com/weblog
> >
> >
> > > -----Original Message-----
> > > From: Merten Schumann [mailto:Merten.Schumann_at_asg.com]
> > > Sent: 08 April 2005 13:48
> > > To: users_at_jax-rpc.dev.java.net
> > > Subject: RE: JAX-RPC mapping file, really needed?
> > >
> > > Hmmm, such mapping files look really different in different
> > > environments. When I look at Oracle OC4J, it's rather small,
> > > at
> > > http://www.oracle.com/technology/sample_code/tutorials/fbs10g/
> > > endpoint/i
> > > mpl.htm it's as simple as this
> > >
> > > <package-mapping>
> > > <package-type>oracle.otnsamples.ibfbs.admin.ejb</package-type>
> > >
> > > <namespaceURI>urn:oracle.otnsamples.ibfbs.admin.ejb.StockQuote
> > > Service</n
> > > amespaceURI>
> > > </package-mapping>
> > >
> > > In my mapping files generated by Sun wscompile, there's a lot
> > > more stuff, like <java-xml-type-mapping> and
> > > <service-interface-mapping> and
> > > <service-endpoint-interface-mapping> ...
> > >
> > > I think it's easy to generate the <package-mapping> part. The
> > > other ones look more difficult (and here's my problem). I
> > > will try if Sun/WebSphere could live without the other bunch
> > > of information. Anyone out there experienced in this area???
> > >
> > > cu
> > > Merten
> > >
> > > > -----Original Message-----
> > > > From: Merten Schumann [mailto:Merten.Schumann_at_asg.com]
> > > > Sent: Friday, April 08, 2005 1:34 PM
> > > > To: users_at_jax-rpc.dev.java.net
> > > > Subject: RE: JAX-RPC mapping file, really needed?
> > > >
> > > > Found out that Axis' java2wsdl can preserve method
> > parameter names
> > > > when you hand over the service impl class. I think I could
> > > work with
> > > > the generated WSDL in containers like Sun AS or WebSphere.
> > > So far, so
> > > > good.
> > > > Now, I just need to know if I could omit this JAX-RPC
> > > mapping file or
> > > > if I could generate it matching my Axis generated WSDL
> ... Axis,
> > > > could'nt you create the beast for me, even if you do not
> > need it???
> > > > :-)
> > > >
> > > > cu
> > > > Merten
> > > >
> > > > > -----Original Message-----
> > > > > From: Merten Schumann [mailto:Merten.Schumann_at_asg.com]
> > > > > Sent: Friday, April 08, 2005 12:20 PM
> > > > > To: users_at_jax-rpc.dev.java.net
> > > > > Subject: RE: JAX-RPC mapping file, really needed?
> > > > >
> > > > > > IIRC IBM drove JSR-109 so you *may* need the mapping file
> > > > > when you use
> > > > > > WebSphere but I have no experience with that container,
> > > > >
> > > > > that's an interesting point, thanx
> > > > > I wait for some answer from Sun regarding my question, if
> > > I really
> > > > > need this mapping file or not :-)
> > > > >
> > > > > Or maybe there's a tool (different from wscompile) out
> > > there which
> > > > > produces not only the WSDL but this mapping file too ... I
> > > > just would
> > > > > like to have a wscompile/java2wsdl, which preserves
> > > method parameter
> > > > > names. I think this is addressed in JAX-RPC 2, in fact I
> > > > downloaded a
> > > > > preview (from this WS-I sample application) but it
> > > requires JDK 1.5,
> > > > > which I cannot use for some reason :-(
> > > > >
> > > > > cu
> > > > > Merten
> > > > >
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > 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
> > > > 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
> > > 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
> > 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
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>