XML encoding for type XML B/L transaction property

I need to change the XML encoding type from UTF-8 to UTF-16 for XML documents being sent to an external system via the web service action block. Is there any way to change this encoding in XMII?

Musarrat,
Of course it's possible....
Tim,
Instead of using the WebService action us the Post action and set the body of the post to be the WebService SOAP XML.  Since the operation of a WebService and POST are the same thing behind the scenes this will work without a problem.
Hope this helps.
Sam

Similar Messages

  • What is a valid encoding for type byte?

    Hi All,
    I've created a webservice from a custom control which takes a byte[] as a parameter.
    For this parameter, the generated jws file prompts for 2 pieces of input, the
    first being the encoding type and the second the data (I assume?) No mater what
    I use for encoding type (UTF-8, ASCII, Base64Binary) I get the following exception:
    .bea.wlw.runtime.core.request.RequestValidationException: Unable to transform
    query arguments to Java arguments
    'UTF-8' is not a valid encoding for type byte
    Caused by: com.bea.wlw.runtime.core.deserialize.DeserializerException: 'UTF-8'
    is not a valid encoding for type byte
    What is a valid encoding type to use for the Workshop generated test webservice?
    Thanks for any help.
    X

    hmmm...I've asked one of the WLW gurus to take a look at your post,
    however in the mean time I would highly recommend a conversation with
    our support group.
    Regards,
    Bruce
    BTW, I don't see 'sourceFile' or byte[] in the attached doc, only an
    integer[]...
    JTI wrote:
    >
    Yes, it is the web service test form.
    For my method parameter 'sourceFile', which is defined as a byte[],
    the generated test form asks for 2 pieces of input.
    I'm assuming the first input is for the soap encoding, and the second
    is for the actual data? What is the exact value I should enter in the
    test form for these 2 inputs? I've tried xs:base64Binary , I've tried
    just base64Binary, I've tried leaving the encoding input blank. It
    works if I leave both inputs blank, but if I enter data into either input
    field I get the following exception:
    com.bea.wlw.runtime.core.request.RequestValidationException: Unable to transform
    query arguments to Java arguments
    'base64Binary' is not a valid encoding for type byte
    Caused by: com.bea.wlw.runtime.core.deserialize.DeserializerException: 'base64Binary'
    is not a valid encoding for type byte
    ... 29 more
    at com.bea.wlw.runtime.jws.request.QueryRequest.resolveArgs(QueryRequest.java:148)
    at com.bea.wlw.runtime.core.request.BaseRequest.validateArgs(BaseRequest.java:304)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:209)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:185)
    at com.bea.wlw.runtime.core.bean.BMPContainerBean.invoke(BMPContainerBean.java:1530)
    at com.bea.wlwgen.LibraryImplTestBMPContImpl.createLibraryItem(LibraryImplTestBMPContImpl.java:40)
    at com.bea.wlwgen.PersistentContainer_cj0dw4_ELOImpl.createLibraryItem(PersistentContainer_cj0dw4_ELOImpl.java:99)
    at com.bea.wlwgen.LibraryImplTestBMPContAdpt.invokeOnBean(LibraryImplTestBMPContAdpt.java:87)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:160)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:159)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:100)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:134)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.dispatch(Dispatcher.java:46)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.exploreExec(HttpServerHelper.java:253)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:570)
    at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    at com.bea.wlw.runtime.core.deserialize.SimpleLiteral.getValue(SimpleLiteral.java:396)
    at com.bea.wlw.runtime.core.deserialize.SimpleLiteral.toJava(SimpleLiteral.java:245)
    at com.bea.wlw.runtime.core.binding.SerializeQuery.unmarshalQuery(SerializeQuery.java:109)
    at com.bea.wlw.runtime.jws.request.QueryRequest.unmarshalArgs(QueryRequest.java:156)
    at com.bea.wlw.runtime.jws.request.QueryRequest.resolveArgs(QueryRequest.java:143)
    Attached is the generated html form.
    Thanks for any help.
    Bruce Stephens <[email protected]> wrote:
    Hello,
    I'm not sure what you are seeing; is this from the web service test
    form? I'm going to guess that it is talking about soap encoding, so
    for
    byte[] it will correspond to the XML Schema xs:base64Binary [1]
    Hope this helps,
    Bruce
    [1]
    http://www.w3.org/TR/xmlschema-2/#base64Binary
    JTI wrote:
    Hi All,
    I've created a webservice from a custom control which takes a byte[]as a parameter.
    For this parameter, the generated jws file prompts for 2 pieces ofinput, the
    first being the encoding type and the second the data (I assume?)No mater what
    I use for encoding type (UTF-8, ASCII, Base64Binary) I get the followingexception:
    .bea.wlw.runtime.core.request.RequestValidationException: Unable totransform
    query arguments to Java arguments
    'UTF-8' is not a valid encoding for type byte
    Caused by: com.bea.wlw.runtime.core.deserialize.DeserializerException:'UTF-8'
    is not a valid encoding for type byte
    What is a valid encoding type to use for the Workshop generated testwebservice?
    Thanks for any help.
    X
    Name: LibraryImplTest.html
    LibraryImplTest.html Type: Hypertext Markup Language (text/html)
    Encoding: base64

  • How to specify the XML Declaration for an XML variable

    I need to set the XML declaration for my XML variable as
    follows:
    var employees:XML =
    <?xml version="1.0" encoding="utf-8"?>
    <employees>
    <employee ssn="123-123-1234">
    <name first="John" last="Doe"/>
    <address>
    <street>11 Main St.</street>
    <city>San Francisco</city>
    <state>CA</state>
    <zip>98765</zip>
    </address>
    </employee>
    <employee ssn="789-789-7890">
    <name first="Mary" last="Roe"/>
    <address>
    <street>99 Broad St.</street>
    <city>Newton</city>
    <state>MA</state>
    <zip>01234</zip>
    </address>
    </employee>
    </employees>;
    However, if I specify <?xml version="1.0"
    encoding="utf-8"?>, I get a design time and compile error. If I
    remove it it works fine. But the server to which I send this XML is
    expecting the declaration. Can somebody help me with this?
    Thanks

    I work mostly with the Java versions of the parser so you'll have to make the translation to C++. As far as I know, you can't use the SAX API to access to the encoding.
    You need to use the DOM along with Oracle's extension to the basic DOM functionality. Oracle's package, oracle.xml.parser.v2 defines a class which implements the Document interface called XMLDocument. This class has a method, getEncoding(), which returns the encoding. You would use the method in getDocument() in the Parser base class inherited by DOMParser to retrive the XMLDocument.
    Jeff

  • XML Parsing for one xml tag value we have issues

    Hi All
    We are getting XML file from External System using XML parser to decode and update Oracle Tables.
    It's working ok for all fields for one field it's working i.e we are not getting any Value
    l_n dbms_xmldom.DOMNode;
    v_service_level VARCHAR2(240);
    Begin
    l_clob := p_clob;
    BEGIN
    -- Create a parser.
    l_parser := dbms_xmlparser.newParser;
    -- Parse the document and create a new DOM document.
    dbms_xmlparser.parseClob(l_parser, l_clob);
    l_doc := dbms_xmlparser.getDocument(l_parser);
    -- Free resources associated with the CLOB and Parser now they are needed.
    dbms_xmlparser.freeParser(l_parser);
    -- Get a list of all the nodes in the document
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc), '/response');
    -- Loop through the list and create a new record
    FOR rec IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
    l_n := dbms_xmldom.item(l_nl, rec);
    -- assign values to the elements of the collection.
    dbms_xslprocessor.valueOf(l_n,'awb/text()', v_awb);
    dbms_xslprocessor.valueOf(l_n,'carrier/text()', v_carrier);
    dbms_xslprocessor.valueOf(l_n,'pieces/text()', v_pieces);
    dbms_xslprocessor.valueOf(l_n,'weight/text()', v_weight);
    dbms_xslprocessor.valueOf(l_n,'weight_uom/text()', v_weight_uom);
    dbms_xslprocessor.valueOf(l_n,'price/text()', v_price);
    dbms_xslprocessor.valueOf(l_n,'code_currency/text()', v_code_currency);
    dbms_xslprocessor.valueOf(l_n,'date_pickup/text()', v_date_pickup);
    dbms_xslprocessor.valueOf(l_n,'account/text()', v_account);
    dbms_xslprocessor.valueOf(l_n,'reference/text()', v_reference);
    dbms_xslprocessor.valueOf(l_n,'instruction/text()', v_instruction);
    dbms_xslprocessor.valueOf(l_n,'delivery_condition/text()', v_freight_terms);
    dbms_xslprocessor.valueOf(l_n,'service_level/text()', v_service_level);
    end;
    for v_service_level we are having issues though external system is sending value but we are not getting any value
    If any fix for this it will be of great help
    Thanks
    Kamalakar.G

    Thanks for the details.
    The following works for me :
    DECLARE
    l_clob clob := '<?xml version="1.0" encoding="UTF-8" ?>
    <response>
    <status>OK</status>
    <code_shipment>9387073</code_shipment>
    <reference>22263480</reference>
    <awb>GE466503605NL</awb>
    <carrier>TNT</carrier>
    <service_level>STANDARD</service_level>
    <pieces>1</pieces>
    <weight>0.32</weight>
    <weight_uom>kg</weight_uom>
    <delivery_condition>CPT</delivery_condition>
    <price>4.92</price>
    <code_currency>EUR</code_currency>
    <date_delivery>17-Feb-2011</date_delivery>
    <time_delivery>13:41</time_delivery>
    <accepted_by>HEEZEN</accepted_by>
    <date_pickup>29-Mar-2011</date_pickup>
    <status_shipment>PLAN</status_shipment>
    <tracking_url>
    <form ACTION="http://www.tnt.com/webtracker/tracking.do?respLang=en&amp;respCountry=US&amp;genericSiteIdent=" target="_new" METHOD="POST">
    <input name="cons" type="hidden" value="GE466503605NL" />
    <INPUT TYPE="hidden" NAME="page" VALUE="0" />
    <INPUT TYPE="hidden" NAME="resplang" VALUE="EN" />
    <INPUT TYPE="hidden" NAME="plazakey" VALUE="" />
    <INPUT TYPE="hidden" NAME="SaformName" VALUE="TRACKER__Finput_html" />
    <INPUT type="submit" name="track" value="Track" />
    </form>
    </tracking_url>
    <date_scan />
    <time_scan />
    <type1 />
    <type2 />
    <scan_location1 />
    <scan_location2 />
    <scan_text />
    <scanned_by />
    <shipment_package>
    <sequence>1</sequence>
    <awb />
    <date_delivery>17-Feb-2011</date_delivery>
    <time_delivery>13:41</time_delivery>
    <accepted_by>HEEZEN</accepted_by>
    <reference />
    </shipment_package>
    </response>';
    l_n dbms_xmldom.DOMNode;
    l_nl dbms_xmldom.DOMNodeList;
    l_parser dbms_xmlparser.Parser;
    l_doc dbms_xmldom.DOMDocument;
    v_awb VARCHAR2(240);
    v_carrier VARCHAR2(240);
    v_pieces VARCHAR2(240);
    v_weight VARCHAR2(240);
    v_weight_uom VARCHAR2(240);
    v_price VARCHAR2(240);
    v_code_currency VARCHAR2(240);
    v_date_pickup VARCHAR2(240);
    v_account VARCHAR2(240);
    v_reference VARCHAR2(240);
    v_instruction VARCHAR2(240);
    v_freight_terms VARCHAR2(240);
    v_service_level VARCHAR2(240);
    BEGIN
    -- Create a parser.
    l_parser := dbms_xmlparser.newParser;
    -- Parse the document and create a new DOM document.
    dbms_xmlparser.parseClob(l_parser, l_clob);
    l_doc := dbms_xmlparser.getDocument(l_parser);
    -- Free resources associated with the CLOB and Parser now they are needed.
    dbms_xmlparser.freeParser(l_parser);
    -- Get a list of all the nodes in the document
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc), '/response');
    -- Loop through the list and create a new record
    FOR rec IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
      l_n := dbms_xmldom.item(l_nl, rec);
      -- assign values to the elements of the collection.
      dbms_xslprocessor.valueOf(l_n,'awb/text()', v_awb);
      dbms_xslprocessor.valueOf(l_n,'carrier/text()', v_carrier);
      dbms_xslprocessor.valueOf(l_n,'pieces/text()', v_pieces);
      dbms_xslprocessor.valueOf(l_n,'weight/text()', v_weight);
      dbms_xslprocessor.valueOf(l_n,'weight_uom/text()', v_weight_uom);
      dbms_xslprocessor.valueOf(l_n,'price/text()', v_price);
      dbms_xslprocessor.valueOf(l_n,'code_currency/text()', v_code_currency);
      dbms_xslprocessor.valueOf(l_n,'date_pickup/text()', v_date_pickup);
      dbms_xslprocessor.valueOf(l_n,'account/text()', v_account);
      dbms_xslprocessor.valueOf(l_n,'reference/text()', v_reference);
      dbms_xslprocessor.valueOf(l_n,'instruction/text()', v_instruction);
      dbms_xslprocessor.valueOf(l_n,'delivery_condition/text()', v_freight_terms);
      dbms_xslprocessor.valueOf(l_n,'service_level/text()', v_service_level);
      dbms_output.put_line(v_awb);
      dbms_output.put_line(v_carrier);
      dbms_output.put_line(v_pieces );
      dbms_output.put_line(v_weight);
      dbms_output.put_line(v_weight_uom);
      dbms_output.put_line(v_price);
      dbms_output.put_line(v_code_currency);
      dbms_output.put_line(v_date_pickup);
      dbms_output.put_line(v_account);
      dbms_output.put_line(v_reference);
      dbms_output.put_line(v_instruction);
      dbms_output.put_line(v_freight_terms);
      dbms_output.put_line(v_service_level);
    END LOOP;
    END;
    /

  • XML Question for web.xml file for LiteWebServer

    Hi,
    I have no clue of wut tags are required in the web.xml file.
    Currently the following code is in my web.xml file and i am trying to run servlets that are located under web-inf/*.class
    Pls tell me wuts wrong....
    Do i need those mime-mapping tags, session and welcome tags.......... ?
    Right now i just want those 2 servlets to work
    And wut is this encoding ="UTF-8" in the first line of the xml file. Wut does that do... ? ARe there any others
    Any help would b greatly appreciated
    Thanks
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app id="WebApp_1">
    <display-name>PDMPortal</display-name>
    <session-config id="SessionConfig_1">
    <session-timeout>60</session-timeout>
    </session-config>
    <mime-mapping id="MimeMapping_1">
    <extension>htc</extension>
    <mime-type>text/x-component</mime-type>
    </mime-mapping>
    <welcome-file-list id="WelcomeFileList_1">
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>HelloWorld</servlet-name>
    <servlet-class>HelloWorld</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>HelloWorldExample</servlet-name>
    <servlet-class>HelloWorldExample</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorld</servlet-name>
    <url-pattern>HelloWorld</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>HelloWorldExample</servlet-name>
    <url-pattern>HelloWorldExample</url-pattern>
    </servlet-mapping>
    </web-app>

    Try putting your servlets in the WEB-INF\classes directory.

  • Env vars for C XML parser

    I have had a lot of problems with the Oracle C XML parser. I have put a question in this forum before about SEGV errors when xmlinit is called but I suspects that somthing else (very mystery thing) is the real cause to this problem.
    For now is status that I always gets error 201 when I calls xmlinit. My question is therefore: I have set the ORACLE_HOME to my Oracle installation directory. Do I have to set any more env var when I use the Oracle C parser?
    null

    Yes! When we get the error code 201 from the parser are an error message displayed. It is nearly always when the function xmlinit is called.
    But we do not always get this error. Sometimes do we get a SEGV signal and a core dump when xmlinit is called. Sometimes does it work perfectly. It can be different from one compilation to another and feels very mystery. I have searched for some error that can cause this in my own code but not found anything yet. My own code are relatively robust with a lot of error checks and I am not sure that it is my own code that fails but it is only my own code I have access to :)
    We used the XML Parser 1.01.0.0 until the last week then we found that there are a newer version available. We are now using the version 2.0.7.0.0 instead but without more success than before.
    What I have done for the parser so far is to copy the files lpxus.msb and lpxus.msg to my $ORACLE_HOME/oracore/mesg directory. I have also set the env vars ORA_NLS, ORA_NLS32 and ORA_NLS33 to my $ORACLE_HOME/ocommon/nls/admin/data directory. But I have got the parser to work without have set this env vars sometimes (and sometimes not) and I am really not sure if I have to set them as it says in the README.
    We are using the parser only to parse our XML configuration file through calls to several get-function in the DOM api. The encoding for our XML file is plain US-ASCII and we have experimented with this encoding in the file (<?xml version="1.0" encoding="US-ASCII"?>) and as a param to the functions xmlinit and xmlparse. We have also tried to call this function with no coding at all (a NULL-pointer), the encoding ASCII and UTF-8 with no more success than before. We continues to more or less randomly get SEGV-error, error 201 or a working program.
    The only params we gives to xmlinit is the errcode (the first param) and sometimes an error message handler function and the encoding. Never any other param.
    I think this was a lot of information but I can give more to anyone who need it to help us to get the parser to work. We have spend a lot of time for this now and we'll possibly make a descision about this parser tomorrow. If we not knows that we can get it to work we have to build an another solution without this parser. But it would be a pity because I like the this parser and its apis (if it works).

  • XML encoding in mail adapter

    Hi,
    i send via E-Mail Adapter an XML File.
    Is there a possibility to change the xml encoding.
    from:
    <?xml version="1.0" encoding="UTF-8" ?>
    to
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    regards,
    robin

    hi
    check the below links
    XI: Sender mail adapter - PayloadSwapBean - Step by step                              
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step                              
    Mail Adapter (XI) - how to implement dynamic mail address                              
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address                         
    Note: reward points if solution found helpfull
    Regards
    Chandrakanth.k

  • What kind of approach for new XML-based clients

    Hi.
    Our firm is using Oracle-technology everywhere, and now we would
    like to find out what kind of XML-based technology would suit us
    best for a new generation of our products.
    Our products are now using old Forms 3-clients and we're doing a
    research on replacing this technology with Internet-based
    clients. Java-clients are one option, but now we'd really like
    to know about thin-clients which wouldn't have much code run on
    the server. We have already done extranet-clients with OAS
    PL/SQL-cartridges and have found out that HTML-clients require
    much work and can't have too much logic on them.
    So, we have already OAS running on Oracle 8.0.5.1.0 -server and
    would like to know what kind of XML-strategy would be a
    reasonable solution. I know about these tools: XML Parser for
    xx, XML SQL Utility for Java, XSQL Servlet.
    -But what would be a reasonable combination of these and what
    kind of thin-client could we use? XSL?
    -What kind of development tools could we use for clients (or do
    we have to use text-editors)?
    -Which of these tools require Oracle 8i and is it stupid to even
    think about XML-based applications without Oracle 8i?
    Thanks,
    Perttu Auramo, Network Banking Systems Oy
    null

    NO. Have you taken a look at the specs page for Mac Pro?
    Or when you go to OWC for Mac Pro Memory.
    http://eshop.macsales.com/shop/memory/Mac-Pro-Memory
    2GB modules are better, especially if you need more than 4GB, but you want to have 4 DIMMs, 4 x 2GB or 4 x 1GB.
    http://docs.info.apple.com/article.html?artnum=304492
    TechWorks:
    http://www.shopatbuffalotech.com/cart/product.php?productid=16655&cat=42077&page =1

  • How to specify XML declaration in an XML Variable

    I had posted this question in the Flex Builder discussion,
    but I am not sure if that was the right board, so posting it again
    here:
    I need to set the XML declaration for my XML variable as
    follows:
    var employees:XML =
    <?xml version="1.0" encoding="utf-8"?>
    <employees>
    <employee ssn="123-123-1234">
    <name first="John" last="Doe"/>
    <address>
    <street>11 Main St.</street>
    <city>San Francisco</city>
    <state>CA</state>
    <zip>98765</zip>
    </address>
    </employee>
    <employee ssn="789-789-7890">
    <name first="Mary" last="Roe"/>
    <address>
    <street>99 Broad St.</street>
    <city>Newton</city>
    <state>MA</state>
    <zip>01234</zip>
    </address>
    </employee>
    </employees>;
    However, if I specify <?xml version="1.0"
    encoding="utf-8"?>, I get a design time and compile error. If I
    remove it it works fine. But the server to which I send this XML is
    expecting the declaration. How can I set the declaration?
    Any help or pointer is appreciated.

    I am not able to load the xml. Can anybody figure out the
    problem :
    I have used a LoadXML class :
    package {
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    // Demonstrates the code required to load external XML
    public class LoadXML extends Sprite {
    // The property that will eventually contain the loaded XML
    private var novel:XML;
    // The object used to load the XML
    private var urlLoader:URLLoader;
    // Constructor
    public function LoadXML () {
    // Specify the location of the external XML
    var urlRequest:URLRequest = new URLRequest("novel.xml");
    // Create an object that can load external text data
    urlLoader = new URLLoader();
    // Register to be notified when the XML finishes loading
    urlLoader.addEventListener(Event.COMPLETE,
    completeListener);
    // Load the XML
    urlLoader.load(urlRequest);
    // Method invoked automatically when the XML finishes
    loading
    private function completeListener(e:Event):void {
    // The string containing the loaded XML is stored in the
    URLLoader
    // object's data property (urlLoader.data). To create a new
    XML
    // instance from that loaded string, we pass it to the XML
    constructor
    novel = new XML(urlLoader.data);
    trace(novel.toXMLString()); // Display the loaded XML, now
    converted
    // to an XML object
    And in main.mxml :
    myXml = new LoadXml ;
    trace ( myXml.novel ) ;
    The output is errenous

  • Output encoding for StAX writer

    Hi,
    Can handle StAX automatically the output encoding for the XML? Or must I manually define a PrintWriter with a choosen encoding and set the START DOCUMENT to a corresponding value?
    Thanks,
    Karsten

    I solved the problem. For some reason, the inqmy parser does not work correctly. If I remember correctly, the SapXMLToolkit (from where it comes), is deprecated anyway.
    Instead I use now standard JAXP transform streaming, and that works fine:
          // commented code does not convert german special characters correctly:
          //StandardDOMWriter sdw = new StandardDOMWriter();     
          //sdw.write(odoc, out, null);
         // Serialisation through Transform.
         DOMSource domSource = new DOMSource(odoc);
         StreamResult streamResult = new StreamResult(out);
         TransformerFactory tf = TransformerFactory.newInstance();
         Transformer serializer = tf.newTransformer();
         serializer.setOutputProperty(OutputKeys.ENCODING,"UTF-8");    
         serializer.setOutputProperty(OutputKeys.INDENT,"yes");
         serializer.transform(domSource, streamResult);                            
    CSY

  • How to pull the root level XML tags in the XML source-SSIS?

    Hi All,
    Can anyone please help out with the following requirement?
    There is a XML file data which I need to pull it to database. Please see the attached XML file.
    Question: When I am trying to pull the root level data (i.e. CreationDateTime and FileNumber) from XML source in the dataflow, the respective tag is not seen in the input. Can anyone help me how can I get those values in my input to pull the data to Database?
    Thanks & Regards,
    Sri

    Hi Sri,
    In SQL Server Integrated Services, we can generate XML Schema (XSD) file based on a XML file with XML Source Editor. For more details, please refer to the following steps:
    Double-click the XML Source in the Data Flow Task. 
    Browse the XML file for the XML location.
    Click the Generate XSD button to generate an XSD file.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Xml output for non-built-in types generated by autotype

    Hi,
    I created a wsdl and used the autotype and wsdl2service ant tasks to generate
    java files.
    As part of my service, I want to log output in xml format of the data received.
    I can write my own serialization, or use the code that was generated by autotype.
    I would rather not write my own. I want to use the code generated by wsdl2service.
    Trouble is I can not find a javadoc nor a sample code segment that shows how!
    Call me dense, but I've spent several hours on BEA web pages looking for answers.
    This is what I found, but I could not get to work for various reasons:
    XML streaming: I have a codec (generated by autotype ant task), but it requires
    a SerializationContext. Where do I get a Serialization Context? I think serialize
    is a callout from WS and not for applicaiton code to call.
    javax.xml.rpc.encoding.Serializer: An object of this type is made available by
    AbstractCodec (base class of generated code, but how is this class used?
    [Sorry if you've seen this posting a couple of days ago on interest.xml newsgroup.
    I didn't intend to repost but due to lack of response there, I thought this newsgroup
    was more appropriate and read more.]
    Thanks,
    John

    manoj,
    Thanks for the help.
    Sample 4 tells me that there is no code generated that I can use to write out
    my non-built-in datatype to xml. For each of my non-built-in datatypes, I will
    have to hand write such code, or use a handler.
    John
    "manojc" <[email protected]> wrote:
    Here is an example of start form WSDL usecase:
    http://www.manojc.com/?sample11
    If you want to log the xml input/output to the web service
    you can use a handler. You need to edit the web-services.xml
    dd file to add handler.
    Here is a example of using handler. But this use source2wsdd
    instead of wsdl2service:
    http://www.manojc.com/?sample4
    Regards,
    -manoj
    "John Franey" <[email protected]> wrote in message
    news:3ef30db2$[email protected]..
    Hi,
    I created a wsdl and used the autotype and wsdl2service ant tasks togenerate
    java files.
    As part of my service, I want to log output in xml format of the datareceived.
    I can write my own serialization, or use the code that was generatedby
    autotype.
    I would rather not write my own. I want to use the code generated bywsdl2service.
    Trouble is I can not find a javadoc nor a sample code segment thatshows
    how!
    Call me dense, but I've spent several hours on BEA web pages lookingfor
    answers.
    This is what I found, but I could not get to work for various reasons:
    XML streaming: I have a codec (generated by autotype ant task), butit
    requires
    a SerializationContext. Where do I get a Serialization Context? I thinkserialize
    is a callout from WS and not for applicaiton code to call.
    javax.xml.rpc.encoding.Serializer: An object of this type is madeavailable by
    AbstractCodec (base class of generated code, but how is this classused?
    [Sorry if you've seen this posting a couple of days ago on interest.xml
    newsgroup.>>  I didn't intend to repost but due to lack of response there, I thought>this newsgroup>> was more appropriate and read more.
    Thanks,
    John

  • TYPES.XML for client generated stubs?

    Hello!
    Does the types.xml file, generated by 'autotype' when the web service is created,
    need to be bundled with the client? If so, where should it go? I tried placing
    into the same package path as the generated client stubs, but that didn't have
    an effect.
    When I generate the web service, the type.xml shows up in WEB-INF/classes ...
    so does that mean the client should have it in the root package?
    Thanks
    -- Jake

    Hi Jacob,
    There are no types generated, because the method of your "backend" component,
    accepts (or returns) an org.w3c.dom.Document. Correct? This basically means that
    the input argument (or return type) can be any XML document, which is why the
    WSDL uses an xsd:anyType :-)
    I don't know about WLS 8.1 SP2, but you will need weblogic.jar in the client's
    CLASSPATH to call a WebLogic Web Service operation, which accepts or returns an
    object that implements the org.w3c.dom.Document interface. This is because the
    webserviceclient.jar (or webserviceclient+ssl.jar) file does not contain all the
    classes needed to marshall/unmarshall an org.w3c.dom.Document. You may also have
    some problems getting a "static" (i.e. stub) JAX-RPC client working. The JAX-RPC
    "dynamic" (i.e. dii) JAX-RPC client will work, "out-of-the-box", if you load the
    type mapping registry with the correct info from the WorkflowService.xml file.
    I have attached a code extract that shows what the DII code should look like :-)
    For the record, the org.w3c.dom.Document object does not travel over the wire
    to the target web service. Just the XML inside it :-) This means that the target
    web service implementation does not need to know that you use an org.w3c.dom.Document
    object to marshall/unmarshall the arguments (or return value).
    Regards,
    Mike Wooten
    "Jacob Anderson" <[email protected]> wrote:
    >
    I tried building the client classes using the web service EAR file, thinking
    that
    it would embed the type information into the client JAR file. Unfortunately,
    no, that did not occur. The type mapping data in the WorkflowService.xml
    found
    in the generated client JAR file contains nothing:
    <wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    </wsdd:type-mapping>
    On the console, when running the client, I see:
    [java] javax.xml.rpc.JAXRPCException: web service invoke failed:
    javax.xml.soap.SOAPException:
    failed to serialize interface org.w3c.dom.Documentweblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface org.w3c.dom.Document class context=TypedClassContext{schemaType=['http://www.w3.org/2001/XMLSchema']:anyType}
    Clearly the client is not able to understand the "anyType" that is used
    in the
    service WSDL to denote the org.w3c.dom.Document type.
    Does the classpath have an impact here? I noticed that the webserviceclient.jar
    is supposedly the only jar needed to run WS clients. Well, I call "setEnv.cmd"
    before I run the ant task to build and test my web service - does that
    have an
    effect? It didn't seem to affect tutorial31 when I ran it this way.
    Any help is greatly appreciated
    -- Jake
    "Jacob Anderson" <[email protected]> wrote:
    Hello!
    Does the types.xml file, generated by 'autotype' when the web service
    is created,
    need to be bundled with the client? If so, where should it go? I tried
    placing
    into the same package path as the generated client stubs, but that didn't
    have
    an effect.
    When I generate the web service, the type.xml shows up in WEB-INF/classes
    so does that mean the client should have it in the root package?
    Thanks
    -- Jake
    [jacob-dii.txt]

  • What is the best type of xml storage for max performance in 9i r2

    We have many schema based xml's of 1MB in xdb (9.2.0.5)
    and our database is getting slower by every new xml
    delete_resource (300 sec) and create_resource (300 sec ) take a long time
    and if I ftp a schema based xml out the xdb takes a long time ( 200 sec )
    Our system works like this , the xml comes in (ftp) ,the xdb validates the xml and then the xml is archived and the
    last step, the xml data is extracted and put in normal tables
    no xml updates or xml constraints
    I have now defined in the schema, one main table and I use oracle types for complextypes and xdb:defaulttable =""
    in 10g I don't have problems, but our production system
    are 9.2.0.5 and it takes a lot work and downtime to change that
    This goes well in 9i by files smaller then 500k
    what is the best schema configuration for max performance ( create / delete resource and ftp out )
    thanx edwin

    I changed
    maxOccurs="unbounded" xdb:SQLName="TRANSACTIONRANGE" xdb:SQLCollType="TPF_MASTER_D_T_RANGE_COLL_01"
    into
    maxOccurs="unbounded" xdb:SQLName="TRANSACTIONRANGE" xdb:SQLInline="false" xdb:defaultTable="TPF_MASTER_D_T_RANGE_TAB"
    this gives me very good performance
    the total run is now 6 times faster
    and to ftp xml out of the xdb takes now 2 seconds

  • How to specify page encoding for XML reports.

    Hi,
    Environment: Apps:11.5.10, Oracle Reports: 10g
    I'm trying to generate XML tags by using a "rdf" report (10g).
    Initially I generated the XML tags before moving the report to server. In the output file I got
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    Then I moved the report to server and made the concurrent program output to XML.
    In the concurrent program output the tag is
    <?xml version="1.0" encoding="&Encoding"?>
    The output shows error
    ===============
    XML Parsing Error: XML declaration not well-formed
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    <?xml version="1.0" encoding="&Encoding"?>
    Its clear that there is something wrong with page encoding format which has to get assigned while run time. But its not happening so.
    How to specify the page encoding format?
    Any help would be appreciated.
    Thank you
    BKR.
    Edited by: BalaKrishna Reddy Avuthu on Aug 14, 2009 2:00 PM

    Remove the encoding so it says:
    <?xml version="1.0"?>
    Also, you will get a similar error if your xml tags for fields contain any special characters like & or #.

Maybe you are looking for

  • Missing Operating System

    I have a Lenovo T500 Thinkpad.  I turned off my laptop and now when I turn on the laptop I receive a message that states "Missing operating system". I do not have any recovery disk or install disk.  How do I fix this error?  The only thing that I hav

  • Flash Player 10.2.159.1: not updating in IE 9

    I have IE 9 and Windows Vista 32 Bit. I am attempting to update Flash to version 10.2.159.1. I went to http://www.adobe.com/software/flash/about/ and clicked on Player Download Center. I selected the update, and Adobe Get Plus appeared. Under Downloa

  • Material created from Nwbc, after activation it is visible in ECC mm03, but cannot be viewed in nwbc display material

    Dear  Freinds, We are creating a Material from Nwbc, after activation and workflow approval it is visible in ECC mm03, But cannot be viewed in nwbc display material. There is some configuration mistake or technical issue? Regards Sukumar

  • Percentage progress in "Collaboration Process modeling"

    Hi gurus, do you have same experience on "Process modeling" utilization? I don't understand how the percentage of completion is manage (automatically, manually,... ?!?!). Seems that I can only change manually the status (Open, in process, completed)

  • Introducing Digital Library!

    We're happy to introduce the new Digital Library at BestBuy.com. With Digital Library you'll get:  • A faster and more reliable downloading experience • Better access to your downloadable digital collection Digital Library is replacing Best Buy® pc a