You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Dong Liu <ed...@gmail.com> on 2005/07/11 18:16:52 UTC

[axis 2]Questions on the development process using Axis 2.0

Hi, 

I am confused about the development process when using Axis 2.0. As
described in the user guide, the process will be

1. write the class interfaces using Java;
2. write the service.xml;
3. create the .aar achieve and deploy it;
4. generate the skeleton code based on the *WSDL* file;
5. implement the logic of services;
6. create *another achieve* again and deploy it;
7. write the client code in either a dynamic or a static fashion. 

My questions are

1. what is purpose of the first deployment using the achieve have only
class interfaces and service.xml?
2. where does the WSDL come from? It is hard for the developer to code
it by hand.
3. what is the relationship between the first aar and the second one? 

Hope my questions are clear enough. 

Cheers,

Don

RE: [axis 2]Questions on the development process using Axis 2.0

Posted by Chathura Herath <ch...@opensource.lk>.
Thank you for your feedback. We came through this issue and at that time
what we thought was to get the client side and serverside connection based
on WS policy. We don't have a policy implementation for axis2 right now. A
group of undergrads are doing some work on this right now. We have to differ
this until such time a policy implementation becomes available.

Regards,
Chathura

> -----Original Message-----
> From: Dong Liu [mailto:edongliu@gmail.com]
> Sent: Thursday, July 14, 2005 10:18 PM
> To: axis-user@ws.apache.org; chathura@opensource.lk; deepal@opensource.lk;
> edongliu@gmail.com
> Subject: Re: [axis 2]Questions on the development process using Axis 2.0
> 
> Thank you all for the replies.
> 
> I think WSDL is still the easy way to connect service-side development
> to consumer-side development. Reading the machine-generated long WSDL
> file always remind me a question whether we can have another way to
> let both the service-side and consumer-side developers understand each
> other easily. service.xml, in this sense, is a good option, or a point
> to start.
> 
> Cheers,
> 
> Don
> 
> 
> 
> On 7/12/05, Chathura Herath <ch...@opensource.lk> wrote:
> >
> > Don,
> > If you are asking how to get the client codegened using the service.xml
> and
> > service impl classes; the answer is there is no way to do it directly.
> One
> > of the options is to hand write the client side SOAPEnvelop creation
> part
> > and use the call api to send the message.
> > The other option I would say is to use the java2wsdl tool to get the
> wsdl
> > from the service implementation and then use the wsdl2java tool to
> generate
> > the clientside.
> >
> > One thing to note is that if you use the wsdl2java tool databinding is
> > engaged automatically.
> >
> > Cheers
> > Chathura
> >
> >
> > > -----Original Message-----
> > > From: Deepal Jayasinghe [mailto:deepal@opensource.lk]
> > > Sent: Wednesday, July 13, 2005 9:48 AM
> > > To: axis-user@ws.apache.org; Dong Liu
> > > Subject: Re: [axis 2]Questions on the development process using Axis
> 2.0
> > >
> > > hi Don;
> > >
> > > you can write a client to consume a web service where web service only
> > > contains service.xml (no wsdl file is present) , in that case you have
> to
> > > create the SOAPMessge by hand , use one of the MEPClient to send the
> > > request
> > > . And all these has to handle in the your client code since you do not
> > > have
> > > stubs. In fact in M2 we have don that.and I think following code will
> help
> > > you to do so , and which invoke the version service.
> > >
> > >
> > >  private String value;
> > >     private QName operationName = new QName("getVersion");
> > >     private OMElement createEnvelope() {
> > >         OMFactory fac = OMAbstractFactory.getOMFactory();
> > >         OMNamespace omNs =
> fac.createOMNamespace("http://localhost/my",
> > > "my");
> > >         OMElement method = fac.createOMElement("Version", omNs);
> > >         OMElement value = fac.createOMElement("myValue", omNs);
> > >         method.addChild(value);
> > >         return method;
> > >     }
> > >
> > >     public boolean inVokeTheService() {
> > >         try {
> > >             OMElement payload = createEnvelope();
> > >             Call call = new Call();
> > >             call.setTo(targetEPR);
> > >             call.setTransportInfo(Constants.TRANSPORT_HTTP,
> > > Constants.TRANSPORT_HTTP, false);
> > >
> > >             OMElement result =
> > >                     (OMElement)
> > > call.invokeBlocking(operationName.getLocalPart(), payload);
> > >             StringWriter writer = new StringWriter();
> > >             result.serializeWithCache(new
> > >
> OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)));
> > >             writer.flush();
> > >             value = writer.toString();
> > >             return true;
> > >         } catch (AxisFault axisFault) {
> > >             value = axisFault.getMessage();
> > >             return false;
> > >         } catch (XMLStreamException e) {
> > >             value = e.getMessage();
> > >             return false;
> > >         }
> > >     }
> > >
> > >
> > > Deepal
> > >
> > >
> > > ----- Original Message -----
> > > From: "Dong Liu" <ed...@gmail.com>
> > > To: <ax...@ws.apache.org>; <ch...@opensource.lk>
> > > Sent: Tuesday, July 12, 2005 10:26 PM
> > > Subject: Re: [axis 2]Questions on the development process using Axis
> 2.0
> > >
> > >
> > > Hi, Chathura,
> > >
> > > Thank you for your reply to my questions. Now I understand the
> > > purposes of the different parts in the user guide of axis 2.
> > >
> > > I like the approach that using the java classes and the service.xml to
> > > deploy web services. But I am still thinking how to develop clients to
> > > consume such services, if no wsdls are present. Is it possible to
> > > develop a client just based on the service.xml?
> > >
> > > Cheers,
> > >
> > > Don
> > >
> > > On 7/12/05, Chathura Herath <ch...@opensource.lk> wrote:
> > > > Hi Don,
> > > >
> > > > If the documentation is blurred we need to fix it, but see my
> comments
> > > > below
> > > > for each of your queries.
> > > >
> > > > > -----Original Message-----
> > > > > From: Dong Liu [mailto:edongliu@gmail.com]
> > > > > Sent: Monday, July 11, 2005 10:17 PM
> > > > > To: axis-user@ws.apache.org; axis-dev@ws.apache.org
> > > > > Subject: [axis 2]Questions on the development process using Axis
> 2.0
> > > > >
> > > > > Hi,
> > > > >
> > > > > I am confused about the development process when using Axis 2.0.
> As
> > > > > described in the user guide, the process will be
> > > > >
> > > > > 1. write the class interfaces using Java;
> > > > > 2. write the service.xml;
> > > > > 3. create the .aar achieve and deploy it;
> > > > > 4. generate the skeleton code based on the *WSDL* file;
> > > > > 5. implement the logic of services;
> > > > > 6. create *another achieve* again and deploy it;
> > > > > 7. write the client code in either a dynamic or a static fashion.
> > > > >
> > > > > My questions are
> > > > >
> > > > > 1. what is purpose of the first deployment using the achieve have
> only
> > > > > class interfaces and service.xml?
> > > >
> > > > This is an sample with no data binding(Note it echo's the OMElement.
> > > This
> > > > was the sample we had for M2 where we didn't have databinding
> support)
> > > So
> > > > if
> > > > the user want to be smart and do everyting manually that's the way
> to do
> > > > it.
> > > > This example will tell you what are the must have's if you are to
> make
> > > it
> > > > work.
> > > >
> > > >
> > > > > 2. where does the WSDL come from? It is hard for the developer to
> code
> > > > > it by hand.
> > > >
> > > > You of course can write it by hand, the sample is based on the fact
> that
> > > > you
> > > > start with the contract, which is the wsdl. But.. we have a tool
> that
> > > does
> > > > the java2wsdl part. Actually we use the Axis1 java2wsdl tool and I
> > > belive
> > > > we
> > > > have a eclipse pluigin for that too. Am I right Ajith???
> > > >
> > > >
> > > > > 3. what is the relationship between the first aar and the second
> one?
> > > >
> > > > No relationship.. The second one is a databound (a more
> comprehensive
> > > and
> > > > practical I would say) example that emphasize the axis2 data binding
> > > > support.
> > > >
> > > >
> > > > In a nut shell we are not trying to invent a new development
> process.
> > > (But
> > > > we have our own deployment model, programming model too I would
> say..)
> > > >
> > > >
> > > > Thanks
> > > > Chathura
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
> >




Re: [axis 2]Questions on the development process using Axis 2.0

Posted by Dong Liu <ed...@gmail.com>.
Thank you all for the replies. 

I think WSDL is still the easy way to connect service-side development
to consumer-side development. Reading the machine-generated long WSDL
file always remind me a question whether we can have another way to
let both the service-side and consumer-side developers understand each
other easily. service.xml, in this sense, is a good option, or a point
to start.

Cheers,

Don



On 7/12/05, Chathura Herath <ch...@opensource.lk> wrote:
> 
> Don,
> If you are asking how to get the client codegened using the service.xml and
> service impl classes; the answer is there is no way to do it directly. One
> of the options is to hand write the client side SOAPEnvelop creation part
> and use the call api to send the message.
> The other option I would say is to use the java2wsdl tool to get the wsdl
> from the service implementation and then use the wsdl2java tool to generate
> the clientside.
> 
> One thing to note is that if you use the wsdl2java tool databinding is
> engaged automatically.
> 
> Cheers
> Chathura
> 
> 
> > -----Original Message-----
> > From: Deepal Jayasinghe [mailto:deepal@opensource.lk]
> > Sent: Wednesday, July 13, 2005 9:48 AM
> > To: axis-user@ws.apache.org; Dong Liu
> > Subject: Re: [axis 2]Questions on the development process using Axis 2.0
> >
> > hi Don;
> >
> > you can write a client to consume a web service where web service only
> > contains service.xml (no wsdl file is present) , in that case you have to
> > create the SOAPMessge by hand , use one of the MEPClient to send the
> > request
> > . And all these has to handle in the your client code since you do not
> > have
> > stubs. In fact in M2 we have don that.and I think following code will help
> > you to do so , and which invoke the version service.
> >
> >
> >  private String value;
> >     private QName operationName = new QName("getVersion");
> >     private OMElement createEnvelope() {
> >         OMFactory fac = OMAbstractFactory.getOMFactory();
> >         OMNamespace omNs = fac.createOMNamespace("http://localhost/my",
> > "my");
> >         OMElement method = fac.createOMElement("Version", omNs);
> >         OMElement value = fac.createOMElement("myValue", omNs);
> >         method.addChild(value);
> >         return method;
> >     }
> >
> >     public boolean inVokeTheService() {
> >         try {
> >             OMElement payload = createEnvelope();
> >             Call call = new Call();
> >             call.setTo(targetEPR);
> >             call.setTransportInfo(Constants.TRANSPORT_HTTP,
> > Constants.TRANSPORT_HTTP, false);
> >
> >             OMElement result =
> >                     (OMElement)
> > call.invokeBlocking(operationName.getLocalPart(), payload);
> >             StringWriter writer = new StringWriter();
> >             result.serializeWithCache(new
> > OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)));
> >             writer.flush();
> >             value = writer.toString();
> >             return true;
> >         } catch (AxisFault axisFault) {
> >             value = axisFault.getMessage();
> >             return false;
> >         } catch (XMLStreamException e) {
> >             value = e.getMessage();
> >             return false;
> >         }
> >     }
> >
> >
> > Deepal
> >
> >
> > ----- Original Message -----
> > From: "Dong Liu" <ed...@gmail.com>
> > To: <ax...@ws.apache.org>; <ch...@opensource.lk>
> > Sent: Tuesday, July 12, 2005 10:26 PM
> > Subject: Re: [axis 2]Questions on the development process using Axis 2.0
> >
> >
> > Hi, Chathura,
> >
> > Thank you for your reply to my questions. Now I understand the
> > purposes of the different parts in the user guide of axis 2.
> >
> > I like the approach that using the java classes and the service.xml to
> > deploy web services. But I am still thinking how to develop clients to
> > consume such services, if no wsdls are present. Is it possible to
> > develop a client just based on the service.xml?
> >
> > Cheers,
> >
> > Don
> >
> > On 7/12/05, Chathura Herath <ch...@opensource.lk> wrote:
> > > Hi Don,
> > >
> > > If the documentation is blurred we need to fix it, but see my comments
> > > below
> > > for each of your queries.
> > >
> > > > -----Original Message-----
> > > > From: Dong Liu [mailto:edongliu@gmail.com]
> > > > Sent: Monday, July 11, 2005 10:17 PM
> > > > To: axis-user@ws.apache.org; axis-dev@ws.apache.org
> > > > Subject: [axis 2]Questions on the development process using Axis 2.0
> > > >
> > > > Hi,
> > > >
> > > > I am confused about the development process when using Axis 2.0. As
> > > > described in the user guide, the process will be
> > > >
> > > > 1. write the class interfaces using Java;
> > > > 2. write the service.xml;
> > > > 3. create the .aar achieve and deploy it;
> > > > 4. generate the skeleton code based on the *WSDL* file;
> > > > 5. implement the logic of services;
> > > > 6. create *another achieve* again and deploy it;
> > > > 7. write the client code in either a dynamic or a static fashion.
> > > >
> > > > My questions are
> > > >
> > > > 1. what is purpose of the first deployment using the achieve have only
> > > > class interfaces and service.xml?
> > >
> > > This is an sample with no data binding(Note it echo's the OMElement.
> > This
> > > was the sample we had for M2 where we didn't have databinding support)
> > So
> > > if
> > > the user want to be smart and do everyting manually that's the way to do
> > > it.
> > > This example will tell you what are the must have's if you are to make
> > it
> > > work.
> > >
> > >
> > > > 2. where does the WSDL come from? It is hard for the developer to code
> > > > it by hand.
> > >
> > > You of course can write it by hand, the sample is based on the fact that
> > > you
> > > start with the contract, which is the wsdl. But.. we have a tool that
> > does
> > > the java2wsdl part. Actually we use the Axis1 java2wsdl tool and I
> > belive
> > > we
> > > have a eclipse pluigin for that too. Am I right Ajith???
> > >
> > >
> > > > 3. what is the relationship between the first aar and the second one?
> > >
> > > No relationship.. The second one is a databound (a more comprehensive
> > and
> > > practical I would say) example that emphasize the axis2 data binding
> > > support.
> > >
> > >
> > > In a nut shell we are not trying to invent a new development process.
> > (But
> > > we have our own deployment model, programming model too I would say..)
> > >
> > >
> > > Thanks
> > > Chathura
> > >
> > >
> > >
> >
> >
> >
> 
> 
> 
>

RE: [axis 2]Questions on the development process using Axis 2.0

Posted by Chathura Herath <ch...@opensource.lk>.
Don,
If you are asking how to get the client codegened using the service.xml and
service impl classes; the answer is there is no way to do it directly. One
of the options is to hand write the client side SOAPEnvelop creation part
and use the call api to send the message.
The other option I would say is to use the java2wsdl tool to get the wsdl
from the service implementation and then use the wsdl2java tool to generate
the clientside.

One thing to note is that if you use the wsdl2java tool databinding is
engaged automatically.

Cheers
Chathura


> -----Original Message-----
> From: Deepal Jayasinghe [mailto:deepal@opensource.lk]
> Sent: Wednesday, July 13, 2005 9:48 AM
> To: axis-user@ws.apache.org; Dong Liu
> Subject: Re: [axis 2]Questions on the development process using Axis 2.0
> 
> hi Don;
> 
> you can write a client to consume a web service where web service only
> contains service.xml (no wsdl file is present) , in that case you have to
> create the SOAPMessge by hand , use one of the MEPClient to send the
> request
> . And all these has to handle in the your client code since you do not
> have
> stubs. In fact in M2 we have don that.and I think following code will help
> you to do so , and which invoke the version service.
> 
> 
>  private String value;
>     private QName operationName = new QName("getVersion");
>     private OMElement createEnvelope() {
>         OMFactory fac = OMAbstractFactory.getOMFactory();
>         OMNamespace omNs = fac.createOMNamespace("http://localhost/my",
> "my");
>         OMElement method = fac.createOMElement("Version", omNs);
>         OMElement value = fac.createOMElement("myValue", omNs);
>         method.addChild(value);
>         return method;
>     }
> 
>     public boolean inVokeTheService() {
>         try {
>             OMElement payload = createEnvelope();
>             Call call = new Call();
>             call.setTo(targetEPR);
>             call.setTransportInfo(Constants.TRANSPORT_HTTP,
> Constants.TRANSPORT_HTTP, false);
> 
>             OMElement result =
>                     (OMElement)
> call.invokeBlocking(operationName.getLocalPart(), payload);
>             StringWriter writer = new StringWriter();
>             result.serializeWithCache(new
> OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)));
>             writer.flush();
>             value = writer.toString();
>             return true;
>         } catch (AxisFault axisFault) {
>             value = axisFault.getMessage();
>             return false;
>         } catch (XMLStreamException e) {
>             value = e.getMessage();
>             return false;
>         }
>     }
> 
> 
> Deepal
> 
> 
> ----- Original Message -----
> From: "Dong Liu" <ed...@gmail.com>
> To: <ax...@ws.apache.org>; <ch...@opensource.lk>
> Sent: Tuesday, July 12, 2005 10:26 PM
> Subject: Re: [axis 2]Questions on the development process using Axis 2.0
> 
> 
> Hi, Chathura,
> 
> Thank you for your reply to my questions. Now I understand the
> purposes of the different parts in the user guide of axis 2.
> 
> I like the approach that using the java classes and the service.xml to
> deploy web services. But I am still thinking how to develop clients to
> consume such services, if no wsdls are present. Is it possible to
> develop a client just based on the service.xml?
> 
> Cheers,
> 
> Don
> 
> On 7/12/05, Chathura Herath <ch...@opensource.lk> wrote:
> > Hi Don,
> >
> > If the documentation is blurred we need to fix it, but see my comments
> > below
> > for each of your queries.
> >
> > > -----Original Message-----
> > > From: Dong Liu [mailto:edongliu@gmail.com]
> > > Sent: Monday, July 11, 2005 10:17 PM
> > > To: axis-user@ws.apache.org; axis-dev@ws.apache.org
> > > Subject: [axis 2]Questions on the development process using Axis 2.0
> > >
> > > Hi,
> > >
> > > I am confused about the development process when using Axis 2.0. As
> > > described in the user guide, the process will be
> > >
> > > 1. write the class interfaces using Java;
> > > 2. write the service.xml;
> > > 3. create the .aar achieve and deploy it;
> > > 4. generate the skeleton code based on the *WSDL* file;
> > > 5. implement the logic of services;
> > > 6. create *another achieve* again and deploy it;
> > > 7. write the client code in either a dynamic or a static fashion.
> > >
> > > My questions are
> > >
> > > 1. what is purpose of the first deployment using the achieve have only
> > > class interfaces and service.xml?
> >
> > This is an sample with no data binding(Note it echo's the OMElement.
> This
> > was the sample we had for M2 where we didn't have databinding support)
> So
> > if
> > the user want to be smart and do everyting manually that's the way to do
> > it.
> > This example will tell you what are the must have's if you are to make
> it
> > work.
> >
> >
> > > 2. where does the WSDL come from? It is hard for the developer to code
> > > it by hand.
> >
> > You of course can write it by hand, the sample is based on the fact that
> > you
> > start with the contract, which is the wsdl. But.. we have a tool that
> does
> > the java2wsdl part. Actually we use the Axis1 java2wsdl tool and I
> belive
> > we
> > have a eclipse pluigin for that too. Am I right Ajith???
> >
> >
> > > 3. what is the relationship between the first aar and the second one?
> >
> > No relationship.. The second one is a databound (a more comprehensive
> and
> > practical I would say) example that emphasize the axis2 data binding
> > support.
> >
> >
> > In a nut shell we are not trying to invent a new development process.
> (But
> > we have our own deployment model, programming model too I would say..)
> >
> >
> > Thanks
> > Chathura
> >
> >
> >
> 
> 
> 




Re: [axis 2]Questions on the development process using Axis 2.0

Posted by Deepal Jayasinghe <de...@opensource.lk>.
hi Don;

you can write a client to consume a web service where web service only 
contains service.xml (no wsdl file is present) , in that case you have to 
create the SOAPMessge by hand , use one of the MEPClient to send the request 
. And all these has to handle in the your client code since you do not have 
stubs. In fact in M2 we have don that.and I think following code will help 
you to do so , and which invoke the version service.


 private String value;
    private QName operationName = new QName("getVersion");
    private OMElement createEnvelope() {
        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMNamespace omNs = fac.createOMNamespace("http://localhost/my", 
"my");
        OMElement method = fac.createOMElement("Version", omNs);
        OMElement value = fac.createOMElement("myValue", omNs);
        method.addChild(value);
        return method;
    }

    public boolean inVokeTheService() {
        try {
            OMElement payload = createEnvelope();
            Call call = new Call();
            call.setTo(targetEPR);
            call.setTransportInfo(Constants.TRANSPORT_HTTP, 
Constants.TRANSPORT_HTTP, false);

            OMElement result =
                    (OMElement) 
call.invokeBlocking(operationName.getLocalPart(), payload);
            StringWriter writer = new StringWriter();
            result.serializeWithCache(new 
OMOutput(XMLOutputFactory.newInstance().createXMLStreamWriter(writer)));
            writer.flush();
            value = writer.toString();
            return true;
        } catch (AxisFault axisFault) {
            value = axisFault.getMessage();
            return false;
        } catch (XMLStreamException e) {
            value = e.getMessage();
            return false;
        }
    }


Deepal


----- Original Message ----- 
From: "Dong Liu" <ed...@gmail.com>
To: <ax...@ws.apache.org>; <ch...@opensource.lk>
Sent: Tuesday, July 12, 2005 10:26 PM
Subject: Re: [axis 2]Questions on the development process using Axis 2.0


Hi, Chathura,

Thank you for your reply to my questions. Now I understand the
purposes of the different parts in the user guide of axis 2.

I like the approach that using the java classes and the service.xml to
deploy web services. But I am still thinking how to develop clients to
consume such services, if no wsdls are present. Is it possible to
develop a client just based on the service.xml?

Cheers,

Don

On 7/12/05, Chathura Herath <ch...@opensource.lk> wrote:
> Hi Don,
>
> If the documentation is blurred we need to fix it, but see my comments 
> below
> for each of your queries.
>
> > -----Original Message-----
> > From: Dong Liu [mailto:edongliu@gmail.com]
> > Sent: Monday, July 11, 2005 10:17 PM
> > To: axis-user@ws.apache.org; axis-dev@ws.apache.org
> > Subject: [axis 2]Questions on the development process using Axis 2.0
> >
> > Hi,
> >
> > I am confused about the development process when using Axis 2.0. As
> > described in the user guide, the process will be
> >
> > 1. write the class interfaces using Java;
> > 2. write the service.xml;
> > 3. create the .aar achieve and deploy it;
> > 4. generate the skeleton code based on the *WSDL* file;
> > 5. implement the logic of services;
> > 6. create *another achieve* again and deploy it;
> > 7. write the client code in either a dynamic or a static fashion.
> >
> > My questions are
> >
> > 1. what is purpose of the first deployment using the achieve have only
> > class interfaces and service.xml?
>
> This is an sample with no data binding(Note it echo's the OMElement. This
> was the sample we had for M2 where we didn't have databinding support) So 
> if
> the user want to be smart and do everyting manually that's the way to do 
> it.
> This example will tell you what are the must have's if you are to make it
> work.
>
>
> > 2. where does the WSDL come from? It is hard for the developer to code
> > it by hand.
>
> You of course can write it by hand, the sample is based on the fact that 
> you
> start with the contract, which is the wsdl. But.. we have a tool that does
> the java2wsdl part. Actually we use the Axis1 java2wsdl tool and I belive 
> we
> have a eclipse pluigin for that too. Am I right Ajith???
>
>
> > 3. what is the relationship between the first aar and the second one?
>
> No relationship.. The second one is a databound (a more comprehensive and
> practical I would say) example that emphasize the axis2 data binding
> support.
>
>
> In a nut shell we are not trying to invent a new development process. (But
> we have our own deployment model, programming model too I would say..)
>
>
> Thanks
> Chathura
>
>
>




Re: [axis 2]Questions on the development process using Axis 2.0

Posted by Dong Liu <ed...@gmail.com>.
Hi, Chathura,

Thank you for your reply to my questions. Now I understand the
purposes of the different parts in the user guide of axis 2.

I like the approach that using the java classes and the service.xml to
deploy web services. But I am still thinking how to develop clients to
consume such services, if no wsdls are present. Is it possible to
develop a client just based on the service.xml?

Cheers,

Don

On 7/12/05, Chathura Herath <ch...@opensource.lk> wrote:
> Hi Don,
> 
> If the documentation is blurred we need to fix it, but see my comments below
> for each of your queries.
> 
> > -----Original Message-----
> > From: Dong Liu [mailto:edongliu@gmail.com]
> > Sent: Monday, July 11, 2005 10:17 PM
> > To: axis-user@ws.apache.org; axis-dev@ws.apache.org
> > Subject: [axis 2]Questions on the development process using Axis 2.0
> >
> > Hi,
> >
> > I am confused about the development process when using Axis 2.0. As
> > described in the user guide, the process will be
> >
> > 1. write the class interfaces using Java;
> > 2. write the service.xml;
> > 3. create the .aar achieve and deploy it;
> > 4. generate the skeleton code based on the *WSDL* file;
> > 5. implement the logic of services;
> > 6. create *another achieve* again and deploy it;
> > 7. write the client code in either a dynamic or a static fashion.
> >
> > My questions are
> >
> > 1. what is purpose of the first deployment using the achieve have only
> > class interfaces and service.xml?
> 
> This is an sample with no data binding(Note it echo's the OMElement. This
> was the sample we had for M2 where we didn't have databinding support) So if
> the user want to be smart and do everyting manually that's the way to do it.
> This example will tell you what are the must have's if you are to make it
> work.
> 
> 
> > 2. where does the WSDL come from? It is hard for the developer to code
> > it by hand.
> 
> You of course can write it by hand, the sample is based on the fact that you
> start with the contract, which is the wsdl. But.. we have a tool that does
> the java2wsdl part. Actually we use the Axis1 java2wsdl tool and I belive we
> have a eclipse pluigin for that too. Am I right Ajith???
> 
> 
> > 3. what is the relationship between the first aar and the second one?
> 
> No relationship.. The second one is a databound (a more comprehensive and
> practical I would say) example that emphasize the axis2 data binding
> support.
> 
> 
> In a nut shell we are not trying to invent a new development process. (But
> we have our own deployment model, programming model too I would say..)
> 
> 
> Thanks
> Chathura
> 
> 
>

RE: [axis 2]Questions on the development process using Axis 2.0

Posted by Chathura Herath <ch...@opensource.lk>.
Hi Don,

If the documentation is blurred we need to fix it, but see my comments below
for each of your queries. 

> -----Original Message-----
> From: Dong Liu [mailto:edongliu@gmail.com]
> Sent: Monday, July 11, 2005 10:17 PM
> To: axis-user@ws.apache.org; axis-dev@ws.apache.org
> Subject: [axis 2]Questions on the development process using Axis 2.0
> 
> Hi,
> 
> I am confused about the development process when using Axis 2.0. As
> described in the user guide, the process will be
> 
> 1. write the class interfaces using Java;
> 2. write the service.xml;
> 3. create the .aar achieve and deploy it;
> 4. generate the skeleton code based on the *WSDL* file;
> 5. implement the logic of services;
> 6. create *another achieve* again and deploy it;
> 7. write the client code in either a dynamic or a static fashion.
> 
> My questions are
> 
> 1. what is purpose of the first deployment using the achieve have only
> class interfaces and service.xml?

This is an sample with no data binding(Note it echo's the OMElement. This
was the sample we had for M2 where we didn't have databinding support) So if
the user want to be smart and do everyting manually that's the way to do it.
This example will tell you what are the must have's if you are to make it
work.


> 2. where does the WSDL come from? It is hard for the developer to code
> it by hand.

You of course can write it by hand, the sample is based on the fact that you
start with the contract, which is the wsdl. But.. we have a tool that does
the java2wsdl part. Actually we use the Axis1 java2wsdl tool and I belive we
have a eclipse pluigin for that too. Am I right Ajith???


> 3. what is the relationship between the first aar and the second one?

No relationship.. The second one is a databound (a more comprehensive and
practical I would say) example that emphasize the axis2 data binding
support.


In a nut shell we are not trying to invent a new development process. (But
we have our own deployment model, programming model too I would say..)


Thanks
Chathura