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.

Similar Messages

  • 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>
    --------------------------

  • 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.

  • 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!

  • Oracle9iAS Web services download

    I want to set up a web service UDDI registry. I am trying to look for the Oracle9iAS Web services bundle to download. Does anybody know where can i find the software to download.
    Thanks

    The UDDI registry is in the Oracle9iAS product itself rather than being available standalone. You can download the full Oracle9iAS Release 2 at:
    http://otn.oracle.com/software/products/ias/devuse.html
    It is also available in the standard edition of the application server but for the moment only the enterprise edition of Oracle9iAS R2 is available for download. Also bear in mind it is currently available for HP-UX, Solaris and Linux. I am told Windows 2000 is due shortly, however, I don't know an exact date.
    Mike.

  • Programming the Oracle Database with Java and Web Services: sample chapter

    This will be the first book devoted to Java in the Oracle Database: read the sample chapter @ http://www.oracle.com/technology/books/pdfs/mensah_ch1.pdf
    This book also covers the latest Oracle JDBC, Oracle SQLJ, JPublisher and Database Web Services A brief description @
    http://www.elsevier.com/wps/find/bookdescription.cws_home/706089/description#description
    Thanks, Kuassi

    Hi Kuassi,
    Thanks for letting us know that your book is available. I have been following one of your articles about "Virtualize Your Oracle Database with Web Services". More specifically "The Database as Web Services Consumer". I think that this is an area that has in the past been under estimated as to the potential benefits.
    I am currently trying to develop a solution that consumes several interfaces with a couple of them being published web services, so an ideal solution. I have then spent the last three weeks having to read up about the architecture of Java in the database, Jpublisher and make sense of how it all works together.
    I have got very close to getting one of the web services to work but failed due to using 10gR2 where all the java & libraries has moved to version 1.5. The solution is to load the jdk1.4.2 and configure jpublisher to use this. So far so good except this is not available on some platforms, Windows - 64 bit (not itanium).
    The configuration is proving very challenging but will hopefully reap rewards.
    (Thought I would give you some background to my experience).
    Anyway my question to you is having looked at Jdeveloper it appears to do almost anything except consume services into the database, also with Java now being at version 1.5 outside the database for 10gR2 and supporting 1.4 inside, do you see some alignment of these in future database releases?
    Finally off to buy your book now as no doubt there is a huge amount more to learn.
    Kind Regards
    David O'Donnell

  • 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

  • Oracle9iAS Web services

    Can somebody tell me where i can find the download for Oracle9iAS UDDI registry or the complete web services bundle ?
    Thanks

    The UDDI registry is in the Oracle9iAS product itself rather than being available standalone. You can download the full Oracle9iAS Release 2 at:
    http://otn.oracle.com/software/products/ias/devuse.html
    It is also available in the standard edition of the application server but for the moment only the enterprise edition of Oracle9iAS R2 is available for download. Also bear in mind it is currently available for HP-UX, Solaris and Linux. I am told Windows 2000 is due shortly, however, I don't know an exact date.
    Mike.

  • 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

  • Look for JDeveoper 10g Web Services Samples

    We would like to use JDeveloper 10g to create Web Services and create JSP pages to use them.
    If you know a good starting point or where I can find examples, please let me know. I have found some for 9i, but I hope 10g will make the job easier.
    Thanks a lot.

    My original message was referring to Mike's following response.
    The problem is, in the oc4j10.0.3 generated stub, there is no
    m_httpConnection = new OracleSOAPHTTPConnection();
    so how do you set up the proxy properties to the connection?
    Quote
    It may be that you require a proxy server, optionally with proxy authentication to access the Internet from within your intranet. If you are using a proxy server as I am guessing here, look inside your stub for the line that reads:
    m_httpConnection = new OracleSOAPHTTPConnection();
    then after it add these lines:
    Properties props = new Properties();
    props.put(OracleSOAPHTTPConnection.PROXY_AUTH_TYPE, "basic");
    props.put(OracleSOAPHTTPConnection.PROXY_USERNAME, "proxy_username");
    props.put(OracleSOAPHTTPConnection.PROXY_PASSWORD, "proxy_password");
    props.put(OracleSOAPHTTPConnection.PROXY_HOST, "proxy-host");
    props.put(OracleSOAPHTTPConnection.PROXY_PORT, "80");
    m_httpConnection.setProperties(props);
    where "proxy_host" is your proxy serve, "80" is your proxy server port and if your proxy requires a username/password, update the lines above where username and password are defined; otherwise delete those lines.
    Mike.
    unquote

  • Error in "Build Online Store with Oracle9i Web Services" sample

    After downloading and installing the "Build Online Store with Oracle9i Web Services" example from "http://otn.oracle.com/sample_code/tech/java/web_services/content.html". I receive the following runtime error message at the ShowShippingMode.jsp page :
    "http://www.zznet.ch:7777/WS-Demo/ShowProducts.jsp"
    [SOAPException: faultCode=SOAP-ENV:Server; msg=]
    To start the application go to "http://www.zznet.ch:7777/WS-Demo/Login.jsp".
    What is wrong?

    Both. I deployed the application under the IAS (902) and a standalone (903)environment. The IAS (port 7777) an the standalone oc4j (port 8888) is running with the same error.
    P.S. The server is down today for hardware technical reasons

  • Samples on axis web services

    i need to go through more axis web services samples rather than hello or echo. i'm using axis 1.2 running on tomcat 5.5 and i'm not using any ide recently. is there any good web/blogging sites which include those kind of stuff.

    i hav written some code for the web service and i'm stuck at including an address object in to the code as it is said in the question. i know it is a complex data type but don't know how to put it here. this is what i hav written
    public class CustomerInfoService {
        int customerID = 0;
        String customerName = null;
        int phoneNo = 0;
        String address = null;
        int age = 0;
        double lastBalance = 0;
        /** Creates a new instance of CustomerInfo bean */
        public CustomerInfoService() {
        public void setCustomerID( int thecustomerID )
            customerID = thecustomerID;
        public int getCustomerID()
            return customerID;
        public void setCustomerName( String thecustomerName )
            customerName = thecustomerName;
        public String getCustomerName()
            return customerName;
        public void setPhoneNo( int thephoneNo )
            phoneNo = thephoneNo;
        public int getPhoneNo()
            return phoneNo;
        public void setAddress( String theaddress )
            address = theaddress;
        public String getAddress()
            return address;
        public void setAge( int theage )
            age = theage;
        public int getAge()
            return age;
        public void setLastBalance( double thelastBalance )
            lastBalance = thelastBalance;
        public double getLastBalance()
            return lastBalance;
    }

  • Web Services for Oracle 8i

    Is there any means for the Oracle 8i Platform to implement a Webservice to
    access Business Logic in stored precedures?
    We were evaluating IONA's XML Collaboration Suite and their Oracle Adaptor
    but we are not satisfied with the level of control the adaptor provides.
    Do you have any suggestions?
    Best regards,
    Andreas

    Yes, you can publish stored procedures as Web services. Two approaches:
    1. Check out the new Web services sample that came out the other day, example two where SQLJ is used to wrap a Java class as a stored procedure, the connection is then wired into the generated class and finally it is published as a Java Web service using Oracle9i JDeveloper 9.0.2. See:
    http://otn.oracle.com/sample_code/tech/java/web_services/
    and look at the Tax Calculator viewlet/code.
    2. This is essentially the same way that the OC4J PL/SQL Web service samples work too (using SQLJ to generate a Java PL/SQL proxy), but the OC4J sample (url below), provides a more parametric way to pass the connection information to the proxy by using a parameter in the web.xml file. Check out:
    http://download.oracle.com/otn/java/oc4j/how-to-web-services.zip
    See the readme and work with the sample in plsqlws.zip
    This one is a both better and worse from a developers perspective compared to the first Oracle9i Jdeveloper oriented example. The good part, depending on your perspective, is that it is all command line based (some people like this, some people don't) and uses the longer term approach to publishing stored procedures as Web services for Oracle9iAS with the parameters passed in via the web.xml. The bad part is the example is a little hard to follow because many of the pieces are already created for you rather than explaining how they were created. The first example at least shows pretty much all the steps but doesn't quite elegantly solve the connection problem that the OC4J sample does.
    In July/August, Oracle9i JDeveloper will be updated to publish stored procedures using the Oracle9iAS infrastructure (basically the web.xml fix) ... although once you understand it, it is fairly easy to manually do it inside of JDeveloper.
    Hope this gets you going.
    Mike.

Maybe you are looking for

  • Converting SQL Server text field containing XML string to XI XML via JDBC

    Hello My client has a SQL Server database containing a field of type Text which contains an XML string e.g. <DispatchJob> <DispatchDateTime>2003-09-29T13:29:15</DispatchDateTime> <AssignedFSE>F118</AssignedFSE> <DispatchJobPurchase> <DealerID>14C5</D

  • Connection timeout error trying to connect to wireless network

    Going nuts... I have my Time Capsule plugged into an outlet that runs back to my switch (Netgear) which in turn goes into my modem (AT&T uverse). (the switch runs out to about 6 ethernet outlets in my house) Everything was working grand until I screw

  • GRUB not booting windows?

    Hi, I installed Arch a few days ago, and despite me being a pretty big linux newb I'm loving the distro. I've only gotten very minor problems with it, but this is really the only one I need to fix soon. When I boot and GRUB asks me which OS to boot u

  • Hotspot JVM crash on Solaris 10: perm gen up to 99%

    Hello all, I got 4 JVM crashes with the same Internal Error (5349474E41545552450E43505000C0 01) reported in the Catalina output log. However I have only 1 hs_err_pid.log that is still available (the other 3 were deleted). I've noticed that the perm g

  • Adhoc Analysis in Web

    Hi, In BW 3.1 when we used the 'display query on the web'button, it showed tool bar from which we can create new query etc. We are not able to see it in the new SAP Netweaver Installation. Does anyone know what we are missing? Pls help. Thanks Suja