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 Steve Cohen <sc...@javactivity.org> on 2008/10/02 23:36:37 UTC
axiom VS data-binding?
Well, I've a achieved a working connection to the vendor's WS. Thanks
to all who provided useful input along the way and my apologies if I
posted overmuch or if some of these posts were a tad ill-tempered.
Open-source can be a pain at times and I certainly felt my share this
past week.
Now looking back on what I did, I realize that after all the pain of
generating with WSDL2Java my client doesn't use any of this ugly
generated code at all!! It's all built with AXIOM!! And while it isn't
finished, in this application, I think I'll want to continue down that
path to completion.
This is a small project, part of a larger whole and the Axiom model
seems to fit with what I'm trying to do. I can well imagine bigger
projects where that would not be the case, where I'd want some sort of
automated data binding, but ADB didn't do it for me. JIBX might be
somewhat better, but I think in this case AXIOM gives the most bang for
the buck.
I would be interested in the opinions of others here. I am only
interested here in client applications. I am not thinking about
building services, just consuming them. What kinds are situations are
best handled with AXIOM and which are better handled with an automatic
data binding technology?
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: axiom VS data-binding?
Posted by Steve Cohen <sc...@javactivity.org>.
keith chapman wrote:
no anytypes anywhere in the WSDL.
WSDL is here, check it out yourself:
https://duoshare.com/dsWS/services/PostML/wsdl
The main problem with it, as I see are the huge number of elements.
There are probably better ways to arrange it.
I guess my question was meant to be more general:
Do people use Axiom Instead of or In addition to WSDL2Java generated
code for the client side? Does it make sense to use Axiom on the
request but generated classes on the response? What works well, what
doesn't? That is what I want to know.
> Oops I means OMElement (not IMElement ;)).
>
>
> On Fri, Oct 3, 2008 at 6:53 AM, keith chapman <keithgchapman@gmail.com
> <ma...@gmail.com>> wrote:
>
> Can you post a snippet of your types section. I wonder whether
> they all use anyType, is so they are bound to IMElement which is
> Axiom. To get best use
> of DataBinding you need to have your schema bound to types rather
> than anyType.
>
> See how easy it is to use WSDL2java at times
> <http://www.keith-chapman.org/2008/10/axis2-wsdl2java-generate-better-code.html>
> [1] . But as I've said it depends on the schema.
>
> Thanks,
> Keith.
>
> [1]
> http://www.keith-chapman.org/2008/10/axis2-wsdl2java-generate-better-code.html
>
>
>
>
> On Fri, Oct 3, 2008 at 3:06 AM, Steve Cohen
> <scohen@javactivity.org <ma...@javactivity.org>> wrote:
>
> Well, I've a achieved a working connection to the vendor's WS.
> Thanks to all who provided useful input along the way and my
> apologies if I posted overmuch or if some of these posts were
> a tad ill-tempered. Open-source can be a pain at times and I
> certainly felt my share this past week.
>
> Now looking back on what I did, I realize that after all the
> pain of generating with WSDL2Java my client doesn't use any of
> this ugly generated code at all!! It's all built with AXIOM!!
> And while it isn't finished, in this application, I think
> I'll want to continue down that path to completion.
> This is a small project, part of a larger whole and the Axiom
> model seems to fit with what I'm trying to do. I can well
> imagine bigger projects where that would not be the case,
> where I'd want some sort of automated data binding, but ADB
> didn't do it for me. JIBX might be somewhat better, but I
> think in this case AXIOM gives the most bang for the buck.
>
> I would be interested in the opinions of others here. I am
> only interested here in client applications. I am not
> thinking about building services, just consuming them. What
> kinds are situations are best handled with AXIOM and which are
> better handled with an automatic data binding technology?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> <ma...@ws.apache.org>
> For additional commands, e-mail: axis-user-help@ws.apache.org
> <ma...@ws.apache.org>
>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: axiom VS data-binding?
Posted by keith chapman <ke...@gmail.com>.
Oops I means OMElement (not IMElement ;)).
On Fri, Oct 3, 2008 at 6:53 AM, keith chapman <ke...@gmail.com>wrote:
> Can you post a snippet of your types section. I wonder whether they all use
> anyType, is so they are bound to IMElement which is Axiom. To get best use
> of DataBinding you need to have your schema bound to types rather than
> anyType.
>
> See how easy it is to use WSDL2java at times<http://www.keith-chapman.org/2008/10/axis2-wsdl2java-generate-better-code.html>[1] . But as I've said it depends on the schema.
>
> Thanks,
> Keith.
>
> [1]
> http://www.keith-chapman.org/2008/10/axis2-wsdl2java-generate-better-code.html
>
>
>
> On Fri, Oct 3, 2008 at 3:06 AM, Steve Cohen <sc...@javactivity.org>wrote:
>
>> Well, I've a achieved a working connection to the vendor's WS. Thanks to
>> all who provided useful input along the way and my apologies if I posted
>> overmuch or if some of these posts were a tad ill-tempered. Open-source can
>> be a pain at times and I certainly felt my share this past week.
>>
>> Now looking back on what I did, I realize that after all the pain of
>> generating with WSDL2Java my client doesn't use any of this ugly generated
>> code at all!! It's all built with AXIOM!! And while it isn't finished, in
>> this application, I think I'll want to continue down that path to
>> completion.
>> This is a small project, part of a larger whole and the Axiom model seems
>> to fit with what I'm trying to do. I can well imagine bigger projects where
>> that would not be the case, where I'd want some sort of automated data
>> binding, but ADB didn't do it for me. JIBX might be somewhat better, but I
>> think in this case AXIOM gives the most bang for the buck.
>>
>> I would be interested in the opinions of others here. I am only
>> interested here in client applications. I am not thinking about building
>> services, just consuming them. What kinds are situations are best handled
>> with AXIOM and which are better handled with an automatic data binding
>> technology?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>
--
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/
blog: http://www.keith-chapman.org
Re: axiom VS data-binding?
Posted by keith chapman <ke...@gmail.com>.
Can you post a snippet of your types section. I wonder whether they all use
anyType, is so they are bound to IMElement which is Axiom. To get best use
of DataBinding you need to have your schema bound to types rather than
anyType.
See how easy it is to use WSDL2java at
times<http://www.keith-chapman.org/2008/10/axis2-wsdl2java-generate-better-code.html>[1]
. But as I've said it depends on the schema.
Thanks,
Keith.
[1]
http://www.keith-chapman.org/2008/10/axis2-wsdl2java-generate-better-code.html
On Fri, Oct 3, 2008 at 3:06 AM, Steve Cohen <sc...@javactivity.org> wrote:
> Well, I've a achieved a working connection to the vendor's WS. Thanks to
> all who provided useful input along the way and my apologies if I posted
> overmuch or if some of these posts were a tad ill-tempered. Open-source can
> be a pain at times and I certainly felt my share this past week.
>
> Now looking back on what I did, I realize that after all the pain of
> generating with WSDL2Java my client doesn't use any of this ugly generated
> code at all!! It's all built with AXIOM!! And while it isn't finished, in
> this application, I think I'll want to continue down that path to
> completion.
> This is a small project, part of a larger whole and the Axiom model seems
> to fit with what I'm trying to do. I can well imagine bigger projects where
> that would not be the case, where I'd want some sort of automated data
> binding, but ADB didn't do it for me. JIBX might be somewhat better, but I
> think in this case AXIOM gives the most bang for the buck.
>
> I would be interested in the opinions of others here. I am only interested
> here in client applications. I am not thinking about building services,
> just consuming them. What kinds are situations are best handled with AXIOM
> and which are better handled with an automatic data binding technology?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/
blog: http://www.keith-chapman.org