How to get full url using UCM RIDC api
Hi,
I am using RIDC api to get the full url of the document (including protocol, host, port info). I tried using DOC_INFO
and GET_SEARCH_RESULTS api. The GET_SEARCH_RESULTS api returns the path but no protocol, host, port info.
DOC_INFO does not contain any uri. Is there a way to get full url? I only have access to the idc socket connection
configuration to connect to the server.
E.g. I know the idc connection url is idc://hostname:4444
The user supplies document name as "myDoc.txt" and dId = 2000.
I used GET_SEARCH_RESULTS for myDoc.txt and DOC_INFO for dId=2000.
I need to return absolute url to the user that user can copy paste in the browser and download the doc.
Thanks,
--dhiraj
You can ge the docUrl using doc info services DOC_INFO or DOC_INFO_BY_NAME.
dataBinder.putLocal("IdcService", "DOC_INFO");
dataBinder.putLocal("dID", docId);
ServiceResponse response = idcClient.sendRequest (idcContext, dataBinder);
DataBinder respBinder = response.getResponseAsBinder();
System.out.println("DocUrl"+ respBinder.getLocal("DocUrl"));
Similar Messages
-
Getting exception when trying to get taskdetails url using BPM worklist api
Getting exception when trying to get taskdetails url using BPM worklist api method :
String url = WorklistUtil.getTaskDisplayURL(
wfSvcClient,
ctx,
task,
null,
"worklist",
parameters);
Jul 21, 2011 11:24:40 AM oracle.bpel.services.common.ServicesLogger __log
WARNING: <oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerPropertiesFromMbean()> Exception while loading install config file in standalone Error : javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
oracle.fabric.common.FabricException: javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
at oracle.soa.common.util.PlatformUtils.getServerInfo(PlatformUtils.java:184)
at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerPropertiesFromMbean(TaskFlowPropsUtil.java:319)
at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerInfoForWeblogicServer(TaskFlowPropsUtil.java:491)
at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.getServerInfo(TaskFlowPropsUtil.java:363)
at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getDefaultURLPrefix(WorklistUtil.java:264)
at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getTaskDisplayURL(WorklistUtil.java:353)
at oracle.bpel.services.workflow.worklist.api.util.WorklistUtil.getTaskDisplayURL(WorklistUtil.java:293)
at com.test.WorflowServiceClient.main(WorflowServiceClient.java:198)
Caused by: javax.management.InstanceNotFoundException: com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:662)
at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
at oracle.as.jmx.framework.config.session.ConfigurationMBeanServerImpl.getAttribute(ConfigurationMBeanServerImpl.java:210)
at oracle.soa.common.util.PlatformUtils.getServerInfo(PlatformUtils.java:78)
... 7 more
Caught workflow exception: null
Process exited with exit code 0.
Can anyone please help meActually i'm using Jdeveloper 11.1.1.4 and our requirement is to show list of BPM worklist tasks for the logged in user on the first page and onclick of each task task details page should be opened. I can use Webcenter PS3 worklist taskflow. But i'm not able to customize that taskflow. So, i'm going for Worklist client api.
I'm able to retrive the taskId,task title and few other details like task payload. But i don't know why the below method is giving exception.
String url =
WorklistUtil.getTaskDisplayURL(wfSvcClient,
ctx, task, null,
"worklist", parameters);
And i observed that you have also used the same code for getting Taskdetails url. And one more thing is i'm trying to access BPM worklist which is installed on remote machine.
Can you tell me what could be the reason for the exception? -
How to get full URL in java?
Hi,
I am working in a spring & hibernate project. For the AJAX request to bookmark, I used RSH (Really Simple Framework) framework. So, my URL changes for the AJAX request as
http://localhost:8080/courses#/medicaltranscription/cardiology
If I bookmark this and open in a new window, I cant get full URL in Servlet. If I use methods in Servlet, it gets only, upto http://localhost:8080/courses. I cant get the whole URL. Please, help me to find a solution.
Thank youThe hash part is entirely client side. You cannot get it on the server side. You need to pass it as request parameter or as part of real URL.
-
Hello everybody,
I am working on uploading file from page to another one using HTP package, but whenever I submit the form, it only takes the filename without the full path.
for example :
if i sent 'c:\dir\a.txt' , the other page receives file parameter as 'a.txt'
the code is here
PROCEDURE upload(appno in varchar2,wsct in varchar2) AS
l_real_name VARCHAR2(1000);
BEGIN
HTP.htmlopen;
HTP.headopen;
HTP.title('Test Upload');
HTP.headclose;
HTP.bodyopen;
HTP.header(1, 'Test Upload');
HTP.print('<form action="https://ssltrng.uaeu.ac.ae/trng/document_api.upload1" method="get">');
HTP.print(' File to upload: <input type="file" name="file" >
HTP.print(' <input type="submit" value="Upload">');
HTP.print('</form>');
HTP.bodyclose;
HTP.htmlclose;
END upload;
the other page see it as
file is 'Water lilies.jpg'
Thanks
Edited by: dtabed on Mar 30, 2011 1:02 AMDo not understand the problem.
The code you've posted is a PL/SQL web enabled procedure that produces a dynamic HTML page. This page contains a form. And a full URL reference to the CGI that will process the form's data.
This is unusual - as it seems to be that the form is submitted across domains and web servers.. You usually refer to a local CGI procedure to deal with a form - no need for a fully qualified URL that includes web server and domain name.
If the CGI procedure that receives the form is also a PL/SQL web enabled procedure, that the uploaded file will be placed in the documents table (as defined in the DAD alias) by mod_plsql, prior to the web enabled procedure being called. The documents table will contain the Mime type, file name, file contents and other details. -
How to get full Path using sADMBasic- StandardGetDirectoryDialog on mac
hi,
While implementing a plug-in, I am using sADMBasic->StandardGetDirectoryDialog to prompt a dialog to select the folder.code is as follow-
SPPlatformFileSpecification outResult = {NULL};
Boolean isDirSelected = sADMBasic->StandardGetDirectoryDialog("Select folder Location", NULL, &outResult);
In window, I am getting the fullpath in outResult.path. but in Mac ,I am getting 3 things outResult.vRefNum,outResult.parID,outResult.name.
suppose anyone selected the desktop when dialog prompt. The outResult.name contains only the string like"a\ desktop ".And parId contains a integer no.
But I want fullpath like User/Desktop. is there any way to get the fullpath from these variables?
thanks
DeepAloneDo not understand the problem.
The code you've posted is a PL/SQL web enabled procedure that produces a dynamic HTML page. This page contains a form. And a full URL reference to the CGI that will process the form's data.
This is unusual - as it seems to be that the form is submitted across domains and web servers.. You usually refer to a local CGI procedure to deal with a form - no need for a fully qualified URL that includes web server and domain name.
If the CGI procedure that receives the form is also a PL/SQL web enabled procedure, that the uploaded file will be placed in the documents table (as defined in the DAD alias) by mod_plsql, prior to the web enabled procedure being called. The documents table will contain the Mime type, file name, file contents and other details. -
How to get full URL when LoaderInfo.isURLInaccessible == true?
Why is Flash Security so hard to figure out?
I am trying to load an image; however, the image URL I 1st receive is actually a redirected URL. I wish to load the redirected URL, but I can't get the full redirected URL because LoaderInfo.isURLInaccessible is true even though I think I follow all the precautions detailed on the following page:
http://www.macromediademos.com/devnet/flashplayer/articles/fplayer10.1_air2_security_chang es.html
Here is my sitaution...
I have an image URL: i.e. "http://www.foo.com/image.jpg"
I attempt to load the image ensuring that I set the LoaderContext's checkPolicyFile to "true"
var ur:URLRequest = new URLRequest( "http://www.foo.com/image.jpg");
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoad);
var lc:LoaderContext = new LoaderContext();
lc.checkPolicyFile = true;
l.load(ur, lc);
When the Event.COMPLETE is dispatched, I discover that the loaded image's URL is not the one I first used ( "http://www.foo.com/image.jpg") instead the URL is a redirected URL "http://www.bar.com/image.jpg".
Because of sandbox issues, I can not use the loaded image and be able to manipulate the image. So instead I need to reload the image using the final URL. However, I cannot determine what the redirected URL is because the LoaderInfo.isURLInaccessible == true and LoaderInfo.url =="http://www.bar.com/", not "http://www.bar.com/image.jpg".
private function onLoad(e:Event):void {
var li:LoaderInfo = LoaderInfo(e.target);
trace("isURLInaccessible = " + li.isURLInaccessible); //output = "isURLInaccessible = true"
trace("li.url = " + li.url); //output = "li.url = http://www.bar.com/"
Acording to the Adobe Blog post (see URL above), I need to ensure two things: 1) LoaderContext.checkPolicyFile= true, and 2) the crossdomain policy file gives the proper permission.
I think I've met both o these criteria. The crossdomain file for BOTH http://www.foo.com/crossdomain.xml and http://www.bar.com/crossdomain.xml is the following:
<cross-domain-policy>
<allow-access-from domain="*"/>
<site-control permitted-cross-domain-policies="all"/>
</cross-domain-policy>
What am I doing wrong? How do I ensure that I can get the redirected URL and LoaderInfo.isURLInaccessible == false?
thanks!Here's an update. (though still no solution.)
1) I preloaded ANY image from the redirected server: i.e. http://www.bar.com/image123.jpg. (Mind you, I did nothing with this preloaded image.) When I loaded this image, checkPolicyFile == true.
2) A few seconds later, I loaded the desired non-redirected image: http://www.foo.com/image.jpg.
3) This time, isURLInaccessible was true and I had access to the full redirected URL: i.e. http://www.foo.com/image.jpg.
Please note that the image from the 1st step didn't have to be the same image from the 3rd step.
It appears that you have to check the policy file on the redirected URL before have knowledge of the redirected URL. However, how can you check the policy file on the redirected URL if you don't know the redirected URL yet?
Ah, Adobe Flash security makes so much sense and is always so simple. /sarcasm
So does anyone know how to properly check the policy file for redirected images with this new info?
Seemingly according to the security page written by Adobe which I linked to my 1st post, it should be as simple as setting the checkPolicyFile property of the LoaderContext. I've tried that and that doesn't work. So either Adobe's page is incorrect (perhaps) or is not clear (most likely).
Unless anyone can come up with a simpiler way to do this, I'll probably do the following which theoretically should work:
1) load the non-redirected image
2) when image loads, determine if the loaded URL == the URL originally used to load the image
3) If it is determined that the loaded URL is a redirected URL, then check if isURLInaccessible == true.
4) if isURLInaccessible == true, then somehow load the policy file from the incomplete URL (I will need to figure out how to do this.)
5) Once the policy file loads, then go back to step #1. When the process reaches step #4, then isURLInaccessible should be false at which case, process to step #6
6) Load the redirected image URL
The above seems like a lot steps to load an image. Can someone confirm if the above is necessary or if there is a simpler way to load the redirected image's policy file? -
Hi,
I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item column entry url will show the parent item information.
Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make item url link through String builder in mail body with using current id and predefine link,but
when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
item link dispaly information.
So I opened SharePoint Designer and start creating the workflow associated to the list.
As there is some Field from source related to current item URL I start using it
Encoded Absolute URL – this one should be the one to use
Server Relative URL
URL Path
Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
Encoded Absolute URL
http://wfe1/Lists/bpf/1_.000
Server Relative URL
/Lists/bpf/1_.000
URL Path
/Lists/bpf/1_.000
As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCSUnfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List. I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to. One problem is the workflow is initiating
twice. I'm thinking I should have just created the workflow as a a "List Workflow."
I am going to try "Association Columns" -- that may work. Anyone have other suggestions? -
Hallo,
In my Dynpage portal application.I use 3 Jsp's.One of the Jsp having a Iframe element.This iframe source is an External HTTP address.In the source tag i have to supply the Results frame as some Iframe name and result-url as my 3rd jsp url,so that i can unpack the XML and process the data.
All the 3 Jsp's are in /pagelet/ folder.Does anybody know how to get the url for the Jsp inside the pagelet folder.
Further more pagelet folder is private folder,will it be a problem for the external website to post the result to this private /pagelet/3rd.jsp.
Example src tag for Iframe
http://demo.mygraphics.nl/nbgint/NBG_INT_main.asp?action=CHART&datas
ource=NBGMV&product=INTERNET&size_x=300&size_y=300&result_frame=Results&
result_url="Here i have to give my 3rd jsp url"&defa
ult_centre_x=256000&default_centre_y=471000&default_width=0.5Hi gaurav,
You are right,it is Jspdynpage.I have already read about the Urlgenerator that it can generate url's only for components and pages.So i have created 2 components in one PAR but havent tested yet.
Anyway thanks for your reply.
I have tested it and it works fine.Here is the code
try {
IUrlGeneratorService urlGen = (IUrlGeneratorService) PortalRuntime.getRuntimeResources().getService(IUrlGeneratorService.KEY);
IPortalUrlGenerator portalGen = null;
ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
if (specUrlGen instanceof IPortalUrlGenerator) {
portalGen = (IPortalUrlGenerator) specUrlGen;
// generate Component Url
try {
String url = null;
url = portalGen.generatePortalComponentUrl(request,"NewUrlProj.NewUrlComp");
HttpServletRequest srq = request.getServletRequest();
String vorUrl = srq.getScheme()"://"srq.getServerName()":"srq.getServerPort();
myBean.setUrl(vorUrl+url);
} catch (NullPointerException e) {
myBean.setErrorMsg("Unexpected Nullpointer. This should not happenend, but it did! Something must have gone wrong :-(");
catch(Exception e){
myBean.setErrorMsg(e.getLocalizedMessage());
Message was edited by: Baskaran Senthivel -
How to get SharePoint Groups using Javascript in SP2013 ?
How to get SharePoint Groups using Javascript in SP2013 , not JSOM please
Here is the code that worked for me:
<script type="text/javascript">
var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups";
var requestHeaders = { "accept" : "application/json;odata=verbose" };
$.ajax({
url : requestUri,
contentType : "application/json;odata=verbose",
headers : requestHeaders,
success : onSuccess,
error : onError
function onSuccess(data, request){
var s='';
for (var i = 0; i < data.d.results.length; i++)
s +=data.d.results[i].LoginName+'\n';
alert(s);
function onError(error) {
alert("error");
</script> -
Dears
We are working with system with 2 application server IPs and one Real IP (which is able to be accessed through internet)
I would like to know the URL is the user using in order to use his IP to open something else from the system.
Chcking the host name not usesful because if user connect from home using Real IP it return the AS host name which real IP redirct to it.
I need to know how to get the URL of the session from the form or to know whether the user connected using the Real IP or not.
(Oracle forms 10gR2)I think you can get a URL from/with a PJC (java pluggable component) from/with IHandler interface..
Try this bean.. You have a property with name HOST_URL.. (with some modification you can also read applet parameters).. (I have done this now but I have not jet tested it)....but I thik this should work...
You have also other parameters to get client IP addres and hostname...
package in2.client;
import java.io.PrintStream;
import java.net.InetAddress;
import oracle.forms.handler.IHandler;
import oracle.forms.properties.ID;
import oracle.forms.ui.VBean;
public class ClientInfo extends VBean
private static final ID CLIENT_IP = ID.registerProperty("CLIENT_IP");
private static final ID CLIENT_NAME = ID.registerProperty("CLIENT_NAME");
private static final ID CLIENT_OS = ID.registerProperty("CLIENT_OS");
private static final ID CLIENT_USER = ID.registerProperty("CLIENT_USER");
private static final ID HOST_URL = ID.registerProperty("HOST_URL");
private IHandler mHandler;
private String hostAddress = "";
private String hostName = "";
private String hostOs = "";
private String hostUser = "";
private String hostURL = "";
public ClientInfo()
try
System.out.println("+----------------------+");
System.out.println("+ ClientInfro PJC +");
System.out.println("+ Peter Valencic +");
System.out.println("+----------------------+");
System.out.println("+Dat spr: 10.09.2007 +");
System.out.println("+Dat spr: 04.07.2008 +");
System.out.println("+Dat spr: 10.07.2008 +");
System.out.println("+Dat spr: 15.11.2010 +");
System.out.println("+----------------------+\n");
this.hostAddress = InetAddress.getLocalHost().getHostAddress();
this.hostName = InetAddress.getLocalHost().getHostName();
this.hostOs = System.getProperty("os.name");
this.hostUser = System.getProperty("user.name");
System.out.println("Host adress: " + this.hostAddress);
System.out.println("Host name: " + this.hostAddress);
System.out.println("Host op. syst: " + this.hostOs);
System.out.println("Host username: " + this.hostUser);
System.out.println("+----------------------+\n");
catch (Exception e)
System.out.println("Napaka pri inicializaciji beana: " + e.toString());
public void init(IHandler handler)
super.init(handler);
this.mHandler = handler;
public Object getProperty(ID pid)
if (pid == CLIENT_IP) {
System.out.println("Client IP: " + this.hostAddress);
return "" + this.hostAddress;
if (pid == CLIENT_NAME) {
System.out.println("Client Name: " + this.hostName);
return "" + this.hostName;
if (pid == CLIENT_OS) {
System.out.println("Client os: " + this.hostOs);
return "" + this.hostOs;
if (pid == CLIENT_USER) {
System.out.println("Clientuser: " + this.hostUser);
return "" + this.hostUser;
if (pid == HOST_URL) {
hostURL = this.mHandler.getApplet().getDocumentBase();
System.out.println("Host Url: " + this.hostURL);
return "" + this.hostURL;
return super.getProperty(pid);
} -
How to get multiple records using fn-bea:execute-sql()
Hi,
I created Proxy service(ALSB3.0) to get records from DB table. I have used Xquery function(fn-bea:execute-sql()). Using simple SQL query I got single record, but my table having multiple records. Please suggest how to get multiple records using fn-bea:execute-sql() and how to assign them in ALSB variable.
Regards,
Nagaraju
Edited by: user10373980 on Sep 29, 2008 6:11 AMHi,
Am facing the same issue stated above that I couldnt get all the records in the table that am querying in the Proxyservice.
For example:
fn-bea:execute-sql('EsbDataSource', 'student', 'select Name from StudentList' ) is the query that am using to fetch the records from the table called StudentList which contains more than one records like
Id Name
01 XXX
02 YYY
03 ZZZ
I tried to assign the result of the above query in a variable and while trying to log the variable, I can see the below
<student>
<Name>XXX</Name>
</student>
I want to have all the records from my table in xml format but it's not coming up. I get the value only from the first row of my table.
Please suggest.
regards,
Venkat -
How to get iccid by using imei?i had lost my iphone and i want to find it back.
how to get iccid by using imei?i had lost my iphone and i want to find it back.
Ocean20 wrote:
Not sure about ICCID but you can get your IMEI by going to the computer you normally sync to and open iTunes there click on edit then preferences then on the devices tab and then hover mouse over your backup and the IMEI and other info on your phone will appear
Interesting. Yet another of the many Easter eggs dispersed throughout the system. -
How to get the workcentres used in the routing out of 2 alternate routings
Dear All,
I would like to know how to get the workcentres used in the routing out of 2 alternate routings.
I referred PLKO got the Task List Type (PLNTY), Group(PLNNR), Group Counter(PLNAL), Plant(werks).
I passed this in to PLPO, The problem in PLPO is we dont have the distinguishing field Group Counter(PLNAL), so I am getting all the ARBID including both alternates.
How to get the ARBID with respect to Groupcounter 1 alone.
If a get the ARBID , I can get the ARBPL from CRHD.HI,
Use PLAS Table also. you have to use PLKO> PLAS> PLPO.
Pass PLNNR & PLNAL in PLAS and get PLNNR & PLNKN.
Then pass these into PLPO.
work centers from CRHD
Regards,
Krishna Mohan
Edited by: Krishna Mohan N on Jan 31, 2008 12:28 PM -
How to get full file path while uploading a file in flex Applications
How to get full file path while uploading a file in flex applications.
FileReference Object is giving file name and other details but not the actual path.
Is there any workaround to to get the file path?.
ThanksWhy not ask in the Flex forum; it is more likely that someone over there knows.
-
HT5517 How can have full picture using mirrored image from iPad
How can have full picture using mirrored image from iPad on my Apple TV airplay
Welcome to the Apple Community.
Mirroring won't fill the TV screen. The iPad has an aspect ratio of 4:3 and the iPhone 4S or prior an aspect ratio of 3:2, neither of these will fit exactly into a TV screen which as an aspect ratio of 16:9. The Apple TV will not zoom the mirrored image, because it may well cut off information which is situated at the top or bottom of the screen.
You may wish to try each of the settings in ‘Settings > Audio & Video > Adjust for AirPlay overscan’ for the best setting that suits you.
Maybe you are looking for
-
Trying to create a simple database program.....help, please
I am trying to create a database and I am having trouble gettig my code correct..........I think I am on the right track but I haven't a clue from this point, can anyone point me in the right direction as far as getting my program to have a master fi
-
HT1175 Using G-Raid to backup iMac and Mac Pro laptop
Has anyone atttempted to backup both machines to a Hitachi G-Raid with one partition? If they have, was it by direct USB 2.0 wire using AirPort Express for the Mac Pro and direct fire wire to the iMAC? Any thoughts on this would be appreciated. Len
-
Using translate function for one to many character translation
Hi friends! Can anybody tell me whether it is possible to use built in translate function for converting some text from a one alphabet to another one, if these alphabets are of different length. Something like SELECT TRANSLATE('текст', 'АБВГДЕЕЖЗИКЛМ
-
Parsing issue (split, replaceall)
I am working on a project for school and I am unable to get a decent PrintWriter statement to work the way I would like. The structure of my classes force me to access an object array through another object array. When I go to print it out in PrintWr
-
Hello, I can't take export backup as it ends up with a message column name invalid.How to solve the problem. My database is on UNIXWARE 7.1.1 & Oracle8i. D ROY SHILLONG- INDIA