You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by "Dziembowski, Kinga" <ki...@hp.com> on 2005/07/01 04:36:55 UTC

RE: Urgent Question concerning schema

James,
I checked your original schema and it was not valid.
You had errors in the definitions of the namespaces at the beginning of
your doc.
I changed it to make it valid and, I am getting the following version
valid from the xml/xsd point of view:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
        xmlns              ="http://gestalt.com/dmit/tacf/ws/tacf-common
"
        xmlns:xs           ="http://www.w3.org/2001/XMLSchema "
        targetNamespace
="http://gestalt.com/dmit/tacf/ws/tacf-common"
        elementFormDefault ="qualified"
        attributeFormDefault="unqualified">
    <xs:annotation>
        <xs:documentation xml:lang="en">
                TACF Web Services common schema definitions.
        </xs:documentation>
    </xs:annotation>
    <!-- resource properties available via getResourceProperty operation
-->
    <xs:element name="HostName"             type="xs:string"/>
    <xs:element name="HostIpAddress"        type="xs:string"/>
    <xs:element name="NodeDescription"      type="xs:string"/>
    <!-- list of producers/consumers from MCSOA Perspective Manager -->
    
    <xs:complexType name="ServiceType">
         <xs:sequence>
             <xs:element name="Name"   type="xs:string" minOccurs="1"
maxOccurs="1"/>
             <xs:element name="Uri"    type="xs:string" minOccurs="1"
maxOccurs="1"/>
             <!-- Type is P for producer or C for consumer, or possibly
B for both -->
             <xs:element name="Type"   type="xs:string" minOccurs="1"
maxOccurs="1"/>
             <xs:element name="Expire" type="xs:string" minOccurs="1"
maxOccurs="1"/>
         </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ServicesType">
        <xs:sequence>
            <xs:element ref="ServiceType" minOccurs="0"
maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    
    <xs:element name="Services" type="ServicesType"/> </xs:schema>

Kinga

-----Original Message-----
From: James Lorenzen [mailto:jlorenzen@gestalt-llc.com] 
Sent: Thursday, June 30, 2005 2:15 PM
To: Ali, Haneef
Cc: muse-dev@ws.apache.org
Subject: RE: Urgent Question concerning schema

Yeah I tried that earlier.
But to make sure I tried it again, with the same results.
 
I declared my namespace at the top: 
xmlns:tns="http://gestalt.com/dmit/tacf/ws/tacf-common"
 
and made your recommended modifications below.
 
I receive the same error.

________________________________

From: Ali, Haneef [mailto:haneef.ali@hp.com]
Sent: Thu 6/30/2005 12:44 PM
To: James Lorenzen
Subject: RE: Urgent Question concerning schema



 qulify with tns:

    <xs:complexType name="ServicesType">
        <xs:sequence>
            <xs:element ref="tns:ServiceType" minOccurs="0"
maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
   
    <xs:element name="Services" type="tns:ServicesType"/> </xs:schema>

Regards,
Haneef

-----Original Message-----
From: James Lorenzen [mailto:jlorenzen@gestalt-llc.com]
Sent: Thursday, June 30, 2005 9:38 AM
To: muse-dev@ws.apache.org
Subject: Urgent Question concerning schema

Sorry for all of my questions lately, but this is an urgent issue I
cannot resolve.
In our wsdm wsdl, we are referencing a schema that contains a complex
type.

This web service works when the complex type is not included, but when
it is, the web service does not work.

Can anybody tell me whats wrong with this schema? I am sure we are
missing something simple and obvious, but I am not an xml schema expert.
Below is the following schema:

Here is the returning error: Could not find element
'ServiceType@http://gestalt.com/dmit/tacf/ws/tacf-common'
<mailto:'ServiceType@http://gestalt.com/dmit/tacf/ws/tacf-common'> . Do
you mean to refer to the type with that name (in tacf-common.xsd)

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
        xmlns              ="http://gestalt.com/dmit/tacf/ws/tacf-common
<http://gestalt.com/dmit/tacf/ws/tacf-common> "
        xmlns:xs           ="http://www.w3.org/2001/XMLSchema
<http://www.w3.org/2001/XMLSchema> "
        targetNamespace    ="http://gestalt.com/dmit/tacf/ws/tacf-common
<http://gestalt.com/dmit/tacf/ws/tacf-common> "
        elementFormDefault ="qualified"
        attributeFormDefault="unqualified">
    <xs:annotation>
        <xs:documentation xml:lang="en">
                TACF Web Services common schema definitions.
        </xs:documentation>
    </xs:annotation>
    <!-- resource properties available via getResourceProperty operation
-->
    <xs:element name="HostName"             type="xs:string"/>
    <xs:element name="HostIpAddress"        type="xs:string"/>
    <xs:element name="NodeDescription"      type="xs:string"/>
    <!-- list of producers/consumers from MCSOA Perspective Manager -->
   
    <xs:complexType name="ServiceType">
         <xs:sequence>
             <xs:element name="Name"   type="xs:string" minOccurs="1"
maxOccurs="1"/>
             <xs:element name="Uri"    type="xs:string" minOccurs="1"
maxOccurs="1"/>
             <!-- Type is P for producer or C for consumer, or possibly
B for both -->
             <xs:element name="Type"   type="xs:string" minOccurs="1"
maxOccurs="1"/>
             <xs:element name="Expire" type="xs:string" minOccurs="1"
maxOccurs="1"/>
         </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ServicesType">
        <xs:sequence>
            <xs:element ref="ServiceType" minOccurs="0"
maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
   
    <xs:element name="Services" type="ServicesType"/> </xs:schema>

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org