How to call webservice through Oracle HTTP Server
I have cluster of three Managed Servers. They are behind a Oracle HTTP Server. I deployed a web service to the cluster. When calling web service, I got the error. The error is that the client of web service can not directly access the Managed Servers.
The error tell that it can not access http://webapp01:7003/webservice/HelloWorld?WSDL
Where webapp01 is the host name of a managed server.
Is there a way that web service return the result to HTTP Server and HTTP Server return it to web service client.
1. Before you invoke the WebServices from client program, I guess you may have already generated the webservices client jar for the WSDL that is deployed using sun jdk "wsimport" command or bea's clientgen ant task. At this time, what is the wsdl url you gave. In the generated client jar file you should see .JAVA files also. Check the Service related .java file and check the WSDL URL in that file. If it is using weblogic servers managed server host and port, then the problem you see is obvious.
2. To fix this, you re-generate the webservices client jar file again this time giving the http server host and port instead of weblogic host and port. I am hoping you already modified httpd.conf file to accept the webservice url pattern. Check the .JAVA file generated for service to see the WSDL URL that is having inside.
3. Another approach is on your client side, before you invoke any operation on WebService, you will be first getting Service object, then Port object and invoke methods on Port object. When you get Service Object, you can pass the WSDL URL as one parameter and ServiceName (QName) as second parameter. Most of time we use default constructor without any parameters to get Service object. But you can use other constructor and pass 2 parameters. The WSDL URL will have HttpServers host and port, and rest of the url for wsdl will be the same.
In our env, we have similar requirment. SOAP BPEL Process WebServices are deployed on WLS 10.3.1 on a Cluster with 2 ManagedServers. We have Apache Proxy in front of this Cluster. All our WSDL requests goes to Apache host and port + wsdl url. This inturn goes to one of the managed servers at a time in round-robin. This is working. In httpd.conf we gave "MatchExpression / " so that any request from apache will go to cluster.
HTH
Ravi Jegga
Similar Messages
-
How to deploy form on oracle http server
Hi!
I am sitting on windows XP professional
I have created a simple index.html page. There is a link to my form (http://lki:8889/forms/frmservlet?config=zodynas)
My index.html page is deployed on http:\\lki:90 . When i click a link i get a message that the page was not found. When i open my index page from my computer everything works.
Thanks! I am looking forwart to hearing from you.I'm going to guess and say that you are using Developer Suite based on your reference to port 8889. Assuming this is true, did you start OC4J? If so, a DOS window will open - do NOT close this window as it will terminate OC4J.
Also, what happens if you open a browser and enter the Forms URL directly?
http://lki:8889/forms/frmservlet?config=zodynas -
Virtual Directory Change from Oracle HTTP Server to Embedded PL/SQL Gateway
We finally upgraded from htmldb 1.6 to ApEx 3.1.2 late last year. This was in conjunction with setting up a new server and installing Oracle 11g DB, while our production DB is still 10g. During this install, I opted for the Embedded PL/SQL Gateway, whereas our htmldb is running with the Oracle HTTP Server.
During the conversion of one of our applications I learned that Virtual Directory references to #IMAGE_PREFIX# are no longer valid for custom CSS so I had to change an entry in the page templates that I'm using to use #WORKSPACE_IMAGES#. Now I am importing another application from our htmldb 1.6 environment to our ApEx 3.1.2 environment, and I have a new problem that I think is related.
In this application we have been uploading report files for outside users to be able to download at their convenience. I think the upload is working OK, but when I try to download the report file I get the following:
Not found
The requested URL /apex/IMR.ofile was not found on this server.
The download is accomplished with a link on an SQL Report region. The Column Link info is:
Link Text = <img src="#IMAGE_PREFIX#edit_big.gif" border="0" alt="Icon 1">
Target = URL
URL = #OWNER#.ofile?p_file=#VIEW_REPORT#&v_auth=&APP_USER.
When I change the Link Text to <img src="#WORKSPACE_IMAGES#edit_big.gif" border="0" alt="Icon 1"> I lose the Edit Icon image. However, what I'm really concerned about is the URL not found error
Now, maybe I'm barking up the wrong tree, so if the problem isn't related to virtual directories, which tree should I be barking up?
Any suggestion?
Thanks,
GregoryIs the IMR.ofile a custom package for downloading files? If so, you might need to add it to the wwv_flow_epg_include_mod_local function.
I am not certain how this function also plays into the embedded pl/sql gateway, but do know it would affect this running through Oracle HTTP server when configured with the before proc.
With the embedded gateway it may very well be that you need to add this package into the ACL for outside availability. -
Starting of Oracle HTTP Server
Hi , I've installed Oracle 9i database, unable to start my Oracle HTTP Server. Mine is a standalone Win2k system, not connecetd to the Internet, doesnt have a modem either. How do i start my Oracle HTTP Server?
Thanks in advance,
Rajopen your Windows Services (Settings->Control Panel->Administrative Tools)
and verify your whether your service OracleOraHomexxHTTPServer is started or not. If not you can start it from there.
hope it helps... -
Set up Oracle HTTP Server for a particular IP address
How do I set up Oracle HTTP Server to allow access control based on a particular IP address to certain CGI Scripts if a site is a local site?
I have tried this in httpd.conf file but it does not restrict a particular IP address (say 10.1.2.4) in my home network (consists of 3 PCs). 10.1.2.3 is the IP address of node where OHS is installed. I access my OHS from client like this http://10.1.2.3:7777/cgi-bin/printenv
ScriptAlias /cgi-bin/ "C:\oracle_home\Apache\Apache\cgi-bin/"
<Directory C:\oracle_home\Apache\Apache\cgi-bin>
AllowOverride None
Options None
Order Deny,Allow
Deny from all
Allow from 10.1.2.3
</Directory>
Note: - I have not made any changes in the default configuration of OHS.
Any help for a student like me will be highly appreciated.
Regards
Rajesh KumarNo the idea is not to disable the signature. The reason why I wanted you to locate the specific block/deny was to make it easier to fix it. I would still recommend to use the Event Action Filters only to exclude the host and not disable the signature altogether.
That said, there are some signatures that "according to the documentation" cannot be excluded using event actions like Sweep signatures. These signatures have a field for Source/Dest IP built-in to exclude specific hosts. HOwever to be honest I could get event actions to work perfectly with event actions on our customers ;), so it could be an old restriction still mentioned in the docs.
Lastly, you only disable a signature when you are absolutely sure that you are not running the Software/Application/Service on your network. For example on one customer we would frequently get VPN 3000 COnc. HTTP attack signatures fired for internet traffic, and since there is no chance to add any VPN3k on this network (its already End of Sale), I disabled this signature.
Regards
Farrrukh -
How to install Soap on the (Apache) Oracle HTTP Server
Hi,
Does anyone know how to install SOAP on the Oracle HTTP Server? I downloaded a soap version (it seems that the standard version comes without SOAP) from the xml.apache.org site and followed the installation instructions as far as I could (only Tomcat is described). However, no 'soaping'!!! Maybe I'm overlooking something because I cannot imagine that it should be difficult.
Thanks in advance!
HansHans, the SOAP implementation is part of OC4J. You get it out of the box. Check out how to use the out-of-the-box implementation in the tutorials on Web services with Oracle9i JDeveloper at:
http://otn.oracle.com/tech/webservices/htdocs/series/content.html
These tutorials/samples use the implementation of SOAP/WSDL that Oracle calls J2EE Web Services and this is the long term direction of Oracle's Web services implementation. This implementation is what Oracle will be evolving to Sun's Java Web Services Developer Pack as it finalizes into J2EE 1.4.
If you want to use Oracle/Apache SOAP, this too is included in OC4J but its support is being deprecated in future releases of Oracle9iAS in favour of the J2EE Web Services implementation. To find it, check out the OC4J/soap/webapps/ directory for the soap.ear file (it is in a slightly different spot if you are using the full Oracle9iAS R2 but still within the soap directory structure. Simply add <application name="soap" path="../../../soap/webapps/soap.ear" auto-start="true"/> to your OC4J server.xml and <web-app application="soap" name="soap" root="/soap" /> to your OC4J http-web-site.xml, re-start and away you go.
Finally, just to be sure, SOAP support in Oracle9iAS did not appear until 1.0.2.2.x and higher. If using 1.0.2.1 or less, you are correct, there is no SOAP support.
Mike.
Most folks that try out the J2EE Web Services find it is pretty easy to use so -
How to get rid of /j2ee prefix from URL when I use the OC4J via Oracle HTTP server
In 9iAS 9.0.2 Oracle HTTP Server (OHS) is pre-configured to assign requests to the Home OC4J instance via the URL-prefix "/j2ee"/
For example, the TEST servlet under OC4J would be passed through OHS using:
http://urmachine:urApachePort/j2ee/TEST
whereas in the standlone OC4J version, this URL works:
http://urmachine:urOC4JPort/TEST
How to get rid of /j2ee prefix from URL when I use the OC4J via Oracle HTTP Server?It is getting the url prefix from mod_oc4j.conf
under /ora9ias/Apache/Apache/conf
You can read more on this at
http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/a92173/confmods.htm#1008977
-Prasad -
How to configure Oracle HTTP server
Hi, I installed APEX 3.0 in Oracle 10.2.0.2 database. I installed HTTP server from Oracle 10.2.0 database companion CD. The problem is I am not sure which conf file I need to modify as in the installation document, it only shows steps for how to configure HTTP server 9.0.3/11g/Oracle Application Server 10g. Anybody knows where to get the right doc? Thanks.
Hi,
Configure the Oracle HTTP Server (OHS) from the companion CD is the same for other OHS (apart from OHS 9.x where it uses wdbsvr.app).
So just follow the install guide from
4.4 About Configuring Oracle HTTP Server
http://download-west.oracle.com/docs/cd/B32472_01/doc/install.300/b32468/post_inst.htm#BHAGICFJ
Regards,
Sunny Patel. -
How to integrate Oracle Http Server with Weblogic
Weblogic supports Apache web server 2.0 and 2.2 to be a proxy server. Oracle Http Server (OHS) is based on Apache 2.0. I am trying to configure Weblogic to use OHS that comes with OAS install as proxy on Linux environment. I am unable to get the WLS plugin for Apache to work with OHS. When I tried to start the OHS, I got the following errors:
/oracle/product/10.1.3.1/OracleAS_3/Apache/Apache/bin/apachectl startssl: execing httpd
Syntax error on line 1125 of /oracle/product/10.1.3.1/OracleAS_3/Apache/Apache/conf/httpd.conf:
Cannot load /oracle/product/10.1.3.1/OracleAS_3/Apache/Apache/libexec/mod_wl128_20.so into server: /oracle/product/10.1.3.1/OracleAS_3/Apache/Apache/libexec/mod_wl128_20.so: undefined symbol: apr_pool_cleanup_null
I checked the library, and I found in several places, such as /usr/lib.
The following is the configuration that I put in http.conf file:
<IfModule mod_weblogic.c>
WebLogicCluster 127.0.0.1:7001
MatchExpression /AIP
</IfModule>
<Location /weblogic>
SetHandler weblogic-handler
WebLogicCluster 127.0.0.1:7001
DebugConfigInfo ON
PathTrim /weblogic
</Location>
Anybody knows how to fix this?
Thanks.You're right: Weblogic supports Apache web server 2.0 and 2.2 to be a proxy server but you are using Oracle Application Server 10.1.3.1.0 which is based on Apache *1.3* as you can read in "Oracle® HTTP Server Administrator's Guide"
10g (10.1.3.1.0) - Part Number B28948-01 - 1.1 Oracle HTTP Server Features, right under "Based on Apache - HTTP v1.1 Support" at
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28948/overview.htm#i1008837.
As far as I know, the only OHS based on Apache *2.0* is available as a standalone release: "Oracle HTTP Server (Apache 2.0) (10.1.3.3.0) for Linux x86" - 32bit. You can download it from http://www.oracle.com/technology/software/products/database/oracle11g/111060_linuxsoft.html (as_101330_apache2_lnx.zip).
I've tested it successfully.
Edited by: Virgil on Jan 15, 2009 3:08 AM -
How to install Oracle HTTP Server 10.1.3.0 on Solaris 10
Hi !
I am new to solaris 10 and i want to install oracle HTTP server on solaris 10.
Kindly can any one share steps/documents how to prepare my system for installation
uname -r = 5.10
my user=oracle fro installation
group=oinstall oracle user group
Shell = bin/sh bourn shell
no variable defined in .profile file OR at any place
my istallation directory=> OracleHome ==> /home/oracle/OracleAs_1
my oraInventory directory=> orainventory ==> /opt/ora/oraInventory
following commands executed using root
chown -R oracle:oinstall /home/oracle
chown -R oracle:oinstall /opt/ora
chmod -R 777 /home/oracle
chmod -R 777 /opt/ora
============================
executing setup using oracle user
./runInstaller -executeSysPrereqs command output==> OK/Pass I dont have patch 118345-03
As patch 118345-03 is not required for the solaris 10with kernal patch/update 5.
./runinstaller and installation type= Advance => OC4j was installed successful but http server gives error.
HTTP server configuration assistant Fails. Setup doesnot complete.
error ==> http server fails to start Managed processes after the maximun retry limit.
error status 206
**** see HTTP_Server~1.log in opmn/logs folder. nothing in log except startprocess and stop process
**** Apache/Apache/logs don't have any LOG or httpd.id file.
========================================
When i start Apache using apactlstart.sh it runs and i can access http://localhost:777 ===> working with message use opmnctl
Need Help :) Thanks in advanceHere is such a description:
http://onlineappsdba.com/index.php/2007/06/20/install-oracle-soa-suite-101310/
Jon petter -
How to get standalone Oracle HTTP Server with mod_plsql?
Hi,
I do not know if it is just me but it seems to be a nightmare to get OHS with mod_plsql from the official OTN download site. I downoaded the companion CD for Windows - 3 disks, installed OHS - no mod_plsql. Then I tried to find any clue on OTN on how to download mod_plsql - none. Plenty of information on how to configure it and use it, but nothing on how to get it.
PLSQL gateways is not an option for us because many of our clients do not allow direct communication between the database and the Internet.
Windows 2003 Server R2
Apex 3.2.1
RDBMS 10.2.0.4
Any help appreciated,
WK
PS.
I would not like to download the software from unofficial sites but rather get it straight from Oracle.Hi,
For those interested: I found Oracle HTTP Server with mod_plsql on OTN -> downloads -> middleware -> WebCenter suite.
WK -
How to create a service for Oracle HTTP Server
Hi,
I hope someone can help me.
I would like to create a service for an Oracle HTTP Server.
We are running APEX 3.2 on an 10.2.0.4 database (not XE).
We have a Windows XP system.
To run APEX on a 10g we need the HTTP Server.
Unfortunately no service was created while the installing of the Oracle HTTP Server.
How can I create a service later. After the installation.
I know that you can create a service with Instrsrv.exe and Srvany.exe. But I dont know wheather I can use this in this case.
I need an .exe file for that.
The HTTP-Server has the opmnctl.exe.
But I have to write opmnctl.exe startall when I start or opmnctl.exe stopall when I want to stop it . How can I realize that in a Service?
Thanks for your answer
JensHi,
I hope someone can help me.
I would like to create a service for an Oracle HTTP Server.
We are running APEX 3.2 on an 10.2.0.4 database (not XE).
We have a Windows XP system.
To run APEX on a 10g we need the HTTP Server.
Unfortunately no service was created while the installing of the Oracle HTTP Server.
How can I create a service later. After the installation.
I know that you can create a service with Instrsrv.exe and Srvany.exe. But I dont know wheather I can use this in this case.
I need an .exe file for that.
The HTTP-Server has the opmnctl.exe.
But I have to write opmnctl.exe startall when I start or opmnctl.exe stopall when I want to stop it . How can I realize that in a Service?
Thanks for your answer
Jens -
How to isolate web applications at URL level with Oracle HTTP Server?
We have 2 machines each for oracle web cache, oracle http server and oracle application server (oc4j). We would like to host many web applications on this infrastructure. We have an issue with application/web site isolation for maintenance purposes.
We have several oc4j containers for different web sites/applications but they all use one instance of Oracle Http Server. When we need to make changes to an application/web site or introduce a new web site (URL), we change the OHS configuration and restart OHS on each of the machines.
As we have many URLs hosted on this OHS and plan to host a lot more (may be around 300), we need a way to slice and dice the URLs so that every change or any change should not need to go through a regression cycle or testing cycle for all the applications each weekend (our change window). When we used Apache earlier, we used to be able to create multiple httpd.conf (process level isolation) to cater to different applications.
We could do this with Oracle Http Server too but Oracle will not support us. I appreciate any advice or suggestion with this issue.
Thank you
RamanaHi Joey,
A great idea! I recently presented at a local user group meeting about my WebSockets API (see the links in my signature). I've uploaded the presentation and the demo code I gave to our UG here.
I think the barrier to entry is with needing to know the web languages (e.g. html/css/js) as well as writing your LabVIEW code. I have joined the group and look forward to seeing some interesting content on there! Certainly some demos of using AJAX to make requests to Web Services and do something with the data (e.g. display on a graph) would be a good place to start.
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets -
How can we debug Oracle Http Server on AIX.
Our requirement is to attach a debugger (dbx) to oracle http server on AIX.
For that purpose we need to start the OHS webserver service that is opmn in a single process mode the way we start Apache webserver by -X option.
Can anyone help how can we start OHS in single thread.user9201760 wrote:
Hi,Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you've updated your profile with a real handle instead of "user9201760".
You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This would normally include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s)
Thanks for having included most of the information that is relevent to your question.
I have installed Oracle Apex 4.1 on Oracle 10g database but I want to configure Oracle HTTP Server on another Server(Microsoft Windows 2008 R2). Here I have placed Apache Tomcat 6.0 version already. Can anyone please tell me how is it possible to install and configure Oracle HTTP Server on Windows 2008 along with Apache Tomcat?Why? Installing OHS and the DB on separate servers will incur additional licensing costs.
More common confugrations would be to use Apache as a reverse proxy to an OHS+DB server, or Tomcat+APEX Listener with a DB server and not using OHS at all. (Although I understand Tomcat is not an Oracle-supported platform for the APEX Listener. For any questions on this or other Listener-related topics use the {forum:id=858} forum.) -
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
Maybe you are looking for
-
Output iPad video to 27" iMac using iPad VGA adaptor?
Hi, I was wondering is it possible to Output iPad video to 27" iMac as an external monitor using iPad VGA adaptor? Thx.
-
Looking for OD only binding script
Hello everyone, after several weeks of trying different solutions we are stuck with trusted binding / OD binding in Deploy Studio. We've added several workstations to our computers and they are renamed by a script this works fine. The problem is that
-
Changing the date of dedicated server
I have dedicated server with RHE, Oracle and Java Servlets Can I change the linux time and date with java code? thanks & best regards
-
Who can solve the error code 403 on hp5522 ? help please
who can solve the error code 403 on hp5522 ? help please
-
Cumulative patchset 10.1.2.3 on Windows?
Looking at the individual patches for 10.1.2.3 on Metalink, it seems they all apply only to UNIX platforms. Is that correct, or can they be applied on a Windows installation as well?