XML as a string through OSB panels, how to send?

I want to send an XML string to WebService via OSB producer, for example:

< osb:sendStringXML xmlns:osb = "http://temp.openuri.org/OSB_String_param_as_XML.xsd" >
< osb:strXML >
* < myxml > *.
* < str = 'test' > 123 name < / str > *.
* < / myxml > *.
< / osb:strXML >
< / osb:sendStringXML >

The needs of producers:
* + < myxml > + *.
* + < str = 'test' > 123 name < / str > + *.
* + < / myxml > + *.

but not:
+ 123 +.

I tried [!] [CData [...]] -does not work!

I tried to add the replace action in the rooting of the BSO and of Expression XQuery/XSLT editor:

fn:replace($myXML,_<,_&lt) -, but it doesn't replace anything.

Any suggestions?

Thank you very much!

Published by: George Moykin 2009-4-27 13:32

Published by: George Moykin 2009-4-27 13:32

Published by: George Moykin 2009-4-27 13:33

Published by: George Moykin 2009-4-27 13:33

George Moykin wrote:
Yes, I tried with fn - bea:serialize($arg-items) but the function adds the namespaces in the nodes, for example:

The XML is:
**
123
*
*

and the producer receives:

*http://temp.openuri.org/OSB_String_param_as_XML.xsd ">."
*http://temp.openuri.org/OSB_String_param_as_XML.xsd "> 123."
*
*

so I'm going to need to remove the + «xmlns...» "+ producer Analyzer does not expect tnem.
Imagine having a hundred knots...

I tried and his works not in my box local. I'm not a guru of xpath. It is not an optimized solution, but a working solution
Assign $body to originalBody
Replace the contents of the node of. in the body with $body / / myxml
Replace the contents of the node of. in the body with fn: replace (fn - bea:serialize ($body), "xmlns:osb ="http://temp.openuri.org/OSB_String_param_as_XML.xsd"", "")

Please escape the "in the second parameter to replace.
Test input data:

     
     
     123
     

     

     

Output

     
     123
     

     

Published by: mneelapu on April 27, 2009 18:25

Published by: mneelapu on April 27, 2009 18:26

Published by: mneelapu on April 27, 2009 18:27

Published by: mneelapu on April 27, 2009 18:29

Published by: mneelapu on April 27, 2009 18:31

Published by: mneelapu on April 27, 2009 18:33

Tags: Fusion Middleware

Similar Questions

  • The volume of the recorded sound is very low when played. I tried to solve the problems through Control Panel of configuration-sound options and increased the volume to 100 form my mic too. All the other volume options, it's 100 too. It has no effect. Hel

    The volume of the recorded sound is very low when played. I tried to solve the problems through Control Panel of configuration-sound options and increased the volume to 100 form my mic too. All the other volume options, it's 100 too. It has no effect. Help needed ASAP

    Hello

    Control Panel - SOUNDS - Audio peripheral devices configuration-manager

    Make sure you write down the description and model double click top - tab drivers - write version. Now
    Click on update drivers who cannot do anything like MS is far behind the certification of drivers. Then RIGHT
    CLICK above and UNINSTALL - REBOOT - this will rebuild the driver stack.

    If your driver shows 06 you have the default windows and part of the question.

    Go to the system manufacturer's website and get the latest Audio/Sound drivers - download - SAVE - go to the place where you
    Put them - right click on Reboot - RUN AS ADMIN -.

    Check the Version on the tab of the driver in the device as a sound Manager often restoring drivers, then install
    the current version. Restart and check after each try, not uncommon to have to run the pilot of 1 to 4 times or more.
    Just make sure that the version you have installed appears in the tab of the driver.

    Then navigate to the site of the manufacturer of the device and search for the drivers more recent and repeat the installation procedure.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    ---------------------------------------------------------

    After the updated driver.

    Click with the right button on the speaker near clock - recorders - right click in the box - check show disconnected devices
    and show disabled devices - check your micro - highlight them, then lower right properties. Do
    of course the appropriate injector is enabled and check that other settings - on the levels tab make sure MUTE is not checked
    and APPLY / OK changes.

    Also in the search for some Audio Manager Panel (perhaps named after the manufacturer of the sound driver). Mine
    is the RealTek Audio Manager, yours can be quite different name if you have one.

    How to activate Audio devices hidden in Vista
    http://www.Vistax64.com/tutorials/143447-audio-device-enable-hidden-devices.html

    Connect one microphone, music player or other audio device to your computer
    http://windowshelp.Microsoft.com/Windows/en-us/help/b0e3d7fb-1b4a-4926-8254-65da289209261033.mspx

    Problems with sound and audio or no sound - a Mr Fixit
    http://support.Microsoft.com/GP/NO_SOUND

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • How to send XML using UTL_HTTP

    I try to drive, how to send XML data to a webserver using UTL_HTTP, but I get no answer

    I need to present the following document to server 'http://api.fastsms.co.uk/api/xmlapi.php' XML instructions are "the XML Document must be posted not coded, with a game like"xml"of UTF-8 character set parameter"

    If I submit the following in their test form XML

    <? XML version = "1.0"? >

    < apirequest version = "1" >

    < user >

    < username > * USER * < / username >

    password <>* password * < / password >

    < / user >

    < application >

    < name > Application example < / name >

    < version > 1.0 < / version >

    < / application >

    < inboundcheck lastid = "10711399" / >

    < / apirequest >

    I get a response XML returns with the messages in my Inbox.

    This is the code I'm trying to use to accomplish the same thing about PL/SQL: I know an answer just as soon as there is simply no content - header information.  What I am doing wrong?

    l_xml VARCHAR2 (5000);

    Utl_http.req req;

    resp utl_http.resp;

    HostHeaderName VARCHAR2 (256); -Name of the response header

    header_value VARCHAR2 (1024); -Value of the response header

    response_text VARCHAR2 (4000); -Response body

    l_url VARCHAR2 (100);

    BEGIN

    l_xml: = ' xml = <? XML version = "1.0"? > ';

    l_xml: = '< apirequest version = "1" >';

    l_xml: = '< user >. "

    l_xml: = ' < username > * USER * < / username > ';

    l_xml: = ' < password > * PASSWORD * < / password > ';

    l_xml: = ' < / user > ';

    l_xml: = '< application >. "

    l_xml: = ' < name > Application example < / name > '.

    l_xml: = ' < version > 1.0 < / version > ';

    l_xml: = < application "/ > ';

    l_xml: = ' < inboundcheck lastid = "10711399" / > ";

    l_xml: = ' < / apirequest > ';

    -Connection HTTP open

      l_url := ' http://api.fastsms.co.uk/api/xmlapi.php';

    Req: = utl_http.begin_request (l_url, 'POST', utl_http. HTTP_VERSION_1_1);

    -Set headers for type and length

    Utl_http.set_header ("req, 'Content-Type', ' application/x-www-formulaires-urlencoded");

    Utl_http.set_header (Req, 'Content-Length', to_char (length (l_xml)));

    -Write the setting

    Utl_http.write_text (Req, l_xml);

    -Reading response file

    resp: = utl_http.get_response (req);

    -Print the response headers

    BECAUSE me in 1... Utl_http.get_header_count (resp) LOOP

    Utl_http.get_header (resp, i, header_name, header_value);

    logging_pkg.info(header_name ||) ': ' || header_value);

    END LOOP;

    -Print the response body

    BEGIN

    LOOP

    Utl_http.READ_TEXT (resp., response_text);

    logging_pkg.info (response_text);

    END LOOP;

    EXCEPTION

    WHEN utl_http.end_of_body THEN

    logging_pkg.info ('end of body');

    END;

    -close the http connection

    Utl_http.end_response (resp);

    EXCEPTION

    WHEN utl_http.end_of_body THEN

    Utl_http.end_response (resp);

    END;

    See you soon,.

    Brent

    The fact that you do not receive a response of HTTP (headers) return, means that a basic communication worked. After reading the response:

    answer: = utl_http.get_response (request);

    Check the HTTP status code:

    If response.status_code...

    You should get a HTTP 200 for a successful call. May be that you run in a 50 x results, which implies a server error has occurred processing your HTTP call.

    Best bet to see the error on the server is the access log and/or Apache error.

    Oh yes - XML submits work very well through UTL_HTTP. Take a look at the sample code in https://forums.oracle.com/message/10450611#10450611

    In what concerns the validation code and using the syntax highlighting - edit, click use the Advanced Editor, highlight the code and click on the > on the toolbar to access the text highlighting the menu. Unfortunately this does not use fixed fonts - again. I hope that this will be corrected as forum features are addressed.

  • If you rent a movie through apple TV, how you see the video rental listed on my MacBook Pro.

    If you rent a movie through Apple TV, how can you see that rented the movie on your list of films on MacBook Pro, for example?

    About rent movies on the iTunes Store - Apple Support

    Note this: If you rented the movie on your device iOS or Apple TV, you cannot move to any other device.

  • Portege M200 Tablet Edition, IIS installation through Control Panel error

    When I try to install IIS through Control Panel of configuration/Add-Remove Windows components it starts to install, it can not find a file called staxmem.dll. Request the CD SP2 Win, even if the file is there in C:\Windows\System and you are trying to retry this help not and if you ignore it sya didn't appear the file as it cannot find.

    Hey there,

    This should fix the problem for you

    1. click on the Windows Start Menu.
    2. click on run.
    3. type
    Esentutl /p %windir%\security\database\secedit.sdb in the Open box, and then click OK.
    4. install IIS through the applet from Control Panel Add/Remove Windows components.

    Hope this helps
    See you soon

  • Google is on my pc, but does not show on control panel how to uninstall it?

    Google is on the pc to my7 but does not show on ~ Panel how to uninstall it?

    Hi GordonFarmer,

    Google is a website and not any program that can be uninstalled from the computer.

    "Your question contains all the required information necessary for us to help you. Please re - write your question, this time make sure you have all the information necessary and we will try to help. »

    See this link for more information on:

    How to ask a question

  • Media Center will not play DVD'sIt tells me to create an association in the set Associations Panel, how can I do this?

    I can't play the DVD on HP my computer smart touch, I get a messgea not saying no association of this program itself an association of Associations of all Control Panel, how can I do this?

    Hi Tom,

    1. What is the format of the file you are trying to play?
    2. you have made no changes to the computer before the broadcast took place?

    I suggest you to set up Windows Media Center as the default device for playback of movies.

    Change the programs that Windows uses by default
    http://Windows.Microsoft.com/en-us/Windows7/change-which-programs-Windows-uses-by-default

  • Parsing XML in a string with kXML

    Hello

    I make a web service call that returns the XML in a string. I need to analyze this with kXML. The Setup is complete, but I can't find any help with regard to the analysis of the chain.

    Any help?

    Thank you

    Teja.

    Have you tried that?

     try{
                HttpConnection connection = null;
                InputStream inputStream = null;
    
                connection = (HttpConnection) Connector.open(URL + MainUI.connectionParameters,Connector.READ_WRITE, true);
                inputStream = connection.openInputStream();
    
                DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                DocumentBuilder builder = factory.newDocumentBuilder();
                Document document = builder.parse( inputStream );
    
                Element rootElement = document.getDocumentElement();
                rootElement.normalize();
                displayNode( rootElement, 0 );
            }
            catch ( Exception e )
            {
                System.out.println( e.toString() );
            }
    
    private void displayNode( Node node, int depth )
        {        
    
            if ( node.getNodeType() == Node.ELEMENT_NODE )
            {
                StringBuffer buffer = new StringBuffer();
                //indentStringBuffer( buffer, depth );
                NodeList childNodes = node.getChildNodes();
                int numChildren = childNodes.getLength();
                Node firstChild = childNodes.item( 0 );
    
                // If the node has only one child and that child is a Text node, then it's of
                // the form  Text, so print 'Element = "Text"'.
    
    if ( numChildren == 1 && firstChild.getNodeType() == Node.TEXT_NODE )
                {
    
                            buffer.append( firstChild.getNodeValue() );
                            buffer.append( "\n" );
                            add( new RichTextField( buffer.toString() ));
                            add( new SeparatorField());
    
                }
                else
                {
    
                    parentName = node.getNodeName();
    
                    for ( int i = 0; i < numChildren; ++i )
                    {
                        displayNode( childNodes.item( i ), depth + 1 );
                    }
                }
            }
            else
            {
    
                String nodeValue = node.getNodeValue();
                if ( nodeValue.trim().length() != 0 )
                {
                    StringBuffer buffer = new StringBuffer();
                    indentStringBuffer( buffer, depth );
                    buffer.append( '"' ).append( nodeValue ).append( '"' );
                    add( new RichTextField( buffer.toString() ));
                }
            }
        }
    
  • I signed up for the photos of 10 a month, and I chose pictures of licenses.  However, when I download the pictures I have a license on my desk always have the "stock" of writing through them.  How can I remove this?  Thank you

    I signed up for the photos of 10 a month, and I chose pictures of licenses.  However, when I download the pictures I have a license on my desk always have the "stock" of writing through them.  How can I remove this?  Thank you

    Follow these steps to download: I downloaded my 10 free images and they all have the Adobe watermark on them, so I can't use them. Why do they have a watermark on them?

  • My file is duplicated in the composition Panel, how to fix this?

    My file is duplicated in the composition Panel, how to fix this? I want to go back to 1 single image of my file, not 2.Screenshot (5).png

    There are two images, I just want a. This has been really annoying me and making it difficult t edit so please help, thank you!

    Forum of the future visitors who might be responsible for the search to find the answer, because you have the same problem, the problem was that he put his audience from two points of view instead of just one. Notice the drop down at the bottom of the composition Panel menu.

  • I lost my tool to inadvertanly panels, how to restore?

    I accidentally lost my tool panels, how di I restore them by default? Thank you.

    You should find the forum for any product it is and post your questions there.

    Here is a link to a page that provides links to all of the Adobe forums...

    The Forum links page: https://forums.adobe.com/welcome

  • I want to get multiple clips horizontally through the frame, how can I control the speed at which the move?

    I want to get multiple clips horizontally through the frame, how can I control the speed at which the move?

    And the second

  • How to send the long string of CFCs without error?

    I posted a different question on this subject, but maybe it was worded too complex, because no one answered. Is there anyway to get a large amount of text in a cfc? If I put in a string of javascript and try to send it, I get a URi too long because the function is transformed into a http GET method and transformed in a url string which obviously does not work because of the limit on the length of the URi.

    Any ideas? A way to call a cfc without using a get? This has been hesitating to my mind for days now - it seems to me there should be a way to get long chains of a cfc. Right? Isn't it? I hope so!! ;)

    Thank you
    Dave

    I found the setHTTPMethod parameter used during initialization of a cfc to cfajaxproxy - you can change it to a POSITION which obviously solves the problem. Adobe, mark POST by default as AJaxCFC, CFAjax, etc.! Maybe theres some reason to have default GET, who knows...

  • How to send a picture by Bluetooth using Windows 8-way

    I selected a photo via pictures tile, drag the right side and choose 'Sharing', I can't find the option to use bluetooth to send the photo to my friend who has the phone bluetooth...

    Note that I added my friend bluetooth device in the "Device" option to the forehand bar already...

    The current workaround is to use the old and no Windows 8 path via Office send the image via bluetooth... But this only defeated the purpose of showing what the new concept in tiles/Start of Windows 8...

    No idea how?

    Thank you!

    It is ACTUALLY how this in Windows 8... no idea what the other poster was thinking, but in most cases, there are a few thing missing in step by step preceding... as moving to the left does not bring to the top of the search appsicon.

    In any case.

    1. Add your BT device through Control Panel-> devices menu and make sure it is coupled.  THIS MUST BE MADE BEFOREHAND.

    2. in the window of your desktop, click on the Bluetooth icon in the notification area (you may need to press the icon of development according to the system icons How are present).

    3. Select "send a file".

    4. Select the device you want to send to, and then click Next. (this is why it needs to be paired FIRST, mentioned in step 1).

    5. you now need to select the window or files.  Locate the file you want to send; Click Open, and then click Next.

    6. If your device is not set to always allow, you will need to accept/approve receive the file on your device.

    7. click on finish once the shipment is completed.

  • How to send a single code of hexa from 1 byte with sending VISA for every 500 ms?

    Hello

    I would like to send only a 1-byte hex code in LabVIEW to an external device using RS - 232 (300 bps, 8 data bits, no parity bit, no flow control) every 500 ms.

    The TX pin on the computer should stay at the logical level 1 once he finished transmitting the 1 byte of data and wait before transmitting again 500 ms.

    I'm building a test below code:

    The output of "Channel 1" will connect in the sending VISA write buffer. (Please note that the code above does not include the 500 ms delay I mentioned. Just ignore for a moment.)

    This code will work like what I described above? I tried on my project, but I was getting weird things on the device.

    Convert the code hex correctly?

    And how to send it VISA pass in the string? Does include the other 'useless' strings with the hex code that I want to send?

    Any help will be appreciated.

    Thank you.

    Hi eddiechai...

    you will get a string of length 2, so you have 2 bytes. You must use the U8 and the cast function type. (see attached photo). You have to disable the stop character to get what you want.

    Mike

Maybe you are looking for

  • A good graphics card?

    Do you know of ANY good graphics card, I'm on a budget of 0-150. I'm trying to run an addon for my game called "Shaders." I usually get 40-60 fps without the addon installed, but with the installed addon it gives me less than 24 frames per second. I

  • Windows media CTR. No sound, but the rest of the programs have sound - help

    I can listen to music through WMP, listen & play YouTube videos on the internet with sound. the only time where the sound does not work is when I use windows media center?

  • Leak of TCP/IP

    I have no idea what "Microsoft Analyser 64 bit" can be. Cyber_Defend_Team recommended. Parser Message from Microsoft: https://www.Microsoft.com/en-US/Download/details.aspx?ID=44226 Not sure that would be the answer because according to OP in their la

  • make a call?

    Hello How to make a call to the blackberry application? V midlet used platformRequest (...). I need such a feature in field of blackberry...

  • It is not possible to view DNG files in the windows Explorer.

    I use a Canon EOS 500 d for all my photos that are managed in adobe Bridge; processed in Adobe CS4. When you look at the RAW images that are stored as DNG in my images (before conversion to JPEG) they aren't recognized and unopenable in windows. Only