You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Brecht Yperman <Br...@invenso.com> on 2006/08/18 15:11:44 UTC
[Axis2] Contract first approach
Hi,
I want to create webservices, based on a wsdl.
What I have:
- The wsdl, with one operation
What I want:
To generate a webservice, which exposes that one method. All I need as
input/output is the Soap Envelope, so databinding is not necessary.
How do I do that, without using a code generator?
Any hint to get me started is very much appreciated.
Thanks a lot,
Brecht
Invenso - The "Integration Software" specialists.
_____________________________________________
Brecht Yperman
Development team
Direct: +32 (0)3 780 30 05
Email: brecht.yperman@invenso.com
INVENSO bvba
Industriepark-West 75
9100 Sint-Niklaas
Belgium - Europe
Phone: +32 (0)3 780 30 02
Fax: +32 (0)3 780 30 03
Email: info@invenso.com
Website: www.invenso.com <http://www.invenso.com/>
"E-mail disclaimer: This e-mail, and any attachments thereto, is
intended only for use by the addressee(s) named herein and may contain
legally privileged and/or confidential information. If you are not the
intended recipient, please note that any review, dissemination,
disclosure, alteration, printing, copying or transmission of this e-mail
and/or any file transmitted with it, is strictly prohibited and may be
unlawful. If you have received this e-mail by mistake, please
immediately notify the sender and permanently delete the original as
well as any copy of any e-mail and any printout thereof."
Re: [Axis2] Contract first approach
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
With violation of one of your policies I can suggest a solution. You
can use the code generator with -d none option which generates code
with no data binding!
Ajith
On 8/18/06, Kinichiro Inoguchi <in...@yahoo.com> wrote:
> Hi,
>
> - you have WSDL already
> - you don't need data binding
> - you don't want to use a code generator
>
> How about using RawXMLINOutMessageReceiver ?
>
> Your service class will be like this,
>
> public class MyService1 {
> public OMElement serviceMethod(OMElement inParam) {
> ...
> OMElement outParam;
> ...
> return outParam;
> }
> }
>
> And your services.xml should have
> org.apache.axis2.receivers.RawXMLINOutMessageReceiver
> as messageReceiver definition.
>
> You need to write code for creating "outParam".
>
> Anyone else ?
>
> Regards,
> kinichiro
>
> --- Brecht Yperman <Br...@invenso.com> wrote:
>
> > Hi,
> >
> >
> >
> > I want to create webservices, based on a wsdl.
> >
> >
> >
> > What I have:
> >
> > - The wsdl, with one operation
> >
> >
> >
> > What I want:
> >
> > To generate a webservice, which exposes that one method. All I need
> > as
> > input/output is the Soap Envelope, so databinding is not necessary.
> >
> >
> >
> > How do I do that, without using a code generator?
> >
> >
> >
> > Any hint to get me started is very much appreciated.
> >
> >
> >
> > Thanks a lot,
> >
> > Brecht
> >
> > Invenso - The "Integration Software" specialists.
> > _____________________________________________
> >
> > Brecht Yperman
> > Development team
> >
> > Direct: +32 (0)3 780 30 05
> > Email: brecht.yperman@invenso.com
> >
> > INVENSO bvba
> > Industriepark-West 75
> > 9100 Sint-Niklaas
> > Belgium - Europe
> >
> > Phone: +32 (0)3 780 30 02
> > Fax: +32 (0)3 780 30 03
> > Email: info@invenso.com
> > Website: www.invenso.com <http://www.invenso.com/>
> >
> > "E-mail disclaimer: This e-mail, and any attachments thereto, is
> > intended only for use by the addressee(s) named herein and may
> > contain
> > legally privileged and/or confidential information. If you are not
> > the
> > intended recipient, please note that any review, dissemination,
> > disclosure, alteration, printing, copying or transmission of this
> > e-mail
> > and/or any file transmitted with it, is strictly prohibited and may
> > be
> > unlawful. If you have received this e-mail by mistake, please
> > immediately notify the sender and permanently delete the original as
> > well as any copy of any e-mail and any printout thereof."
> >
> >
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Ajith Ranabahu
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Contract first approach
Posted by Kinichiro Inoguchi <in...@yahoo.com>.
Hi,
- you have WSDL already
- you don't need data binding
- you don't want to use a code generator
How about using RawXMLINOutMessageReceiver ?
Your service class will be like this,
public class MyService1 {
public OMElement serviceMethod(OMElement inParam) {
...
OMElement outParam;
...
return outParam;
}
}
And your services.xml should have
org.apache.axis2.receivers.RawXMLINOutMessageReceiver
as messageReceiver definition.
You need to write code for creating "outParam".
Anyone else ?
Regards,
kinichiro
--- Brecht Yperman <Br...@invenso.com> wrote:
> Hi,
>
>
>
> I want to create webservices, based on a wsdl.
>
>
>
> What I have:
>
> - The wsdl, with one operation
>
>
>
> What I want:
>
> To generate a webservice, which exposes that one method. All I need
> as
> input/output is the Soap Envelope, so databinding is not necessary.
>
>
>
> How do I do that, without using a code generator?
>
>
>
> Any hint to get me started is very much appreciated.
>
>
>
> Thanks a lot,
>
> Brecht
>
> Invenso - The "Integration Software" specialists.
> _____________________________________________
>
> Brecht Yperman
> Development team
>
> Direct: +32 (0)3 780 30 05
> Email: brecht.yperman@invenso.com
>
> INVENSO bvba
> Industriepark-West 75
> 9100 Sint-Niklaas
> Belgium - Europe
>
> Phone: +32 (0)3 780 30 02
> Fax: +32 (0)3 780 30 03
> Email: info@invenso.com
> Website: www.invenso.com <http://www.invenso.com/>
>
> "E-mail disclaimer: This e-mail, and any attachments thereto, is
> intended only for use by the addressee(s) named herein and may
> contain
> legally privileged and/or confidential information. If you are not
> the
> intended recipient, please note that any review, dissemination,
> disclosure, alteration, printing, copying or transmission of this
> e-mail
> and/or any file transmitted with it, is strictly prohibited and may
> be
> unlawful. If you have received this e-mail by mistake, please
> immediately notify the sender and permanently delete the original as
> well as any copy of any e-mail and any printout thereof."
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org