Generate xml-rpc request using xsd

Hi All,
I have one xsd file . I want to generate xml-rpc request file using this xsd file. If any body have any tools for that , can you please share this name with me. It's great help for me...
Thank You,
Pattanaik

That's an interesting question. I thought it would be obvious that xmlbeans or "normal" xml-rpc packages would handle this.
It turns out this doesn't seem to be true.
Are you saying that you're trying to pass an object to a method and you want to deserialize the object into a java object of a type that is defined via an XSD? If this is the case you can use xmlbeans to do the xsd<->java mapping, then use just about any xml-rpc service to do the actual RPC mechanism.
It's interesting that these two technologies haven't converged though...

Similar Messages

  • How to generate XML file based on XSD in SSIS

    please provide step by step process to create xml based on XSD in SSIS  

    Hi hemasankar,
    In SQL Server Integrated Services, we can generate XML Schema (XSD) file based on a XML file with XML Source Editor. If we want to generate XML file based on a XSD file, we can use Generate Sample XML feature in Visual Studio. For more details, please refer
    to the following steps:
    Click on "XML Schema Explorer" or 'Use the XML Schema Explorer...' to open XML Schema Explorer in Visual Studio. 
    If your Schema file is valid and you are having elements, right-click on element and click on "Generate Sample XML", this functionality generates XML file in temp folder and open ups in the XML Editor.
    The following two document about how to generate XML file based on a XSD file are for your reference:
    http://msdn.microsoft.com/en-us/library/dd489258.aspx
    http://www.codeproject.com/Articles/400016/Generate-Sample-XML-from-XSD
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Problem generating XML data file through XSD

    Hello there,
    I'm trying to generate an XML data file as per the below steps:
    Making a normal schema in query transform.
    Mapping desired source column into query schema.
    Right click on query transform and generating XML schema (XSD) in my local system.
    In object library XML file format adding the XSD with schema as a root element.
    Creating target instance from object library XML file.
    In target file specifying file creation path in my local system. 
    After performing above steps and executing the job getting below error.
    Any help on this will be much appreciated.
    Regards,
    Jagari

    I found some code looking at a similar issue - I don't know how to recover other data (in I guess) the rest of the HTML in the code. I need to find a better reference with details and examples.
    I fixed it by changing:
        ssDebug.trace(moreStuff.xliff.file.body.trans-unit); // - error
    to:
       ssDebug.trace(moreStuff.file.body['trans-unit']); //- no error
    with expected output (no error):
    <trans-unit id="001" resname="IDS_ZXP7_JAM_01">
      <source>If, while you are printing, your printer stops, ...</source>
    </trans-unit>
    <trans-unit id="002" resname="IDS_ZXP7_JAM_02">
      <source>look at the Operator Control Panel (OCP) for the fault description.</source>
    </trans-unit>
    <trans-unit id="003" resname="IDS_ZXP7_JAM_03">
      <source>If the fault is a card jam, open and close the Print Cover (or Options Cover).</source>
    </trans-unit>
    <trans-unit id="004" resname="IDS_ZXP7_JAM_04">
      <source>The printer will initialize and move the jammed card to the Reject Bin.</source>
    </trans-unit>
    <trans-unit id="005" resname="IDS_ZXP7_JAM_TITLE">
      <source>Card Jam</source>
    </trans-unit>

  • PL/SQL to generate XML compliant with an XSD

    Please excuse me if this has been asked elsewhere. I'm trying on Oracle 9.2 to output XML that will comply with a predefined schema. I've started out by creating various object types and an object view that matches the xml schema definition, and can use dbms_xmlgen.getxml to get out an xml document (a clob) without trouble, BUT I need to post-process this with shell scripts to add on the namespace information and amend the tags to put in the (e.g.) ns3: bit to identify which is the target namespace. It seems odd that I should need to do this - is there a better way? I have trawled all over rthe place but cannot find any mention of this requirement. Thanks for any help you might give me, I'm new to xml.

    Okay forget that, here's a quote from Oracle:
    "I'm the PM for XML DB, and our preferred direction for generating XML from data stored in relational tables is the industry standard SQL/XML operators. DBMS_XMLGEN will continue to be supported but most of our development efforts in terms of performance / feature improvements willl be targetted at the SQL/XML operators (XMLELEMENT(), XMLATTRIBUTES(), XMLAGG(), XMLFOREST() etc). In general they have proven to be much more flexible and performant, and easier to use "
    So it seems that the object-type/view route is dead in the water. Shame.

  • Generating XMLs from CSVs using DOM parser......

    Hi,
    I am trying to generate XMLs from CSV files using DOM parser. XMLs are getting generated but the problem is that i am using Encoding "ISO-8859-1" but XMLs are getting generated in UTF-8 encoding.
    Please refer to the code below and advice. (where are the code tags gone ????? )
    Source domSource = new DOMSource(document);
    ByteArrayOutputStream xmlStream = new ByteArrayOutputStream();
    Result result = new StreamResult(xmlStream);
    Transformer transformer = TransformerFactory.newInstance().newTransformer();
    transformer.transform(domSource, result);
    xmlStream.close();
    generatedXml = new String(xmlStream.toByteArray(), "*ISO-8859-1*");

    Use transformer.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1") to specify the character set.

  • Generating XML with attributes using XSU

    Oracle document claims if the sql is:
    select empno as @empno from employee
    Using XSU to generate XML will produce and XML document with EMPNO as an attribute instead of element name. But this does not seem to work. There is an exception:
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Character '&' is not allowed in an XML tag name.</ERROR
    Is there anything wrong or is there a work around

    Oracle document claims if the sql is:
    select empno as @empno from employee
    Using XSU to generate XML will produce and XML document with EMPNO as an attribute instead of element name. But this does not seem to work. There is an exception:
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Character '&' is not allowed in an XML tag name.</ERROR
    Is there anything wrong or is there a work around

  • Generating XML from Database using XSQL

    Hi ,
    I have been using Reports as an intermidiate to generate XML (by giving concurrent program o/p type as XML). Now, i want it to be done from SQL or PL/SQL. I am able to achieve this using XSQL functions. I placed the SQL in a .sql file and registered it as a concurrent program. It was giving me XML output.
    I have two problems here.
    1. How can i know whether i have generated valid xml or not?
    2. When i am linking this concurrent program to XML Publisher, publisher is not able to read thie output from the concurrent prograam. It is erroring out. Why?
    Thanks
    sap

    Save the XML file - try to open it with IE and/or Firefox.
    If that doesn't work you know already something is wrong.
    You may try to cut&paste it into notepad and save as UTF-8.
    Then try it out with the Template Builder for Wrod.
    If you can't figure it out and run the report with a SMALL dataset six (ie. 1)
    and post it here.

  • Generate XML for a given XSD

    I have seen this cool feature of generating XML sample file for a give XSD in XMLSPY. Is the same available in XDK by any chance through some PL/SQL API. We have this requirement in our product. Thanks.

    I have not run across this capability, but I haven't read everything.
    tom

  • SAS Token failed with 403 error while generating for each request using ARR module

    Hi,
    We are doing an e-Learning application, which plays a course on the browser (inside a div control). The course contains list of static contents such as html, js, css etc., and media files .mp4. We are hosting the static contents (.html, .js, .css etc) into
    Azure blob storage and media files into Media Service and CDN.
    When user triggers to take a course, the browser first request the Web Role with landing page (Ex: FirstPage.html) and with Course Unique Id - Ex:
    https://cloudservice1.cloudapp.net/course/courseid/firstpage.html. We have written a custom ARR Module (http://www.iis.net/learn/extensions/url-rewrite-module/developing-a-custom-rewrite-provider-for-url-rewrite-module),
    which receives the request, parse it and generate blob storage url with SAS token using C# code for each file. Then route to blob storage. (we have already passing storage account details to ARR Module using Web.config)
    For single user, the course plays fine. But we do the load testing with > 400 user load (with 5 instances), we are getting many 403 errors (and not all files). If the load is less than 200, we don’t get such issue.
    Also, we are using REST code to generate the SAS token. When the SAS token expiration time extending more than 60 min, getting error “Access without signed identifier cannot have time window more than 1 hour”. As the code is exist in ARR Module, unable to
    refer the Storage Client assembly. This 60 min time interval is for each file request – so there could not be an issue on expiration, but feeling this might be an issue?
    Can you please point me what could be the issue and how to solve this. Is the ARR Module caching the SAS token and providing the same even after the expiration time?
    Many Thanks, Thirumalai M

    hi,
    There is a similar thread (http://stackoverflow.com/a/17572316 ), I recommend you could refer to it.
    And I'd like to know how to set the expiry time in your code, and you could see this page (http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Generate XML file dynamically using java

    Hi,
    I searched on this topic on the net and also in this forum but everything leads to parsing an existing file using JAXP technology. But i need to create an xml file dynamically from the data coming from a different source. I can do it manually by writting the content to a file. But i am sure there is a better way for it. I would be obliged if some one could give me and example java class which produces a simple xml file or direct me to any resource online.
    Thank you in advance.

    Yes you can create the xml file dynamically. Like this,
    BufferedWriter bw = new BufferedWriter(new FileWriter("xyz.xml"));
    bw.write(buffer.toString()); //where buffer is StringBuffer whcih contains the your xml data
    bw.close();
    Remember to close the BufferedWriter, otherwise it will create the file but don't write anything.
    Hope this will help u.
    ....yogesh

  • Using a data file in jsp to generate xml file

    hi
    can anybody help me to
    how to use a data file generated in unix in jsp to generate xml file.
    by using beans i am able to generate the xml.
    thanks in advance.

    You haven't provided adequate relevant information. If you need help provide proper relevant details.

  • How to generate XML file using select files manually option in MOPz

    Hi Guru's!
    Can someone tell me how can I generate XML file not using the calculate automatically option but using select files manually. thanks!

    Hi Maix,
    You may manually add the files into download basket and then approve it.
    Use the SCN document below for the steps.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10b14f0c-b9af-2e10-ba83-f05ebcfbc3c2?QuickLink=index&…
    Hope this helps.
    Regards,
    Deepak Kori

  • Code alteration - Basic problem or XML-RPC?

    I'm trying to alter the following client/server code to create an XML-RPC such that when the client offers an argument eg ?John? then the result of the method call returned to the client would be ?John*John? rather than the result of the equation currently shown.
    I'm not sure if it's just my lack of knowledge or something in the basic data types in XML-RPC
    Any help much appreciated.
    Client
    [ code ]
    import java.util.*;
    import org.apache.xmlrpc.*;
    //simple XML-RPC client that makes an XML-RPC request to a Server
    public class XMLRPCClient {
    public static void main(String args[]) {
    try {
    // Specify the server
    XmlRpcClient server = new XmlRpcClient("http://localhost/RPC2");
    // Create request
    Vector params = new Vector();
    params.addElement(new Integer(17));
    params.addElement(new Integer(13));
    // Make a request and print the result
    Object result = server.execute("sample.sum", params);
    int sum = ((Integer ) result).intValue();
    System.out.println("Response from server: " + sum);
    } catch (Exception exception) {
    System.err.println("JavaClient: " + exception);
    [ /code ]
    Server
    [ code ]
    import org.apache.xmlrpc.*;
    //XMLRPCServer is a simple XML-RPC server
    public class XMLRPCServer {
    //Start up the XMLRPC server and register a handler.
    public Integer sum(int x, int y) {
    return new Integer(x+y);
    public static void main (String [] args) {
    try {
    System.out.println("Attempting to start XML-RPC Server...");
    WebServer server = new WebServer(80);
    server.addHandler("sample", new XMLRPCServer());
    server.start();
    System.out.println("Started successfully.");
    System.out.println("Accepting requests. (Halt program to stop.)");
    } catch (Exception exception) {
    System.err.println("JavaServer: " + exception);
    [ /code ]

    cause of the error:
    After some extensive research on the web, it is found that that you are using an UTF-8 encoded file with byte-order mark (BOM). Java doesn't handle BOMs on UTF-8 files properly, making the three header bytes appear as being part of the document. UTF-8 files with BOMs are commonly generated by tools such as Window's Notepad. This is a known bug in Java, but it still needs fixing after almost 8 years...
    There are some hexadecimal character at the begining of the file, which is giving error"content not allowed in prolog". No solution is provided for this till now.
    Example: suppose your file start with <?xml version="1.0" encoding="utf-8"?>. you will see this in a editor. But if you open this file with any hexadecimal editor you will find some junk character in the start of the file.that is causing the problem
    solution:
    1) convert your file into a string and then read the file from the forst character that in my case the first character will be "<".so the junk character will not be there in the string and then again convert it into a file.
    2) some people are able to solve this problem by changing the "utf-8" to "utf-16". remember only in some case. some times this problem also exits in "utf-16" file.
    3) some are able to solve this problem by changing the LANG to US.en.
    4) If the first three bytes of the file have hexadecimal values EF BB BF then the file contains a BOM.so you can also handle by your own.
    5)Download a hexadecimal editor and remove the BOM.
    6) In case you are not able to think furthe then please to more research in internet may be you find some other solution to this problem. But These solution are some type of hack not exactly a solution.

  • XML-RPC

    Hi all
    Can PI constructs a XML-RPC request message?
    How to do that? Please guide me.
    Thanks

    Hi,
    do chk this links
    Using XML-RPC in NetWeaver
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00c36ef6-dab9-2910-6ca9-a96b820de582
    Regards
    Sampath

  • I know nothing about XML-RPC-Plz help

    First of all let me tell you that I am fairly new to XML and XML-RPC and how to parse and manipulate it in java.
    So please prepare yourself for some stupid questions and spare me for that;P.
    Here is my task, which I still have no exact idea that how to do it?
    Ive been told that this is our XML-RPC request is something like this
    <?xml version="1.0"?>
    <methodCall>
       <methodName>examples.getStateName</methodName>
       <params>
          <param>
             <value><i4>41</i4></value>
             </param>
          </params>
       </methodCall>Reply will be something like this
    <?xml version="1.0"?>
    <methodResponse>
       <params>
          <param>
             <value><string>South Dakota</string></value>
             </param>
          </params>
       </methodResponse>and the language is JAVA.
    Now please tell me that, if I am using Java as my programming language and someone tells me all that I specified above, will the communication occur through java programms as all the tutorials specify?
    OR
    Do I need to send the simple XML file to the server and will receive another XML response file in return ?
    Another question
    If Java does every thing, then what is the use of giving XML request and response format?

    If Java does every thing, then what is the use of
    giving XML request and response format?Java does not do everything . Here is an illustrative example.
    You need to get information from the XYZ server in China and use it to calculate a formula. Once the formula is calculated, you need to send the calculation to a server in Denmark.
    The server in China is a .NET application.
    The server in Denmark is a Perl application.
    Your server in Kuwait is written in Java.
    You send the XML request to the .NET application.
    The .NET application processes the request and sends you an XML response.
    Your server then does something with the response and sends a second XML request to Denmark.
    The Perl application in Demark processes your request.

Maybe you are looking for

  • Multiple lines for field description in ALV

    Hi , Is there any way to display the field description in  multiple lines in ALV grid . Regards, Pradipta

  • How do I remove an old - unworking computer from my home sharing  account

    I recently had a PC expire.   It was on my list of computers that made up my home sharing account. I need to remove that old computer from that account so that I can add the new computer. The old computer does not work anymore so I cannot access the

  • Restart: Outbound Error in SXMB_MONI

    Hi ALL I have an error in SXMB_MONI in outbound status. couldnt see any worklogs in PE also. The message status shows success but error in outbound. <u>Howto restart the message.</u> 1. IP is 0 in sxi_cache 2. CC configuration are correct thkx Prabhu

  • Editable field gives wrong value in report.

    Hi, I have report with some editable fields. I am using apex_item for one editable select list. I gave functionality to update row by providing go button. when user clicks on go button, I sends page by using javascript dosubmit which updates values i

  • SM59: Remote Log on: nothing happens

    We have the problem to access remote a SAP system from another SAP system (SOLMAN) via SM 59 --> Remote Logon. Following was allready done: - the same user is exist on both system - the appropriate user in SM59 has S_RFCACL object - the settings in S