It is not valid. (Therefore it is a bug in NetBeans.) All elements
must have a name except the <xsd:any> element. i.e., this would be
valid:

      <xsd:element name="createFromUrl">
               <xsd:complexType>
                   <xsd:sequence>
                       <xsd:any/>
                   </xsd:sequence>
               </xsd:complexType>
           </xsd:element>

But you could not specify that the <any> element is if type "xsd:anyURI".

Anne

On 9/5/06, Christian Kloner <[EMAIL PROTECTED]> wrote:
hi,

A friend of mine has written a wsdl file which has in the schema part
elements like this:

        <xsd:element name="createFromUrl">
                 <xsd:complexType>
                     <xsd:sequence>
                         <xsd:element type="xsd:anyURI"/>
                     </xsd:sequence>
                 </xsd:complexType>
             </xsd:element>

as you can see, the element tag
<xsd:element type="xsd:anyURI"/>
contains no attribute "name" which is not valid if you validate against
the schema. but in netbeans 5.5 with the enterprise pack, you can
validate whole wsdl files, and there it is completely valid to have such
an element tag in it. so i am just wondering if it is valid or not (bug
of netbeans???). the stubs generated from the above code fragement
produce the following output:

<createFromUrl xmlns="http://aurigafactory.gridminer.org";>
<null xmlns="">
http://www.localhost:8080/auriga/FactoryInstanceWorkflowEPRSecond.xml
</null>
</createFromUrl>

So is this allowed/valid? thanks in advance.
chris

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