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
Sudeep
Hi,
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
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 amethod from some other application
Hi,
I have two web application running on the tomcat say [a] and . I need to call a method from [a] in [b] without adding the reference jar file of [a] in [b].
How to do this?
Please guide me..
Thanks in advance.Hi,
is not dependent on [a]. Two applications will be running on tomcat. There are some java classes in [a]. I need to invoke the method of those classes in [a] from [b] without replicating the classes of [a] in [b].
Is there any way to do this? -
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 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
HiteshHitesh,
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 -
How to call reports from JSP/HTML application
Hi,
We have a web application developed in JSP, I'd like to use Oracle Reports writer to generate reports (Since our back office application is developed using Oracle forms and Reports - 6i).
I don't know how to place a request to Oracle Reports server and view the output. Can someone please help me with this.
Thanks in advance.
Best Regards,
KarthikHello Karthik,
You have a web application developed in JSP. In that you are calling Reports though URL through your JSP.
User views the source of the HTML page, in browser which is the result of execution of JSP. So Client will see the
HTML output, but not the real JSP.
Still if you donot want to hard code the user/password in file, have a form and ask client to enter user/password.
Or you can combine your JSP with other Java components , like Java bean or Servlets to get user/password at run time.
With Regards
Sachin -
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 a BAPI in EJB application
Hi ,
I need to develop an webservice that takes data from a BAPI and insert in to ORACLE database. I think webservices can be created through EJB application.
I am not having idea regarding how to call an BAPI in EJB application. can anyone help me out in this.
Regards,
Laxmi.Hi,
you can use JCO Connection,
look this
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/fcadaf90-0201-0010-4091-bd0bcd7b7f6a]
Regards,
Matteo -
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 ? -
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 -
How to Call third party Jar into Application
Hi Can any Expert help ?
I want to put third party Jar into my application but i have some problem occur.
1. how to call jar with parameter in application ?
2. when i exit the third party jar task, it will exit my main task too. How to set my main tast exit stats standalone ?
3. I have over 10 jar files in one application, how can i set a classpath for client to call JNLP, instread of load all jar to client before run.
Thanks.
Sanki Poon ([email protected])1) Sounds like you are trying to launch the third party from it's application main instead of using it as an API How does your code interact with it or is that not important?. You don't call a jar, you load a class. You could use a exec http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html to run the java launcher and pass it all it's command line stuff(But this may not be possible security wise via WebStart).
2) if it is launched in the same JVM and it calls a System.exit there is nothing you can do about your app closing too. It would need to be in another instance of the JVM
3) Under the resources tag you can have as many jar tags as needed.
<resources>
<j2se version="1.5.0" java-vm-args="-esa -Xnoclassgc"/>
<jar href="/jsf-wita/apps/MathMLWebEditor.jar"/>
</resources>
Maybe you are looking for
-
Delivery Schedule Confirmation inbound
Hi experts, Business scenario: For material planning purpose, The SAP PO would require delivery schedule confirmation from supplier to be used as a PO firm item when the PO is released. The PO items are critical since they will be used as material re
-
CAn't open pdf's in adobe is opening in explorer
Hi, For some reason my computer is opening my pdf files in explorer and not in adobe reader even though they are still pdf files. In fact all my saved pdf files no longer have the adobe reader icon attached but have the explorer icon. This has only h
-
How to unlock a disabled iphone 5
I recently just recieved an iPhone 5 and forgot my password and was wondering how I could redeem my password?
-
Price determination using a premium (multiplication factor)
Hi I have a business scenario where services are being maintained as a material type - DIEN with a standard price. Now what is required is to maintain a multiplication factor which will always be multiplied with the standard cost and the resultant va
-
Applet-Servlet communication (Serialization)
I need to pass certain objects from server side to the client applet. My applet is embedded in the jsp. Just before calling the applet, Im able to pass the string parameters via jsp <param>tag. Now I need to pass an object which is of a class type. I