Webservices with Jdeveloper and Omni Porlet
I am trying to make a portlet that can read xml from a webservice
I first pull the webservice from the server....
<env:Body xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<ns0:getPreviousChargesDataStringResponse xmlns:ns0="http://assessment/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<rowset><row><Assessment_Group> etc...
</return>
</ns0:getPreviousChargesDataStringResponse>
</env:Body>
then I use the xsl to make it in the <rowset><row> form.
My xsl translation looks like this...
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:value-of select="." />
</xsl:template>
</xsl:stylesheet>
my problem is my output comes out something like this
<rowset>
<row>
<Assessment_Group>A </Assessment_Group>
The omni port wizard doesnt understand what the < means.
How can I fix this?
I have still not figured this one out. Any help please?
Regards,
Nithya
Similar Messages
-
Develope complex WebService with JDeveloper and deploy to tomcat
Hello,
I am thinking of developing a complex WebService with JDeveloper and deploy it to tomcat.
The WebService should retrieve a few "normal" datatypes and a pdf and a few images. I try to store the pdf and the image in an Oracle DB as BLOB.
My idea ist to create a Package which selects the values, pdf and the image and retrieve them as the output paramter.
Then I want to create a WebService with the JDeveloper which calls this Package. This WebService should be published on a Tomcat.
My first question is if that is possible?
I think there are few problems.
I searched the forum about deploying a JDeveloper WebService to Tomcat, but I can not find a whole solution which is going to work. I read something about JAX-RPC, but I am new to this topic. So it would be very nice, if anyone could tell me where I can find the solution or post a quick guide to solve that.
Another question is how I have to decode the images and the pdf to provide those files in a WebService?
I would be very glad if anyone can help me or tell me where I can find information about that, becaus I am new to this topic!
Thank you,
TimHi,
does anybody have an idea about that?
Thanks,
Tim -
HELP: include another page in with JDeveloper and ADF
Hi all,
I am trying to make a layout page with JDeveloper and ADF. But I just can't make things work. I have the pre-coded header and footer html pages and want to include them in a jspx somehow. I tried panelPage too, but the rendering style is away from our pre-coded header and footer.
1. Use jsp:include.
header works fine but footer is rendered before the page content, even if the footer is placed after the page content. Is there a way to customize the position?
<f:facet name="footerFacet">
<f:subview id="footerView"
binding="#{backing_welcomePage.footerView}">
<jsp:include page="/footer.jspf"/>
</f:subview>
</f:facet>
2. Use frameBorderLayout.
I followed the doc and use the document tag. But the frame page is rendered but none of included pages are rendered. So I got a blank page.
<!-- frame page -->
<f:view>
<afh:html>
<afh:head title="my frame page">
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
</afh:head>
<afh:body>
<afh:frameBorderLayout height="100%" width="100%">
<f:facet name="center">
<afh:frame source="topPage.jspx" name="topPage3"/>
</f:facet>
<f:facet name="top">
<afh:frame source="topPage.jspx" height="200" name="topPage2"/>
</f:facet>
<f:facet name="bottom">
<afh:frame source="topPage.jspx" height="200" name="topPage1"/>
</f:facet>
</afh:frameBorderLayout>
</afh:body>
</afh:html>
</f:view>
<!-- top page -->
<f:view>
<af:document title="FrameBorderLayout Demo">
<af:form>
<af:panelGroup layout="vertical">
<f:facet name="separator">
<af:objectSeparator />
</f:facet>
<af:outputFormatted styleUsage="instruction" value="<b>A frameBorderLayout</b>"/>
</af:panelGroup>
</af:form>
</af:document>
</f:view>for #1 have you tried throwing a verbatim tag around your includes like:
<f:verbatim>
<jsp:directive.include file="/includes/footer.jsp"/>
</f:verbatim>
it's how we got around intermixing html and jsf -
Timesten with JDeveloper and ADF
Hello,
I'm using Timesten with Jdeveloper and ADF and have noticed some problems which I allready posted in the JDevloper Forum:
Re: ADF TimesTen
These problems arise from using Identifiers with reserved words, which is not forbidden with Ora DB.
The settings in Jdev are to generate SQL92 conform code. This is the only way it works.
I'm wondering if there is a setting to make TT behave syntactical 1:1 like a Ora DB.
I even tried to change the Type Mode to Oracle and restarting TT but this doesn't help eighter.
Maybe someone of the TT pro's has a solution for this? TT is used as a cache in front of an Ora DB so it should understand the Ora Syntax ??
Thanks
Ognianfor #1 have you tried throwing a verbatim tag around your includes like:
<f:verbatim>
<jsp:directive.include file="/includes/footer.jsp"/>
</f:verbatim>
it's how we got around intermixing html and jsf -
Deployment of Java WebService with OC4J and JDeveloper
Hi,
I have created a sample java webservice following instructions given in one OTN tutorial (Developing, Deploying and Managing Web Services Using JDeveloper and Oracle Application Server ) at http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
We were able to create the webservice as shown in the tutorial but are facing problem while deploying it. The deployment message console in JDeveloper shows one "Deployment failed : ClassCastException".
Some of the lines from Jdeveloper console are ::
"Binding WebServices web-module for application JavaWebService-GetDates-WS to site default-web-site under context root JavaWebService-GetDates-context-root failed"
I have gone through the stack trace in the OC4J console but couldnt figure out much out of it as all the culprit classes are from different jar files...Here is the Stack trace for your ref::
06/05/05 19:07:12 WARNING: DeployerRunnable.run java.lang.ClassCastExceptionoracle.oc4j.admin.intern
al.DeployerException: java.lang.ClassCastException
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnabl
e.java:52)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.ClassCastException
at oracle.j2ee.ws.server.deployment.WebServiceEndpoint.writeRuntimeXml(WebServiceEndpoint.ja
va:660)
at com.evermind.server.Application.getHttpApplication(Application.java:512)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFr
omReference(HttpSite.java:1975)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:18
94)
at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1591)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:206)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:541)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:197)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
... 4 more
2006-05-05 19:07:12.713 WARNING java.lang.ClassCastException
I am using J2SE1.4.2_08 version. Earlier when I used java 5 version I got an error something like "Found runtime environment 49.0 expected environment is 48.0"....so I moved over to J2SE1.4.2_08 version but now I am getting above error as shown in the stack trace.
Looking at the success message shown in the OTN tutorial it seems that only step that failed while this deployment is Initialization of servlet : Oracle.j2ee.ws.server.JAXRPCServlet for webapplication Webservices.Hi, thanks for your quick help.
Shay, I agree with you that the specific tutorial uses JDeveloper 10.1.3 and I need to use JDK 5 to run that version of JDeveloper.
Earlier when I used JDK 5 with JDeveloper 10.1.3, I got different error saying "Found runtime environment 49.0 expected environment is 48.0".....so I moved over to J2SE1.4.2_08 version but now I am getting an error as shown in the stack trace given in the very first post to this thread. -
J2EE with JDeveloper and postgresql
Hi folks,
I'm creating a j2ee app (struts) with jdev with oracle9i
and this work fine...
but I have try connect with another database
(postgresql 7.4) to recovery some data
and the local container of jdev is not recognizing
the postgresql driver...
where I do to make the internal container
work with jdbc postgre driver ?To configure the the PostgreSQL JDBC driver:
1. Select Tools>Preferences in JDeveloper.
2. In the Preferences frame, select the Database Connections node. Select Library New button.
3. Select the Registered JDBC Drivers field New button.
4. In the Driver Class field specify org.postgresql.Driver
5. Select Library field New button.
6. In the Create Library frame specify a Library Name, and add the PostgreSQL JDBC jar file pg74.215.jdbc2.jar to the Class Path field.
The PostgreSQL JDBC driver library gets added to the Preferences frame. -
WebService with remoting and AS3
Hi at all,
last day i have ask the solution in order to work with
Webservice with AS3;
I have try to use Remoting before download and install many
3th party
webservice class (like wellconsiderer.com component), but
without
success: i can't call ASMX file with remoting.
<CODE>
import flash.net.NetConnection;
import flash.net.Responder;
var myResult:Function = function(o:Object)
trace("result="+o);
var myStatus:Function = function (o:Object)
trace("status="+o.code+"__"+o.description);
var myResponder:Responder = new Responder(myResult,myStatus);
NetConnection.defaultObjectEncoding = ObjectEncoding.AMF0;
var a:NetConnection = new NetConnection();
a.objectEncoding = ObjectEncoding.AMF0;
a.connect("
http://localhost/webservices/management/Manager.asmx?WSDL");
a.call("loginAdministrator", myResponder,
"username","password");
</CODE>
Why i receive "Error opening URL..." ?
andrewWhile I can offer a couple ideas, you'll need to spend some time figuring out how to use Flash... maybe get some formal training with it.
For the photographs, create each set of them as a movieclip, and give each movieclip an instance name so that you can control its visibility using code. Initially you will want to set the visible property of them all to false, likely done in the first frame of the timeline (ex: imageGrp1.visible = false; ). Then you will use your buttons to make them visible.
To code one of the buttons, you need to assign it an instance name as well. Then you need to assign an event listener for that button to detect when it gets clicked, and an event handler function to go with the event listener... the listener calls the function into action when the event occurs.
ex:
// the event listener for a button with an instance name of imgGrp1Button...
imgGrp1Button.addEventListener(MouseEvent.CLICK, showGrp1);
// and the event handler function for the CLICK listener
function showGrp1(evt:MouseEvent):void {
imageGrp1.visible = true;
If you want to hide any visible set when you select a new one, then you can create a function that sets them all visible = false and call that function both at the start in frame 1 and in each button event handler function (before you set the selected set to be visible). -
WebDev Install with JDeveloper and WLS
I'm familiar with the installation of a JDE WebDev Client and now I've been tasked with a JDeveloper 11.1.1.2 and WLS install. Is there any good guides on how to set this up?
EnterpriseOne 811
Tools 8.98.3.1
Any help would be greatly appreciated.
Thank you,
AlHi Al,
Try this:
https://support.us.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1302209.1
This doc explains what components you need to have on a E1 Client that will be used to build and deploy BSSV Packages to a Bus Services Server. The Combination of JDeveloper and WLS probably indicates that you are intending to setup a Bus Services Server. However, this is only supported as of 811SP1.
If you are running 811SP1, the process of setting up a Bus Services Server involves:
- defining a BSSV instance via Server Manager
- setting up a E1 Client with JDeveloper that will be used to build and deploy a Business Services Package
The following doc has useful links to the MTRs for Bus Services Server as well as other useful resources on BSSV.
https://support.us.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=967281.1
Edited by: user621397 on 15/04/2012 22:03
Edited by: user621397 on 15/04/2012 22:04 -
ORA-29532: It Works with JDeveloper and fails under Database
Hello,
We have a web service client. It works fine under JDeveloper but when we upload it to the database and we excute a procedure calling it.
Exception message
"ORA-29532: llamada Java terminada por una excepción Java no resuelta: java.lang.Error: HTTPClient Internal Error: could not create instance of HTTPClient.RetryModule -
java.lang.IllegalAccessException: The constructor HTTPClient/RetryModule is private"
We use a procedure to call this simple java web service client. The code is:
[Procedure CODE]
as
num number;
begin
num:=wssuma(4,6);
DBMS_OUTPUT.PUT_LINE(num);
end;
The JDeveloper version is: 9.0.2.822 and the database one is: 9.2.0.5.
Can anybody help us? We're newbies and this error is breaking the project.
Thanks in advanceIt means the httpclient your client expects is not compatibl e with the one inside the database. What is your database version? If your database is 9i, you can generate and load webservice clients using the databse webservices callout utility posted at
http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html -
Better software than Stickies (go with iCal and Omni Focus and Dropbox)
I love iCal and I am digging Omni Focus.
I use Dropbox.
Is there something a little better than Stickies to go with this suite?
Is there a better place to post this?
ThanksI have all of the same issues Jeff. What gives?? This needs immediate fix.
-
Using CreateObject for Webservice with username and password
When using createObject() to call a web service how do I pass
in the user name and password required by the service?
If I do a cfdump on the webservice object I see it has
setUserName() and setPassword() methods but they don't seem to be
working.
I also see there are properties named "USERNAME_PROPERTY" and
"PASSWORD_PROPERTY" but I can't seem to modify them in code. I
suppose they are protected.
example:
ws = createObject("webservice", "
http://url.to/wsdl.xml",
"serviceport");
ws.setUserName("myawesomeusername");
ws.setPassword("myawesomepassword");
myReturn = ws.serviceMethodCall("bla");quote:
Originally posted by:
MACRStockHolder
For anyone that encounters the same issue/question;
apparently you can't apply a username/password to the object call
like you can when using <cfinvoke> to make a web service
call.
FYI Adobe: this is VERY limiting, I have to use a web service
that uses in/out parameters which to the best of my knowledge
requires the use of createObject() but at the same time the web
service requires a username and password which I can only do with
<cfinvoke>. Looks like I will be writing a compiled custom
tag just for a workaround.
According to the docs you can provide a username and password
by passing a struct containing these items to CreateObject
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_c-d_18.html#45 14398
If you like cfinvoke use it. You can get return values by
using the returnVariable argument. I would assume mutliple output
parameters would be returned in a struct.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_i_10.html#4001127 -
Database call out webservices with JDeveloper - help
Hi all,
I am using JDeveloper 10.1.3.0 to generate java proxies for web services and deploy them to my Oracle 10g Enterprise Edition database.
I am able to create the proxy and test the web service, it works fine. When I create a deployment profile and deploy, everything succeeds, I am able to see the PL/SQL wrapper function in the database. However, when I execute the function, I get an error class name <my java classname> not found. This is a case when I execute a web service that runs on our server and requires authentication. I have provided the authentication in the setUsername and setPassword methods of the java proxy.
When I try to do the same with a stock quote web service, I do not get an error, but there is no output either. It returns nothing.
Is this an issue because of the jdk version problem? My database jvm is jdk1.4 compliant and the JDeveloper is 1.5 compliant. But I think there is somehting very basic that I am missing. Can experts please help me with this, I have been struggling for long!
Thank you very much. Any help is greatly appreciated.
Regards,
NithyaI have still not figured this one out. Any help please?
Regards,
Nithya -
Webservices with APEX and base64binary
Hi,
I'm trying to integrate stellent content management with APEX 3.2. for this I need to create and consume webservices. Stellent has some basic WSDL's that I can use to integrate. One of them is called checkin service and under checkin service we have a sub service called checkinuniversal that I am using to check in content into the content server. the issue that I am facing is that I dont know how to pass base64binary data to the webservice as the filecontent in that WSDL has a format of base64binary. I can manually create the webservice request and post the data to the webservice but that will not be the optimal way. So long story short is there any way to post base64binary data to a WSDL based webservice in APEX?
Regards,
AnandAnand:
No, you cannot yet post binary base64 encoded data with a Web service reference based on a WSDL. You will have to use PL/SQL. I have written a blog post on how to do exactly what you are trying to accomplish. See:
http://jastraub.blogspot.com/2008/06/flexible-web-service-api.html
Regards,
Jason -
Problem with Jdeveloper and the Web Object Manager
I am trying to register a servlet through the web object manager.
As soon as click the web object manager menu pick I get the following
error: Could not load servlet information from web server.
On other peoples machines here it works fine and they can register
servlets. What am I missing!hmmmm, wondering if I understood you correctly:
first try the file association - right click on one of the movie files (you should tell as well with extension) then 'open with' menu then go to 'choose program' and then choose one of them and coach the box "always use the selected program to open this kind of file" in your example 'window media player'.
the other point I understood is that in download directly into your browser, well there is a settin for this in the option, don't know where exactly, but you can avoid this by right clicking on the movie/file link and choose 'save target as ...' this forces it to download it on your disk and then you can open it.
hope this kinda helps
Cheers
Slarti -
Best practice: team based development with JDeveloper and CVS?
Hi all!
I was wondering of what is the best way to work with Jdev 9i and cvs on a same project with 5 developers whereas
all developers use the same JPRs and JWS?
Which of the files should be checked in to the central CVS repository, which should be remained on the local machine of each developer?
I assume, all java and xml files might be stored in the cvs repository. But how can we make sure that new files written by a member of the team will be added to my project?
If we also check in the JPR and CFG files the merge of concurrent JPRs will fail and our project will be shreddered ;-)
My question: what is your best experience with simultanous development on same projects?
Any idea?
Many thanks,
Stefan1. Put everything that your project needs under CVS control:
- buildscripts
- BC4J jarfiles
- BC4J generated files (java, xml, xcfg, jpx, cpx)
- .properties, package.html, gif, ...
- docu
- install scripts
- starter batch or exec, ...
2. Each developer should have a own JPR and JWS file. In a seperate location those files could be checked in frequently to easy allow the setup of a new Developer workstation
3. Use a sourcecode formatter (e.g. jalopy) on the BC4J generated java files to reduce merge conflicts because of empty lines generated by JDev dialogs
4. Adding new files is no problem:
- if you add new BC4J objects (AM, VO, ASC, EO, VL) also checkin the bc4j package XML so new files will be added.
- set in project settings common / input paths - "Scan source path ..."
5. Deleting BC4J files is a problem, because JDev does not automatically remove them from the project. So if someone deletes BC4J objects, you should close the project and delete it manually from the jpr file
6. Close the project before making a CVS update wih external tool like Tortoise because of JDev caches
Regards, Markus
Maybe you are looking for
-
BPEL Server Restarts intermittently
Hi All, I have got a strange problem with my BPEL Server. Every once in a while the BPEL Server restarts on its own. I do not know if it has to do something with memory leaks or performance or some other reason. I have made my logs to roll at every 2
-
How do I delete a huge number of duplicate albums from my itunes for mac library?
I have a huge itunes music library, over 900 GB, and as it turns out I have a huge number of duplicate albums. Is there a way to automatically get rid of the duplicate albums so I am left with only one of each? If not, what is the best way to ident
-
Different File Name in Finder vs. File Name in Console?
I'm trying to rename the Library/Internet Plug-Ins folder. As root, I use mv in Console. I do ls and it shows me the new name. Finder couldn't care less. Finder keeps showing "Internet Plug-Ins". I could see OSX not letting me change the name of an "
-
Wireless Router wrt120n - Cannot get to Administrative website 192.168.1.1
Hello, I've tried everything I know to do to get to the website but no luck as of yet. I began to upgrade my firmware but i was told that i have to be in the administrative tool to do so. HELP!
-
Table Name for Trip Expenses??
Hello All, I have the trip number from the table PTRV_PERIO I would now like to get the associated expenses related to that trip number? What is the table name that holds the expenses? Cheers