[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-user
Subject:    Wsdl2java generated code
From:       "Coyne, Jimmy" <Jimmy.Coyne () Terranua ! com>
Date:       2005-09-30 16:03:09
Message-ID: 377AA7E606CE5F44950F009FDDF975EF59973E () irlgal703nts ! ie ! fid-intl ! com
[Download RAW message or body]

Hi all , 
Our  customer have designed there different services   such as CreateAccount
, UpdateAccount , DeleteAccount etc  in a very a very similar manner.
For example CreateAccount

<element name="CreateAccount">
	 <complexType>
          <sequence>
             <element name="Request">
                <complexType>
                  <sequence>
                    <element name="accountDetails" minOccurs="0">
                      <complexType>
                        <sequence>
                          <element name="country" type="string"/>
                          <element name="accountId" type="string"/>
                          <element name="Profile">
                            <complexType>
                              <sequence>
                                <element name="name" type="string"
minOccurs="0"/>
                              </sequence>
                            </complexType>
                          </element>
                        </sequence>..........




Is the same as  UpdateAccount  except for a few elements names ..

<element name="UpdateAccount">
	 <complexType>
          <sequence>
             <element name="Request">
                <complexType>
                  <sequence>
                    <element name="accountDetails" minOccurs="0">
                      <complexType>
                        <sequence>
                          <element name="country" type="string"/>
                          <element name="accountId" type="string"/>
                          <element name="Profile">
                            <complexType>
                              <sequence>
                                <element name="name" type="string"
minOccurs="0"/>
                              </sequence>
                            </complexType>
                          </element>
                        </sequence>. . . . . . . 



Using wsdl2java  The classes  created very similar

CreateAccount--- generates 
CreateAccountRequest
CreateAccountRequestAccountDetails
CreateAccountRequestAccountDetailsProfile
......... . . . .  . .
UpdateAccountRequest ----- generates 

UpdateAccountRequest
UpdateAccountRequestAccountDetails
UpdateAccountRequestAccountDetailsProfile
 . . . . . . . . . . . . .  . .


Although the  classes  are almost identical  , because they  don't extend
any common   class  , I cant see a way of building up the binding objects
 in a clean way i.e.  I will have to write code to set the binding object
for all cases with no reuse . Can any one think of a clean way to solve this
problem ?
Thanks
Jimmy 







[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73">
<TITLE>  Wsdl2java generated code </TITLE>
</HEAD>
<BODY>

<P><FONT FACE="Arial">Hi all , </FONT>
<BR><FONT FACE="Arial">Our&nbsp; customer have designed there different \
services&nbsp;&nbsp; such as CreateAccount , UpdateAccount , DeleteAccount etc&nbsp; \
in a very a very similar manner.</FONT></P>

<P><FONT FACE="Arial">For example CreateAccount</FONT>
</P>

<P><FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;</FONT><FONT \
FACE="Arial">CreateAccount</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier New">&gt;</FONT> \
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#000000" SIZE=2 \
FACE="Courier New"></FONT> <FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&lt;</FONT><FONT COLOR="#3F7F7F" SIZE=2 FACE="Courier \
New">complexType</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier New">&gt;</FONT> \
<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> <FONT \
COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" SIZE=2 \
FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;Request&quot;</FONT><FONT \
COLOR="#008080" SIZE=2 FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" \
SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">complexType</FONT><FONT COLOR="#008080" SIZE=2 \
FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;accountDetails&quot;</FONT> <FONT \
COLOR="#7F007F" SIZE=2 FACE="Courier New">minOccurs</FONT><FONT COLOR="#000000" \
SIZE=2 FACE="Courier New">=</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;0&quot;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier New">&gt;</FONT> \
<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">complexType</FONT><FONT COLOR="#008080" SIZE=2 \
FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;country&quot;</FONT> <FONT \
COLOR="#7F007F" SIZE=2 FACE="Courier New">type</FONT><FONT COLOR="#000000" SIZE=2 \
FACE="Courier New">=</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;string&quot;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">/&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;accountId&quot;</FONT> <FONT \
COLOR="#7F007F" SIZE=2 FACE="Courier New">type</FONT><FONT COLOR="#000000" SIZE=2 \
FACE="Courier New">=</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;string&quot;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">/&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;Profile&quot;</FONT><FONT \
COLOR="#008080" SIZE=2 FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" \
SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">complexType</FONT><FONT COLOR="#008080" SIZE=2 \
FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;</FONT><FONT COLOR="#2A00FF" SIZE=2 \
FACE="Courier New">name</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier New">type</FONT><FONT \
COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT COLOR="#2A00FF" SIZE=2 \
FACE="Courier New">&quot;string&quot;</FONT> <FONT COLOR="#7F007F" SIZE=2 \
FACE="Courier New">minOccurs</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">=</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;0&quot;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier New">/&gt;</FONT> \
<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;/</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;/</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">complexType</FONT><FONT COLOR="#008080" SIZE=2 \
FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;/</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;/</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier New">..........</FONT> \
</P> <BR>
<BR>
<BR>

<P><FONT FACE="Arial">Is the same as&nbsp; UpdateAccount&nbsp; except for a few \
elements names ..</FONT> </P>

<P><FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;</FONT><FONT \
FACE="Arial">UpdateAccount</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier New">&gt;</FONT> \
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#000000" SIZE=2 \
FACE="Courier New"></FONT> <FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&lt;</FONT><FONT COLOR="#3F7F7F" SIZE=2 FACE="Courier \
New">complexType</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier New">&gt;</FONT> \
<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> <FONT \
COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" SIZE=2 \
FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;Request&quot;</FONT><FONT \
COLOR="#008080" SIZE=2 FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" \
SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">complexType</FONT><FONT COLOR="#008080" SIZE=2 \
FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;accountDetails&quot;</FONT> <FONT \
COLOR="#7F007F" SIZE=2 FACE="Courier New">minOccurs</FONT><FONT COLOR="#000000" \
SIZE=2 FACE="Courier New">=</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;0&quot;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier New">&gt;</FONT> \
<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">complexType</FONT><FONT COLOR="#008080" SIZE=2 \
FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;country&quot;</FONT> <FONT \
COLOR="#7F007F" SIZE=2 FACE="Courier New">type</FONT><FONT COLOR="#000000" SIZE=2 \
FACE="Courier New">=</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;string&quot;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">/&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;accountId&quot;</FONT> <FONT \
COLOR="#7F007F" SIZE=2 FACE="Courier New">type</FONT><FONT COLOR="#000000" SIZE=2 \
FACE="Courier New">=</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;string&quot;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">/&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;Profile&quot;</FONT><FONT \
COLOR="#008080" SIZE=2 FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" \
SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">complexType</FONT><FONT COLOR="#008080" SIZE=2 \
FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier \
New">name</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT \
COLOR="#2A00FF" SIZE=2 FACE="Courier New">&quot;</FONT><FONT COLOR="#2A00FF" SIZE=2 \
FACE="Courier New">name</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;</FONT> <FONT COLOR="#7F007F" SIZE=2 FACE="Courier New">type</FONT><FONT \
COLOR="#000000" SIZE=2 FACE="Courier New">=</FONT><FONT COLOR="#2A00FF" SIZE=2 \
FACE="Courier New">&quot;string&quot;</FONT> <FONT COLOR="#7F007F" SIZE=2 \
FACE="Courier New">minOccurs</FONT><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">=</FONT><FONT COLOR="#2A00FF" SIZE=2 FACE="Courier \
New">&quot;0&quot;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier New">/&gt;</FONT> \
<BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;/</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;/</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">complexType</FONT><FONT COLOR="#008080" SIZE=2 \
FACE="Courier New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;/</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">element</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Courier \
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> \
<FONT COLOR="#008080" SIZE=2 FACE="Courier New">&lt;/</FONT><FONT COLOR="#3F7F7F" \
SIZE=2 FACE="Courier New">sequence</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier \
New">&gt;</FONT><FONT COLOR="#008080" SIZE=2 FACE="Courier New">. . . . . . .</FONT>  \
</P> <BR>
<BR>

<P><FONT FACE="Arial">Using wsdl2java&nbsp; The classes&nbsp; created very \
similar</FONT> </P>

<P><FONT FACE="Arial">CreateAccount--- generates</FONT> 
<BR><FONT FACE="Arial">CreateAccountRequest</FONT>
<BR><FONT FACE="Arial">CreateAccountRequestAccountDetails</FONT>
<BR><FONT FACE="Arial">CreateAccountRequestAccountDetailsProfile</FONT>
<BR><FONT FACE="Arial">......... . . . .&nbsp; . .</FONT>
<BR><FONT FACE="Arial">UpdateAccountRequest ----- generates </FONT>
</P>

<P><FONT FACE="Arial">UpdateAccountRequest</FONT>
<BR><FONT FACE="Arial">UpdateAccountRequestAccountDetails</FONT>
<BR><FONT FACE="Arial">UpdateAccountRequestAccountDetailsProfile</FONT>
<BR><FONT FACE="Arial">&nbsp;. . . . . . . . . . . . .&nbsp; . .</FONT>
</P>
<BR>

<P><FONT FACE="Arial">Although the&nbsp; classes&nbsp; are almost identical&nbsp; , \
because they&nbsp; don't extend&nbsp;&nbsp; any common&nbsp;&nbsp; class&nbsp; , I \
cant see a way of building up the binding objects</FONT></P>

<P><FONT FACE="Arial">&nbsp;in a clean way i.e.&nbsp; I will have to write code to \
set the binding object for all cases with no reuse . Can any one think of a clean way \
to solve this problem ?</FONT></P>

<P><FONT FACE="Arial">Thanks</FONT>
<BR><FONT FACE="Arial">Jimmy </FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>

</BODY>
</HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic