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

List:       xmlbeans-dev
Subject:    Query in xsdconfig - java name
From:       "Vinodh Kumar G" <gvinu2003 () gmail ! com>
Date:       2007-10-30 2:24:12
Message-ID: 186468530710291924t7b877c99r595d4fd14202252f () mail ! gmail ! com
[Download RAW message or body]

Hi,

A part of wsdl file is pasted at the end of this mail.
I am able to create a short java name (as GIURes) for the element
"GeneralInformationUpdateResponse" by using the xsdconfig. The xsdconfig
file, which I used is:

    <xb:config xmlns:pol="http://openuri.org/easypoLocal"
        xmlns:xb="http://www.bea.com/2002/09/xbean/config">

        <xb:qname name="pol:GeneralInformationUpdateResponse"
javaname="GIURes"/>
    </xb:config>

Question:
1) I want to create a short java name (as GIURs) for the element
"GeneralInformationUpdateRs" which is of complex type within the element
"GeneralInformationUpdateResponse". How to achieve it by using xsdconfig? I
tried with different options but none of them worked out.

Part of wsdl file:
<xsd:element name="GeneralInformationUpdateResponse">
    <xsd:complexType>
        <xsd:sequence>
            <xsd:element name="GeneralInformationUpdateRs">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element minOccurs="0" name="ResponseBody">
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element minOccurs="0"
name="GeneralInformation">
                                        <xsd:complexType>
                                            <xsd:sequence>
                                                <xsd:element minOccurs="0"
name="NextInformationDate">
                                                    <xsd:simpleType>
                                                        <xsd:restriction
base="xsd:string">
                                                            <xsd:minLength
value="10"/>
                                                            <xsd:maxLength
value="10"/>
                                                        </xsd:restriction>
                                                    </xsd:simpleType>
                                                </xsd:element>
                                            </xsd:sequence>
                                        </xsd:complexType>
                                    </xsd:element>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
</xsd:element>

Regards,
Vinodh Kumar. G

[Attachment #3 (text/html)]

Hi,<br><br>A part of wsdl file is pasted at the end of this mail.<br>I am able to \
create a short java name (as GIURes) for the element \
&quot;GeneralInformationUpdateResponse&quot; by using the xsdconfig. The xsdconfig \
file, which I used is: <br><br>&nbsp;&nbsp;&nbsp; &lt;xb:config xmlns:pol=&quot;<a \
href="http://openuri.org/easypoLocal">http://openuri.org/easypoLocal</a>&quot; \
<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; xmlns:xb=&quot;<a \
href="http://www.bea.com/2002/09/xbean/config">http://www.bea.com/2002/09/xbean/config
 </a>&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp; &lt;xb:qname name=&quot;pol:GeneralInformationUpdateResponse&quot; \
javaname=&quot;GIURes&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; \
&lt;/xb:config&gt;<br>&nbsp;&nbsp; &nbsp;<br>Question:<br>1) I want to create a short \
java name (as GIURs) for the element &quot;GeneralInformationUpdateRs&quot; which is \
of complex type within the element &quot;GeneralInformationUpdateResponse&quot;. How \
to achieve it by using xsdconfig? I tried with different options but none of them \
worked out. <br><br>Part of wsdl file:<br>&lt;xsd:element \
name=&quot;GeneralInformationUpdateResponse&quot;&gt;<br>&nbsp;&nbsp; \
&nbsp;&lt;xsd:complexType&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&lt;xsd:sequence&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&lt;xsd:element name=&quot;GeneralInformationUpdateRs&quot;&gt; \
<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&lt;xsd:complexType&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;xsd:sequence&gt;<br>&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&lt;xsd:element minOccurs=&quot;0&quot; \
name=&quot;ResponseBody&quot;&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&lt;xsd:complexType&gt; <br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;xsd:sequence&gt;<br>&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;&nbsp; \
&nbsp;&lt;xsd:element minOccurs=&quot;0&quot; \
name=&quot;GeneralInformation&quot;&gt;<br>&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;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&lt;xsd:complexType&gt; <br>&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;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&lt;xsd:sequence&gt;<br>&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;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&lt;xsd:element minOccurs=&quot;0&quot; \
name=&quot;NextInformationDate&quot;&gt;<br>&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;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;xsd:simpleType&gt; \
<br>&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;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;xsd:restriction \
base=&quot;xsd:string&quot;&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&n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sp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&lt;/xsd:complexType&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&lt;/xsd:element&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/xsd:sequence&gt;<br>&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&lt;/xsd:complexType&gt; <br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&lt;/xsd:element&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; \
&nbsp;&lt;/xsd:sequence&gt;<br>&nbsp;&nbsp; \
&nbsp;&lt;/xsd:complexType&gt;<br>&lt;/xsd:element&gt;<br><br>Regards,<br>Vinodh \
Kumar. G



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

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