Web services (sample application)

Hello,
we're trying to get the sample applications (including web services) working (using HTML DB 1.6.0.00.87).
First, we encountered "ORA-20001: The webservice was unreachable because either the URL you supplied was invalid, or your environment requires a valid proxy server address for HTTP requests.". After entering our proxy server's address, a new error occurs:
"ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00104: Warning: element "HTML" is not declared in the DTD Error at line 2"
Same thing happens when trying to create a new web service reference based on the tutorial provided by Oracle: http://www.oracle.com/global/de/community/tipps/WebServices/index.html
Any ideas where our mistake lies?
Thanks in advance for your help!

I've run into the same issue. I thought it was because I was using version 1.6, so I upgraded to HTML DB 2.0 today (I am running 10.2 locally). However, I am getting the same error:
ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing LPX-00104: Warning: element "html" is not declared in the DTD Error at line 2
This happens when I select the IBM UDDI from the list and search for %xMethods% as indicated in the 2-Day Developers Guide.
I get the same error when selecting the Oracle UDDI.
The XMethods UDDI goes out and searches for something, but 30 minute waits have not resulted in any return, although I have gotten "no matches found" in the past. The IBM UDDI has resulted in the same error.
I've check my proxy settings (don't have any) and tried in both IE 6 and Firefox 1.5.
When I pull the search string down to "%", then every UDDI registry search goes off and spins. In the past, I got a huge number of matches from XMethods, but couldn't start paging through for the "xMethod Delayed Stock Quotes" example in the tutorial.
I would appreciate any enlightment anyone can shed on what's happening under the covers.
Many thanks,
Petie

Similar Messages

  • InstantiationException when trying to reference an external jar in my web service sample

    Dear all,
    I'm working with Weblogic 6.1 SP3 (on NT platform) and, starting from weather
    weblogic web service sample, I'm trying to build my first web service sample.
    I developed a simple EJB (called OrderManager) that exposes the following functionalities
    in its remote:
    import com.bosslab.abs.beb.sci.ServiceHeaderVO;
    public interface OrderManager extends EJBObject {
    public OrderManagerServiceResponseVO
         submitOrder(
    ServiceHeaderVO header,
         OrderManagerServiceVO data) throws Throwable;
    the ServiceHeaderVO interface is in another package and it is included in an external
    Beb.jar.
    This Beb.jar is located under serverclasses in mydomain directory and it is included
    in the classpath set in startWeblogic.cmd.
    Using wsgen weblogic task & ant I created my WSOrderManager.ear and I deployed
    it.
    Now no problem testing the EJB (OrderManager) with a simple client (in order to
    verify that classpath is correct and also the EJB is running properly).
    Also no problem pointing out to this URL "http://localhost:7011/ordermanager/com.bosslab.abs.mediator.OrderManager/com.bosslab.abs.mediator.OrderManager.wsdl"
    to see the WSDL of my web service.
    But when I run the web service client I got the following error:
    Exception in thread "main" ------------- Remote Stack Trace ------------
    Server side error:
    java.lang.InstantiationException: com.bosslab.abs.beb.sci.ServiceHeaderVO
    at weblogic.soap.codec.SimpleSoapEncodingCodec.newInstance(SimpleSoapEncodingCodec.java:198)
    at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncodingCodec.java:178)
    at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncodingCodec.java:151)
    at weblogic.soap.codec.CodecFactory.decode(CodecFactory.java:96)
    at weblogic.soap.codec.Operation.read(Operation.java:100)
    at weblogic.soap.codec.SoapMessage.readOperation(SoapMessage.java:200)
    at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:130)
    at weblogic.soap.server.servlet.StatelessBeanAdapter.getInputMessage(StatelessBeanAdapter.java:162)
    at weblogic.soap.server.servlet.StatelessBeanAdapter.doPost(StatelessBeanAdapter.java:105)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2546)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2260)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    ------------- Local Stack Trace ------------
    weblogic.soap.SoapFault:
    org.xml.sax.SAXException
    at weblogic.soap.codec.FaultOperation.getException(FaultOperation.java:16)
    at weblogic.soap.WebServiceProxy.processResult(WebServiceProxy.java:487)
    at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:434)
    at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
    at weblogic.soap.wsdl.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:27)
    at $Proxy0.submitOrder(Unknown Source)
    at StaticWSOrderManagerClient.main(StaticWSOrderManagerClient.java:30)
    It seems that there is a problem to instantiate the com.bosslab.abs.beb.sci.ServiceHeaderVO
    class included in the Beb.jar, so I thought the problem was related to the classpath
    setting, maybe Beb.jar is not set properly in some place ...
    To try solving this problem I did these steps:
    -> exploded my WSOrderManager.ear
    -> created a lib directory and put into it the Beb.jar
    so now the ear structure is:
    lib/Beb.jar
    MediatorOrderManager.jar
    META-INF
    web-services.war
    -> modified the application.xml, adding:
    <module>
    <java>lib/Beb.jar</java>
    </module>
    -> modified the Manifest.mf, adding:
    Manifest-Version: 1.0
    Created-By: 1.3.1_03 (Sun Microsystems Inc.)
    Class-Path: lib/Beb.jar
    -> regenerate the WSOrderManager.ear
    jar cvf WSOrderManager.ear lib MediatorOrderManager.jar ...
    -> and redeployed the ear
    But after stopping/starting my instance, I got yet the same error when I run my
    client.
    Could you please help me to understand how solving this problem ?
    I thank you in advance
    Kind regards

    The WSDL is generated from my web service. I made heavy revisions to my web service which, in turn, affected the resultant WSDL. The changes I made to my web service were almost exclusively related to object substitution. For example, prior to the change I was referencing object A from my web service; after the change, I was referencing object B. The objects that I'm referring to are XMLBeans, if that matters. I can't really describe it more than that without actually showing you the WSDL.
    I would post the WSDL file here to allow you to try to create a types jar out of it, but the WSDL exceeds the 30000 character limit for this field. There is no way for me to attach the WSDL to this post.

  • Oracle9iAS Web servics sample

    All,
    Have a look at the new web services sample which demonstrates how to build different type of web services(stateless java,
    stateful java, stateless EJB & PL/SQL) and consume it in a typical eBusiness application. Viewlets are also provided as how the
    services need to be built, which are available both online and with the sample distribution.
    http://otn.oracle.com/sample_code/tech/java/web_services/content.html
    Enjoy,
    --Rajesh

    You should have no problem using Web Cache to accelerate a PL/SQL driven site. Any site that delivers content via HTTP is a good candidate for Web Cache. Try downloading the standalone Web Cache software from OTN, and be sure to read the manual to learn about how it works and how to configure it.

  • Deployment Error using the Web Services sample ?

    All,
    I am running the Web Services sample, the compile works fine, but the deployment fails with the following error -
    Any suggestions on what needs to be fixed ?
    Sameer.
    C:\jdev9\jdk\jre\bin\javaw.exe -jar C:\ias\j2ee\home\admin.jar ormi://127.0.0.1/ admin **** -deploy -file C:\jdev9\jdev\mywork\WorkspaceStatelessJava\Project\WorkspaceStatelessJava-ProjectStatelessJava-WS.ear -deploymentName WorkspaceStatelessJava-ProjectStatelessJava-WS
    Error: java.lang.NoSuchMethodError: java.net.URL: method getPath()Ljava/lang/String; not found
    Exit status of OC4J admin tool (-deploy): 1

    Thanks Mike, your guess was right on target.
    I realize this sample was originally tested for Oracle9i Web Services
    Quickstart Install (9.0.2) , but I have been able to get it running on
    (9.0.3) as well.
    1) I pointed to a jdk 1.3 directory and then was able to
    create a password for oc4j.
    C:\jdev9\j2ee\home>D:\jdk1.3.1\bin\java -jar oc4j.jar -install
    Enter an admin password to use: admin
    Confirm admin password: admin
    Installation done
    2) This time the deployment worked -
    ---- Deployment started. ---- Dec 6, 2002 10:57:42 AM
    Wrote WAR file to
    C:\jdev9\jdev\mywork\WorkspaceStatelessJava\Project\WebServices.war
    Wrote EAR file to
    C:\jdev9\jdev\mywork\WorkspaceStatelessJava\Project\WorkspaceStatelessJ
    ava-ProjectStatelessJava-WS.ear
    Invoking OC4J admin tool...
    C:\jdev9\jdk\jre\bin\javaw.exe -jar C:\jdev9\j2ee\home\admin.jar
    ormi://127.0.0.1/ admin **** -deploy -file
    C:\jdev9\jdev\mywork\WorkspaceStatelessJava\Project\WorkspaceStatelessJ
    ava-ProjectStatelessJava-WS.ear -deploymentName
    WorkspaceStatelessJava-ProjectStatelessJava-WS
    Auto-unpacking
    C:\jdev9\j2ee\home\applications\WorkspaceStatelessJava-ProjectStateless
    Java-WS.ear... done.
    Auto-unpacking
    C:\jdev9\j2ee\home\applications\WorkspaceStatelessJava-ProjectStateless
    Java-WS\WebServices.war... done.
    Copying default deployment descriptor from archive at
    C:\jdev9\j2ee\home\applications\WorkspaceStatelessJava-ProjectStateless
    Java-WS/META-INF/orion-application.xml to deployment directory
    C:\jdev9\j2ee\home\application-deployments\WorkspaceStatelessJava-Proje
    ctStatelessJava-WS...
    Auto-deploying WorkspaceStatelessJava-ProjectStatelessJava-WS (New
    server version detected)...
    Exit status of OC4J admin tool (-deploy): 0
    C:\jdev9\jdk\jre\bin\javaw.exe -jar C:\jdev9\j2ee\home\admin.jar
    ormi://127.0.0.1/ admin **** -bindWebApp
    WorkspaceStatelessJava-ProjectStatelessJava-WS WebServices
    http-web-site /WorkspaceStatelessJava-ProjectStatelessJava-context-root
    Exit status of OC4J admin tool (-bindWebApp): 0
    Use the following context root(s) to test your web application(s):
    http://127.0.0.1:8888/WorkspaceStatelessJava-ProjectStatelessJava-conte
    xt-root
    Elapsed time for deployment: 22 seconds
    ---- Deployment finished. ---- Dec 6, 2002 10:58:04 AM
    3) Running the Client.java worked.
    Project Message Window
    C:\jdev9\jdk\bin\javaw.exe -ojvm -classpath
    C:\jdev9\jdev\mywork\WorkspaceStatelessJava\Project\classes;C:\jdev9\jd
    ev\lib\jdev-rt.jar;C:\jdev9\jdev\lib\jdev-rt.jar;C:\jdev9\soap\lib\soap
    .jar;C:\jdev9\lib\xmlparserv2.jar;C:\jdev9\jlib\javax-ssl-1_2.jar;C:\jd
    ev9\jlib\jssl-1_2.jar;C:\jdev9\j2ee\home\lib\activation.jar;C:\jdev9\j2
    ee\home\lib\mail.jar;C:\jdev9\j2ee\home\lib\http_client.jar Client
    Hello Mike! The current time is Fri Dec 06 11:08:36 EST 2002Process
    exited with exit code 0.
    4) TCP Tunnel Utility runs correctly
    HTTP/1.1 100 ContinueServer: Oracle9iAS (9.0.3.0.0) Containers for
    J2EEDate: Fri, 06 Dec 2002 16:14:59 GMTHTTP/1.1 200 OKDate: Fri, 06 Dec
    2002 16:14:59 GMTServer: Oracle9iAS (9.0.3.0.0) Containers for
    J2EEContent-Length: 517Connection: CloseContent-Type: text/xml;
    charset=utf-8<?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/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><ns1:sayHel
    loResponse xmlns:ns1="HelloImpl"
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><ret
    urn xsi:type="xsd:string">Hello Mike! The current time is Fri Dec 06
    11:15:00 EST
    2002</return></ns1:sayHelloResponse></SOAP-ENV:Body></SOAP-ENV:Envelope
    >
    POST
    /WorkspaceStatelessJava-ProjectStatelessJava-context-root/HelloImpl
    HTTP/1.1Host: 127.0.0.1:8900Connection: Keep-Alive, TETE: trailers,
    deflate, gzip, compressUser-Agent: RPT-HTTPClient/0.3-3SOAPAction:
    ""Accept-Encoding: deflate, gzip, x-gzip, compress,
    x-compressContent-type: text/xml; charset=utf-8Content-length: 441<?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/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><ns1:sayHel
    lo xmlns:ns1="HelloImpl"
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><par
    am
    xsi:type="xsd:string">Mike</param></ns1:sayHello></SOAP-ENV:Body></SOAP
    -ENV:Envelope>
    --------------------------

  • How To Access HTTPS Web Service  in Application Module

    I need to know how to access HTTPS web service in application module.
    If you can provide the tutorial or guidance to achieve this really appreciate.
    Thanks
    Sameera

    Use the Web Service Proxy wizard in JDeveloper to create a class that calls your Web service, and then call this class from code in your AM.
    http://docs.oracle.com/cd/E16340_01/web.1111/b31974/web_services.htm#CJAHGIEF

  • Where are teh Web Services Samples?

    I have downloaded the latest PDK and the web services samples are not included. They also were not included in the Relase 2 Install of the Portal as far as I can tell. Can someone tell me where to find them.
    Thanks

    Please find Web Services samples article sources at http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/HOW.TO.BUILD.WEB.SERVICES.PORTLETS.HTML
    one can many articles related to PDK under articles folder inside pdk.zip.

  • Latest WSDL breaks Web Services Sample Lead weblead

    I am trying to use the Web Services Sample Lead code I downloaded from Web Services Library Sample Code to be able to create a simple web form that will create a lead via webservices.
    Following the README, I downloaded the latest wsdls and updated the references for the Lead_Service and Campaign_Service.
    The problem I run into is when I update InsertPostedLead.aspx.cs
    I am able to modify the username, password and defaultLeadOwner variables to correspond to the user that you will connect to Siebel CRM OnDemand with out any problems. When I then Build the project I receive several errors such as:
    The type or namespace name 'LeadWS_LeadInsert_Input' could not be found (are you missing a using directive or an assembly reference?)
    I get the same error reference Lead1, CampaignWS and Campaign1.
    When I compare the original WSDL with the latest that gets inported I can see that the latest does not reference LeadWS, Lead1, CampaignWS, Campaign1, etc.
    This is where I get stuck. Simply modifying the references to say Lead instead of Lead1 etc ends up creating other errors so I am assuming this is not the solution.
    Does anyone have this working with the latest WSDL? What do I need to modify to make it work with the latest WSDL?
    I am somewhat new to Oracle CRM On Demand and to webservices so I appreciate any help you can provide pointing me in the right direction!

    This is crazy! Someone must have come across this problem
    before.
    I've simplified my question and used a much simplier method
    from the web service, here goes!
    ::: Here's my code :::
    <cfscript>
    webservice = CreateObject("webservice","dummy?wsdl");
    webservice.doBuildQuoteForItinerary("123456,"en_US","","1113");
    </cfscript>
    ::: Here's the error :::
    Could not perform web service invocation
    "doBuildQuoteForItinerary".
    Here is the fault returned when invoking the web service
    operation:<br> <pre>AxisFault faultCode: {
    http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode: faultString:
    com.raileurope.web.ngserver.InternalErrorException:
    java.lang.NullPointerException faultActor: faultNode: faultDetail:
    http://xml.apache.org/axis/}hostname:dummy
    </pre>
    There must be something wrong with how I'm passing in the
    parameters. Is it the null string??!?!?
    Any help would be great!

  • Selection of tools for web-service based applications

    Hi,
    I have 3 options now to develop web-service based applications,
    1)Visual Composer
    2)CAF
    3)Web Dynpro Java
    Which is best for security, future-proofness at the same time feasible cost ?

    hi arvind,
    i am giving some links pls see.
    www.crosschecknet.com/web_services_testing_tools_sap_netweaver.php - 20k -
    www.aivea.com/eshipinfo.htm - 107k
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60046fb9-ac5b-2910-08a6-b7b04b463c62
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555
    thanks
    karthik
    reward me points if usefull

  • Can't run CORBA Name Service Sample Application

    Hi,
    I am trying to run CORBA Name Service Sample Application in tuxedo 8.0 (WinNT
    version). I get following error messages in ULOG file.
    103757.NANDKV!ISH.429.448.0: ISNAT_CAT:1053: ERROR: Error polling network connections
    103800.NANDKV!ISL.457.443.0: ISNAT_CAT:1386: ERROR: Cannot open handler process:
    The operation completed successfully.
    103901.NANDKV!ISL.457.443.0: ISNAT_CAT:1175: WARN: Disconnecting listener connection
    to client, request timed out
    Could anybody please explain about these errors?
    Warm regards,
    Nandu

    Hi,
    I am trying to run CORBA Name Service Sample Application in tuxedo 8.0 (WinNT
    version). I get following error messages in ULOG file.
    103757.NANDKV!ISH.429.448.0: ISNAT_CAT:1053: ERROR: Error polling network connections
    103800.NANDKV!ISL.457.443.0: ISNAT_CAT:1386: ERROR: Cannot open handler process:
    The operation completed successfully.
    103901.NANDKV!ISL.457.443.0: ISNAT_CAT:1175: WARN: Disconnecting listener connection
    to client, request timed out
    Could anybody please explain about these errors?
    Warm regards,
    Nandu

  • JCAPS UDDI - Problem Using the Web Service Management Application

    Hi everyone, this is my problem:
    1.) I installed the JCAPS UDDI Server in a Solaris. <-- Ok
    2.) In the eManager I installed the Web Services Access Manager. <-- Ok
    3.) I started the UDDI server. <-- Ok
    4.) I check that the process is running (in Solaris). <-- Ok
    5.) I'm trying to load the Web Service Management Application Login Page, but it doesn't show the page so I can't login and in consequence I can't publish, remove, view, and search WSDLs by using the Web Service Management Application.
    I appreciate some help about this.
    Regards

    Yes, I am connecting to the same system where we have data..
    Anirban

  • Oracle Multimedia PL/SQL Web Toolkit Sample Application

    Hi,
    I am trying Oracle Multimedia PL/SQL Web Toolkit Sample Application for Oracle database 11g Release 2, on the client components of the readme file, it says that oracle http server must be installed, and http server is available on the companion CD of Oracle Database 10g Release 2 (10.2), actually I'm using Oracle database 11g, is it because of database version that I cannot find http server component to add using universal installer or because during installation I chose install on my laptop and not a server?
    regards,
    Hassane Cabir

    In apex folder (the downloaded one), there is README.txt under owa which contains information about PL/SQL Web Toolkit and how to upgrade.
    This is the content of this file:
    PL/SQL Web Toolkit 10.1.2.0.6
    Application Express 3.0 requires PL/SQL Web Toolkit version 10.1.2.0.6 or greater.
    As a convenience, the PL/SQL Web Toolkit 10.1.2.0.6 is included with Application Express 3.0
    in the apex/owa directory. This version of the PL/SQL Web Toolkit is not a replacement for
    subsequent versions of the PL/SQL Web Toolkit, as delivered with database patch sets or
    Critical Patch Updates.
    If the PL/SQL Web Toolkit version is lower than version 10.1.2.0.6, the included PL/SQL Web
    Toolkit bundled with Application Express 3.0 should be installed prior to the installation of
    Application Express 3.0.
    To determine the PL/SQL Web Toolkit version, connect to the database as the SYS user and
    run the query:
    select owa_util.get_version from dual;
    Installing the PL/SQL Web Toolkit 10.1.2.0.6
    1) Stop all applications using the database
    2) Navigate to the directory apex/owa
    3) Connect via SQL*Plus as the database user SYS
    4) Run the PL/SQL Web Toolkit installation script by issuing: @owainst.sql
    5) Review the output displayed from owainst.sql and ensure no errors were encountered.
    6) Confirm the PL/SQL Web Toolkit version is 10.1.2.0.6 or greater by connecting to the database
    as the SYS user and running the query:
    select owa_util.get_version from dual;
    7) Run the utlrp.sql script from the Oracle Database home to recompile all invalid PL/SQL
    packages now instead of when the packages are accessed for the first time. This step is
    optional but recommended. To run utlrp.sql, issue: @?/rdbms/admin/utlrp.sql
    Saad

  • Consuming Web service : Sample ABAP application

    Hi Friends,
    I am trying to consume existing web service. I have few questions.
    --> Why do we need to create simple ABAP application while consuming Enterprise Service?
    --> How this ABAP application will be triggered? Will it be triggered automatically or this is just for      testing purpose?
    --> After consuming Enterprise Service , which URL my end user can use to execute the functionality ( i.e to craete PO )
    Waiting for your expert responses.
    Thanks,
    Rashmi Jain

    Hello,
    Please see the responses below:
    -->Why do we need to create simple ABAP application while consuming Enterprise Service?
    When you created consumer proxy, you have a proxy class autogenerated. The ABAP program is to provide input data and instantiate and call the method within the proxy class.
    --> How this ABAP application will be triggered? Will it be triggered automatically or this is just for testing purpose?
    The program can be triggered using a Transaction or can be scheduled through batch or event based.
    --> After consuming Enterprise Service , which URL my end user can use to execute the functionality ( i.e to craete PO )
    The end user does not have to know the URL. This is built into WSDL from which you created consumer proxy.
    Thanks,
    Venu

  • JMS Web Service Sample (News service application)

    Hi,
    The Web service client (NewsServiceProxy) invokes send() and this calls NewsQueueEJB. Where do we define NewsQueueEJB to be used as Web service? Is it in config /etc? Does the Web Services assembly tool make than happen?
    Thanks,
    Mustafa

    in config.xml.., you say that the Queue with the context jms/newsQueue is exposed as web service..,this config.xml is read by webservices assembler tool to generate the required config for OC4J. But the web service engine doesnot know who reads the message that is going to be enqueued in this queue. The work of the web service engine is to only get its payload sent to it .., generate a jms message with what was given to it .., and enqueue this message to the queue specified..,it doesnot bother about who is going to dequeue this message..,and process it..
    <jms-doc-service>
    <uri>NewsService</uri>
    <!-- Queue to which message has to be sent when 'send()' operation is invoked-->
    <connection-factory-resource-ref>jms/newsQueueConnectionFactory</connection-factory-resource-ref>
    <queue-resource-ref>jms/newsQueue</queue-resource-ref>
    <!-- Topic from which response can be received when 'receive()' operation is invoked -->
    <reply-to-connection-factory-resource-ref>jms/newsTopicConnectionFactory</reply-to-connection-factory-resource-ref>
    <reply-to-topic-resource-ref>jms/newsTopic</reply-to-topic-resource-ref>
    </jms-doc-service>
    Then , you configure that any message enqueued in jms/Queue must invoke NewsQueueEJB
    The above is defined in ejb-jar.xml and orion-ejb-jar.xml
    <message-driven>
    <description>Message Driven Bean</description>
    <display-name>NewsQueue</display-name>
    <ejb-name>NewsQueue</ejb-name>
    <ejb-class>oracle.otnsamples.jmswebservice.ejb.NewsQueueEJB</ejb-class>
    <transaction-type>Container</transaction-type>
    <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
    <resource-ref>
    <res-ref-name>jms/newsQueue</res-ref-name>
    <res-type>javax.jms.Queue</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    orion-ejb-jar.xml
    <message-driven-deployment name="NewsQueue" max-instances="-1" min-instances="1"
    destination-location="jms/newsQueue"
    connection-factory-location="jms/newsQueueConnectionFactory"
    >
    </message-driven-deployment>
    hope this helps
    Elango

  • HTTP error when trying to access RESTful web service from application

    Hi,
    We are getting the following error when trying to access a RESTful web service coming from Apex workspace 4.2.1 and Apex listener 2.1:
    ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-29024: Certificate validation failure
    In the Debug report, besides the above I also see:
    error_backtrace: ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-06512: at "APEX_040200.WWV_FLOW_WEB_SERVICES", line 543 ORA-06512: at "APEX_040200.WWV_FLOW_WEB_SERVICES", line 1164 ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 396
    We get that error whether we use https or http in the URI pointing to the web service. When I test the Web Service in Workspace RESTful service GUI, I get the data back. When I go build an application with a report calling the RESTful Web Service I get that error. Both the Application and the Workspace RESTful services are on the same Apex environment and even the same workspace.
    What is odd is that I can actually put the URL of the web service into a browser and I get the data: (using the demo hr data in sample RESTful services.)
    IN browser-- https://weblogic-dev.edu/apex/ace/hr/empinfo/
    yields:
    7839,KING,PRESIDENT,,1981-11-17T05:00:00Z,5000,,10 7698,BLAKE,MANAGER,7839,1981-05-01T04:00:00Z,2850,,30 7782,CLARK,MANAGER,7839,1981-06-09T04:00:00Z,2450,,10 7566,JONES,MANAGER,7839,1981-04-02T05:00:00Z,2975,,20 7788,SCOTT,ANALYST,7566,1982-12-09T05:00:00Z,3000,,20 7902,FORD,ANALYST,7566,1981-12-03T05:00:00Z,3000,,20 7369,SMITH,CLERK,7902,1980-12-17T05:00:00Z,800,,20 7499,ALLEN,SALESMAN,7698,1981-02-20T05:00:00Z,1600,300,30 7521,WARD,SALESMAN,7698,1981-02-22T05:00:00Z,1250,500,30 7654,MARTIN,SALESMAN,7698,1981-09-28T04:00:00Z,1250,1400,30 7844,TURNER,SALESMAN,7698,1981-09-08T04:00:00Z,1500,0,30 7876,ADAMS,CLERK,7788,1983-01-12T05:00:00Z,1100,,20 7900,JAMES,CLERK,7698,1981-12-03T05:00:00Z,950,,30 7934,MILLER,CLERK,7782,1982-01-23T05:00:00Z,1300,,10
    Any ideas on what would be causing the Error above in our application?
    Thanks,
    Pat
    Edited by: patfmnd on Mar 11, 2013 3:25 PM
    In reviewing the above error, I think we are realizing that we have to have the Weblogic layer SSL cert (actually the CERT from our BigIP load balancer which also does our SSL termination) imported into the Oracle server wallet where Apex is installed. Am I correct?
    PM

    We resolved our problem. The Apex Administrative Guide made us realize that we had to set up Wallet path in the Instance. This required working with DBAs to follow the Advanced networking guide to get the wallet set up on our server. We then added that path to the Instance configuration. (Manager Instance --> Instance settings). We ran into another other issue related to our implementation of CAS but were able to resolve that, and 'voila' were able to get the sample RESTful service consumed by our application!!
    Now to the task of figuring out how to get Basic Auth working between client application and RESTful web service. If anyone has that working, let us know!!
    It would be helpful if in the documentation of the Apex 2.x listener or Apex install/configuration there was clear reference to the above steps required for HTTPS access to RESTful web services.
    Pat

  • HOW TO: Connect web service (remote application module) to existing model

    Hello.
    I have J2EE application which displays some data in an applet, which reads them by a web service. I'd like to use persistence and connect with a web service called by applet to my current model set within a session. I tried to pass a session id to web service (to a function of an application module implementation). I wanted to create a new SessionCookie instance with such a session id and application id which are used for web application session (by ApplicationPoolImpl.createSessionCookie() or with custom session cookie factory). But I don't know how to pass a session and application ids to a sessioncookie creation process (ApplicationPool environment). I tried to use custom EnvInfoProvider, which set my properties, but it passes the params after a SessionCookie instance is created.
    Samples ... AppModuleServer - file generated to provide ws functionality. I changed code to use EnvInfoProvider:
    public class AppModuleServer extends Object{
      public AppModuleServer(){}
      public SomeObject[] myCustomFunction(String sessionId){
        AppModuleImpl _am = null;
        String appId="someValue";
        CustomEnvInfoProvider envProvider=new CustomEnvInfoProvider(appId, sessionId);
        try{
          _am=(AppModuleImpl)Configuration.createRootApplicationModule("data.AppModule", "AppModuleLocal", envProvider);
          return _am.myCustomFunction(sSessionId);
        finally{
          if (_am != null)Configuration.releaseRootApplicationModule(_am, false);
    }CustomEnvInfoProvider:
    public class CustomEnvInfoProvider implements EnvInfoProvider{
      private String applicationId;
      private String sessionId;
      public CustomEnvInfoProvider(String applicationId, String sessionId){
        this.applicationId=applicationId;
        this.sessionId=aessionId;
      public Object getInfo(String info, Object environment){
        if(info==null)return null;
        return ((Hashtable)environment).get(info);
      public void modifyInitialContext(Object environment){
        if(applicationId!=null)((Hashtable)environment).put("CookieApplicationId", applicationId);
        if(sessionId!=null)((Hashtable)environment).put("SessionId", sessionId);
      public int getNumOfRetries(){
        return 2;
    }Does anybody knows how to pass information from custom EnvInfoProvider just before a SessionCookie is created (e.g. how to run modifyInitialContext() function). Or another way how to pass these information from a web service base function into ApplicationPoolImpl instance. E.g., there is parameter "properties" whithin a createSessionCookie method of ApplicationPoolImpl, which is null during calling. Is it possible to pass there some additional information?
    Thanks for any suggestions.

    Use the Web Service Proxy wizard in JDeveloper to create a class that calls your Web service, and then call this class from code in your AM.
    http://docs.oracle.com/cd/E16340_01/web.1111/b31974/web_services.htm#CJAHGIEF

Maybe you are looking for

  • Syncing iCal and Address Book w/ my Treo 650 (Who overwrites who?)

    I am able to sync both address book and ical with my treo 650. My question is: 1. When I change a date or contact's info on my treo why does it not change that entry on my Mac? It adds a different one. 2. Each time I sync I get the message for both A

  • Difference B/W TECO (Technically Closed) and Business Closed.

    Hi, I want knw the differnce B/w the technically Completeion of PM  order and Business Completion. The difference i understood is that TECO status is set to system after all the Technical work is over, that means when no technical  work is pending bt

  • Fixed Field Movements with SAP New GL

    Good morning, I have added 2 new fields into FAGLFLEXA/T, these fields are standard into table BSEG and I want them to be active into the leading ledger. I tried to mapp these fields using "Fixed Field Movements mapping" (transaction GCI4, table T800

  • Export issues in Aperture 3

    Please help! I'm about to give up on Aperture 3. I've got the trial version and I really want to buy the software but I cannot get decent exported images especially in black and white! I'm going into Aperture -> Presets and exporting in every differe

  • Installer has insufficient priviledges to access directory...

    When installing 9.0, I get all the way to the end then get an error stating "Error 1303: The installer has insufficient priviledges to access this directory: C:\Program Files (x86)\Adobe\Reader 9.0\Resource\Font\PFM. The installation cannot continue.