RE: Integer Attributes [Ref:C115511]

Hi Ulf.
2) IsNull is defined on the DataValue class, and as such all of its subclasses -
including the non-nullable ones - inherit it. Trying to set this attribute of an
IntegerData will raise an exception, since it cannot be null.
Whether it makes sense depends on your viewpoint - you may feel there is nothing
wrong with accessing the attribute for an IntegerData which will be FALSE,
because the object isn't null.
The only benefit I can see of this is that it will allow you to manipulate a
datavalue (eg. an element in an array of datavalues) and test for null without
also having to test if it is an IntegerNullable, DateTimeNullable,
DecimalNullable, etc.
Steve Elvin
Systems Developer
Frontline Ltd.
UK
-----Original Message-----
From: INTERNET [email protected]
Sent: Thursday, November 12, 1998 1:28 PM
To: Steve Elvin; X400
p=NET;a=CWMAIL;c=GB;DDA:RFC-822=forte-users(a)sagesoln.com;
Subject: Integer Attributes [Ref:C115511]
Hi to all,
two basic questions:
1) What's the difference between the IntegerData attributes DoubleValue
and IntegerValue ?
Is it only used for internal presentation, datatype converting, or ... ?
2) To my opinion the IsNull attribute of the IntegerData (not
IntegerNullable) Type contains no information.
It makes only sence with the nullable type. Is that correct ?
Thanks for an answer (or two) ...,
/Ulf
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Hello Bjorn
I would recommend a few changes:
(1) Create the container and ALV grid instance for screen '200' only once (in a PBO module of screen '200' using a switch:
CHECK ( g_r_alv_container IS INITIAL ).
(2) Call method SET_TABLE_FOR_FIRST_DISPLAY in a PBO module of screen '200'. Perhaps add a "flush" to this PBO module, too.
Regards
   Uwe

Similar Messages

  • ACS v5.2 - Unable to update User integer attributes through File Operations

    Hi,
         I have created some internal users on ACS v5.2 and added some Unsigned Integer attributes for each user. I am trying to do a bulk update of these integer attributes using the File Operation facility. However no matter what number I put on the import template it doesn't get updated and displays a "0" in the user config.
    The import template is validated successfully with no errors and also the string attributes are updated correctly.
    There is a sort of work around of deleting the users and adding them back in with the updated values. But this is not feasible as it would reset their passwords. I have also tried saving the csv file in Open Ofifce instead of Excel
    Has any one else come across this problem?
    (I am unable to see this issue in the Release notes or Bug tool kit although there is a similar issue when updating devices in CSCth68051)

    Hi,
         Thanks for the reply. I have managed to recreate the problem to show you but it is a bit more complicated than I first thought. The problem only occurs when the integer attributes are added after the user is created.
    I created a dummy user. The MTL and TLS attributes were present before the user was added. I then added the XXX and ZZZ attributes afterwards and assigned them default values. The default values show up in the GUI config.
    However when I export the database to a csv file only the values of the MTL and TLS attributes show up in the export file:
    I then downloaded an import template and updated the integer values for TLS,MTL, XXX and ZZZ for the dummy user:
    The file imports successfully with no errors. However, when I display the user config only the MTL and TLS attributes have changed. The XXX and ZZZ attributes have stayed the same.
    I thought it might be because I was assigning a default value of 0 to the new attributes but I assigned ZZZ a default value of 1 and the same thing occurred.

  • Integer Attributes

    Hi to all,
    two basic questions:
    1) What's the difference between the IntegerData attributes DoubleValue
    and IntegerValue ?
    Is it only used for internal presentation, datatype converting, or ... ?
    2) To my opinion the IsNull attribute of the IntegerData (not
    IntegerNullable) Type contains no information.
    It makes only sence with the nullable type. Is that correct ?
    Thanks for an answer (or two) ...,
    /Ulf
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi Ulf,
    IntegerData( and DoubleData ) gets the IntegerValue and
    DoubleValue
    attributes from its parent class NumericData. They are
    basically
    type conversion short-hands where you can get an Double
    equivalent
    of an integer and vice-versa. A point to note here is
    when you
    assign double value to IntegerData.DoubleValue, you
    will lose
    the decimal part of it.
    While all DataValue subclasses define the IsNull
    attribute, only the
    nullable subclasses(IntegerNullable, DoubleNullable etc
    ) allow you
    to set it to TRUE. You can query the value of IsNull
    for any class;
    though only the nullable subclasses can return a value
    of TRUE.
    Does this answer your questions??
    Ajith Kallambella. M
    Fort&eacute; Systems Engineer,
    International Business Corporation.
    -----Original Message-----
    From: Ulf Feger [mailto:[email protected]]
    Sent: Thursday, November 12, 1998 7:24 AM
    To: Forte Mailingliste
    Subject: Integer Attributes
    Hi to all,
    two basic questions:
    1) What's the difference between the IntegerData
    attributes DoubleValue
    and IntegerValue ?
    Is it only used for internal presentation, datatype
    converting, or ... ?
    2) To my opinion the IsNull attribute of the
    IntegerData (not
    IntegerNullable) Type contains no information.
    It makes only sence with the nullable type. Is that
    correct ?
    Thanks for an answer (or two) ...,
    /Ulf
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Problem in accessing attribute of a context node

    Hi All,
    I have a context node called REFE and an attribute named REF to the node REFE. I am trying to get access to the attribute REF, so that i can dynamically set properties. But i am getting NULL Object error. I am successfully getting access to node REFE.
    Here is the code.
    lo_nd_refe = wd_context->get_child_node( name = wd_this->wdctx_refe ).
    lo_el_refe = lo_nd_refe->get_element(  ).
    lo_el_refe->set_attribute(
          EXPORTING
            name =  `REF`
            value = 'http://sapsndbp.sbic.co.za:8011/sap/bc/webdynpro/sap/zzdm_audit_report' ).
    Regards,
    RAvi

    Hi,
    What is the cardinality of the node.
    If it is 1:1 then you can get teh reference of the context element directly.
    If it 0:N or 1:N then you need to pass the index of the context element you are trying to get.
    Use the method get_element of the context node and pass the index value.
    Always check the element is initial or not before you process further for better coding.
    Regards,
    Lekha.

  • Resource Attributes not saving in Queriable User Extended Attributes

    Howdy,
    I added a few queriable user extended attributes to IDM. I originally added them in through the configure user attributes interface. I then edited the UserUIConfig to specify that they were queryable. I then edited the User Search Defaults form's getSearchableAttrs function to include these attributes. My added attributes now show up in the search user form, etc., just like I expected them to. Next I configured a new resource adapter for a database table that contained some values I wanted to use to populate these queriable attributes. I wrote a correlation rule, and ran reconciliation on the new resource. It matched up the account entries and automatically matched and linked the account information. So far so good. However, the user extended attributes I defined are not getting populated with the data from the new resource. The mapped resource attributes are treated as part of the user view, but only under the given resource, not as a queriable attribute. I really want to be able to use the find user interface with these datafields. Does anyone know why my data is ot making it into the queriable fields? Do I need to write another rule or workflow? Any advice would be most helpful.
    Thanks!
    Jim

    Queryable attributes refer to attributes stored in the IDM user object, and so need to be referenced as such.
    If you want attribute 'foo' in resource 'bar' to be stored as a Queryable attribute, you need to define it like so in your User Form :
    <Field name='accounts[Lighthouse].foo'>
        <Expansion>
              <ref>accounts[bar].foo</ref>
        </Expansion>
    </Field>This should pull the value from the resource attribute and put it in the IDM attribute. If you refer to it as a global.foo everywhere, that might work (but I find globals to be problematic).
    Let me know if it works...
    Jason

  • How to make InfoObject 0SBO_ALTACT attribute of 0GL_ACCOUNT

    Dear all,
    Anyone who knows a workable approach for providing the Alternative Account Number for navigation in New G/L Reports?
    The field in ERP is: SKB1-ALTKT
    There is an IOBJ called 0SBO_ALTACT (is that the one to use?)
    I need Text and Attributes (ref to 0GL_ACCOUNT!?). I also assume it needs to be made an attribute on 0GL_ACCOUNT in order to make it navigational in G/L-reports. Is this feasible?
    I am having problems understanding the set-up of Business Content is this area so if anyone could explain some workable logic, and/or point at some documentation regarding this I would be extremely grateful!!
    Best Regards,
    João Arvanas

    Please check :
    Alternate Chart of accounts
    -Mayuri

  • Mapping an attribute to different classes

    I have a class, A that contains an attribute called "state" of type State. Class State is an abstract class that contains 2 methods. Classes ActiveState and CompletedState extend State and none of them have attributes. They only implement the 2 methods. I am having problems trying to map the state attribute of A since the state can be either an ActiveState or a CompletedState. Any suggestions?

    Hi Cynthia,
    I would assume that the State object itself is un-persistentable as there is in fact no persistent attribute defined in either State or it's subclasses.
    If you treat the State as a kind of status flag to A class, you could use Transformation Mapping for the attribute (refer to the manual for the setting of the mapping).
    If you do have persistent attributes in State and/or it's subclasses, you could simply use 1:1 mapping from A to State, and use TopLink inheritance support to map State, ActiveState and CompletedState.
    King

  • Xs:group refs and "ORA-30936: Maximum number (1) of XML nodes exceeded'

    We registered a subset of the IBM DITA schemas in Oracle XDB. These schemas contain a lot of xs:group definitions where references to these groups contain "minOccurs" and "maxOccurs" atttributes, for instance:
    <xs:group name="category">
    <xs:sequence>
    <xs:element ref="category"/>
    </xs:sequence>
    </xs:group>
    <xs:complexType name="metadata.class">
    <xs:sequence>
    <xs:group ref="audience" minOccurs="0" maxOccurs="unbounded"/>
    <xs:group ref="category" minOccurs="0" maxOccurs="unbounded"/>
    <xs:group ref="keywords" minOccurs="0" maxOccurs="unbounded"/>
    <xs:group ref="prodinfo" minOccurs="0" maxOccurs="unbounded"/>
    <xs:group ref="othermeta" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="mapkeyref" type="xs:string"/>
    <xs:attributeGroup ref="global-atts"/>
    <xs:attribute ref="class" default="- topic/metadata "/>
    </xs:complexType>
    When we create an instance document that contains more than one "category" element under the element "metadata" element, like:
    <metadata>
    <audience type="purchaser" othertype="" job="using" otherjob="" experiencelevel="general"/>
    <category/>
    <category/>
    </metadata>
    we get the error: ORA-30936: Maximum number (1) of 'category' XML node elements exceeded
    This error is not consistent with the schema and XML parsers like Xerces and the Oracle "XDK parser" think the instance is fine.
    When we skip the reference to the group and reference the element definition "category" directly the problem is gone:
    <xs:complexType name="metadata.class">
    <xs:sequence>
    <xs:group ref="audience" minOccurs="0" maxOccurs="unbounded"/>
    <xs:element ref="category" minOccurs="0" maxOccurs="unbounded"/>
    <xs:group ref="keywords" minOccurs="0" maxOccurs="unbounded"/>
    <xs:group ref="prodinfo" minOccurs="0" maxOccurs="unbounded"/>
    <xs:group ref="othermeta" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    <xs:attribute name="mapkeyref" type="xs:string"/>
    <xs:attributeGroup ref="global-atts"/>
    <xs:attribute ref="class" default="- topic/metadata "/>
    </xs:complexType>
    In this case the problems for the other group references like "audience" remain.
    It looks like Oracle XDB doesn't honor the cardinality attributes "minOccurs" and "maxOccurs" on xs:group elements that are references. Does anyone experienced similar problems?
    Thanks,
    Maarten

    This sounds like bug 5204107. You'll need to open a tar with Oracle Support if you need a fix for this..
    It happens when a group is used once without a maxOccurs and then later with a maxOccurs.
    The workaround is 'in-line' the group before registering the XML Schema. This can be done as follows (assuming the group definition and reference are in the same XML Schema)..
    procedure expandGroup(xmlschema in out xmltype, groupName varchar2,xsdDirectory varchar2)
    is
      xsdSchemaPath varchar2(512);
      groupModel xmltype;
      sequenceModel xmlType := xmlType('<xsd:sequence ' || xdb_namespaces.XMLSCHEMA_PREFIX_XSD || '><xsd:sequence/></xsd:sequence>');
      maxOccursValue binary_integer;
    begin
      -- FInd the Group Definition
      if xmlSchema.existsNode('/xsd:schema//xsd:group[@ref="' || groupName || '"]',NAMESPACES) = 1 then
        if xmlSchema.existsNode('/xsd:schema/xsd:group[@name="' || groupName || '"]',NAMESPACES) = 1 then
          select extract
                   xmlSchema,
                   '/xsd:schema/xsd:group[@name="' || groupName || '"]',
                   NAMESPACES
            into groupModel
            from dual; 
        else
          dbms_output.put_line('xsdDirectory = ' || xsdDirectory);
          select PATH,
                 extract
                   CONTENTS,
                   '/xsd:schema/xsd:group[@name="' || groupName || '"]',
                   NAMESPACES
            into xsdSchemaPath, groupModel
            from (
                   select PATH, xdburitype(path).getXML() CONTENTS
                     from PATH_VIEW
                    where under_path(res,xsdDirectory) = 1
           where existsNode
                   CONTENTS,
                   '/xsd:schema/xsd:group[@name="' || groupName || '"]',
                   NAMESPACES
                 ) = 1;
           dbms_output.put_line('Resolved ' || groupModel.extract('/xsd:group/@name',NAMESPACES).getStringVal() || ' in Schema ' || xsdSchemaPath);
        end if;
        if groupModel.existsNode('/xsd:group/xsd:annotation',NAMESPACES) = 1 then
          select deleteXML
                   groupModel,
                   '/xsd:group/xsd:annotation',
                   NAMESPACES
            into groupModel
            from dual;
        end if;
        -- create a sequence that can be placed in-line in the XML Schema to replace the <group ref=""/>
        groupModel := groupModel.extract('/xsd:group/*',NAMESPACES);
        select updateXML
                 sequenceModel,
                 '/xsd:sequence/xsd:sequence',
                groupModel,
                 NAMESPACES
          into sequenceModel
          from dual;
        if xmlSchema.existsNode('/xsd:schema//xsd:group[@ref="' || groupName || '" and not(@maxOccurs)]',NAMESPACES) = 1 then
          select updateXML
                   xmlSchema,
                   '/xsd:schema//xsd:group[@ref="' || groupName || '" and not(@maxOccurs)]',
                  sequenceModel,
                   NAMESPACES
            into xmlSchema
            from dual;
        end if;
        select insertChildXML
                 sequenceModel,
                 '/xsd:sequence',
                 '@maxOccurs',
                 'unbounded',
                 NAMESPACES
          into sequenceModel
          from dual;
        if xmlSchema.existsNode('/xsd:schema//xsd:group[@ref="' || groupName || '" and @maxOccurs="unbounded"]',NAMESPACES) = 1 then
          select updateXML
                   xmlSchema,
                   '/xsd:schema//xsd:group[@ref="' || groupName || '" and @maxOccurs="unbounded"]',
                   sequenceModel,
                   NAMESPACES
            into xmlSchema
            from dual;
        end if;
        while xmlschema.existsNode('/xsd:schema//xsd:group[@ref="' || groupName || '"]',NAMESPACES) = 1 loop
          maxOccursValue := xmlSchema.extract('/xsd:schema//xsd:group[@ref="' || groupName || '"]/@maxOccurs').getNumberVal();
          select updateXML
                   sequenceModel,
                  '/xsd:sequence/@maxOccurs',
                   maxOccursValue,
                   NAMESPACES
            into sequenceModel
            from dual;
          select updateXML
                   xmlSchema,
                   '/xsd:schema//xsd:group[@ref="' || groupName || '" and @maxOccurs="' || maxOccursValue || '"]',
                   sequenceModel,
                   NAMESPACES
            into xmlSchema
            from dual;
        end loop;
      end if;
    end;
    --

  • Method attribute with af:declarativeComponent tag ?

    Is it possible to use a method attribute when using a declarative component with the af:declarativeComponent tag? (v11.1.1.1.0)
    In my jsff, I have defined a method attribute like:
    <method-attribute>
        <attribute-name>fileAttached</attribute-name>
        <method-signature>void fileAttached(javax.faces.event.ValueChangeEvent)</method-signature>
        <required>true</required>
    </method-attribute>and in my jspx page I'm adding the component like:
    <af:declarativeComponent id="dc1"
                             viewId="components/attachments.jsff"
                             fileAttached="#{MyBackingBean.fileAttached}"/>However I get the following exception (ADF is looking for an property, even though i've defined this as a method attribute):
    javax.el.PropertyNotFoundException: The class 'com.xxx.MyBackingBean' does not have the property 'fileAttached'.
         at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:547)
         at javax.el.BeanELResolver.getValue(BeanELResolver.java:249)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
         at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
         at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
         at oracle.jsp.runtime.OracleUnifiedELRuntime.evaluateValueExpression(OracleUnifiedELRuntime.java:158)
         at oracle.jsp.parse.JspUtils.ExprValue(JspUtils.java:2348)Does the af:declarativeComponent tag support this, or do I have to go through the whole process of:
    - define declarative component and new taglib
    - generate ADF library jar
    - add library jar to project
    - import taglib and use tag in my page
    to use method attributes?

    Yes, I've tried a few different methods here and the signature is definitely correct.
    As far as I can tell, when I use the af:declarativeComponent tag, the <component-extension> section of the component is ignored completely. For example, I can have a method-attribute in the <component-extension> extension that is set to required=true, however when if I omit this attribute, the renderer doesn't complain. If I include the attribute (refer to a method) then I get the above exception, because the expression evaluator just wants to evaluate it as a property, regardless of what the <component-extension> inside the jsff says.
    Frank, is your example definitely using the af:declarativeComponent tag? I am not creating an ADF library jar and taglib to contain my declarative component - are you?

  • Java.lang.Integer defaulting to zero

    I am using JAXB for several years, but never dived into details.
    I am not using a schema.
    When I am unmarshalling a XML file, JAXB always defaults my java.lang.Integer attributes to zero instead to null, when the attribute is not given in the XML file.
    How can I change this? I like the Integers to be null, just like in a "normal" Java program.
    Thanks
    Markus

    mkarg wrote:
    When I am unmarshalling a XML file, JAXB always defaults my java.lang.Integer attributes to zero instead to null, when the attribute is not given in the XML file.I am using JAXB 2.1.3 in JDK 1.6. It uses java.math.BigInteger instead of java.lang.Integer for xs:integer types in schema.
    It assigns null when attribute is not given in XML, this is similar to your need.
    Which version of JAXB are you using?

  • CXMl structure is not coming with attribute targetNamespace="MyNameSpace"

    Hi All
    Here When I am putting attribute : 
    targetNamespace="MyNameSpace"
      Then In the Message mapping it is not showing all the sub elements.  If I am not putting the "targetNamespace="MyNameSpace" then it shows  the structure.  any Idea  why ?
    for example  with  targetNamespace="MyNameSpace"
    it shows
    OrderRequest--
                       OrderRequestHeader.
                        IteamOut.
    With out target Name space
    it shows
    OrderRequest--
                       OrderRequestHeader.--+
    +
                       IteamOut..--|
    +-----
    Please  let me  what  should I do to resolve

    Hi Archna, Thank.
    You are right You will find the cXML.dtd  there only ..  I convert in xsd through XML Spy Editor..
    Check this cXML.xsd over here or  give me  your mail address.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!W3C Schema generated by XMLSpy v2007 sp1 (http://www.altova.com)>
    <!Please add namespace attributes, a targetNamespace attribute and import elements according to your requirements>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
         <xs:import namespace="http://www.w3.org/XML/1998/namespace"/>
         <xs:element name="Name">
              <xs:complexType mixed="true">
                   <xs:attribute ref="xml:lang" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Extrinsic">
              <xs:complexType mixed="true">
                   <xs:complexContent mixed="true">
                        <xs:restriction base="xs:anyType">
                             <xs:attribute name="name" type="xs:anySimpleType" use="required"/>
                        </xs:restriction>
                   </xs:complexContent>
              </xs:complexType>
         </xs:element>
         <xs:element name="Description">
              <xs:complexType mixed="true">
                   <xs:choice minOccurs="0" maxOccurs="unbounded">
                        <xs:element ref="ShortName"/>
                   </xs:choice>
                   <xs:attribute ref="xml:lang" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="ShortName">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="CountryCode">
              <xs:complexType mixed="true">
                   <xs:attribute name="isoCountryCode" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="AreaOrCityCode">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="Number">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="Extension">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="TelephoneNumber">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="CountryCode"/>
                        <xs:element ref="AreaOrCityCode"/>
                        <xs:element ref="Number"/>
                        <xs:element ref="Extension" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Phone">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="TelephoneNumber"/>
                   </xs:sequence>
                   <xs:attribute name="name" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Fax">
              <xs:complexType>
                   <xs:choice>
                        <xs:element ref="TelephoneNumber"/>
                        <xs:element ref="URL"/>
                        <xs:element ref="Email"/>
                   </xs:choice>
                   <xs:attribute name="name" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="URL">
              <xs:complexType mixed="true">
                   <xs:attribute name="name" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Email">
              <xs:complexType mixed="true">
                   <xs:attribute name="name" type="xs:anySimpleType"/>
                   <xs:attribute name="preferredLang" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Contact">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Name"/>
                        <xs:element ref="PostalAddress" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="Email" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="Phone" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="Fax" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="URL" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
                   <xs:attribute name="role" type="xs:NMTOKEN"/>
                   <xs:attribute name="addressID" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="DeliverTo">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="Street">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="City">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="State">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="PostalCode">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="Country">
              <xs:complexType mixed="true">
                   <xs:attribute name="isoCountryCode" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="PostalAddress">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="DeliverTo" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="Street" maxOccurs="unbounded"/>
                        <xs:element ref="City"/>
                        <xs:element ref="State" minOccurs="0"/>
                        <xs:element ref="PostalCode" minOccurs="0"/>
                        <xs:element ref="Country"/>
                   </xs:sequence>
                   <xs:attribute name="name" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Address">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Name"/>
                        <xs:element ref="PostalAddress" minOccurs="0"/>
                        <xs:element ref="Email" minOccurs="0"/>
                        <xs:element ref="Phone" minOccurs="0"/>
                        <xs:element ref="Fax" minOccurs="0"/>
                        <xs:element ref="URL" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="isoCountryCode" type="xs:anySimpleType"/>
                   <xs:attribute name="addressID" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Money">
              <xs:complexType mixed="true">
                   <xs:attribute name="currency" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="alternateAmount" type="xs:anySimpleType"/>
                   <xs:attribute name="alternateCurrency" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Comments">
              <xs:complexType mixed="true">
                   <xs:choice minOccurs="0" maxOccurs="unbounded">
                        <xs:element ref="Attachment"/>
                   </xs:choice>
                   <xs:attribute ref="xml:lang"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Attachment">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="URL"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="AttachmentReference">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Name"/>
                        <xs:element ref="Description"/>
                        <xs:element ref="InternalID"/>
                   </xs:sequence>
                   <xs:attribute name="length" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="UnitPrice">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Money"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="DocumentReference">
              <xs:complexType>
                   <xs:attribute name="payloadID" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="InternalID">
              <xs:complexType mixed="true">
                   <xs:attribute name="domain" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="OriginatorCookie">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="BrowserFormPost">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="URL"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="SelectedService">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="StartPage">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="URL"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ReturnData">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="ReturnValue"/>
                        <xs:element ref="Name"/>
                   </xs:sequence>
                   <xs:attribute name="name" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="ReturnValue">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="TimeRange">
              <xs:complexType>
                   <xs:attribute name="startDate" type="xs:anySimpleType"/>
                   <xs:attribute name="endDate" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Period">
              <xs:complexType>
                   <xs:attribute name="startDate" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="endDate" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="UnitOfMeasure">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="TermReference">
              <xs:complexType>
                   <xs:attribute name="termName" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="term" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="UnitRate">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Money"/>
                        <xs:element ref="UnitOfMeasure"/>
                        <xs:element ref="TermReference" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Supplier">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Name"/>
                        <xs:element ref="Comments" minOccurs="0"/>
                        <xs:element ref="SupplierID" maxOccurs="unbounded"/>
                        <xs:element ref="SupplierLocation" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
                   <xs:attribute name="corporateURL" type="xs:anySimpleType"/>
                   <xs:attribute name="storeFrontURL" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="SupplierLocation">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Address"/>
                        <xs:element ref="OrderMethods"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="OrderMethods">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="OrderMethod" maxOccurs="unbounded"/>
                        <xs:element ref="Contact" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="OrderMethod">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="OrderTarget"/>
                        <xs:element ref="OrderProtocol" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="OrderTarget">
              <xs:complexType>
                   <xs:choice>
                        <xs:element ref="Phone"/>
                        <xs:element ref="Email"/>
                        <xs:element ref="Fax"/>
                        <xs:element ref="URL"/>
                        <xs:element ref="OtherOrderTarget"/>
                   </xs:choice>
              </xs:complexType>
         </xs:element>
         <xs:element name="OrderProtocol">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="OtherOrderTarget">
              <xs:complexType mixed="true">
                   <xs:complexContent mixed="true">
                        <xs:restriction base="xs:anyType">
                             <xs:attribute name="name" type="xs:anySimpleType"/>
                        </xs:restriction>
                   </xs:complexContent>
              </xs:complexType>
         </xs:element>
         <xs:element name="SupplierID">
              <xs:complexType mixed="true">
                   <xs:attribute name="domain" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="SupplierList">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Supplier" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ManufacturerPartID">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="ManufacturerName">
              <xs:complexType mixed="true">
                   <xs:attribute ref="xml:lang"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Classification">
              <xs:complexType mixed="true">
                   <xs:attribute name="domain" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="LeadTime">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="SupplierPartID">
              <xs:complexType mixed="true"/>
         </xs:element>
         <xs:element name="SupplierPartAuxiliaryID">
              <xs:complexType mixed="true">
                   <xs:complexContent mixed="true">
                        <xs:restriction base="xs:anyType"/>
                   </xs:complexContent>
              </xs:complexType>
         </xs:element>
         <xs:element name="ItemID">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="SupplierPartID"/>
                        <xs:element ref="SupplierPartAuxiliaryID" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ItemDetail">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="UnitPrice"/>
                        <xs:element ref="Description" maxOccurs="unbounded"/>
                        <xs:element ref="UnitOfMeasure"/>
                        <xs:element ref="Classification" maxOccurs="unbounded"/>
                        <xs:element ref="ManufacturerPartID" minOccurs="0"/>
                        <xs:element ref="ManufacturerName" minOccurs="0"/>
                        <xs:element ref="URL" minOccurs="0"/>
                        <xs:element ref="LeadTime" minOccurs="0"/>
                        <xs:element ref="Extrinsic" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="TravelDetail">
              <xs:complexType>
                   <xs:sequence>
                        <xs:choice>
                             <xs:element ref="AirDetail"/>
                             <xs:element ref="CarRentalDetail"/>
                             <xs:element ref="HotelDetail"/>
                             <xs:element ref="RailDetail"/>
                        </xs:choice>
                        <xs:element ref="PolicyViolation" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="Comments" minOccurs="0"/>
                        <xs:element ref="TermsAndConditions" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="confirmationNumber" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="pnrLocator" type="xs:anySimpleType"/>
                   <xs:attribute name="quoteExpirationTime" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="AirDetail">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="TripType"/>
                        <xs:element ref="AirLeg" maxOccurs="unbounded"/>
                        <xs:element ref="AvailablePrice" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="Penalty" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="AirLeg">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Vendor"/>
                        <xs:element ref="AirLegOrigin"/>
                        <xs:element ref="AirLegDestination"/>
                        <xs:element ref="BookingClassCode" minOccurs="0"/>
                        <xs:element ref="Rate" minOccurs="0"/>
                        <xs:element ref="Meal" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
                   <xs:attribute name="travelSegment" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="departureTime" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="arrivalTime" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="flightNumber" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="seatNumber" type="xs:anySimpleType"/>
                   <xs:attribute name="seatType">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="aisle"/>
                                  <xs:enumeration value="window"/>
                                  <xs:enumeration value="middle"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="upgrade">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="yes"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="stops" type="xs:anySimpleType"/>
                   <xs:attribute name="equipment" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="AirLegOrigin">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Airport"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="AirLegDestination">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Airport"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Airport">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Address" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="airportCode" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Meal">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="BookingClassCode" minOccurs="0"/>
                        <xs:element ref="Description" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="CarRentalDetail">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Vendor"/>
                        <xs:element ref="CarRentalPickup"/>
                        <xs:element ref="CarRentalDropoff"/>
                        <xs:element ref="BookingClassCode" minOccurs="0"/>
                        <xs:element ref="CarRentalFee" maxOccurs="unbounded"/>
                        <xs:element ref="LimitedMileage" minOccurs="0"/>
                        <xs:element ref="AvailablePrice" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
                   <xs:attribute name="travelSegment" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="pickupTime" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="dropoffTime" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="CarRentalPickup">
              <xs:complexType>
                   <xs:choice>
                        <xs:element ref="Airport"/>
                        <xs:element ref="Address"/>
                   </xs:choice>
              </xs:complexType>
         </xs:element>
         <xs:element name="CarRentalDropoff">
              <xs:complexType>
                   <xs:choice>
                        <xs:element ref="Airport"/>
                        <xs:element ref="Address"/>
                   </xs:choice>
              </xs:complexType>
         </xs:element>
         <xs:element name="LimitedMileage">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="UnitOfMeasure"/>
                   </xs:sequence>
                   <xs:attribute name="quantity" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="CarRentalFee">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Total"/>
                        <xs:element ref="Rate" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
                   <xs:attribute name="type" default="baseRate">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="mobilePhone"/>
                                  <xs:enumeration value="additionalDriver"/>
                                  <xs:enumeration value="baseRate"/>
                                  <xs:enumeration value="vehicleLicensingFee"/>
                                  <xs:enumeration value="prepaidGasoline"/>
                                  <xs:enumeration value="touristTax"/>
                                  <xs:enumeration value="liabilityInsurance"/>
                                  <xs:enumeration value="airportAccessFee"/>
                                  <xs:enumeration value="collisionDamageInsurance"/>
                                  <xs:enumeration value="navigationSystem"/>
                                  <xs:enumeration value="other"/>
                                  <xs:enumeration value="childSeat"/>
                                  <xs:enumeration value="luggageRack"/>
                                  <xs:enumeration value="dropOffCharge"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="HotelDetail">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Vendor"/>
                        <xs:element ref="Address"/>
                        <xs:element ref="RoomType"/>
                        <xs:element ref="BookingClassCode" minOccurs="0"/>
                        <xs:element ref="Meal" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="Rate" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="AvailablePrice" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
                   <xs:attribute name="travelSegment" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="arrivalTime" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="departureTime" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="checkinTime" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="checkoutTime" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="earlyCheckinAllowed">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="yes"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="lateCheckoutAllowed">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="yes"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="RoomType">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Description" minOccurs="0"/>
                        <xs:element ref="Amenities" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
                   <xs:attribute name="smoking" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="yes"/>
                                  <xs:enumeration value="no"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="numberOfBed" type="xs:anySimpleType"/>
                   <xs:attribute name="bedType">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="single"/>
                                  <xs:enumeration value="full"/>
                                  <xs:enumeration value="other"/>
                                  <xs:enumeration value="king"/>
                                  <xs:enumeration value="queen"/>
                                  <xs:enumeration value="double"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="Amenities">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Description"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="RailDetail">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="TripType"/>
                        <xs:element ref="RailLeg" maxOccurs="unbounded"/>
                        <xs:element ref="AvailablePrice" minOccurs="0" maxOccurs="unbounded"/>
                        <xs:element ref="Penalty" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="RailLeg">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Vendor"/>
                        <xs:element ref="RailLegOrigin"/>
                        <xs:element ref="RailLegDestination"/>
                        <xs:element ref="BookingClassCode" minOccurs="0"/>
                        <xs:element ref="Rate" minOccurs="0"/>
                        <xs:element ref="Meal" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
                   <xs:attribute name="travelSegment" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="departureTime" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="arrivalTime" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="trainNumber" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="seatNumber" type="xs:anySimpleType"/>
                   <xs:attribute name="carType">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="seat"/>
                                  <xs:enumeration value="sleeper"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="RailLegOrigin">
              <xs:complexType>
                   <xs:choice>
                        <xs:element ref="Airport"/>
                        <xs:element ref="Address"/>
                   </xs:choice>
              </xs:complexType>
         </xs:element>
         <xs:element name="RailLegDestination">
              <xs:complexType>
                   <xs:choice>
                        <xs:element ref="Airport"/>
                        <xs:element ref="Address"/>
                   </xs:choice>
              </xs:complexType>
         </xs:element>
         <xs:element name="TripType">
              <xs:complexType>
                   <xs:attribute name="type" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="oneWay"/>
                                  <xs:enumeration value="multiLeg"/>
                                  <xs:enumeration value="round"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="Vendor">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Address"/>
                        <xs:element ref="SupplierID" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
                   <xs:attribute name="preferred" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="yes"/>
                                  <xs:enumeration value="no"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="TermsAndConditions">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Description" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="PolicyViolation">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Description"/>
                        <xs:element ref="PolicyViolationJustification"/>
                        <xs:element ref="Comments" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="level" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="warning"/>
                                  <xs:enumeration value="violation"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="PolicyViolationJustification">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Description"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Penalty">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Money"/>
                        <xs:element ref="Description"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="AvailablePrice">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Money"/>
                        <xs:element ref="Description" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="type" use="required">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="highest"/>
                                  <xs:enumeration value="lowest"/>
                                  <xs:enumeration value="other"/>
                                  <xs:enumeration value="highestCompliant"/>
                                  <xs:enumeration value="lowestCompliant"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="Rate">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Total"/>
                        <xs:element ref="UnitRate"/>
                        <xs:element ref="Description" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="quantity" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="BookingClassCode">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Description" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="domain" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="code" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Total">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Money"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="BillTo">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Address"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ShipTo">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Address"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Shipping">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Money"/>
                        <xs:element ref="Description"/>
                   </xs:sequence>
                   <xs:attribute name="trackingDomain" type="xs:anySimpleType"/>
                   <xs:attribute name="trackingId" type="xs:anySimpleType"/>
                   <xs:attribute name="tracking" type="xs:anySimpleType"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Discount">
              <xs:complexType>
                   <xs:choice>
                        <xs:element ref="DiscountPercent"/>
                        <xs:element ref="DiscountAmount"/>
                   </xs:choice>
              </xs:complexType>
         </xs:element>
         <xs:element name="DiscountPercent">
              <xs:complexType>
                   <xs:attribute name="percent" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="PaymentTerm">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Discount" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="payInNumberOfDays" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Payment">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="PCard"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Segment">
              <xs:complexType>
                   <xs:attribute name="type" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="id" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="description" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="AccountingSegment">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Name"/>
                        <xs:element ref="Description"/>
                   </xs:sequence>
                   <xs:attribute name="id" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Accounting">
              <xs:complexType>
                   <xs:sequence>
                        <xs:choice>
                             <xs:element ref="Segment" maxOccurs="unbounded"/>
                             <xs:element ref="AccountingSegment" maxOccurs="unbounded"/>
                        </xs:choice>
                   </xs:sequence>
                   <xs:attribute name="name" type="xs:anySimpleType" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="Charge">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Money"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Distribution">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Accounting"/>
                        <xs:element ref="Charge"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="TaxAmount">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Money"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="TaxableAmount">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Money"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="TaxLocation">
              <xs:complexType mixed="true">
                   <xs:attribute ref="xml:lang" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="TriangularTransactionLawReference">
              <xs:complexType mixed="true">
                   <xs:attribute ref="xml:lang" use="required"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="TaxDetail">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="TaxableAmount" minOccurs="0"/>
                        <xs:element ref="TaxAmount"/>
                        <xs:element ref="TaxLocation" minOccurs="0"/>
                        <xs:element ref="Description" minOccurs="0"/>
                        <xs:element ref="TriangularTransactionLawReference" minOccurs="0"/>
                   </xs:sequence>
                   <xs:attribute name="purpose" type="xs:anySimpleType"/>
                   <xs:attribute name="category" type="xs:anySimpleType" use="required"/>
                   <xs:attribute name="percentageRate" type="xs:anySimpleType"/>
                   <xs:attribute name="isVatRecoverable">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="yes"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="taxPointDate" type="xs:anySimpleType"/>
                   <xs:attribute name="paymentDate" type="xs:anySimpleType"/>
                   <xs:attribute name="isTriangularTransaction">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="yes"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="Tax">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Money"/>
                        <xs:element ref="Description"/>
                        <xs:element ref="TaxDetail" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="ItemOut">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="ItemID"/>
                        <xs:element ref="Path" minOccurs="0"/>
                        &

  • How to format model attributes

    I have staffNumber attribute as model attribute which is of type IntegerObject(not premitive int) . In inputTextbox it appears as 3,172 instead of 3172 . How to format Integer object values so that I can display values without comma . I know that , we can create a simple type in dictionary , select format for premitive integer type in representation . However I don't want to do that .
    Pl help
    Bhat

    I was fed-up and ultimately had to use this code at every integer attribute of model nodes
    wdContext.nodeXXX.getNodeInfo().getAttribute("eoStaffno").getModifiableSimpleType().setFormat("##########");
    I wanted a global function to change locale settings
    like if I do
    NumberFormat nf = NumberFormat.getInstance(Locale.getDefault());
    nf.setGroupingUsed(false);

  • Xmltype.RegisterSchema fails for attribute xml:space

    My schema has a definition for the xml space attribute. In our xml docs, we use
    xml:space="preserve"
    In the schema ( which mostly was generated by a tool ), there is the definition for the xml:space attribute:
    <xs:attribute ref="xml:space" use="required" />
    When I call xmltype.RegisterSchema, I get:
    ORA-31079 unable to resolve reference to element or attribute "space"
    Thanks,
    Greg

    i don't think it's legal to add this to the XML Schema. Can you check if XMLSpy thinks the schema is valid. Note that you do not need to declare the xml:space attribute in order to be able to use in your instance documents.

  • Problem to generate classes from a gsoap server's wsdl with wsimport

    Hello,
    I trie for a long time to generate my client classes from a wsdl file with wsimport. The wsdl file was generated by gsoap.
    Here, the wsdl file :
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="form"
    targetNamespace="https://enterprise-name-masked.com/form.wsdl"
    xmlns:tns="https://enterprise-name-masked.com/form.wsdl"
    xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
    xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:generic="generic"
    xmlns:xop="http://www.w3.org/2004/08/xop/include"
    xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
    xmlns:form="form"
    xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
    xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
    <schema targetNamespace="generic"
      xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
      xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:generic="generic"
      xmlns:xop="http://www.w3.org/2004/08/xop/include"
      xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
      xmlns:form="form"
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="unqualified"
      attributeFormDefault="unqualified">
      <import namespace="http://www.w3.org/2004/08/xop/include"/>
      <import namespace="http://www.w3.org/2004/11/xmlmime"/>
      <import namespace="http://www.w3.org/2003/05/soap-encoding"/>
      <simpleType name="service">
       <restriction base="xsd:string">
        <enumeration value="service-none"/><!-- enum const = 0 -->
        <enumeration value="service-ident"/><!-- enum const = 1 -->
        <enumeration value="service-pool"/><!-- enum const = 2 -->
        <enumeration value="service-hwr"/><!-- enum const = 3 -->
        <enumeration value="service-form"/><!-- enum const = 4 -->
        <enumeration value="service-document"/><!-- enum const = 5 -->
       </restriction>
      </simpleType>
      <simpleType name="result-code">
       <restriction base="xsd:string">
        <enumeration value="ok"/><!-- enum const = 0 -->
        <enumeration value="already-exists"/><!-- enum const = 1 -->
        <enumeration value="not-found"/><!-- enum const = 2 -->
        <enumeration value="cant-connect"/><!-- enum const = 3 -->
        <enumeration value="exception"/><!-- enum const = 4 -->
        <enumeration value="bad-conversion"/><!-- enum const = 5 -->
        <enumeration value="bad-values"/><!-- enum const = 6 -->
        <enumeration value="session-not-found"/><!-- enum const = 7 -->
        <enumeration value="initialization-failed"/><!-- enum const = 8 -->
       </restriction>
      </simpleType>
      <complexType name="result">
       <sequence>
         <element name="code" type="generic:result-code" minOccurs="1" maxOccurs="1"/>
         <element name="details" type="xsd:string" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
    </schema>
    <schema targetNamespace="form"
      xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
      xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:generic="generic"
      xmlns:xop="http://www.w3.org/2004/08/xop/include"
      xmlns:xmime4="http://www.w3.org/2004/11/xmlmime"
      xmlns:form="form"
      xmlns="http://www.w3.org/2001/XMLSchema"
      elementFormDefault="unqualified"
      attributeFormDefault="unqualified">
      <import namespace="http://www.w3.org/2004/08/xop/include"/>
      <import namespace="http://www.w3.org/2004/11/xmlmime"/>
      <import namespace="http://www.w3.org/2003/05/soap-encoding"/>
      <simpleType name="area-type">
       <restriction base="xsd:string">
        <enumeration value="area-type-text"/><!-- enum const = 0 -->
        <enumeration value="area-type-numeric"/><!-- enum const = 1 -->
        <enumeration value="area-type-date"/><!-- enum const = 2 -->
        <enumeration value="area-type-checkbox"/><!-- enum const = 3 -->
        <enumeration value="area-type-slider"/><!-- enum const = 4 -->
        <enumeration value="area-type-draw"/><!-- enum const = 5 -->
        <enumeration value="area-type-identifier"/><!-- enum const = 6 -->
       </restriction>
      </simpleType>
      <simpleType name="format">
       <restriction base="xsd:string">
        <enumeration value="A5"/><!-- enum const = 0 -->
        <enumeration value="A4"/><!-- enum const = 1 -->
        <enumeration value="A3"/><!-- enum const = 2 -->
        <enumeration value="A2"/><!-- enum const = 3 -->
        <enumeration value="A1"/><!-- enum const = 4 -->
        <enumeration value="A0"/><!-- enum const = 5 -->
       </restriction>
      </simpleType>
      <complexType name="area">
       <sequence>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="x" type="xsd:double" minOccurs="1" maxOccurs="1"/>
         <element name="y" type="xsd:double" minOccurs="1" maxOccurs="1"/>
         <element name="width" type="xsd:double" minOccurs="1" maxOccurs="1"/>
         <element name="height" type="xsd:double" minOccurs="1" maxOccurs="1"/>
         <element name="comments" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="area-type" type="form:area-type" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="area-with-string">
       <sequence>
         <element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
         <element name="string" type="xsd:string" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="area-with-integer">
       <sequence>
         <element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
         <element name="integer" type="xsd:int" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="area-with-range">
       <sequence>
         <element name="area" type="form:area" minOccurs="1" maxOccurs="1"/>
         <element name="lower" type="xsd:double" minOccurs="1" maxOccurs="1"/>
         <element name="upper" type="xsd:double" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="areas">
       <sequence>
         <element name="areas" type="form:area" minOccurs="0" maxOccurs="unbounded"/>
         <element name="string-areas" type="form:area-with-string" minOccurs="0" maxOccurs="unbounded"/>
         <element name="integer-areas" type="form:area-with-integer" minOccurs="0" maxOccurs="unbounded"/>
         <element name="range-areas" type="form:area-with-range" minOccurs="0" maxOccurs="unbounded"/>
       </sequence>
      </complexType>
      <complexType name="group">
       <sequence>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="areas" type="form:areas" minOccurs="1" maxOccurs="1"/>
         <element name="groups" type="form:group" minOccurs="0" maxOccurs="unbounded"/>
       </sequence>
      </complexType>
      <complexType name="background">
       <sequence>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="md5" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="mime" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="num-page" type="xsd:int" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="pattern-type">
       <sequence>
         <element name="print-once" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
         <element name="has-identifier" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="page">
       <sequence>
         <element name="num-page" type="xsd:int" minOccurs="1" maxOccurs="1"/>
         <element name="format" type="form:format" minOccurs="1" maxOccurs="1"/>
         <element name="is-portrait" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
         <element name="background" type="form:background" minOccurs="1" maxOccurs="1"/>
         <element name="areas" type="form:areas" minOccurs="1" maxOccurs="1"/>
         <element name="groups" type="form:group" minOccurs="0" maxOccurs="unbounded"/>
       </sequence>
      </complexType>
      <complexType name="document-new">
       <sequence>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="pattern-type" type="form:pattern-type" minOccurs="1" maxOccurs="1"/>
         <element name="form-pages" type="form:page" minOccurs="0" maxOccurs="unbounded"/>
       </sequence>
      </complexType>
      <complexType name="document">
       <sequence>
         <element name="uuid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="pattern-type" type="form:pattern-type" minOccurs="1" maxOccurs="1"/>
         <element name="form-pages" type="form:page" minOccurs="0" maxOccurs="unbounded"/>
       </sequence>
      </complexType>
      <complexType name="document-info">
       <sequence>
         <element name="uuid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
         <element name="page-count" type="xsd:int" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <complexType name="Data">
       <sequence>
         <element ref="xop:Include" minOccurs="1" maxOccurs="1"/>
       </sequence>
         <attribute ref="xmime4:contentType" use="optional"/>
      </complexType>
      <complexType name="login-response">
       <sequence>
         <element name="result" type="generic:result" minOccurs="1" maxOccurs="1"/>
         <element name="session" type="xsd:string" minOccurs="1" maxOccurs="1"/>
       </sequence>
      </complexType>
      <!-- operation request element -->
      <element name="login" type="xsd:string"/>
      <!-- operation request element -->
      <element name="password" type="xsd:string"/>
      <!-- operation response element -->
      <element name="result" type="generic:result"/>
      <!-- operation response element -->
      <element name="uuid" type="xsd:string"/>
      <!-- operation request element -->
      <element name="session" type="xsd:string"/>
      <!-- operation request element -->
      <element name="aform" type="form:document-new"/>
      <!-- operation response element -->
      <element name="form" type="form:document"/>
      <!-- operation request element -->
      <element name="md5" type="xsd:string"/>
      <!-- operation response element -->
      <element name="data" type="form:Data"/>
      <!-- operation response element -->
      <element name="exists" type="xsd:boolean"/>
      <!-- operation response element -->
      <element name="backgrounds" type="form:background"/>
      <!-- operation response element -->
      <element name="forms" type="form:document"/>
      <!-- operation response element -->
      <element name="forms-info" type="form:document-info"/>
    </schema>
    </types>
    <message name="login">
    <part name="login" element="form:login"/>
    <part name="password" element="form:password"/>
    </message>
    <message name="uuid-response">
    <part name="result" element="form:result"/>
    <part name="uuid" element="form:uuid"/>
    </message>
    <message name="quit">
    <part name="session" element="form:session"/>
    </message>
    <message name="response">
    <part name="result" element="form:result"/>
    </message>
    <message name="new-form">
    <part name="session" element="form:session"/>
    <part name="aform" element="form:aform"/>
    </message>
    <message name="free-form">
    <part name="session" element="form:session"/>
    <part name="uuid" element="form:uuid"/>
    </message>
    <message name="get-form">
    <part name="session" element="form:session"/>
    <part name="uuid" element="form:uuid"/>
    </message>
    <message name="document-response">
    <part name="result" element="form:result"/>
    <part name="form" element="form:form"/>
    </message>
    <message name="get-file">
    <part name="session" element="form:session"/>
    <part name="md5" element="form:md5"/>
    </message>
    <message name="data-response">
    <part name="result" element="form:result"/>
    <part name="data" element="form:data"/>
    </message>
    <message name="set-file">
    <part name="session" element="form:session"/>
    <part name="md5" element="form:md5"/>
    <part name="data" element="form:data"/>
    </message>
    <message name="file-exists">
    <part name="session" element="form:session"/>
    <part name="md5" element="form:md5"/>
    </message>
    <message name="exists-response">
    <part name="result" element="form:result"/>
    <part name="exists" element="form:exists"/>
    </message>
    <message name="list-form-backgrounds">
    <part name="session" element="form:session"/>
    <part name="uuid" element="form:uuid"/>
    </message>
    <message name="list-backgrounds-response">
    <part name="result" element="form:result"/>
    <part name="backgrounds" element="form:backgrounds"/>
    </message>
    <message name="list-forms">
    <part name="session" element="form:session"/>
    </message>
    <message name="list-forms-response">
    <part name="result" element="form:result"/>
    <part name="forms" element="form:forms"/>
    </message>
    <message name="list-forms-info">
    <part name="session" element="form:session"/>
    </message>
    <message name="list-forms-info-response">
    <part name="result" element="form:result"/>
    <part name="forms-info" element="form:forms-info"/>
    </message>
    <portType name="formPortType">
    <operation name="login">
      <documentation>Service definition of function form__login</documentation>
      <input message="tns:login"/>
      <output message="tns:uuid-response"/>
    </operation>
    <operation name="quit">
      <documentation>Service definition of function form__quit</documentation>
      <input message="tns:quit"/>
      <output message="tns:response"/>
    </operation>
    <operation name="new-form">
      <documentation>Service definition of function form__new_form</documentation>
      <input message="tns:new-form"/>
      <output message="tns:uuid-response"/>
    </operation>
    <operation name="free-form">
      <documentation>Service definition of function form__free_form</documentation>
      <input message="tns:free-form"/>
      <output message="tns:response"/>
    </operation>
    <operation name="get-form">
      <documentation>Service definition of function form__get_form</documentation>
      <input message="tns:get-form"/>
      <output message="tns:document-response"/>
    </operation>
    <operation name="get-file">
      <documentation>Service definition of function form__get_file</documentation>
      <input message="tns:get-file"/>
      <output message="tns:data-response"/>
    </operation>
    <operation name="set-file">
      <documentation>Service definition of function form__set_file</documentation>
      <input message="tns:set-file"/>
      <output message="tns:response"/>
    </operation>
    <operation name="file-exists">
      <documentation>Service definition of function form__file_exists</documentation>
      <input message="tns:file-exists"/>
      <output message="tns:exists-response"/>
    </operation>
    <operation name="list-form-backgrounds">
      <documentation>Service definition of function form__list_form_backgrounds</documentation>
      <input message="tns:list-form-backgrounds"/>
      <output message="tns:list-backgrounds-response"/>
    </operation>
    <operation name="list-forms">
      <documentation>Service definition of function form__list_forms</documentation>
      <input message="tns:list-forms"/>
      <output message="tns:list-forms-response"/>
    </operation>
    <operation name="list-forms-info">
      <documentation>Service definition of function form__list_forms_info</documentation>
      <input message="tns:list-forms-info"/>
      <output message="tns:list-forms-info-response"/>
    </operation>
    </portType>
    <binding name="form" type="tns:formPortType">
    <SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="login">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="quit">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="new-form">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="free-form">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="get-form">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="get-file">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="set-file">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="file-exists">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="list-form-backgrounds">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="list-forms">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    <operation name="list-forms-info">
      <SOAP:operation style="rpc"/>
      <input>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </input>
      <output>
         <SOAP:body parts="parameters" use="literal" namespace="form"/>
      </output>
    </operation>
    </binding>
    <service name="form">
    <documentation>gSOAP 2.7.10 generated service definition</documentation>
    <port name="form" binding="tns:form">
      <SOAP:address location="https://enterprise-name-masked.com/cgi-bin/form.fcgi"/>
    </port>
    </service>
    </definitions>And here, you can find the generated errors :
    wsimport -s Sources -b http://www.w3.org/2004/08/xop/includ
    e -b http://www.w3.org/2004/11/xmlmime form.wsdl
    parsing WSDL...
    [WARNING] src-resolve: Cannot resolve the name 'xmime4:contentType' to a(n) 'attribute declaration' component.
      line 215 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
    [WARNING] s4s-elt-invalid-content.1: The content of 'Data' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often.
      line 215 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
    [WARNING] src-resolve.4.2: Error resolving component 'generic:result'. It was detected that 'generic:result' is in namespace 'generic', but components
    from this namespace are not referenceable from schema document 'file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP
    /WSImport/Test/Form/form.wsdl#types?schema2'. If this is the incorrect namespace, perhaps the prefix of 'generic:result' needs to be changed. If this
    is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Re
    cherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2'.
      line 230 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
    [WARNING] src-resolve: Cannot resolve the name 'xop:Include' to a(n) 'element declaration' component.
      line 213 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl#types?schema2
    [WARNING] Ignoring SOAP port "form": it uses non-standard SOAP 1.2 binding.
    You must specify the "-extension" option to use this binding.
      line 533 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl
    [WARNING] Service "form" does not contain any usable ports. try running wsimport with -extension switch.
      line 531 of file:/C:/Documents%20and%20Settings/Hopi_1/Mes%20documents/Alexandre/Recherche%20SOAP/WSImport/Test/Form/form.wsdl
    generating code...
    compiling code...Could you tell me how to correctly generate my classes in this case ?
    Thank you.
    Edited by: morphet on May 30, 2008 6:12 AM

    Alchemista,
    Not sure if you were able to solve your problem..but I was trying to do exactly what you were trying to do.. access a datasource from a simple Java client. However, you cannot do so by simply writing the Java class and running it. The simple Java client has to be deployed as a J2EE Application Client. The following tutorial shows how to create a J2EE Application Client using the non-J2EE Java class you have written.
    http://developer.java.sun.com/developer/technicalArticles/J2EE/appclient
    The article talks about accessing EJBs from a J2EE App. Client.. but since you only want to access the DataSource, just skip all the screens until it asks you to register the JNDI DataSource resources...
    Let me know if you have any questions. You can email me at [email protected]
    I hope this helps.

  • Indices and constraints on XML Tables/Columns (with Schema)

    Hi,
    I've read a lot of documents by know, but the more I read the more I got confused. So I hope you can help me.
    Frist my Oracle Server Version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
    I've manages to create a table with a column with the type SYS.XMLTYPE and the storage modle "Object Relational" with an XML Schema.
    I can insert data and I can execute XQuery statements.
    I can also create an XMLTYPE table with my Schema, althoug the tool SQL Developer keeps telling me, that the one column wich is generated within the table is of the type CLOB instead of object realtional (which is what I defined).
    The query for that is:
    CREATE TABLE ENTRY_XML OF XMLTYPE
    XMLTYPE STORE AS OBJECT RELATIONAL
    XMLSCHEMA "BBMRI_Entry.xsd" ELEMENT "Entry";
    That's where I am, now my questions:
    1. What's the difference? I'm aware of the obviouse difference, that with the first way I can add relational columns as well, but apart from that? If I only want to store the xml data, is the second approach always better (especially in regard to my next question)?
    2. My schema contains elements with attributes (which contain IDs), which have to be unique. So I tried to add a UNIQUE constraint, but failed. I found this (http://www.oracle.com/technology/sample_code/tech/java/codesnippet/xmldb/constraints/Specify_Constraints.html), but it just doesn't work.
    Query: "ALTER TABLE ENTRY_XML CONSTRAINT ENTRY_XML_SUBID_UNQIUE UNIQUE (xmldata."SubId");"
    Error: "ORA-01735: invalid ALTER TABLE option"
    3. I didn't try yet, but I need to specifiy foreign keys within the XML as well (which is explained in the link at question 2). I guess the solution to question 2 will make this possible as well.
    4. Since I can create a UNIQUE constaint for attributes (well, I can't yet, but I hope that this will change soon) I woundered if it would be possible to realize something like auto_increment. Although I see the problem with validating the xml input if the Ids are empty. Any suggestions on that problem? Do I have to query for the highest (free) id before I can insert the new documents?
    Well, that's enough for today, I hope someone can help me!
    Greetings, Florian

    I've read through all the literature (again) and found out, that I did most of the stuff right in the first place. I just missinterpreted the generated tables for the types and wondered why they only contained one column. Well, at least one mistery solved.
    But know to make it easier just one question, which might solve all problems I have:
    How can I create UNIQUE constraints and FOREIGN KEYS when I have a table or column of the type XmlType with a schema using the object relational storage method?
    I found a solution http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb05sto.htm#i1042421 (Example 5-12), but it just does not work for me.
    I removed the FOREIGN KEY and tried it again and the UNIQUE Key works.
    So basically the question is how to retrieve the "AId" Attribute. "XMLDATA"."AId", "XMLDATA"."Attribute"."AId" and "XMLDATA"."Subject"."Attribute"."AId" all do not work.
    I've added my schema declarations at the bottom (which I've already successfully registred and used without foreign keys and constraints, so they work).
    After I've registered the two schema files 3 types and 11 tables where created. One type for the attribute, one for the study type and one probably to link the attributes to the study types. The tables are one for the attribute, 4 for the content*-elements, 2 for the study type (I don't really know why two) and 4 with strange names starting with "SYS_NT" and then some random numbers and letters (looks alot like some base64 encoded string).
    The Query I try to use to create the table is: (The table "Attribute" already exists and contains a field "ID", which is it's PK.)
    CREATE TABLE STUDYTYPE_XML
    OF XMLType (UNIQUE ("XMLDATA"."STId"),
    FOREIGN KEY ("XMLDATA"."AId") REFERENCES ATTRIBUTE(ID))
    XMLTYPE STORE AS OBJECT RELATIONAL
    ELEMENT "StudyType.xsd#StudyType";
    The error I get is:
    Error starting at line 1 in command:
    CREATE TABLE STUDYTYPE_XML
    OF XMLType (UNIQUE ("XMLDATA"."STId"),
    FOREIGN KEY ("XMLDATA"."AId") REFERENCES ATTRIBUTE(ID))
    ELEMENT "StudyType.xsd#StudyType"
    Error at Command Line:3 Column:37
    Error report:
    SQL Error: ORA-22809: nonexistent attribute
    22809. 00000 - "nonexistent attribute"
    Cause: An attempt was made to access a non-existent attribute of an
    object type.
    Action: Check the attribute reference to see if it is valid. Then retry
    the operation.
    Attribute-Schema (Attribute.xsd):
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:attribute name="AId">
              <xs:simpleType>
                   <xs:restriction base="xs:integer">
                        <xs:minInclusive value="0" />
                   </xs:restriction>
              </xs:simpleType>
         </xs:attribute>
         <xs:attribute name="Name" type="xs:string" />
         <xs:element name="ContentString" type="xs:string" />
         <xs:element name="ContentInteger" type="xs:integer" />
         <xs:element name="ContentDouble" type="xs:decimal" />
         <xs:element name="ContentDate" type="xs:date" />
         <xs:element name="Attribute">
              <xs:complexType>
                   <xs:choice minOccurs="0" maxOccurs="1">
                        <xs:element ref="ContentString" />
                        <xs:element ref="ContentInteger" />
                        <xs:element ref="ContentDouble" />
                        <xs:element ref="ContentDate" />
                   </xs:choice>
                   <xs:attribute ref="AId" use="required" />
                   <xs:attribute ref="Name" use="optional" />
              </xs:complexType>
         </xs:element>
    </xs:schema>
    Study Type Schema (StudyType.xsd):
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:include schemaLocation="Attribute.xsd" />
         <xs:attribute name="STId">
              <xs:simpleType>
                   <xs:restriction base="xs:integer">
                        <xs:minInclusive value="0" />
                   </xs:restriction>
              </xs:simpleType>
         </xs:attribute>
         <xs:element name="StudyType">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Attribute" minOccurs="1" maxOccurs="unbounded" />
                        <xs:element ref="StudyType" minOccurs="0" maxOccurs="unbounded" />
                   </xs:sequence>
                   <xs:attribute ref="STId" use="required"/>
              </xs:complexType>
         </xs:element>
    </xs:schema>
    Edited by: alwaysspam on Sep 8, 2010 5:35 PM

Maybe you are looking for

  • Linksys wireless slows gigabit-connected Mac

    I have a gigabit-ethernet LAN connecting from my PowerMac running OSX 10.4.11 to a Dell XPS, a Mac 7600, and HP Laserjet 4200 printer. My cable modem connects to my PowerMac via built-in GBEthernet. IPNetRouter is normally my software router/firewall

  • HR_MAINTAIN_MASTERDATA writes inconsistent data to DB

    Dear experts, I'm filling IT0000 with actions coming from an interface (using HR_MAINTAIN_MASTERDATA, Infogroup always contains 0000 and 0001 only; additional actions are 'ON' ). Changes from the interface can be of all different kinds, i.e. deletion

  • Strike through line is not coming up in PDF output

    I have to strike through some data in my report. I tried in design time as well as in run time. In run time I used SRW.SET_FONT_STYLE(SRW.OVERSTRIKE_STYLE) method to strike through the data. It is displaying overstrike line in screen, printer, RTF an

  • Import & Domestic Procurment

    Hi , Can anyone please tell me why two different pricing procedures are required for import & domestic procurement in India. Thanks & Regards, BIsu

  • All Documents by User

    Hello, it is possible to get the list of all documents created by users in specific period? Can anyone help? thank you D.