Simple html service from "/" WLS 10.3.6.0

I am no developer, but need to serve a page "/keepalive.htm" from a number of clustered managed servers (running SAP Business Objects XI3, not that that matters!).
This is on WebLogic 10.3.6.0, not using the Apache front end, but the built in webserver.
Is there a simple way to serve this file, used by our Load Balancers to determine a WL server is up?
Thanks,
John

Hi Nohj,
In WebLogic you can develop a simple web application to display static HTML content.
For example:
1. Create a directory of your choice, this is what I will call the document root.
mkdir /u01/oracle/doc_root
2. Copy the static files to this directory
3. In the document root directory created in step 1 create the directory WEB-INF
mkdir WEB-INF
4. In the WEB-INF directory create a file called web.xml with the following content
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
</web-app>
5. Login to the WebLogic console to deploy application
6. Click on Deployments
7. Click on Lock & Edit
8. Click Install and set the path to the directory created above in step 1.
9. Leave default "Install this deployment as an application" and click Next.
10. Select a Managed Server to deploy to and click Next.
11. Accept the defaults and click Finish.
12. Deployment completes successfully, now click the Activate Changes.
13. You should now see the application started in the deployments.
14. You can now access your static content via the following URL : http://localhost:7001/doc_root/helloworld.html
Hope this will help you.
With Best Regards,
Steff

Similar Messages

  • Deploying simple HTML page to WLS 10.3.6 fails with HTTP response code: 502

    - I created a simple HTML page and want to test deployment to WLS 10.3.6 on Linux. I created WAR file and when using JDev 11.1.1.4.0 to deploy to WebLogic Server, it fails to deploy. Full errors/messages are:
    [04:40:56 PM] ---- Deployment started. ----
    [04:40:56 PM] Target platform is (Weblogic 10.3).
    [04:40:59 PM] Retrieving existing application information
    [04:40:59 PM] Running dependency analysis...
    [04:40:59 PM] Building...
    [04:40:59 PM] Deploying profile...
    [04:40:59 PM] Wrote Web Application Module to C:\JDeveloper\mywork\Simpe_HTML\Project1\deploy\SimpleHTML.war
    [04:41:01 PM] Deploying Application...
    [04:41:01 PM] Weblogic Server Exception: weblogic.deploy.api.internal.utils.DeployerHelperException: The source 'C:\DOCUME~1\NGOLDR~1.LAT\LOCALS~1\Temp\SimpleHTML.war' for the application 'SimpleHTML' could not be loaded to the server 'http://dupe:7031/bea_wls_deployment_internal/DeploymentService'.
    Server returned HTTP response code: 502 for URL: http://dupe:7031/bea_wls_deployment_internal/DeploymentService
    [04:41:01 PM] See server logs or server console for more details.
    [04:41:01 PM] weblogic.deploy.api.spi.exceptions.ServerConnectionException: [J2EE Deployment SPI:260041]Unable to upload 'C:\JDeveloper\mywork\Simpe_HTML\Project1\deploy\SimpleHTML.war' to 't3://dupe:7031'
    [04:41:01 PM] #### Deployment incomplete. ####
    [04:41:01 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    - The Application Server connection is accessible within JDev. 'dupe' is my server name and it's running RH 5.4
    - Any help or suggestions appreciated, although I've already asked Mr. Google without success.
    Thanks in advance,
    Neville

    HTTP response code 502 means temporarily overloaded.
    I would say that we have to check the deployment error on the weblogic server logs located at <Domain_Home>\servers\dupe\logs\dupe.log
    Check for any errors like OutOfMemory etc OR any deployment failures.
    If possible, try accessing the console at http://dupe:7031/console
    Check if you are able to successfully deploy your application using the console.
    From the error it looks like the "dupe" server might not be healthy. So, the log file would really help here to get clues into the root cause.
    Arun

  • Error when calling simple restful service from SOA 11G

    Hi'
    I have a URL for simple restful service
    http://xxxxx:857/swift/v2/EMPIDChanges/{bookmarkDate}
    GET method
    I am able to invoke this from IE and This URL is also accessible in UNIX server where SOA server is deployed.
    http://xxxxx:857/swift/v2/EMPIDChanges/2012-11-28%2005:57:49
    I am using HTTP Binding adapter,
    This is what goes in the composite.xml
    <reference name="ff" ui:wsdlLocation="ff.wsdl">
    <interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/http/AssetID/Test_AssetID_VL/ff#wsdl.interface(Request_Response_ptt)"/>
    <binding.ws port="http://xmlns.oracle.com/pcbpel/adapter/http/AssetID/Test_AssetID_VL/ff#wsdl.endpoint(ff/Request_Response_pt)"
    location="ff.wsdl" supports="http">
    <property name="http.verb" type="xs:string" many="false">GET</property>
    <property name="endpointURI" type="xs:string" many="false">http://xxxxx:857/swift/v2/EMPIDChanges/{bookmarkDate}</property>
    <property name="http.payload" type="xs:string" many="false">url-encoded</property>
    <property name="oracle.webservices.auth.username" type="xs:string" many="false" override="may">Test1</property>
    <property name="oracle.webservices.auth.password" type="xs:string" many="false" override="may">Test1</property>
    </binding.ws>
    however I am getting error
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): REPLACE_WITH_ACTUAL_URL</summary>
    </part>
    -<part name="detail">
    <detail>Unable to access the following endpoint(s): REPLACE_WITH_ACTUAL_URL</detail>
    </part>
    -<part name="code">
    <code>null</code>
    </reference>
    Please advice,
    Thanks,
    Yatan

    WS Binding: exception durign SOAP invocation: java.util.NoSuchElementException
    Looks like the error is in the data sent to or expected from the service in your composite. Check that audit logs and composite flow to make sure your soap message when using soapui matches what you are working with in soa suite.

  • Creating simple Web Services from Plain Old Java Objects (PoJo)

    This post is with reference to a sun web page at URL - http://developers.sun.com/appserver/reference/techart/ws_mgmt.html
    It is a crisply written tutorial on creating a simple Java class and deploy the class as a JAX-WS 2.0 Web service.
    Requires -
    a) Sun Application Server - I got App Server Platform Edition 9.0_01
    b) Also requires Java_Home to JDK 1.5.0 - this was something i did even though my App Server i believe is using jdk 1.6.
    [The reason i know that is because when i removed jdk 1.6. directory from my C:\Java location, my app server asadmin commands would not be found. While i dont remember configuring the App Server to point to JDK 1.6. specifically, i am assuming the app server version i downloaded and installed auto installs it and uses it]
    I wrote up the class as described in the tutorial.
    Initially i had difficulty compiling the class, and it would error out as being unable to find the javax.jws package.
    I researched the problem a little and included the jaxws-tools.jar in the classpath and that error went away.
    According to the tutorial the presence of the @WebService annotation will tell the App Server to process it as such and also auto deploy it to the App Server.
    However while the class file is created, the autodeploy part fails completely.
    I have the entries in server.log corresponding to this javac execution stored in a separate file. Didnt know how best to attach it here.
    Please help.
    Best regards,

    Just inline the appropriate pieces of the server log.

  • Error calling a Tuxedo service from WLS

    We have WLS 6.1 connecting to Tuxedo 8. We try to run the example application simpapp.
    We connect thru the toupper EJB to Tuxedo. It connects succesfully, but when we
    execute the tpcall we get this error:
    * Tuxedo side:
    123313.localhost.localdomain!GWTDOMAIN.8794.1024.0: LIBGWT_CAT:1128: INFO: Connection
    accepted from domain (domainid=<WTCSIFO01>)
    123313.localhost.localdomain!GWTDOMAIN.8794.1024.0: LIBGWT_CAT:1070: ERROR: Unable
    to obtain local service information from shared memory
    123313.localhost.localdomain!GWTDOMAIN.8794.1024.0: LIBGWT_CAT:1043: ERROR: Unrecoverable
    error occurred on receipt of data - sending failure reply over network
    * WLS side:
    setSessionContext called
    ejbCreate called
    toupper called, converting ola
    About to call tpcall
    <04-ene-01 12:33:13 GMT+01:00> <Info> <WTC> <Established Connection to remote
    do
    main SIFOWTC01>
    tpcall threw TPException TPMINVAL(0):0:0:TPED_MINVAL(0):QMNONE(0):0
    I've checked my domain configuration in Tuxedo side, but everithing seems to be
    OK.
    Thanks
    Yol.
    This is my Tuxedo domains configuration (took from dmunloadcf)
    # DMCONFIG FILE
    *DM_RESOURCES
    *DM_LOCAL
    SIFOSGC     GWGRP=PASARELA
         ACCESSPOINTID="SIFOSGC01"
         AUDITLOG="/home/sifo/tuxedo/entorno/dominio/AUDITLOG"
         BLOCKTIME=6
         DMTLOGDEV="/home/sifo/tuxedo/entorno/DMTLOGDEV"
         DMTLOGNAME="SIFOSGC001_DMTLOG"
         MAXTRAN=50
         BLOB_SHM_SIZE=1000000
    SIFOWTC     GWGRP=WTC
         ACCESSPOINTID="SIFOWTC01"
         AUDITLOG="/home/sifo/tuxedo/entorno/dominio/AUDITLOG_WTC"
         BLOCKTIME=6
         DMTLOGDEV="/home/sifo/tuxedo/entorno/DMTLOGDEV_WTC"
         DMTLOGNAME="SIFOWTC001_DMTLOG"
         MAXTRAN=50
         BLOB_SHM_SIZE=1000000
    *DM_REMOTE
    SGCSIFO     ACCESSPOINTID="SGCSIFO01"
         CREDENTIAL_POLICY="LOCAL"
    WTCSIFO     ACCESSPOINTID="WTCSIFO01"
         CREDENTIAL_POLICY="LOCAL"
    *DM_TDOMAIN
    SIFOSGC     NWADDR="//172.16.160.173:6506"
         NWDEVICE="/dev/inet/tcp"
    SGCSIFO     NWADDR="//172.16.160.173:6507"
         NWDEVICE="/dev/inet/tcp"
    SIFOWTC     NWADDR="//172.16.160.173:6510"
         NWDEVICE="/dev/inet/tcp"
    WTCSIFO     NWADDR="//172.16.160.173:6511"
         NWDEVICE="/dev/inet/tcp"
    *DM_ACCESS_CONTROL
    ACL_SGC     ACLIST=SGCSIFO
    *DM_EXPORT
    QPK_CEN     ACL=ACL_SGC
         LACCESSPOINT=SIFOSGC
         COUPLING=LOOSE
    QPK_CUR     ACL=ACL_SGC
         LACCESSPOINT=SIFOSGC
         COUPLING=LOOSE
    QPK_ESP     ACL=ACL_SGC
         LACCESSPOINT=SIFOSGC
         COUPLING=LOOSE
    CUR01147     ACL=ACL_SGC
         LACCESSPOINT=SIFOSGC
         COUPLING=LOOSE
    simpserv     LACCESSPOINT=SIFOWTC
         COUPLING=LOOSE
    *DM_IMPORT
    SEL_TABLAS     LACCESSPOINT=SIFOSGC
         LOAD=50
         PRIO=50
         RACCESSPOINT=SGCSIFO
         TRANTIME=30
         AUTOPREPARE=N
    SEL_POSTAL     LACCESSPOINT=SIFOSGC
         LOAD=50
         PRIO=50
         RACCESSPOINT=SGCSIFO
         TRANTIME=30
         AUTOPREPARE=N
    SEL_MUNICIPIO     LACCESSPOINT=SIFOSGC
         LOAD=50
         PRIO=50
         RACCESSPOINT=SGCSIFO
         TRANTIME=30
         AUTOPREPARE=N
    SEL_PROVINCIA     LACCESSPOINT=SIFOSGC
         LOAD=50
         PRIO=50
         RACCESSPOINT=SGCSIFO
         TRANTIME=30
         AUTOPREPARE=N
    SEL_DAT_PER     LACCESSPOINT=SIFOSGC
         LOAD=50
         PRIO=50
         RACCESSPOINT=SGCSIFO
         TRANTIME=30
         AUTOPREPARE=N
    SEL_DIN_REPET     LACCESSPOINT=SIFOSGC
         LOAD=50
         PRIO=50
         RACCESSPOINT=SGCSIFO
         TRANTIME=30
         AUTOPREPARE=N
    SEL_NOM_PER     LACCESSPOINT=SIFOSGC
         LOAD=50
         PRIO=50
         RACCESSPOINT=SGCSIFO
         TRANTIME=30
         AUTOPREPARE=N
    SEL_CENTRO_SGC     LACCESSPOINT=SIFOSGC
         LOAD=50
         PRIO=50
         RACCESSPOINT=SGCSIFO
         TRANTIME=30
         AUTOPREPARE=N
    ACT_FORMACION     LACCESSPOINT=SIFOSGC
         LOAD=50
         PRIO=50
         RACCESSPOINT=SGCSIFO
         TRANTIME=30
         AUTOPREPARE=N
    and this is my WLS configuration (bdmconfig.xml):
    <?xml version="1.0"?>
    <!DOCTYPE WTC_CONFIG SYSTEM "http://www.bea.com/servers/wls610/dtd/wtc_config.dtd">
    <!--Java and XML-->
    <WTC_CONFIG>
    <BDMCONFIG>
         <T_DM_LOCAL_TDOMAIN AccessPoint="WTCSIFO01">
              <AccessPointId>WTCSIFO01</AccessPointId>
              <Type>TDOMAIN</Type>
              <Security>NONE</Security>
              <ConnectionPolicy>ON_DEMAND</ConnectionPolicy>
              <BlockTime>30</BlockTime>
              <NWAddr>//172.16.160.173:6511</NWAddr>
         </T_DM_LOCAL_TDOMAIN>
         <T_DM_REMOTE_TDOMAIN AccessPoint="SIFOWTC01">
              <LocalAccessPoint>WTCSIFO01</LocalAccessPoint>
              <AccessPointId>SIFOWTC01</AccessPointId>
              <Type>TDOMAIN</Type>
              <NWAddr>//172.16.160.173:6510</NWAddr>
         </T_DM_REMOTE_TDOMAIN>
         <T_DM_IMPORT
              ResourceName="TOUPPER"
              LocalAccessPoint="WTCSIFO01"
              RemoteAccessPointList="SIFOWTC01">
              <TranTime>600</TranTime>
         </T_DM_IMPORT>
    </BDMCONFIG>
    </WTC_CONFIG>

    Bob, you were right!!
    I didn't realize of that. Now the problem is fixed, and the communication with
    my domain is ok!
    Thank you very much.
    Yol.
    Bob Finan <[email protected]> wrote:
    Yolanda,
    You have TOUPPER listed as the service that your trying to
    import into the WLS side but you don't have it listed on the
    Tuxedo side as an exported service. On the Tuxedo side you
    have simpserv listed as an exported service when it is the server
    that contains TOUPPER. Change simpserv to TOUPPER in
    the dmconfig file and try that.
    Bob Finan
    Yolanda Arroyo wrote:
    This is my Tuxedo domains configuration (took from dmunloadcf)
    # DMCONFIG FILE
    *DM_EXPORT
    simpserv LACCESSPOINT=SIFOWTC
    COUPLING=LOOSE
    and this is my WLS configuration (bdmconfig.xml):
    <?xml version="1.0"?>
    <!DOCTYPE WTC_CONFIG SYSTEM "http://www.bea.com/servers/wls610/dtd/wtc_config.dtd">
    <!--Java and XML-->
    <WTC_CONFIG>
    <BDMCONFIG>
    <T_DM_IMPORT
    ResourceName="TOUPPER"
    LocalAccessPoint="WTCSIFO01"
    RemoteAccessPointList="SIFOWTC01">
    <TranTime>600</TranTime>
    </T_DM_IMPORT>
    </BDMCONFIG>
    </WTC_CONFIG>

  • How to call web services from HTML

    Hi All,
    Does anybody have an idea on how to call web services from HTML using axis and i am using jboss-4.0.5 as the application server.

    What did your Google search return?

  • Consuming SOAP services from AIR/HTML (JavaScript).

    Hi All.
    I am trying to consume SOAP web services from an AIR/HTML application for a research on AIR I am doing for my company, and I am having very little success.
    I am creating JavaScript clients using apache's cxf wsdl2js utility.
    When I try to use the client to call any web service I've tried, I always get an 'error 500' response.
    The web services work fine if i call them from other clients.
    Before trying cxf generated clients I googled a lot to see if there was a more native way of doing these calls from AIR, but found nothing. I don't see anything in documentation or the web about it.
    Am I the only one trying this?
    Could this be a cross-domain issue? I'm certainly hoping AIR apps don't have this issue.
    Any pointers as to how to succesfully consume SOAP services from AIR is greatly appreciated.
    Thanks!

    In Visual Basic, you can set Network Credentials like this (assuming that you first declare Public CallWebService001 As New <WebReference>):
            ' Create a new instance of CredentialCache.
            Dim mycredentialCache As Net.CredentialCache = New Net.CredentialCache()
            ' Create a new instance of NetworkCredential using the client
            ' credentials.
            Dim credentials As Net.NetworkCredential = New Net.NetworkCredential(<username>, <password>)
            ' Add the NetworkCredential to the CredentialCache.
            mycredentialCache.Add(New Uri(CallWebService001.Url), "Basic", credentials)
            ' Add the CredentialCache to the proxy class credentials.
            CallWebService001.Credentials = mycredentialCache

  • Issues in invoking a web service from a JAVA/BPEL client...

    We are trying to invoke a web service from a JAVA/BPEL client using org.apache.soap classes. But everytime we are running into issues of IllegalAccessError or InvalidClassError or IncompatibleClassError based on different jars we are trying to include in our project. Attached is a simple BPEL project which tries to invoke a web service through JAVA embedding (no supporting jars need to be included explicitly). It erros with following trace:
    Class org/apache/soap/Envelope violates loader constraints
         Invalid class: org.apache.soap.Envelope
         Loader: soap:10.1.3
         Code-Source: /slot/ems1508/oracle/product/10.1.3.1/OracleAS_1/webservices/lib/soap.jar
         Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in /slot/ems1508/oracle/product/10.1.3.1/OracleAS_1/j2ee/home/oc4j.jar
         Dependent class: org.apache.soap.rpc.RPCMessage
         Loader: soap:10.1.3
         Code-Source: /slot/ems1508/oracle/product/10.1.3.1/OracleAS_1/webservices/lib/soap.jar
         Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in /slot/ems1508/oracle/product/10.1.3.1/OracleAS_1/j2ee/home/oc4j.jar
    Could you please help us out or provide any pointers. Any help would be highly appreciated

    Because you weren't told what to get, perhaps you already have it eh?
    What you want to read up about is JAX-WS, which is the webservice API bundled by default with your JDK (Java 6 and up). You'll find the wsimport tool in the bin directory of your JDK. I recommend you explore that directory and read up about all the executables you can find there, to be more prepared in the future. Know the tools you work with and all that. Most tools have a manual on this website:
    http://www.oracle.com/technetwork/java/javase/tech/index.html
    (under tools and utilities). Not wsimport, that is part of the jax-ws documentation. Better you look for jax-ws tutorials using Google, it will be quicker.

  • Access a web service from pl/sql

    I am trying to access a web service from pl/sql. I have downloaded the code from
    http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html
    But when I try to execute the sql, I am getting the following error:
    SQL> @local.sql
    Package created.
    Package body created.
    No errors.
    BEGIN dbms_output.put_line(time_service.get_local_time('94065')); END;
    ERROR at line 1:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1022
    ORA-12545: Connect failed because target host or object does not exist
    ORA-06512: at "WEB.DEMO_SOAP", line 71
    ORA-06512: at "WEB.TIME_SERVICE", line 15
    ORA-06512: at line 1
    It is failing at:
    resp := demo_soap.invoke(req,
    'http://www.ripedev.com/webservices/LocalTime.asmx',
    'http://ripedev.com/xsd/ZipCodeResults.xsd/LocalTimeByZipCode');
    But in the examples that I got from downloading source code, site used was:
    'http://www.alethea.net/webservices/LocalTime.asmx',
    'http://www.alethea.net/webservices/LocalTimeByZipCode');
    This site was not accessible. So I changed to the working site as follows, but still I
    am getting the above error.
    But I can access this site, if I type in the above address in the address bar of IE.
    Can any body help?
    I have oracle9i client installed on my machine and able to connect to server thru toad and sql plus.
    or IF any body refers me to a good website for the topic of "using webservies from pl/sql" that would be great too!

    Here is the complete code:
    time_service:
    CREATE OR REPLACE PACKAGE time_service AS
    FUNCTION get_local_time(zipcode IN VARCHAR2) RETURN VARCHAR2;
    END;
    CREATE OR REPLACE PACKAGE BODY time_service AS
    -- Location of Web service definition
    -- http://www.alethea.net/webservices/LocalTime.asmx?WSDL
    -- http://www.ripedev.com/webservices/LocalTime.asmx?WSDL
    -- http://www.xmethods.com/sd/2001/CurrencyExchangeService.wsdl
    --'http://ripedev.com/xsd/ZipCodeResults.xsd/LocalTimeByZipCode style=document');
    FUNCTION get_local_time(zipcode IN VARCHAR2) RETURN VARCHAR2 IS
    req demo_soap.request;
    resp demo_soap.response;
    BEGIN
    dbms_output.put_line('before new request..');
    req := demo_soap.new_request('LocalTimeByZipCode',
    'xmlns="http://ripedev.com/xsd/ZipCodeResults.xsd"');
    dbms_output.put_line('before add param..');
    demo_soap.add_parameter(req, 'ZipCode', 'xsd:string', zipcode);
    dbms_output.put_line('before invoke..');
    resp := demo_soap.invoke(req,
    'http://www.ripedev.com/webservices/LocalTime.asmx',
    'http://ripedev.com/xsd/ZipCodeResults.xsd/LocalTimeByZipCode');
    dbms_output.put_line('before return..');
    RETURN demo_soap.get_return_value(resp, 'LocalTimeByZipCodeResult',
    'xmlns="http://www.ripedev.com/webservices/"');
    END;
    BEGIN
    dbms_output.put_line('inside main time_service..');
    END;
    show errors
    SET serveroutput ON
    exec dbms_output.put_line(time_service.get_local_time('94065'));
    Here is demo_soap.sql:
    Rem
    Rem $Header: soapdemo.sql 21-may-2002.13:48:17 rpang Exp $
    Rem
    Rem soapdemo.sql
    Rem
    Rem Copyright (c) 2002, Oracle Corporation. All rights reserved.
    Rem
    Rem NAME
    Rem soapdemo.sql - <one-line expansion of the name>
    Rem
    Rem DESCRIPTION
    Rem A PL/SQL demo package for making SOAP RPC calls.
    Rem
    Rem NOTES
    Rem This demo package can only be used in oracle 9ir2. It utilizes 9iR2's
    Rem XDB (XMLType and HttpUriType) and 9iR1's enhancements to UTL_HTTP to
    Rem make SOAP RPC calls.
    Rem
    Rem MODIFIED (MM/DD/YY)
    Rem rpang 05/21/02 - created
    Rem
    Rem A PL/SQL demo package that makes a SOAP RPC calls.
    Rem
    CREATE OR REPLACE PACKAGE demo_soap AS
    /* A type to represent a SOAP RPC request */
    TYPE request IS RECORD (
    method VARCHAR2(256),
    namespace VARCHAR2(256),
    body VARCHAR2(32767));
    /* A type to represent a SOAP RPC response */
    TYPE response IS RECORD (
    doc xmltype);
    * Create a new SOAP RPC request.
    FUNCTION new_request(method IN VARCHAR2,
    namespace IN VARCHAR2)
    RETURN request;
    * Add a simple parameter to the SOAP RPC request.
    PROCEDURE add_parameter(req IN OUT NOCOPY request,
    name IN VARCHAR2,
    type IN VARCHAR2,
    value IN VARCHAR2);
    * Make the SOAP RPC call.
    FUNCTION invoke(req IN OUT NOCOPY request,
    url IN VARCHAR2,
    action IN VARCHAR2) RETURN response;
    * Retrieve the sipmle return value of the SOAP RPC call.
    FUNCTION get_return_value(resp IN OUT NOCOPY response,
    name IN VARCHAR2,
    namespace IN VARCHAR2) RETURN VARCHAR2;
    END;
    show errors
    CREATE OR REPLACE PACKAGE BODY demo_soap AS
    FUNCTION new_request(method IN VARCHAR2,
    namespace IN VARCHAR2)
    RETURN request AS
    req request;
    BEGIN
    req.method := method;
    req.namespace := namespace;
    RETURN req;
    END;
    PROCEDURE add_parameter(req IN OUT NOCOPY request,
    name IN VARCHAR2,
    type IN VARCHAR2,
    value IN VARCHAR2) AS
    BEGIN
    req.body := req.body ||
    '<'||name||' xsi:type="'||type||'">'||value||'</'||name||'>';
    END;
    PROCEDURE generate_envelope(req IN OUT NOCOPY request,
                   env IN OUT NOCOPY VARCHAR2) AS
    BEGIN
    env := '<SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Body><'||req.method||' '||req.namespace||'
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'||
    req.body||'</'||req.method||'></SOAP-ENV:Body></SOAP-ENV:Envelope>';
    END;
    PROCEDURE show_envelope(env IN VARCHAR2) AS
    i pls_integer;
    len pls_integer;
    BEGIN
    i := 1; len := length(env);
    WHILE (i <= len) LOOP
    dbms_output.put_line(substr(env, i, 60));
    i := i + 60;
    END LOOP;
    END;
    PROCEDURE check_fault(resp IN OUT NOCOPY response) AS
    fault_node xmltype;
    fault_code VARCHAR2(256);
    fault_string VARCHAR2(32767);
    BEGIN
    fault_node := resp.doc.extract('/soap:Fault',
    'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/');
    IF (fault_node IS NOT NULL) THEN
    fault_code := fault_node.extract('/soap:Fault/faultcode/child::text()',
         'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/').getstringval();
    fault_string := fault_node.extract('/soap:Fault/faultstring/child::text()',
         'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/').getstringval();
    raise_application_error(-20000, fault_code || ' - ' || fault_string);
    END IF;
    END;
    FUNCTION invoke(req IN OUT NOCOPY request,
    url IN VARCHAR2,
    action IN VARCHAR2) RETURN response AS
    env VARCHAR2(32767);
    http_req utl_http.req;
    http_resp utl_http.resp;
    resp response;
    BEGIN
    generate_envelope(req, env);
    -- show_envelope(env);
    http_req := utl_http.begin_request(url, 'POST','HTTP/1.0');
    utl_http.set_header(http_req, 'Content-Type', 'text/xml');
    utl_http.set_header(http_req, 'Content-Length', length(env));
    utl_http.set_header(http_req, 'SOAPAction', action);
    utl_http.write_text(http_req, env);
    http_resp := utl_http.get_response(http_req);
    utl_http.read_text(http_resp, env);
    utl_http.end_response(http_resp);
    resp.doc := xmltype.createxml(env);
    resp.doc := resp.doc.extract('/soap:Envelope/soap:Body/child::node()',
    'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"');
    -- show_envelope(resp.doc.getstringval());
    check_fault(resp);
    RETURN resp;
    END;
    FUNCTION get_return_value(resp IN OUT NOCOPY response,
    name IN VARCHAR2,
    namespace IN VARCHAR2) RETURN VARCHAR2 AS
    BEGIN
    RETURN resp.doc.extract('//'||name||'/child::text()',
    namespace).getstringval();
    END;
    END;
    show errors

  • ORA-01403: no data found when calling a web service from HTMLDB

    I am working through Section 6 How to Implement a Web Service of the HTML DB 2 Day Developer tutorial. I can get the first example to work but not the second one. I am able to add the web reference and create the form and report. However, when I run the page and click submit, I get ORA-01403: no data found.
    When I test the service, this is what shows in the Message Request:
    <?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Header><namesp1:Header xmlns:namesp1="http://www.xignite.com/services/"><namesp1:Username xsi:type="xsd:string"></namesp1:Username><namesp1:Password xsi:type="xsd:string"></namesp1:Password><namesp1:Tracer xsi:type="xsd:string"></namesp1:Tracer></namesp1:Header></SOAP-ENV:Header><SOAP-ENV:Body><namesp1:ListFuturesByExchange xmlns:namesp1="http://www.xignite.com/services/"><namesp1:Exchange xsi:type="xsd:string">NYMEX</namesp1:Exchange></namesp1:ListFuturesByExchange></SOAP-ENV:Body></SOAP-ENV:Envelope>
    Nothing shows in the Message Response.
    I have also tried to call a simple web service that I created in .NET. It exhibits the same behavior. I am able to add the reference and create the form. But when I click the submit button, I get ORA-01403: no data found.
    Windows 2000
    HTMLDB 2.0.0.00.49
    Oracle9i 9.2.0.6.0
    Any help will be greatly appreciated.

    I'm having a similar problem!, Although, distressing as it is to observe the lack of response this thread has had for 9 months, I'm still seeking help here!
    I created a web service reference according to the following WSDL : "http://OgAppExpress:[email protected]:5555/invoke/OgAdminUtils.pub:WSDL_HLR" (operation name="getSubscriberInfoByMSISDN") and a form on that web service, all of which went very nicely. But! When I ran the form, inserted the value ("3546933599") into the parameter and pressed submit.... => "ORA-01403: no data found"
    The debug action displays very limited information and sheds no light on the problem :( Multiple attempts, on recreating the project from scratch, have resulted in the same utter failure! Needless to say, this nulls the affect of my Prozac proscription....
    Is there anybody out there who can help me and defend APEX's reputation?

  • Calling simple Java Code from 11g BPM

    Hi,
    I know this has been round the houses but I cant find a satisfactory solution for my scenario. I would like to call some simple java code from BPM (11.1.1.6). I guess I need to expose it as a service but it seems overkill to be via soap so any advice you can give would be much appreciated. Creating a jar that I can call somehow would be perfect.
    This is my scenario:
    - I am creating a Security POC for BPM
    - The BPM Process is exposed as a web service and authenticated using SAML
    - I am testing by calling the WS from OSB
    - I want to be able to get the WLS Principal and display the username and the roles for the launching user, from within the BPM process
    - This is possible using some simple weblogic client api code shown below
    - So all I want to do is call this code from BPM somehow
    - Anyone point me in the right direction ?
    cheers
    Tony
    subject = Security.getCurrentSubject();
    for(Principal p: subject.getPrincipals()) {
    if(p instanceof WLSGroupImpl) {
    groupList.add(p.getName());
    } else if (p instanceof WLSUser) {
    principal = p.getName();
    }

    The problem to communiate java classes and forms solved !
    i have add my .jar file to $OA_JAVA/oracle/apps/fnd/jar and now i can communicate between forms and java.
    I can create an object, i can get simple message from class, but when i try to create
    ServiceFactory factory = ServiceFactory.newInstance();
    ive got ORA-105100...
    can anybody help ?

  • Simple HTML placeholder page

    Hello,
    I'm running ITS Version 6200.1034.9372.7, Build 1093429 WIN32.
    We are migrating from an external ITS server to an internal ITS for the BBPSTART Internet Service (SAP SRM 4.00 eBuying). Because many employees have the old URL (external ITS) in their bookmarks, I'd like to replace this Internet Service with a simple HTML page showing a "This page has moved" message and a link to the new service on the internal ITS.
    What would be the best approach to achieve this? Completely remove the BBPSTART Internet Service and create a new Flow Logic-Based Application with a simple template?
    Also I was wondering the following. The LOGIN template (of the GGPSTART Internet Service) contains "tags" like this one:
    `include (~service="bbpglobal", ~name="login.html")`
    Where do I find/manage this login.html file?
    Thanks in advance!

    The HTML Template "login.html" is in the templates folder in the bbpglobal service for your SRM ITS instance.
    BBPGLOBAL->99->LOGIN.HTML for the Login screen template.
    You can modify this to redirect users to your new link
    Regards,
    Oisin

  • Trouble Creating Web Service from WSDL in 9.2

    I am following the guide at: http://edocs.bea.com/wls/docs92/webserv/setenv.html#wp214576 for creating a web service from wsdl using Ant. When i run the "wsdlc" task, it creates a Jar with source files but no class files. This seems odd.
    So, i have to then manually unjar, compile, and re-jar it to work? And what about using the types in an IDE like Eclipse? I have to un-jar the source files and include them in my project? This makes no sense. Why not have the ant task compile the classes in the jar?

    I am following the guide at: http://edocs.bea.com/wls/docs92/webserv/setenv.html#wp214576 for creating a web service from wsdl using Ant. When i run the "wsdlc" task, it creates a Jar with source files but no class files. This seems odd.
    So, i have to then manually unjar, compile, and re-jar it to work? And what about using the types in an IDE like Eclipse? I have to un-jar the source files and include them in my project? This makes no sense. Why not have the ant task compile the classes in the jar?

  • Simple web service authentication question

    I'm using the application server included with Sun ONE Identity Server 6.1 (and Apache Axis) to deploy a very simple sample web service. Accessing it from a web browser works fine. (After entering the url to my service, I'm redirected to the authentication page. After authenticating, my service is executed as expected.)
    The problem comes when I attempt to execute this same web service from a Java application (using Apache Axis). I authenticate programmatically and have a valid SSOToken. How do I pass my authentication information along to the IS server when invoking the web service programmatically? Can I do this somehow with the SSOToken I have? Every time I invoke the service programmatically, a "(302)Moved Temporarily" HTML response is received.
    Thanks for your help.
    David

    This solved the problem for me (using Axis):
         call.setProperty(org.apache.axis.transport.http.HTTPConstants.HEADER_COOKIE,
                          "iPlanetDirectoryPro=" + token.getTokenID().toString());
         call.setMaintainSession(true);Hope this helps.

  • Best way to call web service from Message Driven Bean

    I'm q'ing msgs up and would like to use a message driven bean to forward them to
    an external web service. Weblogic workshop does not seem to support web service
    controls in an EJB project. Any suggestions?
    Thanks,
    Paul

    Paul,
    A non-trivial alternative, since you have the WSDL, would be to forget about trying
    to use generated client code and just use JAX-RPC dynamic invocation instead.
    That's how I call external web services from within an EJB in situations in which
    generated client code cannot be incorporated prior to deployment. Minimally all
    that is required is the WSDL and the service name, port name, and operation name,
    although if non-builtin parameter types are used then you will have to manipulate
    the service's type mapping registry.
    Mark
    "Paul" <[email protected]> wrote:
    >
    I've taken our wsdl and generated a web service in Workshop 8.1 using
    XMLBeans.
    This produces a web page that contains a link"Java Proxy" for downloading
    generated
    client code. I assume this is the same as clientgen. It's interesting
    that
    it does not
    use XMLBeans like the web service that generated it. It uses a different
    serialization
    method.
    I've used this generated code to call the web service. Although the
    client seems
    to run
    successfully to completion, I get the following error in the weblogic
    server console:
    <Sep 29, 2003 7:46:24 AM EDT> <Error> <WLW> <000000> <Failure=com.bea.wlw.runtim
    e.core.request.ResponseValidationException: java.lang.RuntimeException:
    Protocol
    'http-soap' not available on this operation. [ServiceException]>
    <Sep 29, 2003 7:46:24 AM EDT> <Warning> <WLW> <000000> <Returning HTTP
    500 due
    t
    o SOAP fault occurring on DispFile=pjm.srcm.webservices.face.Receptor>
    Frustrating...
    Bruce Stephens <[email protected]> wrote:
    Hi Paul,
    Could you not first use clientgen on the external webservice, then take
    the stubs it created, then add these to your code along with the
    onMessage(Message msg) and roll it into the MBean?
    We don't have exactly that example, but you might take a look at this
    one to get some ideas:
    http://webservice.bea.com/message.zip
    Hope this helps,
    Bruce
    Paul wrote:
    Bruce,
    Don't think this will work for us. We are receiving data internallythrough
    a JMS queue. We need to pull it off the queue (MDB), massage it alittle and
    send it to an external web service. The link you sent me was howto implement
    a web service with JMS.
    I started out by trying to use the Web Service and JMS controls butit doesn't
    seem like I can use a JMS control because that requires a conversationID,
    which we don't have because nothing is comming in through a web services.
    Paul
    Bruce Stephens <[email protected]> wrote:
    Hi Paul,
    There is a chapter in the docs on this. See if this helps,
    http://edocs.bea.com/wls/docs81/webserv/jms.html#1067060
    Thanks,
    Bruce
    Paul wrote:
    I'm q'ing msgs up and would like to use a message driven bean to
    forward
    them to
    an external web service. Weblogic workshop does not seem to supportweb service
    controls in an EJB project. Any suggestions?
    Thanks,
    Paul

Maybe you are looking for