Fabio,

I see some issues in the WSDL you attached:

1.  <wsdl:operation name="calc"><wsdl:input><soap:body parts='n' ....  The parts attribute should be 'in' to match the part name of calcRequest message.
    Similarly, for <wsdl:operation name="calc"><wsdl:res><soap:body parts='res' ....  The parts attribute should be 'out' to match the part name of the calcResponse.
    Note that since there is only 1 part in each of your messages, the parts attribute can be omitted from the soap:body.

b.  This part is really unclear in the WSDL 1.1 documentation; but I believe that for soap:bindings with style='document' where soap:body use='literal', the soap:body parts attribute should ultimately reference elements.  In your schema, res and n are simple types.  Create elements of those types, and reference the elements in your wsdl:message declarations.  This restriction may only be true in order to support WS-I.


Mike McAngus

Associate Chief Engineer, Enterprise Architecture
Wendy's International, Inc.
One Dave Thomas Boulevard
Dublin, OH 43017





bybass () libero _ it wrote:

Anne please,
check this Servizio.wsdl, let me know if it is correct.
I changed style in document.
I attachment the file ;)
If you can tell me what classes are generated after the command:
org.apache.axis2.wsdl.WSDL2Java -uri C:\Servizio.wsdl -o c:\ -ss -sd -d xmlbeans.
Thanks
---------- Initial Header -----------

>From      : "Anne Thomas Manes" [EMAIL PROTECTED]
To          : [email protected]
Cc          :
Date      : Tue, 27 Jun 2006 13:02:07 -0400
Subject : Re: Migration Axis 1 to Axis 2







> Sorry -- was not complete in my last answer. If you change it to rpc style,
> then you must also add namespace attributes to the <soap:body> definitions,
> e.g.,:
>
> <soap:body use="literal" namespace="
> http://www.fabiorosolino.com/Servizio.xsd1"/>
>
> Anne
>
> On 6/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Anne,
> > I modified Servizio.wsdl as you suggested but the question is,
> > 1) why it work fine (style document) with axis 1.2?
> > 2) after the change in rpc style i'm still not able to do a service that
> > work!!! :(
> > I use Tomcat 5.5 as container either with axis 1.2 or with axis 2 on
> > windows.
> > There will be something wrong in this configuration?
> > mmm, I just made performace analysis with Jmeter on this services
> > developed in axis 1.2, I wish to develop same service in axis 2.0 to
> > compare performance with axis 2.
> > Someone help me :( :)
> > Thanks
> > ---------- Initial Header -----------
> >
> > From      : "Anne Thomas Manes" [EMAIL PROTECTED]
> > To          : [email protected]
> > Cc          :
> > Date      : Tue, 27 Jun 2006 08:59:50 -0400
> > Subject : Re: Migration Axis 1 to Axis 2
> >
> >
> >
> >
> >
> >
> >
> > > Fabio,
> > >
> > > There are errors in your WSDL. You must fix them before you can get
> > Axis2 to
> > > work.
> > >
> > > You've defined the service as document style, but your message parts
> > > reference types rather than elements. (A document style service MUST
> > > reference elements; and RPC style service MUST reference types.) Either
> > > convert the style to RPC or define the "res" and "n" parts as elements
> > in
> > > your schema and reference them rather than the types.
> > >
> > > I suggest you follow the "wrapped" document style convention. See
> > >
> > http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.htmlfor
> > > guidance.
> > >
> > > Anne
> > >
> > > On 6/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I have a wsdl genereted by SOA Editor.
> > > > I'm able to develop a service in Axis 1.2 from this WSDL, but i'm not
> > able
> > > > to develop a service with Axis 2 v1.0.
> > > > Someome can send me send me a service developed using my WSDL in Axis
> > 2.
> > > > In attachment the Servizio.wsdl (Servizio means Service in italian ;))
> > > > Thanks Fabio
> > > >
> > > >

Reply via email to