Topic
3 replies Latest Post - ‏2012-06-04T20:12:11Z by gulfsoft
KTensmeyer
KTensmeyer
2 Posts
ACCEPTED ANSWER

Pinned topic Does maximo default namespace have a defined XSD?

‏2012-06-01T16:53:01Z |
The REST API calls returns XML delivery {files, uri) with a default namespace of xmlns="http://www.ibm.com/maximo" Is there an xsd file that can be used in a catalog that matchs the xml elements and attributes as delivered via the REST api's?
Data extracted from the REST API use a default namespace. Processing with XML standards using XSD allow validation and data conversion (dates, numbers, structures) Using an Explict namespace with either DTD or XSD, in XPATH, XSLT, or other XML processing, allows for simplified use of the extracted data.
Updated on 2012-06-04T20:12:11Z at 2012-06-04T20:12:11Z by gulfsoft
  • gulfsoft
    gulfsoft
    65 Posts
    ACCEPTED ANSWER

    Re: Does maximo default namespace have a defined XSD?

    ‏2012-06-02T19:59:17Z  in response to KTensmeyer
    Have you done a Google search for "maximo xsd"? There are quite a few hits, and I think at least one of them contains the information you need. If they don't, can you tell us which ones you've looked ar and how they don't meet your needs?

    Frank
    We can make Tivoli software work for you!www.gulfsoft.com
  • KTensmeyer
    KTensmeyer
    2 Posts
    ACCEPTED ANSWER

    Re: Does maximo default namespace have a defined XSD?

    ‏2012-06-04T16:21:15Z  in response to KTensmeyer
    Inside of the various WSDL's there are xsd files for submisions to send requests to Maximo. I could be wrong, but those xsd don't fit.

    Any calls to Rest API queries generate fairly complex XML with the default namespace xmls="http://www.ibm.com/maximo". What I'm looking for is an XSD which maps to the generated XML, and permits standard XML tools to work with this data.

    I've used Trax to generate some subset XSD from the extracted data. Almost every field maps to unlimited character strings (pretty useless)

    Is there a master XSD, for the namespace of the extracted data?

    
    <max:pmrdpbcapigetAvailablePoolListResponse xmlns:max=
    "http://www.ibm.com/maximo" creationDateTime=
    "2008-09-29T03:49:45" baseLanguage=
    "string" transLanguage=
    "string" messageID=
    "string" maximoVersion=
    "string" >
    


    or http://localhost:9080/maxrest/rest/os/PMZHBR1_PMRDPSRVVIEW?_format=json&PLUSPCUSTOMER=PMRDPCUST&_compact=1&_exactmatch=1

    :-) I'm not worried about validating the generated XML from maximo.. :-)
    • gulfsoft
      gulfsoft
      65 Posts
      ACCEPTED ANSWER

      Re: Does maximo default namespace have a defined XSD?

      ‏2012-06-04T20:12:11Z  in response to KTensmeyer
      The URL you're referencing will return JSON data (_format=json in the query string), so I don't think that's quite what you meant.

      But to my knowledge, there's not a full XSD published by Tivoli. I can think of some plausible reasons for that, but since I don't know the real reason, I won't speculate.

      On the other hand, not all tools require an XSD to work with the data. Here's an article describing data mapping of schemaless XML with VTD-XML:

      http://onjava.com/pub/a/onjava/2007/09/07/schema-less-java-xml-data-binding-with-vtd-xml.html

      Other tools like Perl::XML don't require any DTD either - you just access the elements via XPath-like queries.

      Another, possibly easier, option is to request JSON output, since JSON is much less rigid than XML.

      Frank

      We can make Tivoli software work for you!
      www.gulfsoft.com