CE7.1 SP3/SP4 Application service - complex return type
Hi all,
can anybody tell me how to create an operation with a complex return type (collection) within an application service.I can't find it in the documentation!
I would appreciate helpful answers.
BR,
Martin
Hi,
It isnt that tough ... following are the steps ..
Suppose you want to return a list of customers. First create a structure "Customer". Once that is done create another structure "CustomerList" ... now add "Customer" to it as the attribute. Set the cardinality of this "Customer" attribute as 0-n or 1-n ...
Thats it .. Hope this helps.
Ashutosh
Similar Messages
-
Complex return type for operations in Application Services
Hi all,
I am trying to create a complex return type for one of operation in CAF Application service.I have created a complex dataStructure named productList and added product bussiness object as its attribute with cardinality 0--n. And used product dataType as my return type.
But I am not getting any output but its work fine with cardinality 0--1.
I am using CE 7.1 SP5 trial version.......
Can anyoneHi,
And used product dataType as my return type.
Are you sure you did not forgot to change you operations return type to "productList"?
Best regards
Philipp -
Can "SPML Web Service Complex Data Type field" take multiple values ?
In Generic Technology Connector's -SPML design parameters section, Can we give multiple values in SPML Web Service Complex Data Type field?
If not, how can i call methods directly instead of calling them through a values of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type?
I need 'SPML Web Service Complex Data Type' to hold multiple values.And based on the request it has to initiate appropriate method of action.
Presently i have three methods add,modify and delete which i am calling through a single value of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type.
I want to replace this single value with multiple menthods , so that a direct interaction between the method,OIM and target can be established.
Edited by: 821054 on 16/02/2011 04:23Thanks Robert.
You'll need to create your own interface to the webapp database for those kind of data operations
by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
I'm curious if anyone else has tried this?
Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
Web App item field value (as recorded against the List (Checkbox List) field type:
8294877,8294878
Web App Search value (for this same field):
8294879,8294877,8294885
The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets). -
Easy way to evaluate a complex return type in adf taskflow
Hi,
I use a method call in adf taskflow where I call a bpel ws . This bpel has a complex return type. I want to evaluate in the taskflow router if STATUS==true . Can this be done with pageflowscope (in the method call , I have a return value) or do I need a methodIterator / accessorIterator in the pagedef.
thanks edwin
<?xml version="1.0" encoding="UTF-8" ?>
<JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.47.96"
id="process_Result" Package="nl.ordina.order.view.CreditCheck"
BeanClass="nl.ordina.order.view.CreditCheck.process_Result"
isJavaBased="false">
<Attribute Name="STATUS" IsUpdateable="0" Type="java.lang.Boolean"/>
<Attribute Name="LIMIT" IsUpdateable="0" Type="java.math.BigDecimal"/>
<Attribute Name="REASON" IsUpdateable="0" Type="java.lang.String"/>
</JavaBean>
Here is the methodaction in the pagedef
<methodAction id="process" RequiresUpdateModel="true" Action="invokeMethod"
MethodName="process" IsViewObjectMethod="false"
DataControl="CreditCheck" InstanceName="CreditCheck"
ReturnName="CreditCheck.methodResults.process_CreditCheck_process_result">nice try,
Unfortunately your method is easily circumvented by either 1.) disabling javascript in the browser preferences or 2.) viewing the source code for the page and clearly seeing the required password or 3.) simply bookmarking and visiting protectpage.html
It may take you 5 mins. to password protect your iweb site by using the method you've described, but it would take a visitor less than a minute to bypass the password protection. You need server-side scripting like php to enable real password protection so that information is processed on the server before the page is loaded. -
EJB3 Creating Web Services with Complex Return Types
Hi
Not sure if this is the right place, but hoping someone can help!
I have an entity bean that has a collection (list<Address>) of sub-entities. I have then created a session bean to retrieve the Business and populate it's children.
I then expose this as a web service and although it works and I get appropriate XML out, the WSDL of the deployed service is not as I would like.
For example:
The return type is
<complextype name="Business">
<sequence>
<element name="id" type="int"/>
<element name="addresses" type="ns1:list"/>
</sequence>
</complextype>
<complextype name="Address">
<sequence>
<element name="id" type="int"/>
<element name="addresses1" type="string"/>
<element name="addresses2" type="string"/>
<element name="addresses3" type="string"/>
</sequence>
</complextype>
ns1:list is included as a separate schema as a complex extension of the base "collection"
So, even though the Address type is there it is not referenced from Business.
So, when I'm calling the Web Service from BPEL or ESB, I have not got the ability to map adequately back from the response.
I have tried a whole bunch of ways of getting this to work, but so far to no avail...
Has anyone seen this before, or can I somehow override the mapping from the Entity to the WSDL?
Any help would be most appreciated.
Thanks
ChrisThanks. We are using a Java Proxy to consume the web service as we need to use JAX-WS handlers. We created data control from the service stub that was created by the proxy. Our issue is with the response XML which comes as a complex type. Also, the data control is understanding the complex type and is creating the structure right. The problem is when we drag that control on a JSF page. No data is displayed. We think that we are not traversing the complex object properly which is creating the issue.
I understand that you answer related to the input is applicable to output as well. We can change the structure by flattening it but we thought that in 11G there is some new features where we can use the complex types out of the box without any change. Is that true? Also, any luck in finding the documents (broken links) on your blog page? -
Best Practices Web Services - Complex Data Types
Can someone provide some best practices documentation or info that for customers using CR against web services? Speciffically any information on complex data types such as String[] or Address.
Thanks
Ian SAnd That's what I did.
name.cfc is the component that has complex data types
created. -
Web Services Complex Data Type Query
Newbie trying to understand how to work with Complex Data
Type. Came across the following example in the Dev Guide
What is wrong with Client Code? What am I missing?
Please help
Thanks
PrashanthAnd That's what I did.
name.cfc is the component that has complex data types
created. -
Publish ColdFusion Web Service with Complex Return Type
Hi,
I am working on a project to publish couple ColdFusion
webservices. The cosumer of those webservices is a Java
application.
One of my webservice need return an object. Here are demo
codes:
The returned ojbect is AddressRespond
AddressRespond.cfc:
<cfcomponent>
<cfproperty name="addresses" type="Address[]" />
<cfproperty name="myLearnException" type="MyException"
/>
</cfcomponent>
Address.cfc:
<cfcomponent>
<cfproperty name="city" type="string" />
<cfproperty name="state" type="string" />
</cfcomponent>
MyException.cfc:
<cfcomponent>
<cfproperty name="code" type="string" />
<cfproperty name="reason" type="string" />
</cfcomponent>
If the webservice "cosumer" is a ColdFusion application,
there is no any problems. But the Java application doesn't
understand the type of addresses in the WSDL file which is
gernerated by ColdFusion:
<complexType name="Address">
<sequence>
<element name="city" nillable="true"
type="xsd:string"/>
<element name="state" nillable="true"
type="xsd:string"/>
</sequence>
</complexType>
<complexType name="MyException">
<sequence>
<element name="code" nillable="true"
type="xsd:string"/>
<element name="reason" nillable="true"
type="xsd:string"/>
</sequence>
</complexType>
<complexType name="AddressRespond">
<sequence>
<element name="addresses" nillable="true"
type="tns1:ArrayOf_xsd_anyType"/>
<element name="MyException" nillable="true"
type="impl:MyException"/>
</sequence>
</complexType>
Could anybody give me any idea on how to resolve this
problem?
Thanks!The web service is actually the function, not the cfc and you
didn't show a function.
My own opinion is that since webservices by definition should
be available to any calling app (cold fusion, .net, flash, etc),
whatever gets returned from the method should be as universally
recognizable as possible. This generally means text, numbers,
boolean, or xml. -
Complex Return types from web service
Hi,
Iam developing a web service using axis.In that i want to return array of objects to the client.
But when iam calling from the client side iam getting the class cast exception.
I wrote server-config.wsdd file manually. do i need to add any more if i want to return array of java beans.
server-config.wsdd
<service name="MyService" provider="java:RPC">
<requestFlow>
<handler type="soapmonitor"/>
</requestFlow>
<responseFlow>
<handler type="soapmonitor"/>
</responseFlow>
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="com.a.b.c.X.Y.ServiceDelegate"/>
<beanMapping qname="myNS:ABCVo"
xmlns:myNS="com.a.b.c.vo"
languageSpecificType="java:com.a.b.c.vo.ABCVo"/>
</service>
ServiceDelegate:
public ABCVo[] getCount(String accessType,long orgId,Date fromDate,Date toDate)
return ABCVo[];
client:
I place all the stubs in the client app as a jar file. and the code is just like
ABCVo[] so = del.getCount("group",l,calendar,calendar);
Iam getting the following exception:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.ClassCastException: [Ljava.lang.Object;
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:evoke12
java.lang.ClassCastException: [Ljava.lang.Object;
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(Deserializ
ationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
nt(AbstractSAXParser.java:633)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
EndElement(XMLNSDocumentScannerImpl.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
stractSAXParser.java:1242)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:133)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:153)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at org.apache.axis.encoding.DeserializationContext.parse(Deserialization
Context.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders
tandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.cscinfo.webservice.client.LmsServiceSoapBindingStub.getSOPCountBy
NatureOfCase(Unknown Source)
at com.cscinfo.cscglobal.web.action.EnterCSCGlobalAction.execute(EnterCS
CGlobalAction.java:68)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:116
4)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:42)
at com.cj.trim.trimFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:42)
at weblogicx.servlet.gzip.filter.GZIPFilter.doFilter(GZIPFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3229)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2002)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:1908)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1362)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)It is working for me. See the following configuration.
<service name="TestService" provider="java:RPC">
<requestFlow>
<handler type="soapmonitor"/>
</requestFlow>
<responseFlow>
<handler type="soapmonitor"/>
</responseFlow>
<parameter name="allowedMethods" value="*"/>
<parameter name="className" value="com.xxx.xxx.web.servlet.TestService"/>
<beanMapping qname="ns:XBeanInfo" xmlns:ns="XBeanInfo" languageSpecificType="java:com.xxx.xxx.web.util.XBeanInfo"/>
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
qname="myNS:XBeanInfo"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
xmlns:myNS="urn:TestService"
type="java:com.xxx.xxx.web.util.XBeanInfo"/>
</service> -
Consuming Java Web Service with complex return types
Hi,
I'm consuming a Java Web Service and the return I get in
ColdFusion is a typed Java Object (with custom Java classes like
com.company.project.JavaClass ...)
Within this object I don't get direct accessible properties
as when I'm consuming ColdFusion Web Services, instead I get a
getPROPERTYNAME and setPROPERTYNAME method for each property.
How can I handle this? I don't want to call this methods for
each property (and there are nested objects with arrays of custom
classes below, which would really make this complicated).
What's the best way to cope up with this?
Thanks a lot,
FritzThe web service is actually the function, not the cfc and you
didn't show a function.
My own opinion is that since webservices by definition should
be available to any calling app (cold fusion, .net, flash, etc),
whatever gets returned from the method should be as universally
recognizable as possible. This generally means text, numbers,
boolean, or xml. -
Error while deploying a web service whose return type is java.util.Date
Hi
I have written a simple web service which takes in a date input (java.util.Date) and returns the same date back to the client.
public interface Ping extends Remote
* A simple method that pings the server to test the webservice.
* It sends a datetime to the server which returns the datetime.
* @param pingDateRequest A datetime sent to the server
* @returns The original datetime
public Date ping(Date pingDateRequest) throws RemoteException;
The generation of the Web service related files goes smoothly in JDeveloper 10g. The problem arises when I try to deploy this web service on the Oracle 10g (10.0.3) OC4J standalone. it gives me the following error on the OC4J console :
E:\Oracle\oc4j1003\j2ee\home\application-deployments\Sachin-TradingEngineWS-WS\
WebServices\com\sachin\tradeengine\ws\Ping_Tie.java:57: ping(java.util.Date) in com.sachin.tradeengine.ws.Ping cannot be applied to (java.util.Calendar) _result = ((com.sachin.tradeengine.ws.Ping) getTarget()).ping
(myPing_Type.getDate_1());
^
1 error
04/03/23 17:17:35 Notification ==> Application Deployer for Sachin-TradingEngineWS-WS FAILED: java.lang.InstantiationException: Error compiling :E:\Oracle\oc4j1003\j2ee\home\applications\Sachin-TradingEngineWS-WS\WebServices: Syntax error in source [ 2004-03-23T17:17:35.937GMT+05:30 ]
I read somewhere that the conversion between java to xml datatype and vice versa fails for java.util.Date, so it is better to use java.util.Calendar. When I change the code to return a java.util.Calendar then the JDeveloper prompts me the following failure:
Method Ping: the following parameter types do not have an XML Schema mapping and/or serializer specified : java.util.Calendar.
This forces me to return a String data.
I would appreciate if someone can help me out.
Thanks
Sachin Mathias
Datamatics Ltd.Hi
I got the web service working with some work around. But I am not sure it this approach would be right and good.
I started altogether afresh. I did the following step :
1. Created an Interface (Ping.java) for use in web Service as follows :
public interface Ping extends Remote{
public java.util.Date ping(java.util.Date pingDateRequest)
throws RemoteException;
2. Implemented the above interface in PingImpl.java as follows :
public class PingImpl implements Ping
public java.util.Date ping(java.util.Date pingDateRequest) throws RemoteException {
System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
return pingDateRequest;
3. Compiled the above 2 java files.
4. Generated a Stateless Java Web Service with the help of JDeveloper. This time the generation was sucessful.(If I had "java.util.Calendar" in place of "java.util.Date" in the java code of the above mentioned files the web service generation would prompt me for error)
5. After the generation of Web Service, I made modification to the Ping interface and its implementing class. In both the files I replaced "java.util.Date" with "java.util.Calendar". The modified java will look as follows :
Ping.Java
=========
public interface Ping extends Remote{
public java.util.Calendar ping(java.util.Calendar pingDateRequest)
throws RemoteException;
PingImpl.Java
================
public class PingImpl implements Ping
public java.util.Calendar ping(java.util.Calendar pingDateRequest) throws RemoteException {
System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
return pingDateRequest;
6. Now I recompile both the java files.
7. Withour regenerating the Web Service I deploy the Web Service on OC4j 10.0.3 from JDeveloper. This time the deployment was sucessful.(The Deployment fails if I don't follow the step 5.)
8. Now I generated a Stub from JDeveloper and accessed the stub from a client. It works fine. Here if you see the Stub code it takes java.util.Date as a parameter and returns a java.util.Date. (Mind you I am accepting a java.util.Calendar and returning the same in my Web Service interface. Step 5)
The confusing thing is the Serialization and Deserialization of Data from Client java data to Soap message and Soap message to Server java data.
From Client to SOAP :
java.util.Date to datetime
From SOAP to Server :
datetime to java.util.Calendar
From Server to SOAP :
java.util.Calendar to datetime
From SOAP to Client :
datetime to java.util.Date (I am not able to understand this part of the conversion)
Any help or inputs would be appreciated.
Thanks
Sachin Mathias -
ATG Webservice Creation Wizard Limits Complex return type
Hi All,
Can you please let me know is there any way we can expose component method as webservice which returns complex type.
Options we have
1) Wrap the complex type object as string
2) REST Webservice (JSON response)
Do we have any other options.
Thanks & Regards,
KanagarajHave you set a default response of such type of ATG Web-Service?
Sometimes even when you give the incorrect request, a default response is thrown back from the Web-Service.
Let me know if this is the case? -
Reporting Services web service complex xml type report parameters
Hi,
I have the following xml type parameter in my request query that I use in reporting services.
<Parameter Name="accountDetails" Type="XML" xmlns:d4p1="thevalue" xmlns:i="thevalue">
<DefaultValue>
<d4p1:AccountDetailDto>
<d4p1:AccountNumber>12345</d4p1:AccountNumber>
<d4p1:AccountType>Sales</d4p1:AccountType>
</d4p1:AccountDetailDto>
</DefaultValue>
I want to know how I can assign values to the accountDetails parameter from report parameters, I've tried to call it from the dataset parameter properties but it doesn't return any values. I created Parameters!accountDetails.Value on the dataset parameters
properties and assigned it the following value: it only returns empty columns
="<AccountDetailDto><AccountNumber>"& Parameters!AccountNumber.Value &"</AccountNumber><AccountType>"& Parameters!AccountType.Value &"</AccountType></AccountDetailDto>"
You're help will be highly appreciated as I've been trying to solve this for a while nowHi Alisa,
Perhaps I should explain my problem clearly...
This is my query request that I send to the webservice:
<Query>
<Method Name="GetPerAccountAssetAllocation" Namespace="http://tempuri.org/">
<Parameters>
<Parameter Name="accountDetails" Type="XML" xmlns:d4p1="thevalue" xmlns:i="thevalue">
<DefaultValue>
<d4p1:AccountDetailDto>
<d4p1:AccountNumber>12345</d4p1:AccountNumber>
<d4p1:AccountType>JSE</d4p1:AccountType>
</d4p1:AccountDetailDto>
</DefaultValue>
</Parameter>
</Parameters>
</Method>
<SoapAction>http://tempuri.org/IPortfolioManagementService/GetPerAccountAssetAllocation</SoapAction>
<ElementPath IgnoreNamespaces="true">*</ElementPath>
</Query>
It works well when I run it just like this, that is without specifying any parameters in the report data dialogue window or on the dataset parameters properties, it returns the values and columns correctly.
So my problem is, I need to find out how(xml parameter syntax, steps e.t.c)
I can do to allow users to specify the accountDetails parameter, its quite tricky for me coz its an xml type parameter, Im not sure if I should just specify the AccountNumber and
ReportType parameters separately:
I've tried the following without any success:
1. Under the dataset properties: I tried not to specify a default value for the accountDetails parameter on the xml query, then I added a parameter called "accountDetails" under the dataset parameters properties, then under parameter
value I added the following xml value :
<d4p1:AccountDetailDto>
<d4p1:AccountNumber>Parameters!AccountNumber.Value</d4p1:AccountNumber>
<d4p1:AccountType>Parameters!AccountType.Value</d4p1:AccountType>
</d4p1:AccountDetailDto>
(I also added the AccountNumber and AccountType parameters under the report data dialogue window)
This returns empty columns, is there something I'm missing, or am I doing this incorrectly? -
Recursing through table / complex return types in Java Stored Functions
I have a table representing a tree with arbitrary depth, of the form:
ID NUMBER(10) PRIMARY KEY,
NAME VARCHAR2(20),
PARENT NUMBER(10)
with PARENT being a foreign key for ID, so that top-level nodes in the tree have a NULL PARENT, and other nodes have the ID of their parent node in the PARENT field.
I want a good way to get a row representing a node as well as all its ancestor nodes recursively up to the top level. I do this a lot in my Java application, and right now it works by just getting each row, checking if PARENT is null, and recursing again until I get the top-level node. Since this recursion is in Java and I do multiple queries it's rather slow, and I'd rather perform this operation in the database (using a Java Stored Function/Procedure or PL/SQL).
I'm no good at PL/SQL so don't have a clue how to go about doing this sort of thing, and although I can write a Java Stored Function that does the same recursion I do in the application, I don't know how to return the results. I can't return a REF CURSOR type since the results are from multiple queries, and I can't find any documentation about how to return structured types from a JSF.
If anyone could give me a near-complete PL/SQL listing that does this or (better) help me to complete my Java Stored Function by returning the results in a structured type.You are my own personal God (for the day). Thanks, exactly what I needed, and all in one query with no procedural.
-
Datacontrol complex return type binding to a table
Hello guys can you please give a hand here?
Here is the scenario:
The return object of the method getAvailableConfigurations return a complex type AvailableConfigurationsDto and inside that object I need to access configuration Object that has the following implementation:
public class ConfigurationsDto {
protected List<ConfigurationDto> configurations;
protected String imei;
protected String tac;
protected String tdbid;
My problem is how to bind the configurations List to the table… all the other 3 attributes are ok, but not the list…
Here is the bindings view:
The configurations binding is tree type (this was automatically created when I’ve dragged the configurations object from this datacontrol)
Can someone explain me how can I bind this list of configurations to the table?
Thanks in advance.
Francisco.
Edited by: 878889 on 11-Aug-2011 08:28I didin't try to reproduce your use-case, but I believe that if when you drag the DTO, the framework only shows the tree option, I will try to create in my DTO another List<AnotherObject>, and drag this list.
After that, I will go to page definition, and replace the code generated.
Maybe you are looking for
-
Time bar on calendar is off by one hour
So I notised this problem this morning. The time is correct, all the events are at the correct times. The only problem is that the "progress bar" itself is showing up in the wrong hour block. I have turned on time-zone support and I have turned the i
-
When I open a new tab in Firefox 16.0.1 the focus is on the address bar for a second or so then the focus moves to the search input field. If I start typing something the first character fills in the address bar then the rest is typed into the search
-
Issue with SPA525g registation and FXO port call calls are not disconnecting properly
Hi, I have a UC540 and updated it to the latest IOS version with the latest firmware to my phones and i am having registration problems with SPA525g IP Phones. I updated the firmware of the phones as well and create manual tftp bindings with but
-
When waking from sleep,Safari,iPhoto,iTunes have erased all customised features
After restoring my HD with Lion, I have found that every time I switch on, everything has resorted to original out of the box status resulting in a complete loss of all my photos, music and customized setting in Safari.
-
Iphoto Crashes immediately after upgrade
I just upgraded to iPhoto 9.5.1 When I try to open iPhoto now it says I need to upgrade my library to work with this new version of iPhoto. Almost instantly when I click on 'upgrade' it crashes. It crashes so fast I can't even read what pops up, bu