How to call webservice from OAF
Hi,
I need to call a webservice in one of my custom OAF page. I am very new to OAF and Java and have no idea about how webservice works.
Does anybody has any example of that, are there any setups I need to perform.
I will appreciate if someone can share the step by step instruction with some example. I think having some example will really help me understand the process.
Regards
Hitesh
Hitesh,
Nothing out of the box for calling web services. There were a few discussions in the past and you may find some sample there.
--Shiv
Similar Messages
-
Related documents or links on how to call webservices from WDJ
Hi all
i need documents & links on how to call webservices from Webdynpro for Java.
if anybody send the documents on sample scenarios on the same then it is the great help to me...
Thanks
SunilHi Sunil,
May these links help you.
http://help.sap.com/saphelp_nw04/helpdata/en/f7/f289c67c759a41b570890c62a03519/frameset.htm
http://help.sap.com/saphelp_nwce10/helpdata/en/64/0e0ffd314e44a593ec8b885a753d30/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm
and the below thread to call weservices in java.
Re: How to call a web service from Java
Regards,
Supraja -
How to call webservices from ADF page
Hi,
I am using ADFBC.
I want to call webservices from ADF page.please give examples of sample program on how to call a web service from the ADF pages.please give examples.
please help me.
Thanks,http://marianne-horsch-adf.blogspot.com/2011/03/how-to-create-web-service-based-adf.html
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/70-dependent-listboxes-using-ws-286107.pdf
http://www.oracleimg.com/technetwork/developer-tools/jdev/adfcomplexwstypes-101013.html
http://technology.amis.nl/blog/9726/quickly-creating-reploying-and-testing-a-webservice-interface-for-adf-business-components
http://oracamp.com/passing-parameters-between-web-services-and-jsf-pages -
How to call webservice from Java application
Hi XI gurus
Pls let me know how to call a webservice from Java application.
I wanted to build synchronous interface from Java Application to SAP using SAP XI
For example, i need to create Material master from Java application and the return message from SAP, should be seen in Java application
Regards
MDHi,
If your JAVA Application is Web based application, you can expose it as Webservice.
JAVA People will pick the data from Dbase using their application and will send the data to XI by using our XI Details like Message Interface and Data type structure and all.
So we can Use SOAP Adapter or HTTP in XI..
If you use HTTP for sending the data to XI means there is no need of Adapter also. why because HTTP sits on ABAP Stack and can directly communicate with the XI Integration Server Directly
If you are dealing with the Webservice and SAP Applications means check this
Walkthrough - SOAP XI RFC/BAPI
REgards
Seshagiri -
How to call webservices from IDM
Hi,
can anyone provide some documents how to call a web service from IDM 7.1
Thanks in Advance
Regards,
maryThere is an easy way to do it. Just use JavaScript and Java based webservice.
Copy the webservice jar in location where the IDM console is located.
Add path to jar file in IDM console configuration.
If your webservice looks like this:
Import jar in your JavaScript code like this:
Execute it like this:
Best Regards,
Ivan -
How to call webservice from my ADF application
Hi
I have a webservice for create user which will take some input parameters to call the web service and will create the user.
From my adf application i need to call the web service and the input parameters will be passed by end user through the jspx page in my application.
Please help me with information or example so that i can proceed with the following.
Any help will also be helpful.
Thanks
SudeepHi,
Pls check this also..
http://www.youtube.com/watch?v=XF18vXxYkxM
http://www.google.co.in/url?q=http://www.youtube.com/watch%3Fv%3DwNZJbE4pc_E&sa=U&ei=KbNlTp2VOIXsrAeR1cGoCg&ved=0CB8QtwIwAQ&usg=AFQjCNF3dN3ayZ3igp_eAfvwiCpKGrjwaA
~Abhijit -
How to call webservice from tsql?
Hello!
From an stored proc I want to call an existing web-service.
How to do that??
Must it be done using CLR-procs or is there some way in TSQL?
Greetings
Bjornsorry for my english. I expect you understand me...
I do that extended sp
Code Block
use atdb_main_test
Declare @Object as Int;
Declare @ResponseText as Varchar(8000);
DECLARE @login VARCHAR(50);
DECLARE @user_passwd VARCHAR(50)
Exec master..sp_OACreate 'MSXML2.XMLHTTP', @Object OUT;
Exec master..sp_OAMethod @Object, 'open', NULL, 'get', 'http://172.xx.xx.xx:wwww/account.asmx?op=CreateEquipementMacAddress', 'false'
EXEC master..sp_OASetProperty @Object, 'user_login', @login
EXEC master..sp_OASetProperty @Object, 'user_passwd', @user_passwd
EXEC master..sp_OASetProperty @Object, 'p_nb_poste', 1
EXEC master..sp_OASetProperty @Object, 'p_id_site', 91400
EXEC master..sp_OASetProperty @Object, 'p_id_type_poste', 83
EXEC master..sp_OASetProperty @Object, 'p_adresse_mac', null
EXEC master..sp_OASetProperty @Object, 'p_num_serie', null
EXEC master..sp_OASetProperty @Object, 'login', null
EXEC master..sp_OASetProperty @Object, 'passwd', null
EXEC master..sp_OASetProperty @Object, 'default_gateway', null
EXEC master..sp_OASetProperty @Object, 'ip', null
EXEC master..sp_OASetProperty @Object, 'bCreateIPPhone', 'false'
EXEC master..sp_OASetProperty @Object, 'vlanId', 0
Exec master..sp_OAMethod @Object, 'send'
Exec master..sp_OAMethod @Object, 'responseText', @ResponseText OUTPUT
Select @ResponseText as ResponseText
Exec master..sp_OADestroy @Object
I use a SQL server 2000 and don't do anything else.
But it doesn't work
I don't know what to do ...
the message is (1 row affected) but no tupple is written in my db...
can you help me please ? -
How to call webservice using jdev9i
Hi gurus and experts,
i need to consume a webservice using oaf. with great effort finally i created stub using axis s/w.
now i dont know how to use the stub in jdev.where to write the code and what to write.iam strucked :-( .
since there were no sample tutorial about how to call webservice from jdev9i, iam struggling to make.iam jus a starter.
and while googling i came to know that stubs can be created using jdev9i .but when i see new-->webservices--web service stub it is greyed out.
i have 2 questions now:
1)if stub created using axis can it be used in jdev9i? if yes ,please tell me how? any tutorial links also helps me.
2)if the stubs should be created only by jdev9i so that webservices can be called using jdev,then please guide me how to make it.
i need some helping hands from u guys.
Thanks a lot
Edited by: 881533 on Oct 25, 2011 2:34 AM
Edited by: 881533 on Oct 25, 2011 2:37 AMHello sir,
i got following reply:
<returnRecordResponse xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<returnResult>Error_request</returnResult>
</returnRecordResponse>
but correct response is
<returnRecordResponse xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<returnResult>Success</returnResult>
</returnRecordResponse>
can you tell me correction in the code which i have put on the forum?or tell me other way to call webservice? -
Hi
I need to create a palette in bridge which will interact with webservice and create a treeview. I do not know how to call webservice from adobe bridge. Can anybody help me?Hi
I need to create a palette in bridge which will interact with webservice and create a treeview. I do not know how to call webservice from adobe bridge. Can anybody help me? -
How to call webservices in visuval composure CE 7.1 server
Hi ,
How to call webservices in visuval composure CE 7.1 server (WSDL) , please send step by step process
Thanks & Regards,
SureshI have exactly the same problem.
Here is what I found out:
In the browser based VC you have to use the Destination Template Managemet from NWA. The destinations are found during design time and can be called during runtime.
The NWDS version seems to work differently. You cannot see the destinations you created in NWA. Instead there is a preferences setting (Destination configuration). Here you can define the destination using WSDLs.
This works during design time.
But during runtime the call throws an error like 'Destination not found'. To me, it seems like a bug.
Does anybody have an idea how to solve this?
Thanks,
Michael -
Is posible call WebServices from Forms???
Hi.
My cuestion is simple. I don´t found information about this.
Can I call webservices from a Forms???. If it´s possible how it is??.
I don´t find anything document.
Thanks and sorry for my english.Hi!. thnaks for response.
The version is Forms 11g.
FormsEleven thaks!! !!
The webService are in .Net C# in a IIS. There is some problem???.
Edited by: Adama on 30-ago-2010 14:33 -
XML Error while calling webservice from oracle function.
I am getting an error while I am trying to call webservice from oracle function. Any ideas? Thanks.
select get_new_string ('proxy:80', 'http://xxx/PatternVariations/SourceTest/WebMethods','Scott') from dual
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "H4" does not match start-element tag "P"
Error at line 9
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at "DORSBP00.DEMO_SOAP", line 82
ORA-06512: at "DORSBP00.GET_NEW_STRING", line 11The error message implies that the web service is returning something that is not well formed xml. Can you verify what is being returned by the web service call
-
Hello,
i am trying to call webservice.i tryed following code for calling webservices via actionscript.it is givind the response.but it is not giving correct response.
is this correct way to call webservice?is there other way to call webservice?can anybody tell me,how to call webservice?
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”vertical” width=”420″ height=”380″ xmlns:net=”flash.net.*”>
<mx:Script><![CDATA[
import mx.rpc.soap.LoadEvent;
import mx.rpc.AbstractOperation;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.soap.Operation;
import mx.rpc.soap.WebService;
private var serviceURL:String = "http://localhost:7080/icon-ws/services";
private var wsdlURL:String = "http://localhost:7080/icon-ws/bulkUpload.wsdl";
private function callWS():void {
var service:WebService = new WebService(serviceURL, serviceURL);
service.wsdl = wsdlURL;
service.loadWSDL();
var oper:Operation = service.getOperation("BulkUpload") as Operation;
oper.addEventListener("result", resultHandler);
oper.addEventListener("fault", faultHandler);
oper.send();
public function resultHandler(event:ResultEvent):void {
Alert.show("Result returned"+ event.result.toString());
public function faultHandler(event:FaultEvent):void {
Alert.show("fault: "+ event.toString());
]]></mx:Script>
<mx:Button id=”selectBut” label=”CALL webservice” click=”callWS()”/>
</mx:Application>sorry for my english. I expect you understand me...
I do that extended sp
Code Block
use atdb_main_test
Declare @Object as Int;
Declare @ResponseText as Varchar(8000);
DECLARE @login VARCHAR(50);
DECLARE @user_passwd VARCHAR(50)
Exec master..sp_OACreate 'MSXML2.XMLHTTP', @Object OUT;
Exec master..sp_OAMethod @Object, 'open', NULL, 'get', 'http://172.xx.xx.xx:wwww/account.asmx?op=CreateEquipementMacAddress', 'false'
EXEC master..sp_OASetProperty @Object, 'user_login', @login
EXEC master..sp_OASetProperty @Object, 'user_passwd', @user_passwd
EXEC master..sp_OASetProperty @Object, 'p_nb_poste', 1
EXEC master..sp_OASetProperty @Object, 'p_id_site', 91400
EXEC master..sp_OASetProperty @Object, 'p_id_type_poste', 83
EXEC master..sp_OASetProperty @Object, 'p_adresse_mac', null
EXEC master..sp_OASetProperty @Object, 'p_num_serie', null
EXEC master..sp_OASetProperty @Object, 'login', null
EXEC master..sp_OASetProperty @Object, 'passwd', null
EXEC master..sp_OASetProperty @Object, 'default_gateway', null
EXEC master..sp_OASetProperty @Object, 'ip', null
EXEC master..sp_OASetProperty @Object, 'bCreateIPPhone', 'false'
EXEC master..sp_OASetProperty @Object, 'vlanId', 0
Exec master..sp_OAMethod @Object, 'send'
Exec master..sp_OAMethod @Object, 'responseText', @ResponseText OUTPUT
Select @ResponseText as ResponseText
Exec master..sp_OADestroy @Object
I use a SQL server 2000 and don't do anything else.
But it doesn't work
I don't know what to do ...
the message is (1 row affected) but no tupple is written in my db...
can you help me please ? -
How to call webservice using flex?
Hello,
i want to call webservice in flex.i tryied following code.but it is not giving correct response.what is wrong with this code?
can anybody tell me ,how to call webservice in flex?
Code:
<mx:Script>
<![CDATA[
public function button1_clickHandler(event):void
ws.returnRecord(para1,para2);//i am sending two parameter to returnRecord service here
public function remotingCFCHandler(event:ResultEvent):void
trace(event.result);
]]>
</mx:Script>
<mx:WebService
id="ws"
wsdl="http://localhost:8500/flexapp/returnusers.cfc?wsdl">
<mx:operation name="returnRecords" resultFormat="object"
fault="mx.controls.Alert.show(event.fault.faultString)"
result="remotingCFCHandler(event)"/>
<mx:Button label="Go" fontWeight="bold" click="button1_clickHandler(event)"/>Hello sir,
i got following reply:
<returnRecordResponse xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<returnResult>Error_request</returnResult>
</returnRecordResponse>
but correct response is
<returnRecordResponse xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<returnResult>Success</returnResult>
</returnRecordResponse>
can you tell me correction in the code which i have put on the forum?or tell me other way to call webservice? -
Call webservice from PJC over https protocol
Hello!
I have problem calling webservice from PJC.
The webservice is on https server so I must declare the keystore and truststore...
I have generated java classes from wsdl file with SOPAUI and axis 1.0...
Then I have made a code which integrate axis library, jsee ...
On the client side all works fine (with jdk 1.3 compiler)
When I deploy it on oracle forms server and call it from oracle form I get the error:
java.net.MalformedURLException: unknown protocol: https
in this way I register the certificate..
private void registrirajCertifikat(String direktorij, String password,
String keyStore, String trustStore) {
System.out.println("keystore: " + direktorij + keyStore);
System.out.println("trust: " + direktorij + trustStore);
System.out.println("========================================");
System.setProperty("javax.net.ssl.keyStore", direktorij + keyStore);
System.setProperty("javax.net.ssl.keyStorePassword", password);
System.setProperty("javax.net.ssl.keyStoreType", "pkcs12");
System.setProperty("javax.net.ssl.trustStore", direktorij + trustStore);
System.setProperty("javax.net.ssl.trustStorePassword", password);
System.setProperty("javax.net.ssl.trustStoreType", "jks");
System.out.println("========================================");
System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );
}I have my kestore and truststore located on http server..
Every time the bean is initializzed I download the keystore and truststore to my java.tmp.dir
The same code in Jdeveloper works fine.. also in cmd prompt.. but in oracle forms I can't get it to run..
anybody can help me?
this is my console output when running a form:
Oracle JInitiator: Version 1.3.1.22
Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\peterv.IN2SLO
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\Documents and Settings\peterv.IN2SLO\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Loading http://dekani:7777/forms/java/frmall_jinit.jar from JAR cache
Loading http://dekani:7777/forms/java/images.jar from JAR cache
Cached copy of http://dekani:7777/forms/java/in2kartica.jar
** DOKUMENTNI SISTEM **
** PJC bean **
zacetek
http://10.1.2.235/in2/asarh.pfx
Copying resource (type: application/octet-stream, modified on: Dec 18, 2009 12:39:35 PM)... to: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
3794 byte(s) copied
http://10.1.2.235/in2/arhaskeystore.jks
Copying resource (type: application/octet-stream, modified on: Dec 18, 2009 12:39:35 PM)... to: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
3800 byte(s) copied
Registriramo nastavitve za SSL
keystore: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
trust: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
========================================
po registraciji nastavitev za SSL
========================================
https://hosting.arhiviraj.si/webservice2/InDocArchiveWS.asmx
--> napaka: *java.net.MalformedURLException: unknown protocol: https*
java.net.MalformedURLException: unknown protocol: https
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at in2.mikrocop.Test.dokumenti(Test.java:94)
at in2.mikrocop.Test.testiranje(Test.java:66)
at in2.mikrocop.Test.<init>(Test.java:49)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at oracle.forms.ui.VBean.instantiateBean(Unknown Source)
at oracle.forms.ui.VBean.setProperty(Unknown Source)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)I have tryed tu run my example with Jinitiator "java" like
c:\java -jar c:\in2kartica.jar
and all works fine..
I don't know why the same example won't run inside oracle form as javabean?!?
this is my cmd console
C:\jdk\bin>java -jar c:\in2kartica.jar
** DOKUMENTNI SISTEM **
** PJC bean **
keystore: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\asarh.pfx
trust: C:\DOCUME~1\PETERV~1.IN2\LOCALS~1\Temp\arhaskeystore.jks
========================================
po registraciji nastavitev za SSL
========================================
https://hosting.arhiviraj.si/webservice2/InDocArchiveWS.asmx
unknown attr1.3.6.1.4.1.311.17.1
Dolzina: 91 <------------ this is the result from webservice located on address above
Maybe you are looking for
-
All the data from the Iphone has been lost
My sister has been using her Iphone for a couple of weeks but has not plugged it in to her computer. when she did the computer asked he to restore it so she did and has lost all of her data. I have restored her contacts from the sim card but can't wo
-
ISE 1.2 - MAB Guest and MAB Supplicant Provisioning
In short trying to provide a configuration whereby a Guest utilises MAB and a set of sponsor created credentials to gain access to Internet via the portal. In addition to this I am also trying to provide MAB for "Corporate BYOD" utilising AD credenti
-
Is mobile me the only app where I can upload photos to create albums to share?
Also, when I try to open the Gallery appl it does not accept the MobileMe ID and password I set up when I downloaded "find my iPad". What gives?
-
Short dump (DBIF_RSQL_INVALID_RSQL) during activating ODS
Hello Experts, I found short dump during activating ODS. The error message in short dump: Runtime Error: DBIF_RSQL_INVALID_RSQL Except.: CX_SY_OPEN_SQL_DB The termination occurred in the ABAP program "GP7WIVS2MDWGSTMN3ICFDKNAH65" in "ACTIVATE_SIDS".
-
SD Card not showing after Mountain Lion Update
This matter has been discussed for some time now in Apple Support Communities > Desktop Computers > iMac (Intel) > Discussions SD Card not showing after Mountain lion Update Since the update to Mountain Lion, the SD slot does not show up in Finder. S