Manipulating xsd schemas through java api

Hi,
I am working on an aplication that requires on-line creation of new xsd schemas. I am looking for a package that will allow me to create such schemas (i dont want to have to understand all the schema logic myself and create just a regular xml document).
I also require a way to be able to easily extract restrcitions regarding certain elements in the schema (i need to be able to answer questions such as what restrictions does X node have).
Does anyone happen to know of a package that may help me?
thanks!
shahar

Hi,
I am working on an aplication that requires on-line creation of new xsd schemas. I am looking for a package that will allow me to create such schemas (i dont want to have to understand all the schema logic myself and create just a regular xml document).
I also require a way to be able to easily extract restrcitions regarding certain elements in the schema (i need to be able to answer questions such as what restrictions does X node have).
Does anyone happen to know of a package that may help me?
thanks!
shahar

Similar Messages

  • Set browser proxy through JAVA API - is it possible?

    I have a proxy that listening http traffic. And I need a solution to set my browser (it may be IE, FF, Safari) options to go through this proxy. Does anybody know possible solutions?

    If each browser has a Java API you can use that, there is no support for assorted browsers built in to Java.

  • Executing Workflow Task through JAVA APIs

    Hi,
    I'm able to send the workflow task to the next step with JAVA APIs.
    The problem comes here if I try to log in into MDM through IConnectorGatewayService.
    If I get a connection to MDM through CatalogData's login method, everything works fine, task is getting executed properly. But, if I try to run the same code where I get the connection through IConnectorGatewayService, the same code doesn't work.
    Surprisingly, there is no problem in retrieving data from MDM while connecting with ConnectorGatewayService.
    Please do let me know if I need to specify some parameters while getting the connection with IConnectorGatewayService so that I can change the workflow task status.
    Thanks and Regards,
    Mausam

    Hi Mausam
    Please go through this document u will get the solution
    https://help.sap.com/javadocs/MDM/current/index.html
    https://help.sap.com/javadocs/MDM/current/index.html
    I think it may help you
    Regards
    Hari

  • Bug report (and solution): adding multiple records through Java API in bulk

    I have found some bugs in the Java API (version 4.1.25) that makes it impossible to add mulitple values in bulk to a RECNO database. The fixes are as follows:
    MultipleEntry.java, line 80:
    "DbUtil.int2array(curr_off, this.data, pos);"
    should be replaced by
    " DbUtil.int2array(recno, this.data, pos);"
    MultipleRecnoDatabaseEntry.java, line 130:
    "return append_internal(data, doff, dlen, recno);"
    should be replaced by
    "return append_internal(data, offset, len, recno);"
    Regards,
    Johan Walters

    Hello,
    It looks like there were some corrections to this area in the post 4.1 i.e. 4.2 release. And I do not see these same issues in the current 5.1.25 release. If you do find them in the current release, just let us know.
    Thanks,
    Sandra

  • Calling MDM Assignments through Java API

    Hi there!
    Is there any way to call MDM assignment rule from Java application? As far as I know, there is no appropriate API function available (even in MDM 7.1), but may be there is some workaround to call these rules indirectly?
    Any help will be appreciated.

    Hi Ivan,
    As you already mentioned there are no Java API's to call assignments written in MDM.
    1. You can handle this by creating a workflow with only assignment component. But this activity will be a manual activity.
    2. You can also write assignments in Portal.
    Hope it hepls.
    Regards,
    Pramod

  • Accessing events for a Resource through Java API

    I need to display the calendar events for a Resource through a portlet preferably using Java WebServices API. I am trying to figure out if there is a way to authenticate as a Resource, similar to user authentication so that I can display events associated with that resource.
    Thanks,
    Niraj Dhondi

    login as sysop (connectAsSysop) and switch identity to the desired resource (setIdentity) .
    you may need to add the line
    allowsysoplogon_capi = TRUE
    to the [ENG] section in unison.ini .
    g.

  • Problem creating in some attribute options for class through java API

    Hello everyone,
    I am successfully creating class and its attributes but i am not able to create attributes with its option like IS REQUIRED, IS INDEXED, IS SETTABLE and READ ONLY.....
    public void create_class(String cname,String cdesc,String scname)
    try
    ClassObjectDefinition cod = new ClassObjectDefinition(csession);
    cod.setSuperclassName(scname);
    cod.setName(cname);
    ClassObject co = (ClassObject)csession.createSchemaObject(cod);
    AttributeDefinition ad2 = new AttributeDefinition(csession);
    ad2.setAttributeByUpperCaseName("NAME",AttributeValue.newAttributeValue("Divya"));
    ad2.setAttributeByUpperCaseName("DATATYPE",AttributeValue.newAttributeValue(Attribute.ATTRIBUTEDATATYPE_STRING));
    ad2.setAttributeByUpperCaseName("DATALENGTH",AttributeValue.newAttributeValue(151));
    ad2.setAttributeByUpperCaseName("DESCRIPTION",AttributeValue.newAttributeValue("This the attribute number 2"));
    //here is some problem,,, Is Required is not been able to set
    //ad2.setAttributeByUpperCaseName("REQUIRED",AttributeValue.newAttributeValue(true));
    co.addAttribute(ad2);
    catch(IfsException e)
    e.printStackTrace();
    }

    Hi Kabilesh,
    Could you please let me know the exast soution u had for this?
    I even set the SHLIB_PATH in the environment, but still this problem persists.
    I am compiling the program and making into a shared library as
    cc -c -g -n +z -I$JAVA_HOME/include -I$JAVA_HOME/include/hp-ux -L/opt/java1.4/jre/lib/PA_RISC2.0/server -ljvm Test.c -o Test.o
    ld -b Test.o -L/opt/java1.4/jre/lib/PA_RISC2.0/server -ljvm -o Test.slMy java code is looks like this :
    void create_Jvm()
        JNIEnv * env;
        JavaVM * jvm;
        //JDK1_1InitArgs vm_args;
        /* Note : In JNI1.2 and Java2 SDK 1.4, the new structure JavaVMInitArgs has been introduced.*/
        JavaVMInitArgs vm_args;
        //JavaVMOption options[1];
        jint res;
        vm_args.nOptions = 0;
        vm_args.ignoreUnrecognized = JNI_TRUE;
        /* IMPORTANT: specify vm_args version # if you use JDK1.1.2 and beyond */
        vm_args.version = JNI_VERSION_1_4;
        //vm_args.version = JNI_VERSION_1_2;
        /*In JNI1.2 and Java2 SDK 1.4 the JNI_GetDefaultJavaVMInitArgs method call is not required.*/
        //JNI_GetDefaultJavaVMInitArgs( & vm_args);
        res = JNI_CreateJavaVM( &jvm, (void**)&env, &vm_args);
        if (res < 0) {
            fprintf(stderr, "Can't create Java VM\n Error is :%ld\n ", res);
            exit(1);
        iJvmInitialized = 1;
    } hi
    Check the lib path
    May be u have not included : at the end of the lib
    path that u have added
    THis was the mistake that i did
    kabilesh

  • Use MDM java Api for saving an image to mdm image table

    Hi experts
    I want to save an image from web dynpro java to MDM image table using java Api's
    Can anyone provide a code snippet .
    I am using MDM 7.1 sp6.
    Thanks and regards
    Suresh

    Hello Suresh
    Unfortunatly, this is no possible, i mean, to load images to mdm repository through JAVA API.
    Sure you can do it directly to database ( but for that you need to do saome investigation)
    Here you can found JAVA API classes for MDM:
    http://help.sap.com/javadocs/MDM71/
    Next two classes are working with BLOBs (pdf, images, video, etc.) in MDM repository:
    com.sap.mdm.blobs
    com.sap.mdm.blobs.commands
    Regards
    Kanstantsin chernichenka
    Edited by: kanstantsin_ch on Sep 8, 2011 2:36 PM

  • Read "Qualified Range Key Generation" with Java API.

    Hi guru,
    I use MDM 5.5 SP6.
    In MDM Console I read Qualified Range Key Generation it in "ADMIN -> Remote Systems -> Qualified Range".
    I have to get "Qualified Range Key Generation" with Java API.
    It's possible?

    Hi Rocco,
    I am also thinking  of same scenario.I thought it is possible in Java Apis by calling the webservices for MDM.there is a service of "get key mapping" where we can pass this "Qualified key range" as  parameter.In MDM we have to define a look up table for that key ranges .We will access that table through JAVA API and then link it with the key mapping service .
    If u find any solution to apply this ,please share.
    thanks and regards
    Ank

  • Java Api VS Ejb/Xml

    Hi, I need some information from all of you experts out there.
    Currently we are running an appserver, the way it works is that we use ejb/xml to talk to corba stubs which eventually will talk to the server objects.
    I am quite new to this technology, and currently considering of removing the use of ejb/xml layer and replace it with JAVA API. The idea is to get Webservice to talk to Corba stubs through JAVA API.
    My question is:
    1. Has anyone out there done this before? if so, what is your suggestion to this?
    2. Is there any performance issue?
    3. Is there any sample out there that does this?
    Any reply/opinion is highly appreciated.
    Thanks in advance.

    I don't think so. I believe they come in the "javadoc" format only,
    besides the HTML ones that are hosed online on java.sun.com.

  • Iterate through all the records in a table using Java API

    Hi All,
    What is the easiest way to iterate through all the records in a given table using Java API? I cannot find any methods that will return all records in a table and the only way I can use is to perform a free form search with a condition that is always true. The code works but is pretty ugly. Is there an alternative to this approach?
    Thanks!
    Kenny

    Hi Kenny,
    You can construct a new Search object with your table's code name, a new ResultSetDefinition object for your table and just execute this search using the GetResultSet method of CatalogData.
    Please look at the following code:
    Search search = new Search(<code name of your table>);
    ResultSetDefinition rsd = new ResultSetDefinition(<code name of your table>);
    rsd.AddField<code name of a field>);
    rsd.AddField(<code name of a field>);
    String sortField = <code name of your sort field>;
    boolean sortAscending = true;
    int page = 0; //page number
    A2iResultSet rs = <your CatalogData object>.GetResultSet(search, rsd, sortField, sortAscending, page);
    for (int i = 0; i < rs.GetRecordCount(); i++)
        Value fieldValue = rs.GetValueAt(i, <code name of a field>);
    Hope this helps,
    Nir
    PS - I really recommend you to start using the new API, as it is much more efficient and straight-forward.

  • Manipulating C++ Objects in Java Through JNI

    Hi,
    I have some existing C++ classes objects that I would like to access through Java methods. However, if I use a java method to create an instance of a C++ object, and then I want to edit the state of that C++ object through java, how do I reference the correct C++ object.
    For example, if I have a C++ object called Ball, with two variables x and y representing its position and a constructor as well as set methods to set x and y. I then make a java class Ball with the same variables, constructor, and setter methods. But when the java constructor is called, I want the C++ version to be created, and when the java setter methods are called, I want the x and y of the correct C++ Ball instance to change.
    Is this is possible, and if so what are the steps needed?
    Thank you

    See example with C++ structure in
    http://www.sharewareplaza.com/Java-Platform-Invoke-API-Demo-version-download_49212.html

  • Java API - Editor class for an XML schema

    Hi,
    i am very interesting in Java API. I would like to make an editor class for an XML schema. (I will create XML files in the current project based on this XML schema.) What step's are require for this editor class?
    Regards
    Gabor

    DavidThi808 wrote:
    jtahlborn wrote:
    you can provide a schema when parsing an xml document in order to check for schema conformance, but that isn't going to affect your XPath queries at all. DOM content is never anything but strings.In the case of both dom4j/jaxen and the .NET runtime the values returned from XPath queries when a schema is provided are typed. So you get back numbers, dates, and booleans as well as strings. And for numbers you get correct comparisons so 20 > 1.i guess it's possible. i use schemas when parsing xml, and i've used xpath (infrequently), but i'm not sure that i've ever used them together in a way that i would see functionality like that.
    FYI, you use http://docs.oracle.com/javase/6/docs/api/javax/xml/parsers/DocumentBuilderFactory.html#setSchema%28javax.xml.validation.Schema%29 to specify a schema while parsing with a DocumentBuilder.

  • Problems with 11g Global Schema / Java API Test Programs

    Hi,
    In the process of trying to get the 11g sample java api programs up and running, I've encountered a problem. Having installed without error the sample schemas for documentation and set up the 11g version of the test code, I get this error when I try to run BuildAW11g.java
    Created the AW GLOBAL_AWJ
    Identifier "GLOBAL.CHANNEL_DIM.TOTAL_ID" is invalid.
         at
    oracle.olapi.syntax.parser.IdentifierResolver.error(Unknown Source)
         at oracle.olapi.syntax.SyntaxObject.validate(Unknown Source)
         at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
         at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
         at oracle.olapi.syntax.SyntaxObject.fromSyntax(Unknown Source)
         at oracle.olapi.examples.metadata.BuildAW11g.createDimension(BuildAW11g.java:470)
         at oracle.olapi.examples.metadata.BuildAW11g.run(BuildAW11g.java:120)
         at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:54)
         at oracle.olapi.examples.BaseExample11g.execute(BaseExample11g.java:74)
         at oracle.olapi.examples.metadata.BuildAW11g.main(BuildAW11g.java:989)
    This seems to indicate that there is a problem with the sample schema - that GLOBAL.CHANNEL_DIM.TOTAL_ID doesn't exist. Is that right?
    On the topic of the sample schemas, a quick question. The install script runs without error so presumably the tables described in the readme had been installed, but I'm not sure. How can I verify this? When I connect as global using Oracle SQL Developer and expand 'Tables' in the right hand pane, I don't see any tables at all. I would have (perhaps naively) expected to see the tables listed in the samples schemas readme, eg, CHANNEL_DIM. Should I have? If not, how can I view these tables? Thanks in advance for any input anyone may have.
    -exits

    After a reboot the "DHCP-check" is passed:
    INFO: Checking DetectIfDHCPAssignedIP
         This is a prerequisite condition to test whether the primary IP address of the system is DHCP-assiged or static.
    INFO: Detecting the IP.....:192.168.1.4
    INFO: Checking the network interface display name.... :eth0
    INFO: Checking the network reference name..... :eth0
    INFO: Checking the platform .......46
    INFO: Checking the LINUX vendor .... :enterprise
    INFO: Inspect interface file :/etc/sysconfig/network-scripts/ifcfg-eth0
    INFO: Check complete. The overall result of this check is: Passed
    But net configuration assistant is still failing.

  • Question about Java API for XML schema?

    Hello, everyone!
    I am looking for a java api for XML schema. I hope the API is capable for parsing the structure of element
    or complextype declarations in XML schema. So for example, if I specify a name of an element or
    complextype defined in a schema, the name, dataype and other constraints of contained child elements can be returned.
    Does anyone know if there exists such a paser?
    Thanks very much!

    An implementation of DOM Level 3.

Maybe you are looking for

  • How can I buy Photoshop CC and not rent the software? [was: buy]

    HOW CAN I BUY PHOTOSHOP CC AND NOT RENT THE SOFT WARE

  • Motion menus

    Hi, I'm having trouble with motion menus and buttons in DVD SP 2.0. They set up ok, but do not play in the simulator - both menu and buttons are black! If only one menu is assigned motion, it will play once, but revert to black when motion buttons ar

  • BW statistics problem

    Hi All, I believe that, to collect BW statistics infoprmation for an Infocube, tools -> BW Statistics for Infoproviders -> check OLAP and WHM for the required infocube and save. I believe any data loads here after or any query runs here after will up

  • Windows Time source resets after service/server restart

    We have two completely separate domains.  Our main domain has 4 DCs: the PDCe is looking to an outside source for its time source and the other 3 DCs are looking to the PDCe for their time source.  The second domain, our DMZ, is setup the exact same

  • Update was terminated when Post Goods Issue

    Hi all, When I post goods issue, I receive a message "Update was terminated". Then, I use SM13 to check update requests, I see an error    900     USERNAME     20.11.2007     10:47:27     VL02N                          double click on that line I see