Hi Charles,

I think I understand what you're trying to do, but I'm still unsure of 
what you would want the generated java to look like. I'm asking because 
there are only a finite many patterns we can interpret sanely so if I can 
get an idea of where you're going I could try to accommodate. Going back 
to what I asked in the previous email, would you be ok with the method 
returning an array of Strings (String[])? If you know that the first 
element is the Name and the second element is the CatalogID you could just 
check to see if there are any values afterward. If that's the case you 
don't really need to name the elements as you have and you could just put 
one xsd:string type with maxOccurs set to unbounded. 

Thanks,
Andrew

Andrew Eberbach
Autonomic Computing
(919) 254-2645
T/L: 444-2645
[EMAIL PROTECTED]



"Charles Fehl" <[EMAIL PROTECTED]> 
02/09/2007 04:01 PM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: complexType Bindings






Hi Andrew,

Thanks for the quick response.  Initially, I was trying something like 
this:

     <xsd:element name="RetrievePropertiesResponse">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="Name"        type="xsd:string"/>
            <xsd:element name="CatalogId"   type="xsd:string"/>
            <xsd:element name="Values"      type="xsd:string"/>
            <xsd:element name="Value2"      type="xsd:string"/>
            <xsd:element name="Value3"      type="xsd:string"/>
            <xsd:element name="Value4"      type="xsd:string"/>
            <xsd:element name="Value5"      type="xsd:string"/>
            <xsd:element name="Value6"      type="xsd:string"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

Eventually, I hope to return something more like this...

     <xsd:element name="RetrievePropertiesResponse">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="Name"        type="xsd:string"/>
            <xsd:element name="CatalogId"   type="xsd:string"/>
             <xsd:element name="Value" type="string" minOccurs="0"
maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>

If there are any examples or information how to return complex types
it would be greatly appreciated..

Thanks,
Chuck


On 2/9/07, Andrew Eberbach <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Could you explain what you mean: "Eventually, I would like to return a
> generic array that returns min
> and max elements." Are you expecting it to return String[]?
>
> Thanks,
> Andrew
>
> Andrew Eberbach
> Autonomic Computing
> (919) 254-2645
> T/L: 444-2645
> [EMAIL PROTECTED]
>
>
>
> "Charles Fehl" <[EMAIL PROTECTED]>
> 02/07/2007 03:09 PM
> Please respond to
> [email protected]
>
>
> To
> [email protected]
> cc
>
> Subject
> complexType Bindings
>
>
>
>
>
>
> Hi,
>
> I used the simple example with success.  I modified my
> "RetrievePropertiesResponse" in my wsdl to return a slightly more
> complex type (snippet below). The code on the server side declares the
> return type as an element.
>
> Should I expect bindings to be generated for this complexType from the
> wsdl2java utility. Is there an option to do this or do I have to make
> them by hand or ?  I want to do it the correct way for the underlying
> packing routines.
>
> Eventually, I would like to return a generic array that returns min
> and max elements.
>
> Thanks,
> Charles
>
>
>       <xsd:element name="RetrieveProperties">
>        <xsd:complexType>
>          <xsd:sequence>
>            <xsd:element name="CIName"  type="xsd:string"/>
>            <xsd:element name="CIHost"  type="xsd:string"/>
>          </xsd:sequence>
>        </xsd:complexType>
>      </xsd:element>
>      <xsd:element name="RetrievePropertiesResponse">
>        <xsd:complexType>
>          <xsd:sequence>
>            <xsd:element name="Name"        type="xsd:string"/>
>            <xsd:element name="CatalogId"   type="xsd:string"/>
>            <xsd:element name="Value1"      type="xsd:string"/>
>            <xsd:element name="Value2"      type="xsd:string"/>
>            <xsd:element name="Value3"      type="xsd:string"/>
>            <xsd:element name="Value4"      type="xsd:string"/>
>            <xsd:element name="Value5"      type="xsd:string"/>
>            <xsd:element name="Value6"      type="xsd:string"/>
>          </xsd:sequence>
>        </xsd:complexType>
>      </xsd:element>
>
>
> Chuck
>
> ---------------------------------------------------------------------
> 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]
>
>


-- 
I'm Charles Fehl and I approve this message

---------------------------------------------------------------------
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]

Reply via email to