Publish XDB web service on apex application
Could any one please help me out to use native oracle XML DB web service on apex application.
In apex application, basically i need to have a report that displays all PO requests with links to each request # to drill down to the form page where the vendor are allowed to submit some corresponding data to th PO request.
All i need is to know how do i use the native oracle XML DB web service to show the report to the vendors with drill down links and capture the data, the vendor submits through the form.
Thanks in advance!!
Regards,
Rame
I think you might be on the wrong track. Web services don't "show" anything really. They take in either XML in the case of SOAP-style web services or an HTTP request in the case of restful web services. They typically return XML, but can return JSON or other machine readable formats. Web services don't have forms and reports. More information here: http://en.wikipedia.org/wiki/Web_service . To have a human interact with a web service, you typically have a UI layer. For instance, in APEX you can build a form or a report on a web service (the same is true for most popular web technologies).
In APEX 4.0+ you can expose a report as a restful web service, but I really don't think that is what you want to do. There's no way that I can think of to use the XDB web services to expose any component of APEX.
In short, people interact with web applications, such as APEX apps. Machines, such as databases or application servers, interact with web services.
So, do you need to expose some component of your application as an API (web service) that vendors can call programmatically from some other technology such as Java or PHP? Or do you want to build a web application that people can interact with?
Tyler Muth
http://tylermuth.wordpress.com
"Applied Oracle Security: Developing Secure Database and Middleware Environments": http://sn.im/aos.book
Similar Messages
-
Can I deploy web service on APEX server
I have APEX 3.1.2 on 11g database.
I need to pull data from other oracle 9i databases into APEX application. I have created web service on my pl/sql package to pull data from 9i databases and deployed service on my local oc4j instance (within jdeveloper). My APEX app pull data from multiple oracle 9i database. Now I need to move my web service to my dev/test environment.
Can I deploy web service on APEX server? or do I need to deploy on another web server?
I know I can easily pull the data from other oracle 9i databases using DB link. I want to explore Web services option to just to see is it possible to pull data from multiple sources into APEX app using web service running from APEX server?.
Any help on this will be appreciated.
RK Shah
Edited by: RK Shah on Apr 7, 2009 7:27 PMI am in the same situation. Consuming a web service is easy with APEX. But publishing one needs a web server that is more complex than the one that comes with APEX for free.
I am exploring the possibility of building the web service in Jdeveloper as you have. Then I will make a WAR file that I will publish to an apache tomcat J2EE server that another department runs. I believe it will work since all the components required should be in the WAR file.
I am new at this. I will let you know how it works out.
The other possibility is to upgrade the appserver to the full Oracle Fusion server (maybe). This may be expensive and be too much for just a simple web service. But then the publish to application server from jdeveloper is super easy. -
InvalidCategory error when publishing a Web Service
I am using EM to deploy an EAR file and publish a Web Service, which is a simple Java class. But I got following error:
The application was deployed successfully, but an error occurred while publishing the web services. You can attempt to re-publish the services from the deployed application. [UDDI SOAP Fault - errno= 20000 ; errCodeE_invalidCategory ; faultcode=Client; faultstring=Client Error; faultactor=null]
Could someone please explain why I hit this error, and what do I need to change to fix it?
Thanks.Hello,
First, I would like to thank you for your help.
Below is the SOAP envelope (request) that was created by the Application Express engine based on the Web service reference definition.
Input parameters:
Obra: 35078
Processo: 2073/DCEOD/I/1960
Morada: BECO BUGIO
<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body><ns1:ObterResultadosEmObjecto xmlns:ns1="urn:webservices.x-arq.mind.pt/urn:webservices.x-arq.mind.pt/ResultadosPesquisa.xsd"><ns1:Obra>35078</ns1:Obra><ns1:Processo>2073/DCEOD/I/1960</ns1:Processo><ns1:Morada>BECO BUGIO</ns1:Morada></ns1:ObterResultadosEmObjecto></SOAP-ENV:Body>
</SOAP-ENV:Envelope>
From Portugal,
Helder Dinis -
How to create web service for database application
Hi everyone
Is it possible to create a web service for an apex database application page which has reports and radio fields and dialog boxes and validations in it. IF it is possible to create, pls help me with example or step by step procedure. I have seen all oracle docs of implementation of Web services in apex but unable to figure out how to get that link of wsdl for an application.
Thanks in advance.
Regards
Sandeep ArthamHi,
I guess there are other ways. But this is an easy way, if you find the right wizards.
Besides this it is good practise to define interface methods so that session bean implement these interface methods, and thus seperate the interface from the implementation.
In this approach you will need 3 projects:
An enterprise application project (will contain EJB Module)
An EJB Module project (will contain session bean)
A Java project (contains code that implements the session bean methods)
In my previous post I suggested to use a J2EE web mudule project. This was a mistake, it should be EJB module.
But it should be possible to do it in another way. It is up to you.
Good luck, Roelof -
Hi
I'm using APEX 2.1.0, OracleXE 10.2, Oracle SOA 10.1.3, Jdev 10.1.3.3
I've created a webservice in jdeveloper based upon a plsql package it has 3 input parameters and return a parameter
I've deployed the webservice to my SOA apps server and tested it satisfactorily
I've then created the web service reference in APEX using the shared components utility and it appears to create the reference ok (based upon the WSDL without searching UDDI), this correctly shows the operation and input and output parameters whilst it is created via the wizard
I've then tried to create a form based upon the web service in APEX, it shows the operation but it does not show the input parameters it gives the mesage "no data found"
has anyone else had this problem?
has anyone got any suggestions?
thanks
AndrewJason
Thanks for this, I've tried to upgrade my APEX to 3.01 using the instructions identified it ran for 9hrs before I killed it I assume that there are some things I need to do on my XE database or my machine is not powerful enough, or something else is awry (not found any other posts on the forum indicating anyone else having a problem with the upgrade so I assume its me!)
However I have now managed to access another oracle 10g instance that does have Apex 3.01 and I have now successfully built my application on the web services generated in Jdeveloper
again thanks
Andrew -
Error in AXIS2 when i try publish ODI web services
Hi people,
I´m configured AXIS2 into OC4J (SOA Suite 10.1.3.1) and when i try to publish ODI web services using a odi-public-ws.aar file on AXIS2, show me a "Faulty Services" message and when i click on details link show me a Java message (below):
{color:#ff0000}*This Web axisService has deployment faults*{color}
Error: java.lang.NoSuchMethodError: javax.wsdl.Operation.getExtensionAttributes()Ljava/util/Map;
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperations(WSDL11ToAxisServiceBuilder.java:1295) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(WSDL11ToAxisServiceBuilder.java:592) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:469) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:363) at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:248) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:356) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:67) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:330) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:227) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131) at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:82) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436) at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2361) at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4810) at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4734) at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4922) at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1134) at com.evermind.server.http.HttpApplication.(HttpApplication.java:738) at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414) at com.evermind.server.Application.getHttpApplication(Application.java:545) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.(HttpSite.java:1909) at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:645) at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290) at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270) at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177) at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2450) at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:998) at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131) at java.lang.Thread.run(Thread.java:595)
Wow, a lot of lines ! No problem, i can identify problem when try generate a WSDL file ... it´s correct ? (Please correct me if i have a incorrect reasoning).
Can a JDK Version too ? I´m using a JDK 1.5.0_06. According by manual instructions version of JDK can be 1.4.2 or later version....
Help me ! :-)
Thanks for your attention !!Roberto and all,
I installed Tomcat and published ODI web service and it was done sucessfully.
Why OC4J this simple activity doesn´t have any success ? I'm still curious what's difference between OC4J and Tomcat and why it does not allow this simple task when is completed in a such simple way... Oracle support analyst recommended that I use the OC4J but did not explain the reason, what are the advantages and benefits compared to Tomcat...
Sincerelly, i´m not too sure if i should go ahead with OC4J.
Thanks for your attention !
Best Regards,
João. -
Using web services from apex end
Hi,
I'm trying to suspend/delete/resume a particular job scheduled in BI Publisher from oracle apex end.For these I'm using the following web services
1.suspendScheduledReport
2.resumeScheduledReport
3.deleteScheduledReport
when calling
suspendScheduledReportResponse/
resumeScheduledReportResponse/
deleteScheduledReportResponse
all of them are returning true.
although the web service call is being successful, but jobs are not being suspended/resumed/deleted in BI Publisher.
the web service "deleteScheduledReportHistory" is working fine.
The products I'm using:
APEX 3.1.2
BI Publisher 10.1.3.4
can anyone have detail idea of these??
its really urgent.
regards,
joyotiI recommend you post this in a forum that has BI Publisher expertise, this is a WebLogic Server forum.
-
Hi everyone,
I followed the instructions of the following link to create a web service using jDeveloper 10.1.3.1.0 on Oracle Application Server 10.1.2.0.2. [http://st-curriculum.oracle.com/obe/jdev/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm#t1]
The web service created was deployed & used with no errors on the standalone OC4J instance.
But my goal is to deploy my web service on Oracle Application Server 10.1.2.0.2.
So after several attempts, I was able to deploy it on the Oracle Application Server 10.1.2.0.2 but unfortunately I didn't know the URL needed to use the web service.
I tried the following link (http://192.168.0.91:18100/JavaWebService-GetDates-context-root/GetDatesWSSoapHttpPort) but also didn't work :(
I also tried converting to J2EE 1.3 and still not knowing how to access the web service.
Please advice with a solution.
Thanks in advance.
LanaThanks everyone for your help :)
The problem turned out to be that Oracle application server 10.1.2 is unlike the others servers, it uses 2 ports:
- port (19100) is dedicated for the console.
- port (7779) is to view your applications.
So the URL needed turned out to be "http://acteos-109.beirut.acteos:7779/beanTest" instead of "http://acteos-109.beirut.acteos:18100/beanTest"
Hope this info is useful
Lana -
Calling web service from oracle application framework r12
Hi Techies
Is anybody know How to call web service from oracle application framework r12(step by step procedure),because i searched in net but i could not understand that one
Thanks
Dillibabu B
Edited by: 962005 on 28 Sep, 2012 12:11 AMHi,
Check below links:
http://oracle.anilpassi.com/oa-framework-with-captcha-webservice.html
http://oracle.anilpassi.com/integrate-oa-framework-with-web-service.html
https://blogs.oracle.com/ebusinesssuiteintegration/entry/r121_-invokingweb_service_fr
--Sushant -
Error while trying to publish a web service in UDDI client
hi
i m getting this error when trying to publish my web service in UDDI client.I have
configured my uddi client using Visual Administrator.I created a local test registry.The name of my registry is QuickCarRentalRegistry_Local.I created this at admin level.I also tried at level 1 Tier.But it was giving the same error.
The error is "<b> Internet Explorer Script Error</b>".my ie version is 7.0
In my alert window it displays error: 'ur_txt' is undefined.
Regards
mythri.Hi mythri.
Did you find a way out of this error? Could you share the solution with me? Because I am facing a problem that looks just like the one you had.
Thanks in advance.
Renan -
Problem running report with BI Publisher and Web Service
Hello,
I actually try to run a Bi Publisher report via the Web Service.
I use the following documents:
- http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_webservice_101331.htm
- "How to integrate Oracle BI Publisher via Web Services in Oracke Forms"
Everything works fine. But when I try to copy it on local computer the file is 0 length. I use the "getReportBytes" method.
Here is the code I tried with:
String userName = “Administrator”;
String passWord = “Administrator”;
System.out.println(”calling ” + myPort.getEndpoint());
System.out.println(myPort.validateLogin(userName,passWord));
ReportRequest repReq = new ReportRequest();
ReportResponse repRes = new ReportResponse();
repReq.setAttributeFormat(”pdf”);
repReq.setAttributeLocale(”en-US”);
repReq.setAttributeTemplate(”World Sales”);
repReq.setReportAbsolutePath(”/Sales Manager/World Sales/World Sales.xdo”);
repRes = myPort.runReport(repReq,userName,passWord);
System.out.println(repRes.getReportContentType());
byte[] binaryBytes = repRes.getReportBytes();
OutputStream out = new FileOutputStream(”D:
out.pdf”);
out.write(binaryBytes);
out.close();
System.out.println(”Success for Run Report”);
Thanks in advance.Hi,
I assume that you use 10.1.3.4. If not, my hint is not relevant for you ....
There's a new parameter in the web service API to set the Chunk-Size. Unfortunaltely is the default value not so, that the behaviour is like in older releases (no chunk-size ... the whole document at once). If you set the chunk size to -1, you should get your document. So try to add
repRequest.setSizeOfDataChunkDownload(-1);
regards
Rainer -
Calling web service in Oracle Applications...
Is there any way we can call web services in Oracle Applications?
I am using 11.5.10 verison of Oracle Applications.
Thanks in advance,
SandraHey Ravi,
Thanks for your response. I am not well versed with Java. I am using Forms 6i to achieve this. I dont know what java code do I have to put in the custom directory.
The procedure I am following to call web sevice is as follows:
1. Using the webservice URL(.wsdl URL) I am creating the Java class (web service stub) in Jdeveloper.
2. Deploying this Java class into a JAR file.
3. Then I am placing this JAR file in a directory which was spcified in the LD_LIBRARY_PATH and CLASSPATH including the name of the JAR file.
4.Then I go to Forms 6i and say program --> Import Java Classes in my form, it gets the webservice java class and converts that java class into PLSQL packages.proc/func.
Can you please send me an example how you did this to my email?
My email ID is "[email protected]"
Thanks again,
Fubu -
Report published as web service with parameters
Post Author: kevinzebeste
CA Forum: Publishing
hi,I have a problem in a report published as web service.indeed, the report has a parameter, a date.Client side I do this://I create the parameter ParameterFields paramFields = new ParameterFields(); ParameterField paramField = new ParameterField(); ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue(); paramField.Name = "date"; paramDiscreteValue.Value = "10/10/2006"; paramField.CurrentValues.Add(paramDiscreteValue); paramFields.Add(paramField);//I add the parameter into the crVievwer crystalReportViewer.ParameterFieldInfo = paramFields;//I call the web service to get data crystalReportViewer.ReportSource = "http://localhost/WebService/Rapport1Service.asmx"; Server Side :Now, I want to get back the parameter in the web service (in Rapport1Service.asmx, so server-side) to be able to call my storedprocedure with the good parameter, this one which was put on the client side (10/10/2006).I tried to do crystalReportViewer.ReportSource = "http://localhost/WebService/Rapport1Service.asmx?date=22/10/2006" on the client side but no way. i don't find a solution, is there any way to make this possible ?Moreover, i have one database for each user, so i need to pass the user name, password and account too..Post Author: kevinzebeste
CA Forum: Publishing
I have found a solution.
I create a web service in which i return a dataset, filled with the data wanted.the web service take as parameter: the report name we want, the parameter(s), and the username and password (to check if the user has right to access to data.)After that, I fill the report, client side, with the datasen given. i don't know if it's the best solution but it works ! -
Hello experts,
Could anyone give me a step by step guide on how to properly publish a web service in SAP. I've been trying to expose various BAPI's / RFC, but when I attempt to call them in Microsoft Visual Studio via the wsdl, I get a 503 error - server unavailable.
I think I am missing some level of configuration when creating the SAP web service. Any help gratefully appreciated.Hi,
Use the SEARCH button here on SDN, there have been already several blogs explaining how to publish web services.
By the way, SAP is a software vendor. You have to tell which SAP software product and release you are using...
Regards,
Olivier -
Hi,
I'm just getting started and i need to know what is the best way to develop an web service in apex ou expose functionality as such. Is this possible or do i have to buy some product to do this? If so, which one?
Thanks in advance.
Best Regards,
PedroHello Pedro,
If you want to develop a web service, APEX is not the first choice. You should better go for JDeveloper (also free).
APEX is perfect for consuming web services though...
Greetings,
Roel
http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.logica.com/
You can award this reply to your question by marking it as either Helpful or Correct ;-)
Maybe you are looking for
-
Syncing music error/warning
I have an iPod and iPhone - I have so far kept my music on my very ancient iPod and not on my iPhone. I would now like to sync my music to my iPhone (as well if possible) but when I connect my iPhone to iTunes on my iMac and try to tick the Sync Musi
-
500 Java bean field access exception
Installed the APSB07-06 Security patch, and now I am getting a "500 Java bean field access exception" error in CF Admin when clicking on Settings. I also get "500 Class jrunx/logger/Logger violates loader constraints" when clicking on "Caching" This
-
My iphone 4 s will not work in my sony docking station
I just updated my phone on itunes and now it will not play on my docking station or when I try to connect to my aux cable in my vehicle
-
please respond !! I don't want Version 4.. how do I download older version that works ???
-
Why can't I see my design in privew mode??
HI, I have made book cover in indesign and I can see everything in Normal mode and as soon as I check privew mode my design just disappear accept image which is placed as psd. I cannot see in pdf also. Please help me why it's happning and how do I so