[ot] Need Design help for Axis ComplextTypes to ActionForms please...anyone?

2005-10-19 Thread Mick Knutson
I have a WSDL that is managed and generated by a different group than mine.
This wsdl has many complex types within complex types for each service. Thus 
I get composite objects being generated, and we use a flattened version of 
these objects in our Struts UI. But Currently, we create an ActionForm and 
an interface that Mirrors the ComplextType that was generated, but has 
additional fields for the fields.

Like I have a micrType that is an RTN and BankAccount, and my Action form 
just has RTN and BankAccount instead of micrType.

I want to use the BeanUtils.copyProperties() but my names need to match. Thus 
when the names in the WSDL change, I am unable to get notified of that change 
directly, I just don't get those properties copied, and now I have a bug.

So, if I can't have the WSDL define Parent Abstract Classes for these types, 
What am I suppose to do to keep some type of interface between my 
ActionForms and my ComplextTypes? Besides going through by hand each time 
there is an update and making changes by hand, then having to verify by hand 
that the changes get reflected in my ActionForms?



Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)











MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ot] Need Design help for Axis ComplextTypes to ActionForms please...anyone?

2005-10-19 Thread Martin Gainty

Good Morning Mick
Stupid question but I'll ask anyway ..I'm assuming you have already used 
Axis wsdl2java to automate the generation of the Java Class?

http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL
Martin-
- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]

To: user@struts.apache.org
Sent: Wednesday, October 19, 2005 2:36 PM
Subject: [ot] Need Design help for Axis ComplextTypes to ActionForms 
please...anyone?




I have a WSDL that is managed and generated by a different group than mine.
This wsdl has many complex types within complex types for each service. 
Thus

I get composite objects being generated, and we use a flattened version of
these objects in our Struts UI. But Currently, we create an ActionForm and
an interface that Mirrors the ComplextType that was generated, but has
additional fields for the fields.

Like I have a micrType that is an RTN and BankAccount, and my Action form
just has RTN and BankAccount instead of micrType.

I want to use the BeanUtils.copyProperties() but my names need to match. 
Thus when the names in the WSDL change, I am unable to get notified of 
that change directly, I just don't get those properties copied, and now I 
have a bug.


So, if I can't have the WSDL define Parent Abstract Classes for these 
types,

What am I suppose to do to keep some type of interface between my
ActionForms and my ComplextTypes? Besides going through by hand each time
there is an update and making changes by hand, then having to verify by 
hand

that the changes get reflected in my ActionForms?



Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)











MMS safeway.com made the following annotations.
--
Warning:
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than 
the recipient.  This e-mail may contain information proprietary to Safeway 
and is intended only for the use of the intended recipient(s).  If the 
reader of this message is not the intended recipient(s), you are notified 
that you have received this message in error and that any review, 
dissemination, distribution or copying of this message is strictly 
prohibited.  If you have received this message in error, please notify the 
sender immediately.


==


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ot] Need Design help for Axis ComplextTypes to ActionForms please...anyone?

2005-10-19 Thread Dave Newton

Martin Gainty wrote:

I'm assuming you have already used Axis wsdl2java to automate the 
generation of the Java Class?
http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL 



Or if that doesn't do what you need, just write a simple script in 
Perl/Python/Jython/Ruby/Lisp to parse the WSDL and write out the classes 
for you; I use this strategy in one way or another quite often (usually 
in Ruby now, used to use Jython).


Code generation good, hand-rolling bad.

Dave Newton
Technical Lead, Project MonkeyLips Omnigalgomon



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [ot] Need Design help for Axis ComplextTypes to ActionForms please...anyone?

2005-10-19 Thread Mick Knutson
I am forced to use the Websphere Axis libraries, and yes  generate
classes just fine. But I can't get them to adhere to MY interface, or
MAKE these Types extend an Abstract Class of my own. At least that I can
see.
I also have about 1,000 different types being generated in our project.
So, is there a way to make these java files extend my own Abstract
Class? What about making them extend my interface as well?
This way my interface for my ActionForms and the ComplexTypes are the
same and always in Sync. 

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 19, 2005 12:03 PM
To: Struts Users Mailing List
Subject: Re: [ot] Need Design help for Axis ComplextTypes to ActionForms
please...anyone?

Martin Gainty wrote:

 I'm assuming you have already used Axis wsdl2java to automate the 
 generation of the Java Class?
 http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsS
 keletonsAndDataTypesFromWSDL


Or if that doesn't do what you need, just write a simple script in
Perl/Python/Jython/Ruby/Lisp to parse the WSDL and write out the classes
for you; I use this strategy in one way or another quite often (usually
in Ruby now, used to use Jython).

Code generation good, hand-rolling bad.

Dave Newton
Technical Lead, Project MonkeyLips Omnigalgomon



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



MMS safeway.com made the following annotations.
--
Warning: 
All e-mail sent to this address will be received by the Safeway corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient.  This e-mail may contain information proprietary to Safeway and is 
intended only for the use of the intended recipient(s).  If the reader of this 
message is not the intended recipient(s), you are notified that you have 
received this message in error and that any review, dissemination, distribution 
or copying of this message is strictly prohibited.  If you have received this 
message in error, please notify the sender immediately. 
  
==


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]