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]

Reply via email to