How to return xmlType from Webservice generated with JDev and PL/SQL
Hi,
I have generated an PL/SQL package that's returning a value as xmlType.
With JDeveloper I'm deploying this package as a webservice. When invoking the webservice from a webbrowser the result looks like:
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:testXmltypeResponse
xmlns:ns1="http://app/webservice.wsdl"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:string">
<ROWSET>
<ROW>
<TODAY>12-OCT-07</TODAY>
</ROW>
</ROWSET>
</return>
</ns1:testXmltypeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The problem is that the <return> tag contains 'xsi:type="xsd:string"'. And now the webservice response is not valid XML because the return value contains XML and not a string.
The solution would be, when invoking the webservice if the xsi:type would be missing from the result tag or would contains xsd:any. I tried editing the WSDL in JDeveloper and changing the type to xsd:any. After deploying and calling the WSDL from the webbrowser it contains this type. But when invoking the method from the webbrowser it still returns xsd:string as type.
How can I get rid of this type in the <return> or change it.
My JDeveloper version is 10.1.3.3.0 The Oracle database and 9iAS are 10.2.
Thanks in advance,
Thijs
What version are you on?
Works fine for me on my 11g:
SQL> create or replace procedure testxml (clob_out out clob)
2 is
3 l_clob clob;
4 l_ctx dbms_xmlquery.ctxhandle;
5 begin
6 l_ctx := dbms_xmlquery.newcontext ('select * from dual');
7 l_clob := dbms_xmlquery.getxml (l_ctx);
8 clob_out := l_clob;
9 dbms_xmlquery.closecontext (l_ctx);
10 end testxml;
11 /
Procedure created.
SQL>
SQL> variable vout clob;
SQL>
SQL> exec testxml (:vout)
PL/SQL procedure successfully completed.
SQL>
SQL> print vout
VOUT
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<DUMMY>X</DUMMY>
</ROW>
</ROWSET>But definitely you can optimize your proc a bit: Try
create or replace procedure testxml (clob_out in out nocopy clob)
is
l_ctx dbms_xmlquery.ctxhandle;
begin
l_ctx := dbms_xmlquery.newcontext ('select * from dual');
clob_out := dbms_xmlquery.getxml (l_ctx);
dbms_xmlquery.closecontext (l_ctx);
end testxml;
/
Similar Messages
-
How to edit data from an IDOC with errors and reprocess it
Hi,
We are working with SAP XI for communicate with an external systems by files (external) to IDOCS (SAP R/3).
Sometimes we need to edit the data from an inbound IDOC, because the external system generates wrong information and that can't be processed directly.
We had seen posts like:
But we wanna to do it with no ABAP editor.
¿Can we change the data from the IDOC in other way (transaction) and reprocess it?
We tried with /WE05, pushing EDIT button, but can't edit the data from the IDOC.
Thanks in advance for your help
Regards,
Federico MartinKeep Looking at forums i founded:
change idoc data
To change the Inbound IDoc,
1)Go to WE05/WE02, enter the Inbound IDoc number and Execute.
2)Double Click on the segment (Page Icon) where you want to change the Data.
3)In the Screen 'Display data record for IDoc' , Go to menu 'Data record' and click on 'Display - > Change'. Then it display a popup information 'Changes to the IDoc are written to the database' , then press enter .
To Process the Edited Inbound Idoc , execute the program 'RBDAGAIE' in SE38 and enter the IDoc number.
Thanks
Sekhar
AND
/people/raja.thangamani/blog/2007/07/19/troubleshooting-of-ale-process
Also if you have something to say about it will be appreciated
thanks -
How to extract data from XML file with JavaScript
HI All
I am new to this group.
Can anybody help me regarding XML.
I want to know How to extract data from XML file with JavaScript.
And also how to use API for XML
regards
NagarajuThis is a Java forum.
JavaScript is something entirely different than Java, even though the names are similar.
Try another website with forums about JavaScript.
For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3 -
How to get string from jtextpane along with its attributes
sir,
How to get string from jtextpane along with its attributes
i,e font,size,style,color etc.
please help me out.
my mail id is [email protected]JTextPane extends JTextComponent
JTextComponent.getDocument()
a Document is a set of Element, see Document.getRootElements(). Each Element has attributes, stored within an AttributSet object see Element.getAttributes()
a Document can also be rendered as a String, see Document.getText( offest, length ), use it with 0 and Document.getLength() as parameters. -
hello! i am from Romania and i want to buy an iphone from the USA site. can i buy it neverlocked? and if it is possible how much should it cost in totat(with transport and the iphone price)?
You can buy a factory unlocked on direct from Apple sim free, make sure you get the right one and not just a contract free one. I am sure one of our US members will be able to give you the price.
-
How to retrive data from selected checkboxes with fieldnames
hi experts,
how to retrive data from selected checkboxes with fieldnames into another alv grid report.(here the fieldnames selected from table names is dynamically).
thankx in advance
rani.k.Hi,
Use user_command in the alv grid and then
do the follwoing code
FORM user_command1 USING lv_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Declaration of local Variables
DATA : lv_ref1 TYPE REF TO cl_gui_alv_grid.
DATA lv_cnt TYPE i. "+INS SUHESH 12.07.2008
Check function code
CASE lv_ucomm.
WHEN 'ONLI'.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = lv_ref1.
CALL METHOD lv_ref1->check_changed_data.
now loop ur final internal table where check = 'X'.
now pass data to other internal table..Now the internal table will be having values that the user selcetd on the screen.
Hope this helps.
Regards,
Nagaraj -
How i can print from my iPad with airport expres
How i can print from my iPad with airport expres
Hi - you would need to purchase a printer that is enabled to print from an iPad, iPhone or iPod - these would include ePrint, iPrint and AirPrint printers - you would then install the appropriate app on you iPad and be able to print - the installation setup for each type of printer would enable you to do this.
-
HT201269 how to transfer music from pc running with windows7 to iphone
how to transfer music from pc running with windows7 to iphone4
Just connect your iPhone to pc and open the iTunes then go to the option showing [add file to library or add folder to library in file option] on your left side of the desktop screen and click on apply and then sync.
That's how I transfer music from computer to iPhone. -
How to transfer contacts from LGENV2 (maybe with USB)?
We recently purchased smart phones for our daughters. They were very quick to get their phones out of the boxes and activate their phones. Well, they hadn't backed up their contacts (or anything on their phones) before activating their new phones. We now can't find a way to use Backup Assistant from the old phones (all are LGENV2s). We do have the USB cable to connect the phones to our PC. We'd appreciate any help. Thanks.
Thanks. I paired them, and tried to send "namecard" (checked all the contacts), but the other device (iPhone 4s) isn't connecting. Any ideas?
Date: Tue, 25 Dec 2012 14:06:52 -0700
Subject: Re: How to transfer contacts from LGENV2 (maybe with USB)? - Re: How to transfer contacts from LGENV2 (maybe with USB)?
Re: How to transfer contacts from LGENV2 (maybe with USB)?
created by archeryhunter1993 in Basic Phones - View the full discussion
You can actually use Bluetooth to transfer contacts! Just make sure they are paired together.
>Personal info deleted<
Message was edited by: Verizon Moderator -
How to display error messages in BAPI_PO_CHANGE with PO and item ?
Hello Friends,
I am calling BAPI_PO_CHANGE to update delivery flag for 50 POs.
Each PO has 4 line items. For ex.
10001 10 5.00 material1 X
10001 20 45.00 material2 X
10001 30 22.00 material15 X u201Cerror
10001 40 45.00 material41 X
10002 10 46.00 material17 X
10002 20 25.00 material3 X u201Cerror
10002 30 75.00 material5 X u201Cerror
10002 40 44.00 material8 X
u2026u2026u2026u2026u2026..
u2026u2026u2026u2026u2026
Now, suppose some line items have error.
I am able to get it from BAPIu2019s RETURN table.
But how can I display that error message with PO and line item?
NOTE : I am calling BAPI_PO_CHANGE for each PO with ITEM internal table.
Please guide me.
Regards
RHThe it_change_return fields parameter and row identify the PO_ITEM.
Try this...
*& Form READ_MESSAGES_OP_CHANGE
BAPI_PO_CHANGE Return messages
FORM read_messages_op_change .
DELETE it_change_return WHERE type = 'W'.
DELETE it_change_return WHERE type = 'I'.
LOOP AT it_change_return ASSIGNING <is_change_return>.
IF <is_change_return>-type = 'E'.
z_error_flg = 'X'.
ENDIF.
v_item = v_item + 1.
it_log_mess-packagenr = v_packagenr.
it_log_mess-object = v_object.
it_log_mess-docnum = v_docnum.
it_log_mess-itemnr = v_item.
it_log_mess-type = <is_change_return>-type.
it_log_mess-id = <is_change_return>-id.
it_log_mess-mnumber = <is_change_return>-number.
IF <is_change_return>-parameter <> 'POITEM'.
it_log_mess-message = text-po1.
REPLACE '&' WITH z_po_number INTO it_log_mess-message.
CONCATENATE it_log_mess-message <is_change_return>-message
INTO it_log_mess-message SEPARATED BY space.
ELSE.
READ TABLE it_change_poitem ASSIGNING <is_change_poitem>
INDEX <is_change_return>-row.
it_log_mess-message = text-pr2.
REPLACE '&' WITH z_po_number INTO it_log_mess-message.
REPLACE '@' WITH <is_change_poitem>-po_item
INTO it_log_mess-message.
CONCATENATE it_log_mess-message <is_change_return>-message
INTO it_log_mess-message SEPARATED BY space.
ENDIF.
it_log_mess-message_v1 = <is_change_return>-message_v1.
it_log_mess-message_v2 = <is_change_return>-message_v2.
it_log_mess-message_v3 = <is_change_return>-message_v3.
it_log_mess-message_v4 = <is_change_return>-message_v4.
APPEND it_log_mess.
ENDLOOP.
ENDFORM. " READ_MESSAGES_OP_CHANGE -
How do I download a slide show with captions and music to my IPad? It is not happening when I sync.
The way that you would transfer photos from iPhoto to the iPad would be to sync with iTunes. Connect the iPad to your Mac with the cable and launch iTunes. Select your iPad under the devices heading on the left. Then click on the Photos tab in the iTunes window on the right. You can select the folder from which you want to sync your photos in the drop down menu bar - so select iPhoto there. Then select the album or events that you want to sync from the windows below. After you have made your selections, click on Apply in the lower right corner of iTunes.
I am not sure how the iPad will handle a slide show in the photos app that was created on your Mac. You can create basic slide shows on the iPad using the different albums, events or faces that you have in the Photo app, but as for the captioning that you have already set up, I don't know how that will work in the app when you sync the slide show. -
How to video chat from a macbook using ichat and an iPad 2 using facetime
How do I set up to do a video chat from a macbook with ichat and lion to an ipad 2 with facetime
You can't - but you can use FaceTime on the iPad and FaceTime on the Mac running Lion.
-
Logs are generating with owner and group as 'root'
Hi,
In our newly installed and configured Oracle application server(10.1.3.5), the logs are generating with owner and group as 'root'.
Location: $ORACLE_HOME/Apache/Apache/logs
-rw-r----- 1 root root 6700 Apr 3 02:03 access_log.1364947200
-rw-r----- 1 root root 430 Apr 3 02:04 error_log.1364947200
We have configured it on port 80. For this the '.apachectl' ownership and permissions are changed as below:
-rwsr-s--- 1 root dba 1703780 Jul 21 2009 .apachectl
Kindly let me know what are the changes to be made, for the logs to be generated with the group as 'dba' instead of 'root'.
Thanks.
Edited by: 985284 on Apr 3, 2013 3:14 AM
Edited by: 985284 on Apr 3, 2013 4:22 AMOk - that is quit weird then. If you want to run the HTTP Server on a privileged port, you basically change the ownership of the .apachectl executable :
cd ORACLE_HOME/Apache/Apache/bin
chown root .apachectl
chmod 6750 .apachectlas per [url http://docs.oracle.com/cd/B25221_05/core.1013/b25209/ports.htm#CIHJEEJH]documentation.
Your user and group directive should be set to :
User oracle
Group dbaUpon starting, the http server would start as root and then switch the effective userid of the process from root to oracle. In the process list (ps -ef | grep httpd), you should see oracle.
Do you have the same configuration and what do you see in the process list? -
One of my dad’s retirement passions is family genealogy and old family pictures. Several years ago I gave my family PSE 4.0 for Christmas so that we could each have backup copies of our dad’s pictures. Usually once per year, I made backup copies of everything and emailed the DVDs to my brothers and sisters. Everyone knows the basic PSE 4 functions and share our dad's enjoyment with the old family photos.
My problem is that my dad is running out of pictures to scan. He wants to “share” or “show” his photos with others so that he can “borrow” their photo albums in order to scan their photos. He plans to attend a hometown high school reunion later this fall. He hopes to "collect" photo albums from cousins and classmates. I have been struggling with this for several days without any good ideas.
The scanned pictures lack any text (added as a layer?) or captions. Creating a slideshow (on my dad’s computer is slow). Also, a slideshow doesn’t let others select individual pictures to save from the slide show
He has old pictures pre-PSE 4 that allowed him to add captions directly to the picture when it was scanned. I never liked this approach as it "destroyed" the actual picture but these old pictures are more easily shared as individual pictures.
How do you share thousands of pictures with text and captions outside of PSE? Can you save or export a composite picture with all the layers?
Thanks in advance for your help and replies.I think it is one of the printer option screens that gives me the choice of tabbed 4x6. All of the choices specifiy HP or Other so I am pretty sure it is printer software that offers me this choice.
Make sure your image has a 4x6 aspect ratio. I have been quite happy with the tabbed 4x6. Just need to remember to load the paper with the tab last.
So, in elements you set to 4x6, in printer options you should be able to choose 4x6 tabbed paper. -
In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?
Sorry, I tried to say your answer solved my question, but I guess I told it that my response to you solved it. Now that I liked it, the solved option doesn't appear.
Maybe you are looking for
-
Problem submitting a popup skillbuilder page
All, I have a edit popup page from the IR on this page i added a non-database item which i want to capture and save into another table via a DA when popup form closes. But when i enter some text into the item and click submit button the entire page g
-
This device cannot start. (Code 10) - XtremeGamer
This device cannot start. (Code 0) - XtremeGamer? System Specs Processor : Core 2 Quad Q9550 2.83 Ghz Motherboard: XFX 780i SLI Ram: 8 Gigs OCZ Reaper @ 800mhz Video Card: EVGA GTX 260 Sound Card: XtremeGamer model: SB0730 Bios Revision: P08 Power Su
-
How to insert data into the existin table dynamically
Hi All.... Iam creating the table dynamically(on the fly) if the the table already exist in the database then the data should be inserted. though the table is created dynamically we dont know the columns of the table.. how i can solve the issue.. pls
-
Inbound processing of INVOIC IDOC without PO number and item check
Hi All, I'm processing an Inbound INVOIC IDOC to create an Intercompany Vendor Invoice against a Purchase order but wish to do process this based on the delivery note number rather than the PO number. The INVOIC IDOC will not contain a reference to t
-
MY SCREEN I DISTORTED!! please help!
My screen is all messed up after a lady used my computer and i tried to go to the display setting and preferences, but the whole system is messed up in the displaying anything