Oracle update with Web Service
I have a windows service running on IIS5 on a 2000 box. It
runs every two hours and pulls information from an Oracle
9i table. I package this information into an xml Docmument
and use the httpwebrequest to send it to web service
running on another machine. When the windows service
receives a successful send to the other machine it updates
the oracle table. On the second server meanwhile the web
service there takes the xml that was send and updates a
SQL7 table. It records a successfull or failed update to
the sql table and packages up the results(xml) and sends
them back to a web service running on the first machine.
This web service then takes the xml it recieves and
Updates the original Oracle table with a success or
failure. In my code I call the executenonquery and find
that 1 row was updated in the oracle table. I close the
connection and open a new one and pull out the field I
updated and email that result to myself. It shows that the
field was updated. However when I look in the Oracle table
through TOAD, or Quest Central the Table is not updated to
what it should be. The first update from the windows
service worked but the second update from the web service
does not work.
I have used the oledb provider that comes with .net, the microsoft .net provider for Oralce and ODP.NET from Oracle. I have
written the code in the web service to run as a
transaction and as just a straight sql statement. I have
written it to call a stored procedure in Oracle that will
update the table with a commit in the stored procedure. In
all cases my code tells me that the update was successful.
A trace running on Oracle shows my code executing with no
errors. Yet in all cases the Oracle table does not update.
I have since written a second windows service that runs 15
minutes after the first one runs and pulls values from a
temp table and does the updates this way THIS WORKS.
I just want to know why the web service could not update
the table directly. I think that this might be a bug in
either the .net environment or in Oracle. I'm sure both
Microsoft and Oracle will blame each others products but
it would be nice to know why this is happening.
If any other developers run into this problem be warned I
worked on it for three weeks and wrote my code 10 ways to
Sunday and it would not work.
Happy coding people.
Let me understand this correctly. You are trying to update a column value twice. First update goes through but second does not and you don't get any error for the second update. If this is the scenario, it is not supposed to work.
Here is the reason. A column can be updated using Dataset only if the original column value in the database has not been changed. This is to avoid the dirty writes. Since the original value has not been changed for the first update, the column value is actually updated in the database. However, for the second update, since the original column value was changed by the first update, second update does not update the column value.
Similar Messages
-
Integrating Oracle EBS with web services which use SAML authentication
Hi,
I have a requirement to invoke web service using PL/SQL from a Custom Form of EBS.
The web Service is configured to use SAML as authentication mechanism.
Coming to question!
1) How do I make my EBS integrate with a SAML provider preferably (Oracle Identity Federation) ?
2) How do i get the SAML token in my PL/SQL and pass it on to the web service?
Regards
Dharmviruser1983888 wrote:
Hi ,
We have Oracle EBS R12 (12.1.2) with Oracle Database 11gR2 (11.2.0.2) Database on Linux env.
We want to implement Oracle Database Vault 11gR2. We are referring to Note: Integrating Oracle E-Business Suite Release 12 with Oracle Database Vault 11gR2 [ID 1091083.1].
Do we need to install Oracle Database 11gR2 (s/w only) again on the Oracle Database Server or can we use the existing Oracle EBS Database 11gR2 Home which is already on 11.2?
Regards,
ThiruAs mentioned in the doc "If your E-Business Suite R12 is already integrated with 11gR2 database, you just need to enable Database Vault 11gR2 & register it with the database as per Task 3", so no installation of ORACLE_HOME is required and you just need to "Register Oracle Database Vault".
Thanks,
Hussein -
Article: Virtualize Your Oracle Database with Web Services
http://www.oracle.com/technology/pub/articles/mensah_dws.html
http://www.oracle.com/technology/pub/articles/mensah_dws.html
-
How can I create a query with web service data control?
I need to create a query with web service data control, in WSDL, it's query operation, there is a parameter message with the possible query criteria and a return message contains the results. I googled, but cannot find anything on the query with web service. I cannot find a "Named Criteria" in web service data control like normal data control. In Shay's blog, I saw the topics on update with web service data control. How can I create a query with web service data control? Thanks.
Hi,
This might help
*054. Search form using ADF WS Data Control and Complex input types*
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html -
Using Native Oracle XML DB Web Services - REST POST web service possible?
My goal is to expose some pl/sql procedures as a REST web services.
The Database is 11gR2
The request method needs to be a POST (not GET as a request will perform insert/updates ) - the request body will contain a xml structure
Have setup XMLDB Database-native Web Services as per
11g documentation "Using Native Oracle XML DB Web Services"
It seems this setup support only SOAP requests!?
RESTful webservice with GET is (sort of) supported using
Embedded PL/SQL Gateway as describer here:
http://ora-00001.blogspot.com/2009/07/creating-rest-web-service-with-plsql.html
Although no support for POST
Obviously the post is from 2009 so just want to know if anything changed since.
Has anyone found a way to expose pl/sql procedures using XML DB or other approach as a REST POST web services?
(As the relative low number of calls/hour and also the aim to have the least amount of moving parts therefor looking for a DB centric solution)
Thanks
PeteI think the post referred to was more an exercise of what could be achieved. The quickest way, nowadays, to get this done with not too much hassle is via APEX
http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35128/restful_svc.htm
M. -
How to do a InsertOrUpdate with web services 2.0
I understand that InsertOrUpdate method is just valid for Web Services 1.0.
a) Is there a way to do it with web services 2.0 ? I imagine using a query and then Update or Insert.
b) if we decide to use web services 1.0 would there be any cons ? (besides a possible performance issue as in the documentation)
c) InsertOrUpdate uses the record "user key" for identification. If need to identify using another field, I suppose that the only way is thru query, etc. Any other ideas ?
Txs. for any help.
AntonioHello Antonio,
I understand that InsertOrUpdate method is just valid for Web Services 1.0.Correct, the InsertOrUpdate method is not available in WS v2.0.
a) Is there a way to do it with web services 2.0 ? I imagine using a query and then Update or Insert.That is one possibility, however it means that every insert or update would consist of two operations. I would suggest reviewing your requirements and expected use cases for a way to determine whether a record is being inserted or updated within CRMOD. The specific approach would depend on whether how the records to be entered into CRMOD are compiled (i.e. user interaction vs. batch sync component)
b) if we decide to use web services 1.0 would there be any cons ? (besides a possible performance issue as in the documentation)There are some objects that are not supported for WS v1.0 as well as the fact that field coverage is not as complete as the WS v2.0 interface.
c) InsertOrUpdate uses the record "user key" for identification. If need to identify using another field, I suppose that the only way is thru query, etc. Any other ideas ?Only certain fields or sets of fields can be used as a user key. These are described in the WS user guide. You can query on other fields to find a record in CRMOD but a unique value must be provided to identify a record for an update operation.
Thanks,
Sean -
Oracle 11g native web services
Is there any formal explanation about how to configure and create Oracle 11g native web services and how to correctly secure these services? Since Oracle APEX now supports consumption of SOAP and REST web services, it makes sense to have more explanation about creating and securing web services. As many PL/SQL programmers know, it is always not an easy job to develop web services in jDeveloper to work with databases - with all those add-on technologies like jPublisher/Toplink to get tiny things work. It is not easy to find the "how-to" guide about creating and securing Oracle 11g native web services.
Thanks.
AndyThanks for the link Tim...it is very useful. I was told that, in APEX 4.2, it will become able to create RESTful web services through APEX - if you run APEX through APEX Listener - by using resource templates in APEX Listener. I will wait for more information about this feature to come out.
Thanks.
Andy -
Difference of Oracle Application Server Web Services and JDeveloper
As new to the Webservices my Question is what is difference of:
- 1. Web Services Assistents in JDeveloper 1.3 (JAXRPC specification, WS-Sec)
- 2. "Oracle Application Server Web Services" 10.1.2 using WebServicesAssembler (depreciated ?)
- 3. Apache Soap Server 2 based (deprecated ?)
When should I use the iAS Assistent and when the JDeveloper one for generation?
Why don't they use the same stuff?
Does anyone have some experience for projects on this?
Thx, Willi
Have not found any Topic with an explanation on this. If you know someone please point me to that.
oOracle Web Services Framework Confusion
oracle web services framework confusion
Web service Assembler ToolThanks a lot for clearing this things to me.
I have to start a web services projects and I am confused which tools to use - JDeveloper Assistents or the WebServicesAssembler (as pointed out before).
Because I did not find some hints on this (expecpt your ones), it seems to me that I am missing some point or criteria on that I can do such a decision when to use what of those two tools.
Do I understand you right, that in future JDeveloper and the WebServicesAssembler will use the same .jar files and also generate the same code?
Thanks a lot for such valuable hints, Willi -
[OSB Kernel:398133]The service is based on WSDL with Web Services Security
Team,
I need to use the wsdl given by external client. When I create a osb business service, I am receiving the below error.
OSB Kernel:398133]The service is based on WSDL with Web Services Security Policies that are not natively supported by Oracle Service Bus. Please select OWSM Policies - From OWSM Policy Store option and attach equivalent OWSM security policy. For the Business Service, either you can add the necessary client policies manually by clicking Add button or you can let Oracle Service Bus automatically pick and add compatible client policies by clicking Add Compatible button. ...
WSDL:
http://personator.melissadata.net/v3/SOAP/ContactVerify
We don't have OWSM set up. Is there any workaround that I can use to connect to this service for OSB?As a workaround, you can try to remove the Policy definition and reference from the copy you will import in OSB.
I would recommend to add OWSM to your domain. It's a straight forward process.
Regards,
Fabio. -
Oracle Workflow and Web Services
Hi
does anyone know whether we could handle Web Services from within Oracle Workflow?There is a white paper on OTN about communicating between BPEL and Workflow using java event subscriptions - all you need is to have BPEL installed as well. If you can do that, you should be able to communicate with web services.
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://thoughts.workflowfaq.com ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
Share adf content with web service
Dear All.
For my purpose I have to share adf context with web service. Let's have an example:
I have managed bean class "Main.java":
public class Main{
public Main(){
public String AnyResult() {
BindingContext bindingContext = BindingContext.getCurrent();
DCBindingContainer dcb = bindingContext.findBindingContainer("view_page1PageDef");
DCDataControl dc = dcb.findDataControl("AppModuleDataControl1");
AppModuleImpl appM = (AppModuleImpl)dc.getDataProvider();
ViewObjectImpl vo = appM.getVO1();
vo.executeQuery();
Row row = vo.next();
System.out.println(row.getAttribute("data1").toString());
and web service class:
@WebService
public class Job {
private WebServiceContext context;
private Main cm;
@WebMethod
@Oneway
public void run() {
cm = new Main();
System.out.println(cm.AnyResult());
Result: BindingContext bindingContext = BindingContext.getCurrent() :: returns NULL
How to share ADF context with web service to be able to access ADF model.
Regards.+1 on Shay's comment. Your architecture makes no sense.
Try code like the below to access the AM from a method in the WS
private final String amDef = " oracle.demo.model.viewer.soap.services.AmName";
private final String config = "AmNameConfigurationLocal";
//call in WS method to get AM reference
private ApplicationModule getApplicationModule(String _amDef, String _config){
return Configuration.createRootApplicationModule(_amDef,_config);
//call at end of AM use to release AM
private void releaseAm(ApplicationModule _am){
//release AM so it can be found in pool on subsequent calls
Configuration.releaseRootApplicationModule(_am, false);
... or, why don't you expose the AM as a Web Service ... See: http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcextservices.htm#CJAJGIEB (works for all JDeveloper versions starting 11g+). If you Google for this then you find recordings Shay did about how to expose ADF BC AM as a service. Another piece of collateral is here: http://www.oracle.com/technetwork/issue-archive/2012/12-sep/o52adf-1735897.html
Frank -
No result while creating a service consumer with Web Service Wizzard
Hi,
I've tried to create a service consumer with Web Service Wizzard in SE80 by using URL/HTTP Destination but nothing happens. After the popup with logondata for the WSDL I get the CRM start screen and nothing has been created in the given package.
technical details:
I use a CRM 5.0 system with SP15 (SAPKB70015).
I created the provider service at a 7.10 system with SP5 (SAPKB71005) via SPROXY, SOAMANAGER and WSPUBLISH and get the WSDL-URL from Service Registry.
The Service Registry of the 7.10 system serves as central Service Registry.
Has anybody an idea ?
ChristophGuy,
Thanks for your reply.
This problem has been solved. Since I haven't turned on everything that to use transaction SOAMANAGER needs. After complete the switch-on works, the problem never happens again.
Thanks again. -
Error while deploying when working with web service
Hi friends,
I am working with web service. When i try to run the build.xml, I'm receiving an error as follows:
*[javac] D:\MyWorkspace\MyProjectWeb\Javasource\aaa\bbb\ccc\ws\endpoint\ListenerServiceEndpoint.java:27: package org.springframework.ws.server.endpoint does not exist
[javac] import org.springframework.ws.server.endpoint.AbstractDomPayloadEndpoint;
[javac] ^ *
Could anyone please help me in getting this solved??
Thanks in Advance,
RobisPretty self-explanatory - the Spring framework jars are missing from the classpath used in compilation.
If you don't have them, get them from www.springframework.org. -
Sending document to oracle xml gateway web service and body is url encoded
Hello,
a question from a complete newbie to web services. I have some code that is sending a soap message to an oracle xml gateway web service. In the soap message the values in the soap body look like < ;CNTROLAREA> ;
when I would be expecting <CNTROLAREA>. What I have been told is that the content of the ReceiveDocument element has been url encoded which causes the < and to correct it I need to change the paramater type from object to xmlnode and to build the request as an xmldocument. The xmlnode and xmldocument comes from a .net guy so I've been trying to find the equivalent in java but am not having any luck. I have a lot of reading to do but was wondering if someone might be able to point me in the right direction on how to correct the problem. I captured the soap message being sent using tcpmon. Why does the body have the < instead of the < as I was expecting and is there an xmldocument type? The header part of the soap message looks as I expect. "><soapenv:Header><ns1:XMLGateway_Header xmlns:ns1="http://xmlns.oracle.com/apps/fnd/XMLGateway"><ns1:MESSAGE_TYPE>XML</ns1:MESSAGE_TYPE>. It is being sent as a com.oracle.xmlns.apps.fnd.XMLGateway.XMLGateway_Header type.
thanks
Thanks
Edited by: twf123 on May 5, 2010 11:59 AM
Edited by: twf123 on May 5, 2010 12:00 PMtwf123 wrote:
What I have been told is that the content of the ReceiveDocument element has been url encoded which causes the < and to correct it I need to change the paramater type from object to xmlnode and to build the request as an xmldocument. Where do you change the parameter type?
The xmlnode and xmldocument comes from a .net guy so I've been trying to find the equivalent in java but am not having any luck. How do you get the data from .net guy? Which interface do you use? What processing do you do after receiving the data? -
How can I authenticate and authorize with Web Service on ESB ?
Hello,
I want to authenticate and authorize client with Web Service published
by HTTP/SOAP BC.
Simply if it is an Web Service as J2EE application, I will use
Basic Authentication with JAX-RPC and Realm.
But I think that Web Service published by HTTP/SOAP BC is not belong
to J2EE Application. Threre is no place to describe security role mapping
(like web.xml).
JBI 1.0 the section "5.5.1.1.3 Normalized Message Properties" comments
JAAS Subject is given in the NM Properties. Really in this package
com.sun.jbi.internal.security.*
implements JAAS autentication and authorization (at JaasAuthenticator).
But I can't see how to configure my Service to use this.
How can I authenticate and authorize with Web Service on ESB ?
I referred to the resources.
Mutual Authentication for Web Services: A Live Example
http://developers.sun.com/prodtech/appserver/reference/techart/mutual_auth.html
XML and Web Services Security
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security7.html
JAAS Authentication Tutorial
http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html
Thanks,
Takurou
- environment ---------------------------------------------
OpenESB : Project Open ESB Starter Kit
AppServer : Sun Java Systems Application Server 9.0 PE
OS : Windows XP
I don't assume to use SSL (if It's necessary I will try).
User information is stored in a LDAP Server.
-----------------------------------------------------------Hello,
I read this resource.
SecurityDesign
http://www.glassfishwiki.org/jbiwiki/Wiki.jsp?page=SecurityDesign
Then I think [non-ssl and ssl/tls and so on] securing by basic authentication is ongoing feature at this time.
But I can't see well why this page comments 'HTTP over SSL, TLS'.
HTTP/SOAP Binding Component Overview
http://download.java.net/general/open-esb/docs/jbi-components/httpsoap-bc.html
Does BC support only "SSL server authentication" ?
Doesn't BC support "SSL client authentication" by username/password ?
Thanks,
Takurou
Maybe you are looking for
-
I have a 20 GIG Mobile Me, now ICloud, plan that is about to renew. I would like to be able to back up some of my documents to this drive and access them as necessary. Does iCloud work like this? How do I access backed up information. I just don'
-
How to always open in full screen mode
is there a way to always open a session in full screen mode? should i press "the full screen icon" every time???
-
Screen Flickaring problem In Album App (c2305)
I'm still using the basic version of the album (4.0.A.0.12) Application....,when I get each updates I will go for it to update but all the album updates in my Xperia device disappoints me,including the latest update 7.0.A.0.24. When I select photos m
-
Adobe, please give us something - a statement, as Adonit has, addressing the incompatibility issues with Ink & Slide and iPad Air 2. We need assurance that you are working on it also and an honest answer to the question: Should we wait before purchas
-
I've noticed that you can partially or completely use an iPod touch 4th gen. as an external disc/hard-drive. Since I don't want to risk losing all my music, photo's, videos and whatnot, I was wondering if they would still be on there if I were to se