Flex services with several types of return
Hello
We create a webapplication with flex and php.
Everything works fine, until we got to the part of the library of the application.
Each service has so far had only 1 return type (for example: user, group,...)
Now for the library, we want to return a collection of ArrayCollection of different types of objects. To be more precise the LibraryService must return a collection ArrayCollection containing objects of folder and file.
But how to configure this in Flex (Flash Builder 4 (standard))?
So far it converts all objects of type Object, I really wish it was the folder or the file
The only solution we can think of right now is to create a new library object which will contain 2 ArrayCollections, file type and file type. This might work of course, but I wonder if there is a better solution for this OR that I can configure several types of return for a service.
Ideas/advice is greatly appreciated.
Look at Zend or AMFPHP.
Tags: Flex
Similar Questions
-
Error creating service with record type as a return type
Hi, I tried the following code to get the nth highest sal using the service and the record type.
The lot above is createdCREATE OR REPLACE PACKAGE pack_rec_cur AS TYPE rec_type IS RECORD ( name EMP.ename%TYPE, sal EMP.sal%TYPE); END;
The above function is errorsCREATE OR REPLACE FUNCTION fun_rec_cur(n INT) RETURN pack_rec_cur.rec_type AS rec pack_rec_cur.rec_type; CURSOR cur_rec IS SELECT ename,sal FROM emp WHERE sal is not null ORDER BY DESC; BEGIN OPEN cur_rec; FOR i IN 1..n LOOP FETCH cur_rec into rec; EXIT WHEN cur_rec%NOTFOUND; END LOOP; CLOSE cur_rec; RETURN rec; END;
Could you please correct me where I am wrongLINE/COL ERROR -------- --------------------------------------- 4/7 PL/SQL: SQL Statement ignored 7/16 PL/SQL: ORA-00936: missing expression SQL>
Thank you.By clauase missing column name in the order. Is it ename desc?
CREATE OR REPLACE FUNCTION fun_rec_cur(n INT) RETURN pack_rec_cur.rec_type AS rec pack_rec_cur.rec_type; CURSOR cur_rec IS SELECT ename,sal FROM emp WHERE sal is not null ORDER BY ENAME DESC; ---added ename BEGIN OPEN cur_rec; FOR i IN 1..n LOOP FETCH cur_rec into rec; EXIT WHEN cur_rec%NOTFOUND; END LOOP; CLOSE cur_rec; RETURN rec; END; ------------ -OUTPUT ----------- SQL> SET SERVEROUT ON SQL> SQL> DECLARE 2 rec pack_rec_cur.rec_type; 3 BEGIN 4 rec := fun_rec_cur (6); --you get the 6th record in order of ename desc 5 DBMS_OUTPUT.put_line ('ename::' || rec.NAME || ' sal ::' || rec.sal); 6 END; 7 / ename::MARTIN sal ::1250 PL/SQL procedure successfully completed. SQL>
-
DLL in VC ++ with several types of data
Hello world
I'm new on the Forum of Labview and Labview fairly new as well.
I have some errors in my VI and I can't quite understand what I'm doing wrong. I have a DLL written in VC ++. There is a function in the DLL that I'm shouting in VI, but the function contains variables that are composed of multiple data types.
These are my variables in the code for VC ++:
typedef struct
{
Double depth;
Double dWidth;
Double dHeight;float fVolume;
float fSurfArea;int iGood;
int iBad;
} box_tThen I have my function that calls these variables:
_declspec (dllexport) int _cdecl ACL_GetData_Array(void *dataArray)
{
arrayStructure-> rockia = (array_t *) dataArray.
PrintGeneral ("table pointer value to retrieve data. ("\n new address.");
PrintAddr ((int) arrayStructure-> rockia);
arrayStructure-> Philippe-> depth = 30.3;
arrayStructure-> Philippe-> dHeight = 40.4;
arrayStructure-> Philippe-> dWidth = 50.5;
arrayStructure-> Philippe-> fSurfArea = 60.6f;
arrayStructure-> Philippe-> fVolume = 70.7f;
arrayStructure-> Philippe-> iBad = 80;
arrayStructure-> Philippe-> iGood = 90;
Return (int) arrayStructure-> Philippe;
}Now my question is if I just want to read these variables and display them in Labview, how can I do? So far, I can get double appears correctly, but I did have a success with floats and integers (ints). If this has been posted by another user, I'm sorry to ask the same question. I searched for a few days now and have not encountered any useful information.
Thank you
George
ghatz85 wrote:
If possible, can you save the VI changed in version 8.5.1? LabVIEW won't let me open the files attached to the forum.
I'm sorry. For some reason, I thought that the originals were in 2009 LV. Version 8.5 is attached.
Insofar as the structure of data in the DLL, the programmer had rearranged the types of data to go from the largest to the smallest.
I was talking of having a structure within a structure and call it a "table".
-
Hello everyone!
I used JAXWS to create WSDL from a file of Jehovah's witnesses.
It's my TJ:
-----------------------------------------------------------------------------------
package ws;
Import javax.jws.WebService;
Import javax.jws.WebMethod;
ws import. MyDataType;
*@WebService*
* public class MyWebService {*}
public MyWebService()
*{*
*}*
*@WebMethod*
public MyDataType MyWebMethod (MyDataType mdt)
*{*
* / / mdt.setS ("I got it!"); *
return mdt;
*}*
*}*
-----------------------------------------------------------------------------------
and this is my type of data:
-----------------------------------------------------------------------------------
package ws;
* public class MyDataType {*}
String ^ s;
public MyDataType()
*{*
*}*
* public String getS() {*}
return s;
*}*
* Sets public Sub (String s) {*}
This.s = s;
*}*
*}*
-----------------------------------------------------------------------------------
and that's my Ant build.xml
-----------------------------------------------------------------------------------
* < by default of the project = "all" > *.
* < property name = "weblogic.jar.classpath" value="D:/Projects/bea103/wlserver_10.3/server/lib"/ > * "
* < taskdef name = "jwsc" classname = "weblogic.wsee.tools.anttasks.JwscTask" > *.
* < classpath > *.
* < path id = "weblogic.classpath" > * "
* < pathelement path = "WEBLOGIC_HOME" / >. *
* < fileset dir = "${weblogic.jar.classpath}" > *.
* < include name = "weblogic.jar" / > *.
* < / fileset > *.
* < / path > *.
* < / classpath > *.
* < / taskdef > *.
* < target name = "all" depends = "clean, build-service" / > *.
* < name target 'clean' = > *.
* < delete dir = "output" / > *.
* < / target > *.
* < name target = 'build-service' > *.
* <!-add jwsc and related tasks here - > *.
* < jwsc srcdir = "" destdir = "wsoutput" > * "
* < jws file = "MyWebService.java" type = "JAXWS" / > * "
* < / jwsc > *.
* < / target > *.
* <!-< target name = "deploy" > - > <! - add wldeploy task here - > <!-< / target >-> *.
* < / project > *.
-----------------------------------------------------------------------------------
I have run the Ant task, but I get this error:
-----------------------------------------------------------------------------------
BuildFile: build.xml
clean:
build service:
[jwsc] TJ: processing module /MyWebService
[jwsc] The analysis of source files
[jwsc] The analysis of source files
[jwsc] 1 TJS files processing for the module /MyWebService
* [jwsc] [JAM] WARNING: could not resolve class MyDataType *.
[jwsc] TJ: C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\MyWebService.java valid.
[jwsc] Treatment of the web services JAX - WS 1...
* [jwsc] error: couldn't get TypeDeclaration for: MyDataType apt tour: 1 *...
...................
BUILD FAILED
C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\build.xml:
19: weblogic.wsee.tools.WsBuildException: JAX - WS web services processing error
-----------------------------------------------------------------------------------
Please help me solve this problem.
Thank you
MojirI tried to compile your source code and received the same exception.
However after compiling the MyDataType.java before running the jwsc task, I was successfully able to build the service.Please try the ant script below and let me know the result:
*
* *
**
*
<>
srcdir = "${source.dir}" "
DESTDIR = "${Build.dir} '"
keepGenerated = 'true '.
classpath = "${Class.Path} '"
Debug = 'true '.
verbose = "false" >
Thank you
Sandeep -
I have a file of sample data (we will have the a 'true' at a later date and put in day after that) which includes a header, footer, and 5 types of records, that have different columns and lengths, noticed by the first two characters. The different types of records are not all together. On the contrary, some (in particular, two of these types in this example) are intertwined. I am currently working on a SQL * Loader configuration file when it was suggested that I use external tables. I know very little of either, then I would ask what is the best to use.
Scott@orcl12c > host type test.dat
header line
AB, 123, efg
CD, hij, 456
Scott@orcl12c > type host test.ctl
options (Skip = 1)
load data
in the ab table truncate where table_name = 'ab'
fields ended by ',' trailing nullcols
(table_name filler position (1), col1, col2)
in the cd table add where table_name = 'cd'
fields ended by ',' trailing nullcols
(table_name filler position (1), col3, col4)
Scott@orcl12c > create table ab
2 (col1 number,
3 col2 varchar2 (8))
4.
Table created.
Scott@orcl12c > insert into ab values (1, 'old data')
2.
1 line of creation.
Scott@orcl12c > create table cd
2 (col3 varchar2 (8))
3 col4 number)
4.
Table created.
Scott@orcl12c > insert into cd values ("old data", 1).
2.
1 line of creation.
Scott@orcl12c > commit
2.
Validation complete.
Scott@orcl12c > host sqlldr scott/tiger control = test.ctl data = test.dat log = test.log
SQL * Loader: release 12.1.0.1.0 - Production on Thu Mar 27 13:11:47 2014
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Path used: classics
Commit the point reached - the number of logical records 2
Table AB:
1 row loaded successfully.
Table D:
1 row loaded successfully.
Check the log file:
test.log
For more information on the charge.
Scott@orcl12c > select * AB
2.
COL1 COL2
---------- --------
EFG 123
1 selected line.
Scott@orcl12c > select * from cd
2.
COL3 COL4
-------- ----------
old data 1
hij 456
2 selected lines.
-
Maximum number of user defined dimensions for Hyperion application with several types of plan
Dear,
I know that the maximum number of dimensions is 20 for an application and for better performance, we shouldn't have more than 12 years, but if we plan different types? I found the below in the psb user guide:
"Applications are supported up to 20 dimensions. However, optimal performance, not more than 12 dimensions must be attributed to each Type of Plan. »
I have therefore 20 dimensions by plan type, or application? and that optimal performance it should be 12 dimensions by plan type, not by the application?
Any advice, please?
Thank you
Hello
The limit is for a planning application for a type of plan... You can add dimension to choose to exist for a type of plan in particular.
All members of custom dimension that there will be for only this type of regime...
Kind regards
Sourabh
-
ADF page call Web Service with several params the right way
Hello
I use JDev 11.1.1.4.0.
I have a web of e-mail notification service which takes 4 parameters, to, subject and body. What I need to do, it's at the end of each "commit", calling this web service to send a notification to a group of viewers telling them a new record has been created. Here are the steps of my work to make it work:
1. creates a data control of web service using WSDL email notification.
2 drag - move the control of data on page jspx as a parameter in the ADF.
3 set the Visible of the presentation of the Panel shape to "False" so that the control does not appear.
4. in a backingbean where is the 'onSave()' method, I put the code to call the web service.
This code works, but I don't know if I'm doing things. For some reason, there is a better way to achieve what I need.// in onSave() method after successful commit ValueExpression veFrom = efactory.createValueExpression(elctx, "#{bindings.from.inputValue}", Object.class); veFrom.setValue(elctx, "[email protected]"); ValueExpression veTo = efactory.createValueExpression(elctx, "#{bindings.to.inputValue}", Object.class); veTo.setValue(elctx, "[email protected]"); // omitted rest of the params for brevity OperationBinding method = bindings.getOperationBinding("process"); method.execute();
Thank you very much in advance for your comments francs and suggestions.
Bones Jones
Published by: Bones Jones on April 29, 2011 06:44Check out this blog of Shay - which describes exactly the same scenario:
http://blogs.Oracle.com/Shay/2009/07/java_class_data_control_and_ad.htmlInstead of setting the visible property of panelFormLayout to false, the author removes the user interface components unwanted on the page in step 7)
7. deletion of a component of a page JSF without deleting is mandatory
Thank you
Nini -
FileSelectPopup, several types with the same extension
Hello
When you use a popup of file selection with several types of files for a SAME extension, such as:
FileSelectPopup ("", "*.tiff (8 bits) ', *.tiff *.tiff";(16 bit) "(8 bits)," save under ", VAL_SAVE_BUTTON, 0, 0, 1, 1, file");
Y at - it no way of knowing what 'Save as type' has been selected by the user on the popup?
(win7x86; 2010 CVI)
see you soon,
DIZ
None that I know.
In your case, you will need to review the content of the actual file to discriminate between the different types available: I guess that's what programs focus on the image. A tiff file should have a header that specifies what tye of image is stored in it.
-
Firefox crashes in typing or by clicking check box or the radio button, even with all the plugins / extensions disabled, then deleted. Sometimes it hangs for five minutes. I checked the PC with several types of scanners of evil-ware, but none to be found. All hidden and deleted cookies, all DELETED & extension plugins. Remove all instances of Firefox PC and registry, then restored to bookmarks. The only thing that I did not is to remove and reinstall not my favorites.
Windows Vista (yes I know) and FF 13.0.1Try disabling hardware acceleration in Firefox.
- Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.
- https://hacks.Mozilla.org/2010/09/hardware-acceleration/
-
With the help of a user defined type as a return type of function with a type of object
Hi, I created my own data type of table I want to use as data type back to a member function of an object type that I created.
I work in an environment of 10g.
The code I used looks like this:
create or replace
Dim p As Package as
type p_rec is (number of v1);
type p_tab is table of the p_rec;
end p;
/
CREATE or REPLACE TYPE p_ot () AS OBJECT
/ * some statements * /.
NO DEFINITIVE MEMBER FUNCTION p.p_tab RETURN foo
);
/
When I try to compile p_ot I get an error: Error (5.40): PLS-00201: identifier 'P.P_TAB' must be declared.
I don't know the syntax is correct so I must be missing something, amy hepl would be great.
See you soonYou can define types of objects
create type p_rec as object ( v1 number ); create type p_tab as table of p_rec;
They can be used inside the package (p) in your example) as well as defined in the package.
In this case, there will be no problems with create typeCREATE TYPE p_ot AS OBJECT ( /* some declarations*/ NOT FINAL MEMBER FUNCTION foo RETURN p_tab );
-
problem with several Referral Services
Hello
Can someone help me regarding multiple presentation services with different servers as services presentation url should be like
http://localhost1:9704 / analytics and
http://localhost2:9705 / analytics_test
I made up the different port numbers, by deploying analytics_test in enterprise manager and changed the port number in the web.xml file and created again another instance configuration file with changed DSN name and port listening and also changes in xmlp-server - config.xml and bioffice.xml but I am struck now, host names where should I make changes so that I get
localhost1 and localhost2?
Thank youIf you want to work on the test environment on your own computer, you can follow the instructions in the link above:
http://bvellinger.blogspot.com/2008/01/OBIEE-10132-and-multiple-presentation.htmlThen, you must edit the file:
C:\WINDOWS\system32\drivers\etc\hostAnd change it like this:
127.0.0.1 localhost1 127.0.0.1 localhost2
A ping and then return a response:
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Nicolas>ping localhost1 Pinging localhost1 [127.0.0.1] with 32 bytes of data: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Ping statistics for 127.0.0.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms C:\Documents and Settings\Nicolas>ping localhost2 Pinging localhost2 [127.0.0.1] with 32 bytes of data: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Ping statistics for 127.0.0.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms C:\Documents and Settings\Nicolas>
-
Original title: fix the system
While the site of the car got several popup windows "Security Fix" indicating several issues w/computer & scan to see what they were. Do that & came back with several "critical" errors & several "warnings" says had to buy the program to correct. Then stop computer & when turned on the next morning the only office was trash & start menu is empty with the exception of all programs. Went to windows defender for all programs & said it was off? I didn't turn it off & when trying to turn back & says cannot open program, error 0x800106ba. Help!
Do you have any antivirus, in addition to Windows Defender?
System Fix is a fake program aimed at obtaining the payment card information. If you have used your card with it, contact your card provider immediately.
There are instructions to remove the difficulty here:
http://www.bleepingcomputer.com/virus-removal/remove-system-fix
Use only written instructions. Do not download anything from advertising on the Web site.
This program can damage your computer and the removal instructions may not be completely effective.
-
Why search results list of files under several types of files
When I use the search for windows 7, the returned files are listed as several types of files that are not relevant.
In other words, a Word document will return in the results of research as a 'Document' and as a 'video' and an 'image' and 'music '.
The documents do not have no more any music incorporated, photos, objects and videos.How do I put the research so that Windows 7 do not think that the documents are bad or several types of non-relevant files.
Hi Wintomac,
I see that the search results are not relevant. I'll help you with this problem.
1. What is the brand and model of the computer?
2. what security software is installed on the computer?
3. have you made changes on the computer recently?
4 is the computer connected to a network domain?
Method 1.
Run this correction and verification.
Difficulty Windows Desktop Search when it crashes or no results: http://support.microsoft.com/mats/windows_search/en-us
Method 2.
To resolve these issues, follow these steps:
Click Start, click run, type cmd, and then click OK.
Type the following commands and press ENTER after each command:
regsvr32 jscript.dll
regsvr32 msxml.dll
regsvr32 vbscript.dllRestart the computer.
Method 3.
A clean boot to test if any element of service or third party application startup is causing this issue.
How to troubleshoot a problem by performing a boot in Windows Vista or Windows 7:http://support.microsoft.com/kb/929135
Note: Once you have finished troubleshooting, follow step 3 in the article to start on normal startup.
Method 4.
You can run the Microsoft Safety Scanner to make sure that the computer is virus-free.
Microsoft safety scanner: http://www.microsoft.com/security/scanner/en-us/default.aspx
Warning of Security Scanner: there could be a loss of data while performing an analysis using the Microsoft safety scanner to eliminate viruses as appropriate.
You can read these articles and check if it helps.
Problems with search
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-searchingSearching in Windows: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/searching-in-Windows-frequently-asked-questionsImprove Windows searches using the index: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/improve-Windows-searches-using-the-index-frequently-asked-questionsI hope this helps.
-
have a multi-record with several unrelated elements blocking, filled by simply calling
Forms of oracle, I have a form with a block of several recording, with several unrelated elements.
One of these non-is a basic formula element.
The formula for this article fills the others not consolidated items.
A procedure with several out parameters is called.
For example
: cmr.id (now the unique id of a database record)
: cmr.unbound_dummy, with the formula f_fill_blk_unbound_items(:blk.id)
: cmr.unbound_adres
: cmr.unbound_contactperson
function f_fill_blk_unbound_items (p_id in customers.id%type)
Return number
is
number of l_rc;
Start
customer_pck.get_adres_and_contactperson
(p_id = > p_id - IN)
, p_adres = >: cmr.unbound_adres - OUT
, p_contactperson = >: cmr.unbound_contactperson - OUT
);
Return (0);
end;
QUESTION: How can I do something similar in the APEX; have a blocking of multi-record with several elements not related, filled by calling a procedure with several out parameters?The suggestion refers to functions in pipeline
http://www.Oracle-Developer.NET/display.php?ID=207This will allow you to select your information you need in a query like
SELECT * FROM TABLE(table_function)
It should also more powerful than the example of forms.
Scott
-
problem with the type of local and global
Hi the gems...
I have a plsql package. In the package, I defined a proc that takes two input parameters of type simple number and a parameter of a type of output collection.
create or replace package pack_1 as body
procedure proc_1 (p_number1 in number, p_number2 number, p_tt_table to tt_table) as
v_tt_table tt_table:=tt_table();
type c_ref_cursor is ref_cursor;
v_c_ref_cursor c_ref_cursor;
v_sql varchar2 (20000): = < a large sql using bind variables p_number1 and p_number2 >
Start
Open the v_c_ref_cursor for v_sql using p_number1, p_number2;
loop
extract the v_c_ref_cursor in v_tt_table;
When the output v_tt_table.count = 0;
for idx in 1.v_tt_table.count
loop
< business logic >
end of loop
end loop;
close v_c_ref_cursor;
< excpetion_block >;
end;
< several codes for the rest of the package >
When I execute the proc_1 then he throws me error of data type incosistent while to fetch the v_c_ref_cursor of cursor in the v_tt_table variable.
ORA-00932: inconsistent data types: expected - was -.
But I have checked that the output of the query is similar with the type of variable.
Now, a few facts: the tt_table of the user-defined table type is made from ot_table (create or replace tt_table to ot_table Board).
The parent type i.e. ot_table has the same columns of this query in v_sql my proc.
The ot_table and the tt_table are global types.
But when I did these two types as local types, then the proc works very well. But I need them as global types only according to the condition in java.
Please help me. The database is 11 GR 2.
Thanks in advance.user12780416 wrote:
I'm trying to keep it in the simplest form... Please take a look...
Ah... Easy to solve.
The projection of SQL must be an object of type ot_test_type for extraction in bulk work.
Your projection of SQL look like this:
cursor c1 is select object_name from user_objects;object_name is a string - it is not of type ot_test_type.
You must change the projection to return ot_test_type. This is done by using the default constructor for that type of object.
For example
cursor c1 is ot_test_type (object_name) select as the user_objects OBJECT;He may now be in bulk recovered in tt_test_type.
Maybe you are looking for
-
How to restore your ipod I called and they told me to download the new version of Itunes and I did it I have a password I do not remember
-
Grrrrrrr family calls &; text confusion!
Someow to help my wife download the most recent update ive messed up its settings. Accordingly, I have also all its texts and vice versa. On our two phones if we send the texts we also receive a copy. Sporadic opportunities, it will receive calls and
-
I want to know if my office is compatible with a finger digit usb drive.
-
3241 GW ISDN with CUCM 10.5 or VCS
Hi all What is the best practice to deploy ISDN GW 3241. It connects with CUCM or VCS control? How to connect it with CUCM or VCS? Kind regards
-
How to start a form of troubleshooting?
My client and I are having trouble getting this form to work. It is intended to be downloaded, completed and saved, but the fields are easily fillable on-screen. I have (tried to) enable advanced features.How can I start this diagnosis? It would be e