|
As I think I mentioned before, there's no
difference between Wrapped and Document style on the wire, and it causes only
subtle differences in the naming conventions in the WSDL. .NET doesn't
even notice the difference between the two. By default, the .NET WSDL
compiler (wsdl.exe) generates the equivalent of a Wrapped interface from
either style.
I recommend that you always design your WSDL using
the Wrapped naming conventions. That means the input message element
name must be the same as the operation name. Doing so gives you more options. If
you prefer to use document style (using a JavaBean on your client rather than
parameters), you can request "unwrapped" when you run WSDL2Java. The converse
doesn't work.
Anne
----- Original Message -----
Sent: Monday, August 04, 2003 3:19
PM
Subject: Re: encoding.ser.castor
Thanks for clarifyin the types of message styles supported in AXIS.
It seems then there are three different message styles for
doc/literal:
- Wrapped
- Document
- Message
It seems that Wrapped and Document styles of messaging both
require AXIS serialization.
Is Wrapped thye more commonly used doc/literal style since it
produces parameterized interfaces? Wouldn't wrapped style be
most suitable with .NET web services that are by default doc/lit
style WSDL interfaces?
Thank you very much.
Anne Thomas Manes <[EMAIL PROTECTED]>
wrote:
David,
Axis
defines 4 message styles, which get specified either in Java2WSDL or the
WSDD. These message styles should not be confused with WSDL
message styles. These styles tell Axis three things: - what type of
WSDL style to use (rpc/encoded vs doc/literal) - what type of service
provider to use (java:RPC or java:MSG) - what type of interface to
generate (parameterized, non-parameterized, or none)
If you want
Axis to hand you a DOM element so that you can do your own serialization,
then you should use the java:MSG provider -- which means you should use
the Axis MESSAGE style.
The Axis message styles are:
RPC: -
produces WSDL style RPC/encoded - uses WSDD provider="java:RPC" (Axis
performs serialization) - produces a parameterized RMI
interface WRAPPED: - produces WSDL style doc/literal - uses WSDD
provider="java:RPC" (Axis performs serialization) - produces a
parameterized RMI interface DOCUMENT: - produces WSDL style
doc/literal - uses WSDD provider="java:RPC" (Axis performs
serialization) - produces a non-parameterized RMI interface (takes a
JavaBean) MESSAGE: - produces WSDL style doc/literal - uses WSDD
provider="java:MSG" (delivers a DOM element) - doesn't produce an
interface (client uses call object)
Anne
----- Original
Message ----- From: "David Kocher" <[EMAIL PROTECTED]> To:
<[EMAIL PROTECTED]>; "Anne Thomas Manes" <[EMAIL PROTECTED]> Cc:
"James Cowan" <[EMAIL PROTECTED]> Sent: Monday, August 04, 2003 11:20
AM Subject: Re: encoding.ser.castor
> Thanks for the reply.
I'ma bit confused with the vocabulary. Do you mean with > a MESSAGE
style service the same as with doc/literal ? > > If I understand
you correctly you think that it might be easier with a> document
style service (instead of rpc) to send the soap message and then >
deserialize with castor myself. Right? > > Also, is the example
distributed with axis in samples/message supposed to be a >
documentstyle service? > > Thanks for clarification. >
-David > > On Monday 04 August 2003 13:20, Anne Thomas Manes
wrote: > > Castor performs translations from xsd types to Java
objects. Be aware that > > if you're using SOAP encoding, you
don't have a schema for the SOAP > > message. I notice that you're
using SOAP encoding. I suggest you try using > > doc/literal
instead. You may have to resort to using a MESSAGE style > >
service, though. > > > > And by the way, in regard to the
referenced documentation... The JAX-RPC > > spec defines type
mapping rules for SOAP encoding. It doesn't define > > mapping
rules for doc/literal (types).> > > > Anne > > > > ----- Original
Message ----- > > From: "David Kocher"
<[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> >
> Cc: "James Cowan" <[EMAIL PROTECTED]> > > Sent: Monday,
August 04, 2003 6:49 AM > > Subject: Re:
encoding.ser.castor > > > > > On Thursday 31 July 2003
18:47, James Cowan wrote: > > > > I am interested in this as
well. I use the Castor xsd compiler a lot - > > > >
it > > > > > > generates really nice code. >
> > > > > That's what is my impression as well. If I could
use the castor generated > > > > code >
> > > > on the axis side as well this would be very
convenient. Otherwise I > > > > suppose I >
> > > > might be forced to write a bridge between the axis
and castor objects. ! > > > > > > > I do not
really understand how you can use the castor compiler > > > >
alongside the wsdl compiler - surely you can only use one or
the other > > > > or am I missing the point? > >
> > > > That's my point. I would like to use only castor
because it does a good > > > > job in >
> > > > translating the xsd schema rules. Becaue the castor
objects do follow the > > > bean pattern it should be
possible to integrate them into axis as > > > >
described > > > > > in > > >
> http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/user-guide. >
>h tml#DataMapping > > > > > Someone out there who
can explain what I am missing that my typeMapping > > >
> below > > > > > doesn't work? > >
> > ! > > Thanks a lot > > > - David > >
> > > > > James > > > > > > >
> ----- Original Message ----- > > > > From:
<[EMAIL PROTECTED]> > > > > To:
<[EMAIL PROTECTED]> > > > > Sent: Thursday, July 31,
2003 4:05 PM > > > > Subject: Re: encoding.ser.castor >
> > > > > > > > David, > > > >
> > > > > > I'm about to do this myself, with the
exception of using my own set > > > > > of
CastorSerializer classes so that it will look for my custom > >
> > > mapping. > > > > So > > >
> > > > I'm very interested in this topic. I wonder if the
encodingStyle > > > > should > > > >
> > be > > > > > > > > > somthing
else? > > &! gt; > > > > > > > Have you
confirmed that the (un)marshalling process is successful > > >
> > external to the serialization framework? I've noticed that
the > > > > default > > > > > >
> binding for source code generation in Castor does not always
(in my > > > > case > > > > > >
> never) > > > > > > > > matches >
> > > > > > > > with the default mapping. But
maybe that is because I don't let it > > > >
add > > > > > > > Castor code to my
JavaBeans. > > > > > > > > > > Please
keep us posted on your progress! > > > > > > >
> > > Cheers. > > > > > Steve Maring > >
> > > > > > > > > > > >
> > > ! > > > > > > > > > >
> > > > > > > > David Kocher > > >
> > <[EMAIL PROTECTED] To: > > > > >
[EMAIL PROTECTED] rve.ch> cc: > > > > >
07/31/2003 10:02 Subject: > > > > > > > >
encoding.ser.castor > > > > > > > > >
AM > > > > > > > > > > Please respond
to > > > > > axis-user > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > Hi axis-users, > > > > > yet another
question (...) I'm just tinkering around > > > > > with
the org.apache.axis.encoding.ser.castor.* classes. I have type >
> > > mappings > > > > > > > in my
axis depl! oyment descriptor like the following: > > > >
> > > > > > > > > > >
xmlns:ns=" > > > > >
http://www.suva.ch/schemas/20030722/SalaryDeclaration" > > >
> > qname="ns:CompanyType" > > > > > > >
> type="java:ch.itserve.lohnstandard.piv.CompanyType > > >
> > > > > > " > > > > >
serializer > > > > >
="org.apache.axis.encoding.ser.castor.CastorSerializerFactory" > >
> > > deserializer > > > > >
="org.apache.axis.encoding.ser.castor.CastorDeserializerFactory" >
> > > > encodingStyle=" > > > > >
http://schemas.xmlsoap.org/soap/encoding/" > > > > >
/> > > > > > > > > > > All beans are
autogenerated classes from the castor. When trying to > > >
> &g! t; deploy the > > > > > service with the
AdminClient I get a classcastexception I cannot > > >
> > > > > understand > > > > > >
> > > [java] Exception:: > > > > >
org.apache.axis.deployment.wsdd.WSDDException: > > > > >
java.lang.ClassCastException > > > > > [java]
java.lang.ClassCastException > > > > > [java] at >
> >
> org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerial >
> > > > >i zerFactory.java:257) > > >
> > > > > > [java] at > > >
> org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.j >
> > > > >a va:549) > > > > > >
> > > Is it supposed to work? > > > > > Thanks a
lot! > > > > > -David &! gt; > > >
> > > > > > > > > > > > >
> > > > > > > >
_________________________________________________________________ >
> > > > The information transmitted is intended only for
the person > > > > or > > > > >
> > entity to which it is addressed and may
contain confidential > > > > > and/or privileged
material. Any review, retransmission, > > > > >
dissemination or other use of, or taking of any action in > > >
> > > > > reliance > > > > > >
> > > upon, this information by persons or entities other
than the > > > > > intended recipient is prohibited. If
you received this in > > > > > > > >
error, > > > > > > > > > please contact the
sender and delete ! the material from any > > > > >
computer. >
Do you Yahoo!? Yahoo!
SiteBuilder - Free, easy-to-use web site design
software
|