Problem running web service demo 10gR2 form

Hi all,
I have downloaded the Oracle Forms 10gR2 Demos from OTN and I have the problem while running WEBSERVICES form. When I am trying to change value of the currency drop down list to call web services I am getting Java exception with the message “msg=connection refused”.
However I verified the installation of web services http://127.0.0.1:8889/demowebservice/Forms90CurrencyConverter
and its working fine.
Any suggestion will be much appreciated.
Thank you in advance.

I am not an expert on web services, but I believe this message indicates that the server you are trying to connect to (local machine) refuses to talk to you. The reason why can be many.
Also see:
Problem Calling WebService in Form

Similar Messages

  • Problem running web service on Turnkey 8.0.1 LiveCycle server

    Greetings:
    I need assistance in locating a problem on a turnkey installation of 8.0.1.
    I am trying to get a new installation of this code base running to provide an environment that matches some of my clients.
    The server runs, and I can log into all of the Administrator pages, etc.
    The scenario is I create a new process in Workbench 8, that for now just rights to the server log.
    I create a new PDF document, and add a data connection to my WSDL.
    I try to invoke the service and get the message "Error attempting to read from file".
    If I have security enabled on the service via the AdminUI, I get no messages in the server log.
    If I disable security for the service, I see the following in the server log:
    INFO [com.adobe.workflow.AWS] Invoking action synchronously
    INFO [STDOUT] Feb 3, 2009 11:12:04 AM com.adobe.idp.jobmanager.ejb.JobManagerBean getServiceClientFactory
    SEVERE: JobManager:getServiceClientFactory(userContext):invocation context is null, using null context to create job
    INFO [STDOUT] Feb 3, 2009 11:12:04 AM com.adobe.idp.jobmanager.ejb.JobManagerBean doOnMessage
    SEVERE: JobManagerBean:onMessage():Exception:ALC-DSC-213-000: com.adobe.idp.dsc.DSCException: No Credential or Context set
    INFO [STDOUT] ALC-DSC-213-000: com.adobe.idp.dsc.DSCException: No Credential or Context set
    INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:84)
    INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
    INFO [STDOUT] at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:113)
    INFO [STDOUT] at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:102)
    INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:88)
    INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 0)
    INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
    INFO [STDOUT] at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
    INFO [STDOUT] at com.adobe.idp.jobmanager.ejb.JobManagerBean.doOnMessage(JobManagerBean.java:967)
    INFO [STDOUT] at com.adobe.idp.jobmanager.ejb.JobManagerBean.onMessage(JobManagerBean.java:817)
    INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
    INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    INFO [STDOUT] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.j ava:475)
    INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
    INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
    INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
    INFO [STDOUT] at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT. java:32)
    INFO [STDOUT] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterc eptor.java:101)
    INFO [STDOUT] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)
    INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    INFO [STDOU

    Update - Sort of Working
    Thanks to a posting by Paul Guerette here->
    Paul Guerette, "ALC-DSC-213-000 Error on WebService" #1, 16 Jan 2009 6:44 am
    I have been able to get the web service to fire.
    The process is dying trying to send e-mail using the SendEmailService.
    It generates an exception of type "Exception" - flows thru an "Execute Script" that dumps text to the log file, then blow off with this:
    INFO [com.adobe.workflow.AWS] Invoking action synchronously
    INFO [STDOUT] @@@@ START New-Mult-Mark-Adobe02 @@@@
    INFO [com.adobe.workflow.AWS] Invoking action synchronously
    INFO [com.adobe.workflow.AWS] Invoking action synchronously
    INFO [STDOUT]
    [PID:-1] [ActionID:-1] Action Name: "Variable Logger" Start...
    INFO [STDOUT]
    [PID:-1] [ActionID:-1] End!
    INFO [com.adobe.workflow.AWS] Invoking action synchronously
    INFO [STDOUT] @@@@ Exception ERROR New-Mult-Mark-Adobe02 @@@@
    INFO [STDOUT] Feb 3, 2009 2:23:53 PM com.adobe.idp.jobmanager.ejb.JobManagerBean getServiceClientFactory
    SEVERE: JobManager:getServiceClientFactory(userContext):invocation context is null, using null context to create job
    INFO [STDOUT] Feb 3, 2009 2:23:53 PM com.adobe.idp.jobmanager.ejb.JobManagerBean doOnMessage
    SEVERE: JobManagerBean:onMessage():Exception:ALC-DSC-213-000: com.adobe.idp.dsc.DSCException: No Credential or Context set
    INFO [STDOUT] ALC-DSC-213-000: com.adobe.idp.dsc.DSCException: No Credential or Context set
    INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:84)
    INFO [STDOUT] at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
    INFO [STDOUT] at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:113)
    INFO [STDOUT] at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:102)
    INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:88)
    INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 0)
    INFO [STDOUT] at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
    INFO [STDOUT] at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
    INFO [STDOUT] at com.adobe.idp.jobmanager.ejb.JobManagerBean.doOnMessage(JobManagerBean.java:967)
    INFO [STDOUT] at com.adobe.idp.jobmanager.ejb.JobManagerBean.onMessage(JobManagerBean.java:817)
    INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
    INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    INFO [STDOUT] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.j ava:475)
    INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
    INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
    INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
    INFO [STDOUT] at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT. java:32)
    INFO [STDOUT] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterc eptor.java:101)
    INFO [STDOUT] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)
    INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    INFO [STDOUT] at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)
    INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:873)
    INFO [STDOUT] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)
    INFO [STDOUT] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerI nvoker.java:1379)
    INFO [STDOUT] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
    INFO [STDOUT] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904 )
    INFO [STDOUT] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)
    INFO [STDOUT] at org.jboss.mq.SpySession.run(SpySession.java:333)
    INFO [STDOUT] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
    INFO [STDOUT] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
    INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)

  • Problem running Web Service that uses OracleXMLSave on Oracle AS 10.1.3

    I am trying to deploy a Web Service that uses OracleXMLSave. The service was built in Jdeveloper 10.1.3 and is deployed to 10gR3 AS. I have all the utitlites available from the 10g Production XML Developers Kit installed . The code compiles and generates correctly . I then deploy to an EAR file that inlcudes the applicaiton code and also all the XDK libraries . No problems so far. But when I run the app, I get an exception like the one below. It says it can't find XMLType . The funny thing is that this library (xdb.jar) and all other related libraries are there in the EAR file . In fact the class loader seems to see it because the exception says that it is there (see text below).
    I have added all the libraries from XML Developer kit like xdb.jar , xsu12.jar , etc. I have also verfieid that the files are selected in the WebServices.deploy file and also present in the EAR file . (See full list below the eror message below. ).
    It looks like for some reason the class loader can't load the class even though it seems to know that the class exists in the path.
    Been sweating on this for a while (probably staring it at too long :) and would really appreciate some help.
    This is the exception thrown when the OracleXMLSave Class is called for the first time.
    Missing class: oracle.xdb.XMLType
    Dependent class: myXML.DbXMLSave
    Loader: TEAMWEBSERV.web.WebServices:0.0.0
    Code-Source: /D:/OracleAS10gR3/j2ee/TEAMWEBSERV/applications/TEAMWEBSERV/WebServices/WEB-INF/classes/
    Configuration: WEB-INF/classes/ in D:\OracleAS10gR3\j2ee\TEAMWEBSERV\applications\TEAMWEBSERV\WebServices\WEB-INF\classes
    The missing class is available from the following locations:
    1. Code-Source: /D:/OracleAS10gR3/j2ee/TEAMWEBSERV/applications/TEAMWEBSERV/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\OracleAS10gR3\j2ee\TEAMWEBSERV\applications\TEAMWEBSERV\WebServices\WEB-INF\lib)
    This code-source is available in loader TEAMWEBSERV.web.WebServices:0.0.0.
    2. Code-Source: /D:/OracleAS10gR3/j2ee/TEAMWEBSERV/applications/TEAMWEBSERV/WebServices/WEB-INF/classes/ (from WEB-INF/classes/ in D:\OracleAS10gR3\j2ee\TEAMWEBSERV\applications\TEAMWEBSERV\WebServices\WEB-INF\classes)
    This code-source is available in loader TEAMWEBSERV.web.WebServices:0.0.0.
    [oracle.classloader.util.AnnotatedNoClassDefFoundError]
    List of libraries :
    <list n="exportedReferences">
    <hash>
    <value n="id" v="Dms.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Log4j-1.2.9.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Mail.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="NetComponents.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Oc4j.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Ocrs12.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Ojdbc14dms.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Ojdl.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Oraclexsql.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Orai18n.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="ADF Model Runtime"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="ADF Model Generic Runtime"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Oracle XQuery"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Oracle XML Parser v2"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Oracle JDBC"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Oracle SOAP"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Dms.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Log4j-1.2.9.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Mail.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="NetComponents.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Oc4j.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Ocrs12.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Ojdbc14dms.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Ojdl.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Oraclexsql.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Orai18n.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xdb.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xml.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xmlmesg.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xmlparserv2.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xschema.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xsu12.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Classgen.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Jdev-rt.zip"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Oraclexsql.jar2"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Transx.zip"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xdb.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xml.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xmlcomp.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xmlcomp2.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xmldemo.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xmlmesg.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xmlparserv2.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xschema.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xsqlserializers.jar"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Xsu12.jar1"/>
    <value n="isJDK" v="false"/>
    </hash>
    <hash>
    <value n="id" v="Orai18n.jar2"/>
    <value n="isJDK" v="false"/>
    </hash>
    </list>

    Well I got the EJB lookup working but only when I changed the Provider Url to the pre-10.1.3 format e.g. ormi://someserver:12421/someapp and used jazn.com/oc4jadmin as the username. After reading the online documentation, I didn't think this should work!
    Another issue I am having is casting a datasource returned from a JNDI lookup for a datasource. We used to do the lookup in the code and cast to an OracleDataSource. Now it is throwing a class cast exception to ManagedDataSource. Is there a quick and easy solution to this? I really don't want to have to go into the code and change this cast so it'd be great if we can get this working without changing code. This code has been working in a prod environment for two years now on 9.0.3 -> 9.0.4...

  • Error when running P6 web services Demo

    Hi All,
    I am trying to run P6 web services demo application, p6 web services server is running, however I get this error when running the demo application:
    org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
    Appreciate if someone can help me to resolve it.
    Thanks in advance

    If you are getting this error, then you are most likely compiling your code with a different JVM than what is shipped with the application server. Oracle9iAS Release 2 (9.0.2) uses the JDK1.3.1. I got this error when I compiled the code with JDK1.4.0_01.

  • Running web services on OC4J with attachments problem

    Hi,
    I have problem with running Web Services with Attachment on AS 10.1.3 (SOAP: RCP/LItteral 1.1).
    I generate WS Bottom-Up from java class in Jdeveloper 10.1.3 (3673) :
    package project2;
    import javax.xml.soap.AttachmentPart;
    public class TestWS {
    public TestWS() {
    public String getText() {
    return "testWS text" ;
    public AttachmentPart getAttach() {
    AttachmentPart ap = null ;
    /* try {
    javax.xml.soap.MessageFactory mf = MessageFactory.newInstance();
    javax.xml.soap.SOAPMessage message = mf.createMessage();
    ap = message.createAttachmentPart(attachmentObj,"application/pdf");
    } catch (Exception e) {e.printStackTrace(); return null ;}
    return ap ;
    When testing WS through EM - Web services - Test Web Service, failed with exception:
    500 Internal Server Error
    java.lang.NullPointerException
    at oracle.j2ee.ws.server.WebServiceServlet.displayErrorPage(WebServiceServlet.java:742)
    at oracle.j2ee.ws.server.JAXRPCServlet.doGet(JAXRPCServlet.java:422)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    WS without attachment works fine. Any advice?
    Thx.
    Wollis

    It's probably "web services home page" bug, ws proxy client works fine.

  • Calling web service from oracle forms 10g

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://gend:83/DesignService.svc?wsdl
    The service was developed by us.
    Calling the web service using JDeveloper works fine but when I complie in Oracle Forms it returns wrong number of types of arguments in call SENDHELLO.
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    xo ora_java.jobject;
    rv varchar2(2000);
    ex ora_java.jobject;
    str varchar2(100);
    BEGIN
    jo := GendServiceClient.new;
    rv := GendServiceClient.sendHello('Nora');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    message(Exception_.toString(ex));
    END;
    Any help/ideas on this is greatly appreciated. Thanks.
    Edited by: KE Nora Loera on Jun 1, 2012 1:24 PM

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Calling web service from oracle forms fails with ORA_JAVA.JAVA_ERROR

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://www.webservicex.net/CurrencyConverter.asmx?wsdl
    Calling the web service using JDeveloper works fine but from Oracle Forms returns ORA_JAVA.JAVA_ERROR; Unable to call out to Java, Invalid object type for argument 1
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    rv ora_java.jobject;
    ex ora_java.jobject;
    outString varchar2(2000);
    BEGIN
    jo:= CurrencyConvertorStub.new;
    --This will get the exchange rate from US Dollars to UK Sterling.
    rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD');
    message (float_.floatValue(RV));
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    outString := Exception_.toString(ex);
    message(outString);
    END;
    Any help/ideas on this is greatly appreciated. Thanks.

    Yes, it is the message line - so basically this call fails => rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD'); and control goes in the exception block
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    Below is the code from java stub that was generated using JDeveloper by using web services stub/skeleton and associating the WSDL
    public Double ConversionRate(String FromCurrency, String ToCurrency) throws Exception
    URL endpointURL = new URL(endpoint);
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    String wrappingName = "ConversionRate";
    String targetNamespace = "http://www.webserviceX.NET/";
    Vector requestData = new Vector();
    requestData.add(new Object[] {"FromCurrency", FromCurrency});
    requestData.add(new Object[] {"ToCurrency", ToCurrency});
    requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.setSOAPTransport(m_httpConnection);
    msg.send(endpointURL, "http://www.webserviceX.NET/ConversionRate", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    Vector responseData = responseBody.getBodyEntries();
    return (Double)fromElement((Element)responseData.elementAt(0), java.lang.Double.class);
    }

  • Web Services demo - Webpage cannot be displayed

    Hello,
    I would like to run the example webpages in the Web Services demo project (http://ftp.ni.com/pub/devzone/tut/webservicedemo.z​ip), but none of the three pages can be displayed in internet explorer.
    I have completed every step in the included Readme document, no problem occured when building and deploying the two examples. Also the System Webserver and Applications Webserver are enabled.
    Please can anyone help me solve this issue?
    Thanks in advance!
    Regards,
    Marco

    Hi,
    For those who ecountered the same problem: I figured it out how to fix it:
    Try to add the port number of your Application webserver next to localhost in the URL. Like http://localhost:8080/Math/Sum/1/3.

  • How to integrate Oracle BI Publisher via Web Services in Oracle Forms.

    hi
    I hope you fine and happy. I think you hear about the new reporting tool (Oracle BI Publisher).
    Really it is a great tool. I need someone help me; How I can integrate Oracle BI Publisher via Web Services in Oracle Forms.
    I got the guidelines of this integration process from ORACLE.
    But, when I compile the script of publicreportserviceclient.callRunReport - the script running the report -, I get some errors in PL/SQL compiler
    http://www.oracle.com/technology/products/xml-publisher/index.html

    ==========================
    PL/SQL CODE:
    ==========================
    DECLARE
         RAISEDEXCEPTION ORA_JAVA.JOBJECT;
    REPORT_PATH VARCHAR2(200);
    PARAM_NAME VARCHAR2(200);
    PARAM_VALUE VARCHAR2(200);
    UN VARCHAR2(200);
    PW VARCHAR2(200);
    FORMAT VARCHAR2(200);
    TEMPLATE VARCHAR2(200);
    OUT_FILE VARCHAR2(200);
    OBJ ORA_JAVA.JOBJECT;
    BEGIN
    OBJ := PUBLICREPORTSERVICECLIENT.NEW();
    REPORT_PATH := '/LEARN/EMPLOYEES/EMPLOYEES.XDO';
    PARAM_NAME := 'P_DEPTNO';
    PARAM_VALUE := '50';
    UN := 'Administrator';
    PW := 'Administrator';
    FORMAT := 'PDF';
    TEMPLATE := 'Simple';
    OUT_FILE := 'C:\DevSuiteHome_1\j2ee\home\default-web-app\' || 'TEST';
    --PUBLICREPORTSERVICECLIENT.CALLRUNREPORT(OBJ,:REPORT_PATH,PARAM_NAME,:PARAM_VALUE,UN,PW,:FORMAT,:TEMPLATE,OUT_FILE);
    PublicReportServiceClient.callRunReport( REPORT_PATH,
    PARAM_NAME,
    PARAM_VALUE,
    UN,
    PW,
    FORMAT,
    TEMPLATE,
    OUT_FILE);
    WEB.SHOW_DOCUMENT('HTTP://127.0.0.1:8889/j2ee/' || 'TEST');
    END;
    ==========================
    JAVA CODE FOR callRunReport FUNCTION:
    ==========================
    public void callRunReport (String reportPath, String[] paramName, String[] paramValue, String
    username, String password, String format, String template, String outFile)
    try {
    bip_webservice.proxy.PublicReportServiceClient myPort =
    new bip_webservice.proxy.PublicReportServiceClient();
    // Calling runReport
    ReportRequest repRequest = new ReportRequest();
    repRequest.setReportAbsolutePath(reportPath);
    repRequest.setAttributeTemplate(template);
    repRequest.setAttributeFormat(format);
    repRequest.setAttributeLocale("en-US");
    repRequest.setSizeOfDataChunkDownload(-1);
    if (paramName != null)
    ParamNameValue[] paramNameValue = new ParamNameValue[paramName.length];
    String[] values = null;
    for (int i=0; i<paramName.length; i++)
    paramNameValue[i] = new ParamNameValue();
    paramNameValue.setName(paramName[i]);
    values = new String[1];
    values[0] = paramValue[i];
    paramNameValue[i].setValues(values);
    repRequest.setParameterNameValues(paramNameValue);
    else
    repRequest.setParameterNameValues(null);
    ReportResponse repResponse = new ReportResponse();
    repResponse = myPort.runReport(repRequest,username,password);
    byte[] baReport = repResponse.getReportBytes();
    FileOutputStream fio = new FileOutputStream(outFile);
    fio.write(baReport);
    fio.close();
    } catch (Exception ex) {
    ex.printStackTrace();

  • OC4J Web Service Demo

    I am in the process of evaluating 9ias' web service support.
    I downloaded 9ias (developer's preview oc4j_extended.zip - 19MB). Installation was smooth and I was able to get it up running.
    However, I couldn't find any web service example from the welcome page (there are only 2 category of test samples: JSP and Servlets). So I looked into the folders and found out the web service demos in $ORA\j2ee\home\demo\web_services\java_services.
    I got an error when deployed the web service archive file by running step 3 in readme.txt -
    Error: javax.naming.NamingException: Lookup error: java.io.EOFException: Disconnected; nested except
    ion is:
    java.io.EOFException: Disconnected
    Please advise.
    Thanks
    Bob Sheng

    Try using rmi default port number:23798
    Ex.: java -jar admin.jar ormi://localhost_09:23791...
    Leonardo Antunes
    Brasil.

  • Error running web services examples

    Hi Guys,
    After spending the whole day finally i get the soap server working. I have to manually deploy soap.ear into OC4j instance. But again i am trying to run web services stateless java say hello class example... but no luck. I am getting connection refuse error... Did any one tried these examples.... I am using Jdeveloper9i on win 2000 professional machine.
    I am getting connection refused error ...if i try to run example....
    Any help will be appreciated..
    thnks
    vijay

    See:
    Check for uniqueness of data in a column
    In your response, could you elaborate on "connection refused" ... is this the application server that you are testing? If you are setting up the SOAP Server connection, this is not required by those tutorials as shown by the Quickstart setup that they point to.
    It would also help to know the versions of JDev and OC4J you are using (e.g. are you using JDev 9.0.3 and OC4J 9.02; have you got a full install of Oracle9iAS 9.02 etc). Without more details it can be hard to help.
    I wrote most of the tutorials at a point in time so they tend to be pretty specific about version numbers. If you are using different versions they should work but I might be able to point out any problems you might run into.
    Mike.

  • Using Table returned by Web service in Adobe Form

    Hi Experts,
    I am working on a scenario wherein i am supposed to have a table as a response parameter in a RFC based webservice.
    When this web service is stand alone executed it gives back the records in the table.
    Now this web service is required to be integrated into the Adobe Interactive Form, On execution of this webservice from the Form, it does not return any result in the table.
    Am i missing something?? or is it related to some tricky binding or something??
    Please help!!
    Any help would be appreciated.
    Thanks
    Amita

    hi ,
    i have this problem .
    how can i solve this problem.
    Web Services Return table only see first row.
    Thanks.

  • How to create iView to run Web Service

    Hi,
    I need create iView on EP7 NW2004S SP12 portal to run Web Service provided on SRM 6.0 system.
    Here is how I have attempted to create the iView:
    1. Right click and select New =>iView.
    2. Select "iView Template" radio button.
    3. Select "Web Service iView" radio button to specify Web Service Template.
    4. Enter name and ID of iView.
    5. Select System Alias of System defined earlier.
    At this point, the portal attempts to connect to the ECC system, and it fails with this error, and I cannot finish the create of the iView.
    Could not connect to back-end application. Check your system. The server may be down or there may be an error in a system parameter.
    Here are the key parameters defined for the System referenced by the system alias:
    WSDL_URL:http://sap2.mycompany.com:50000/SRM-MDM/SRM_MDM
    Logon Method:UIDPW
    User Mapping Type:admin, user
    CodeLink:com.sap.portal.systems.webservices.webservice_system
    I've also created a usermapping for the Everyone group, and provided the userid and password for the system alias successfully.
    Thanks,
    Kevin

    Thank you for that information.  I had not previously seen a procedure on how to setup an iView to run a web service. 
    I had created the System just as described in this blog, but I still have a problem.  When creating the iView (on the last step of process when I click Finish), the portal attempts to connect to the SRM system, and it fails with the error highlighted below.
    Could not connect to back-end application. Check your system. The server may be down or there may be an error in a system parameter.
    I get an error in System Administration as well when I test the connectivity for the System object.
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
    Results:
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly
    How does the security need to be setup to make this work?  Or what could be causing this error?  I do have SSO configured between the portal and the target system.
    Thanks,
    Kevin

  • Call a web services from oracle forms 10

    I have to call a web services from oracle forms.
    The version of the database is oracle 11gr2. the version of the forms is 10.1.2.0.2.
    I allready did the proxy creation and the import class within forms.
    I have 2 questions:
    1.
    I created the following procedure:
    PROCEDURE call_WS IS
         vobject1 ORA_JAVA.JOBJECT;
         vobject2 ORA_JAVA.JOBJECT;
    BEGIN
    vobject1 := WSEvaluarReglaCondicionComerci.new();
    vobject2 := WSEvaluarReglaCondicionComerci.listarValoresAtributoEvento(vobject1, 702, 2217, null, null, null);
    END;
    the function I calling:
    FUNCTION listarValoresAtributoEvento(
    obj ORA_JAVA.JOBJECT,
    a0 ORA_JAVA.JOBJECT,
    a1 ORA_JAVA.JOBJECT,
    a2 ORA_JAVA.JOBJECT,
    a3 VARCHAR2,
    a4 ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT;
    Note that the parameters is ORA_JAVA_JOBJECT and I need to send numbers. I understand that when I import the classes, because in the WS those parameters are defined as BigDecimal, Forms understand them as java object but when I compile it reports the error: "numero o tipo de argumento erroneo al llamar..." type error.
    So the question is, how Cast the numbers to Java Object to send them.
    I have read in a web page that one option is to change in the web service the type of the parameters but that is not an option.
    2.
    The WS returns a super big XML as answer, so how I can parse the result into an Object type?...
    The object structure is:
    TYPE opciones_obj AS OBJECT
    (strindice VARCHAR2 (4000),
    nombrecompleto VARCHAR2 (4000),
    nombre VARCHAR2 (4000),
    strtipodato VARCHAR2 (4000),
    codigoopcion NUMBER,
    floatval FLOAT,
    strtipo VARCHAR2 (4000),
    strval VARCHAR2 (4000));
    and the tags to extract is:
    COLUMNS strindice VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strIndice"]/ns2:value',
    nombrecompleto VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="nombreCompleto"]/ns2:value',
    nombre VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="nombre"]/ns2:value',
    strtipodato VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strTipoDato"]/ns2:value',
    codigoopcion NUMBER
    PATH 'ns2:mapEntry[ns2:key="codigoOpcion"]/ns2:value',
    floatval FLOAT
    PATH 'ns2:mapEntry[ns2:key="floatVal"]/ns2:value',
    strtipo VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strTipo"]/ns2:value',
    strval VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strVal"]/ns2:value') x;
    xquery / xmltype aparently is not an option because the xml is too big.
    I will appreciate your answers.
    Thanks.
    Edited by: user13058213 on 26-ene-2012 16:02

    i created jar file to call it from forms
    Could you be a little bit less vague about what you exactly did?
    Anyway; see here http://bit.ly/10VVoMR
    cheers

  • Problem while testing a BAPI Web Servicei face this problem in web service

    i face this problem in web service bapi when i am carrying out the submit test... so can anyone help me???
    HTTP/1.1 500 Internal Server Error
    Set-Cookie: <value is hidden>
    content-type: text/xml; charset=utf-8
    content-length: 803
    sap-srt_id: 20080610/144609/v1.00_final_6.40/DD36B8E7DE44B5F19BA900145E6770F3
    server: SAP Web Application Server (1.0;700)
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang="en">Deserialisation failed</faultstring><detail><n0:SimpleTransformationFault xmlns:n0="http://www.sap.com/transformation-templates"><MainName>/1BCDWB/WSS0080610064309718000</MainName><ProgName>/1BCDWB/WSS0080610064309718000</ProgName><Line>128 </Line><Valid>X</Valid><ReferenceFault><DescriptionText>Error accessing the ref. node 'EMPLOYEENUMBER'</DescriptionText><RefName>EMPLOYEENUMBER</RefName></ReferenceFault><Caller><Class>CL_SRG_RFC_PROXY_CONTEXT</Class><Method>IF_SXML_PART~DECODE</Method><Positions>1 </Positions></Caller></n0:SimpleTransformationFault></detail></soap-env:Fault></soap-env:Body></soap-env:Envelope>

    Hi,
    since I did not find that BAPI in my system: what is the exact name?
    Did you test the BAPI directly in ABAP, i.e. function builder SE37, successfully?
    Currently it looks to me as if you did not provide sufficient business data.
    Did you specify the employee number before executing the call?

Maybe you are looking for