Invoking Webservice from oracle DB

Hi Friends,
I am facing a problem in invoking xi webservice from Oracle DB.
My Oracle Version is 8.0 and a Power bulider (5.0)on the top of DB both of this are not supporting webservice.
My requirement is to trigger an application from PB or oracle which can fetch the required data from oracle DB and push it into XI. Want to do a push not pull as in the case of JDBC.
I don't want to use a JDBC adapter since the volume of message flow will be very less.(since this will keep on polling the DB).Even though i can start/stop communcication channel externally, the business user want to do that from the PB view.Any one aware this can be done in PB -5.0 ?
is there any other option to trigger webservice for this lower version ?
Thanks for the reply.
Sunil.

Hi ,
http://download.sybase.com/presentation/2003_presentations/PWB509.ppt
http://pbdj.sys-con.com/read/42590.htm
Regards,
Vinod.

Similar Messages

  • ProcessRemoteException when invoke  webservice from Oracle E-Business Suite

    Hi,when i invoke webservice from Oracle E-Business Suite R12.1 – Integrated SOA Gateway’s
    I get following exception.
    fuego.soaptype.SoapExecutionException
    at fuego.soaptype.SoapCall.processRemoteException(SoapCall.java\:750)
    at fuego.soaptype.SoapCall.invoke(SoapCall.java:238)
    at fuego.soaptype.SoapObject.invoke(SoapObject.java:309)
    at fuego.lang.Invokeable.invokeImpl(Invokeable.java:234)
    at fuego.lang.Invokeable.invokeDynamic(Invokeable.java:188)
    at xobject.Fuego__AutoGen__Screenflows__.__SubmitReport.initializeReport(__SubmitReport.xcdl:30)
    at.......
    this webserivce has been deployed and granted. and I can test it with soapUI.
    my code:
    configuration as Configuration = Configuration("FND_PROGRAM_Service");
    endpoint as HttpEndpoint=HttpEndpoint("http://ep066020.bscdev.net:8002/webservices/SOAProvider/plsql/fnd_program/");
    endpoint.setUsername("sysadmin");
    endpoint.setPassword("sysadmin");
    configuration.endpoint = endpoint;
    usernameTokenPlain as UsernameTokenProfileSecurityPolicy=UsernameTokenProfileSecurityPolicy("sysadmin","sysadmin");
    usernameTokenPlain.usernameTokenPasswordType = UsernameTokenPasswordType.PASSWORD_TEXT;
    policies as SecurityPolicy[];
    policies[]=usernameTokenPlain;
    configuration.securityPolicies = policies;
    service as FND_PROGRAM_Service= FND_PROGRAM_Service(configuration)
    sh as SoaHeader = SoaHeader();
    sh.namespace="";
    sh.responsibilityApplName="SYSADMIN"
    sh.responsibilityName="System Administrator"
    sh.securityGroupName="STANDARD"
    sh.nlsLanguage="AMERICAN"
    pam as InputParameters9 = InputParameters9()
    result as OutputParameters
    pam.application="SQLGL";
    pam.executableshortname="ENABLED"
    do
    logMessage "333333333333333";
    executableexists service
    using header = sh,
    body = pam
    returning result = bodyOutput (throw exception)
    logMessage "2222222222222";
    reportSF.description=String.valueOf(result.fndprogram24executableexists)
    reportSF.comments="11111111111";
    on ex as Any
         logMessage "aaaaaaaaaaaa"+ex
    end

    I've encounter something similar to you're problem and it was resolved by manually creating the object using the web service constructor and inputting user credentials. If you manually instantiate your web service wrapper object and set a a security profile token, it may solve your problem. You can also pass in the web service endPoint URL, if you want.
    Fuego.WebServices.UsernameTokenProfileSecurityPolicy
    I'm not sure how to use UsernameTokenProfileSecurityPolicy, but try something like this:
    Fuego.WebServices.UsernameTokenProfileSecurityPolicy policy = UsernameTokenProfileSecurityPolicy();
    policy.username ="mark";
    policy.password = "password";
    tws = YourWebService();
    response = tws.callWebServiceMethod();
    I realize the security profile isn't tied anywhere to the web service, but try it anyway.
    There is also some fields on the webservice, tws.setRequestHeader() that may allow you to set the username and password on the request, but this doesn't make sense to me. It shouldn't be that hard.
    Edited by: Mark Peterson on Mar 19, 2010 9:14 AM
    Edited by: Mark Peterson on Mar 19, 2010 9:20 AM

  • XML Error while calling webservice from oracle function.

    I am getting an error while I am trying to call webservice from oracle function. Any ideas? Thanks.
    select get_new_string ('proxy:80', 'http://xxx/PatternVariations/SourceTest/WebMethods','Scott') from dual
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00225: end-element tag "H4" does not match start-element tag "P"
    Error at line 9
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at "DORSBP00.DEMO_SOAP", line 82
    ORA-06512: at "DORSBP00.GET_NEW_STRING", line 11

    The error message implies that the web service is returning something that is not well formed xml. Can you verify what is being returned by the web service call

  • Problem calling WebService from Oracle Forms created by JDeveloper

    Hi All,
    I am trying to call a Webservice from Oracle Form using JAVA Class created by Oracle JDeveloper.
    The Java Function (in JDeveloper) is as follows:
    public Vector GetPIValue(String TagName, String ReadingTime) throws Exception
    URL endpointURL = new URL(endpoint);
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    requestBodyEntries.addElement(TagName);
    requestBodyEntries.addElement(ReadingTime);
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.send(endpointURL, "http://tempuri.org/GetPIValue", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    return responseBody.getBodyEntries();
    When this Class is Imported into Oracle Forms the Function is converted into the following PL/SQL code:
    FUNCTION GetPIValue(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    Message('param passed: '||a0||' - '||a1);
    cls := JNI.GET_CLASS('oracle/forms/demos/webservice/ConnectToPIStub');
    mid := JNI.GET_METHOD(FALSE, cls, 'GetPIValue', '(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Vector;');
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    Message('I am Here');
    RETURN JNI.CALL_OBJECT_METHOD(obj, mid, args);
    END;
    When I am calling this Function from Within Forms and Passing into it the Parameters, I am displaying some Debugging Messages. When the Code reaches "JNI.CALL_OBJECT_METHOD" there is NO RESPONSE from the Webservice and nothing is moving forward after this Point...
    A similar Webservice that can be Tested is:
    http://www.webservicex.com/CurrencyConvertor.asmx
    with WSDL file:
    http://www.webservicex.com/CurrencyConvertor.asmx?wsdl
    Kindly note that this Webservice is running properly from the Web Browser but the call from Oracle Forms is not Succeeding!!!! :-((
    Any help is much appreciated.
    Regards,
    Baz

    Hi,
    Yes, you need to compile your source files with JDK 1.3 (since JInit 1.3.x.x uses JDK 1.3).
    Other solution would be to use JRE 1.5 (instead of JInitiator).
    Check out [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=550563] on how to use JRE1.5
    -Arun

  • Invoking a webservice from Oracle ODI 11.1

    Hello there, new to this forum but I am having trouble invoking a webservice from a package within ODI. The error message I am recieving is as follows.
    com.sunopsis.wsinvocation.SnpsWSInvocationException: javax.xml.ws.WebServiceException: java.lang.ExceptionInInitializerError
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:73)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
         at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1235)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:139)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:279)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:656)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: javax.xml.ws.WebServiceException: java.lang.ExceptionInInitializerError
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:188)
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:195)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:66)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
         at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1237)
         ... 6 more
    Caused by: java.lang.ExceptionInInitializerError
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:173)
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:195)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:66)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
         at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1235)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:278)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         ... 1 more
    Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl
         at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.<clinit>(SOAPFaultBuilder.java:533)
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:173)
         at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:195)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:66)
         at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
         at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1237)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:139)
         at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:279)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:656)
         ... 1 more
    Eventually, I would like to query a documentum DB but I can't get a simple webservice call to work correctly. Any help will greatly be appreciated.

    This forum is about Oracle Database. not about Oracle Data Integrator.
    Kindly post in the correct forum https://forums.oracle.com/forumID=374
    Sybrand Bakker
    Senior Oracle DBA

  • Calling a webservices from Oracle 10G ( 10.2.0.2)

    Hi:
    I am in the process of putting a database Java stored procedure that can call an external webservices.
    PL/SQL Wrapper -> Java Stored Procedure-> External Web services
    I loaded the following jars in the dataase.
    dbwsa.jar
    dbwsclient.jar
    1. I am having issues consuming this external webservice from SQL*PLUS. Do you know whether I need to load any other JARS ?
    2. How can I debug this issue ? I enabled TCP Monitor in JDeveloper and don't see anything when I call the PL/SQL wrapper in SQL*PLUS.
    3. I can use a Java client and tested the Web services OK.
    error message:
    SQL> l
    1 declare
    2 x varchar2(100);
    3 begin
    4
    5 x := tester.test_db1();
    6* end;
    SQL> /
    calling
    http://XX.XX.YY.121:8988/Application9-ViewController-context-root/MyWebService1S
    oapHttpPort
    java.rmi.RemoteException: Error parsing envelope; nested exception is:
    javax.xml.soap.SOAPException: Error parsing envelope
    at
    view.proxy.runtime.MyWebService1SoapHttp_Stub.sayhello2(MyWebService1SoapHttp_St
    ub.java:99)
    at
    prpd.MyWebService1SoapHttpPortClient.sayhello2(MyWebService1SoapHttpPortClient.j
    ava:41)
    at prpd.TEST_DB.TEST_DB1(TEST_DB.java:21)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope
    at
    oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplemen
    tation11.java:103)
    at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:75)
    at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:934)
    at
    oracle.j2ee.ws.client.StreamingSender._preHandlingHook(StreamingSender.java:692)
    at oracle.j2ee.ws.client.StubBase._preHandlingHook(StubBase.java:688)
    at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:207)
    at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
    at
    view.proxy.runtime.MyWebService1SoapHttp_Stub.sayhello2(MyWebService1SoapHttp_St
    ub.java:76)
    ... 2 more
    Caused by: java.lang.IllegalArgumentException
    at oracle.xml.parser.v2.XMLParser.setAttribute(XMLParser.java:794)
    at
    oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplemen
    tation11.java:54)
    ... 9 more
    PL/SQL procedure successfully completed.
    SQL> /
    thx
    Raj

    thanks Tugduall for the comments. here are the instructions I followed to create a java stored procedure that can call a webservices. Unfortunately, this seems like a very complex task. Do you have any ideas how I could debug or troubleshoot this issue ?
    Please note that I used JDeveloper to generate the client code.
    ========================================================
    1. download the dbws-callout-utility-10R2.zip from OTN at:
    http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html
    2. create an application/project with 1.4 JDK.
    3. create a web service by ‘Business Tier’->Web Service->Web Service Proxy->UDDI
    4. next… to ‘Search for’, type ‘quote’.
    5. from the list select one. For me ‘Quote of day’ was picked.
    6. click Next all the way to Finish.
    7. from the ‘Application Sources’ select ‘QuotoProxy’ then find its main method.
    8. at the section
    // Add your own code here, add the line like:
    System.out.println("quote "+myPort.getQuote());
    9. run it to see its return.
    10. cteate a class that has a method to call client method to be invoked (static)
    like the following:
    package dbws;
    import dbws.QotdPortClient;
    public class MainClientStub {
    public MainClientStub() {
    public static String getMyQoute(){
    QotdPortClient myClient = null;
    try {
    myClient = new QotdPortClient();
    return myClient.getQuote();
    } catch (Exception e) {
    e.printStackTrace();
    return null;
    note that the package name in your project.
    11. create a deployment profile as ‘JAR File’. Uncheck the box ‘Project Dependencies’
    12. deploy it to the local box. ‘Deploy to JAR File’.
    13. unzip the dbws-callout-utility-10R2.zip to get dbwsa.jar.
    14. execute the following from command line:
    loadjava –user test/[email protected] -resolve –verbose –synonym –grant public to dbwsa.jar myarchive1.jar
    loadjava -user test/test@orcl1020 -resolve -verbose -synonym -genmissing -grant public myarchive1.j
    ar dbwsa.jar
    loadjava -user sys/<sys_pass> -resolve -verbose -synonym -genmissing -grant public myarchive1.jar dbwsa.jar
    15. create a function like the following:
    CREATE OR REPLACE FUNCTION teststub RETURN VARCHAR2 AS
    LANGUAGE JAVA NAME ‘dbws.MainClientStub.getMyQoute() return java.lang.String’;
    16. Run at sqlplus: Select teststub from dual;
    ======================================================

  • Cannot invoke WebService from Excel

    I've created simple web service based on java class using Jdeveloper's 9.0.5.2 wizard. Java class looks like this
    package test;
    public class HelloNameClass
    public HelloNameClass()
    public String sayHello(String name)
    return "Hello "+name;
    I've generated stub class and invoked Web Service from it. Everything was OK. Then I've created VB class in Excel XP using "Web Service References Tool 2.0 for Visual Basic for Applications" and WSDL generated by JDeveloper. But when I try to invoke Web service from VB function
    Function testWS(name As String)
    Dim ws As New clsws_MyWebService1
    testWS = ws.wsm_sayHello(name)
    End Function
    I got error
    No Deserializer found to deserialize a ':name' using encoding style "http://schemas.xmlsoap.org/soap/encoding/" [java.lang.IllegalArgumentException]
    I wonder if this problem comes from badly configured embedded OC4J container or it's just a bad SOAP realization in microsoft's toolkit. What should I do to Invoke WS from Excel?

    I have exactly the same problem ! I know where it comes from but i don't know how to solve it...
    1. SYMPTOMS
    I have two web services deployed on a OAS 10g :
    - Web service 1 has no parameter (simple "Hello World")
    - Web service 2 has one parameter : myparam
    Both run perfectly using a java stub client or from a browser.
    Web service 1 runs perfectly from a small Word/VBA application.
    BUT Web service 2 doesn't run from the same application : "No deserializer found to deserialize ':myparam' using blablah..."
    2. THE PROBLEM
    The problem comes from the way the SOAP request message is designed.
    Oracle HTTP server (Apache) NEEDS an info about the parameter in the SOAP request message that is not mandatory following SOAP specification, which is pretty bad for interoperability.
    Microsoft doesn't provide that info (and it's okay because it is not mandatory) so the SOAP message is not understood Oracle-side.
    3. SHOW ME
    I used a TCP listener to catch the data sent and received by both Oracle to Oracle connection and VB to ORACLE.
    The difference is located in the SOAP request where the parameter is introduced :
    3.1. Oracle to Oracle
    <SOAP-ENV:Envelope ...
    <SOAP-ENV:Body> ...
    <myparam xsi:type="xsd:int">10</myparam>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    3.2. VB to Oracle
    <SOAP-ENV:Envelope ...
    <SOAP-ENV:Body> ...
    <myparam>10</myparam>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    You noticed the difference : the VB SOAP message lacks :
    xsi:type="xsd:int"
    It's not mandatory following the specification, but without this, it won't work on Oracle server...
    I didn't find a solution yet, but perhaps this will give you some ideas !

  • Calling Webservices from Oracle PL/SQL

    Hi,
    I am trying to call a webservice from PL/SQL using Oracle-10g database.
    I am getting the error at the line ::
    http_req:=utl_http.begin_request(p_url,'POST','HTTP/1.0');
    p_url parameter is populated with the corresponding correct url.
    ERROR ::
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1029
    ORA-12541: TNS:no listener
    However my application is runing fine in the server and from Toad/SQL plus I am able to connect to the database.
    From outside also , the webservices are working. Please help me to solve this problem.
    - Thanks
    Sandipan

    You're probably behind a firewall and need to set a proxy server in the database.
    You can do this by adding the following code (of course before you make a call to the SOAP request)
    utl_http.set_proxy('yourproxy.yourcompany.com', NULL);

  • Fusion Release 9 Coexistence from EBS - Invoke Webservice from EBS

    The following error is seen while trying to invoke LoaderIntegrationService from EBS
    Doc ID 1592028.1 has the resolution but our implementation is on cloud and we are unable to get the oimclient.jar. This is blocking our work and needs immediate help.
    Need an expert advise on this issue.
    java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
    at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:673)
    at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:480)
    at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:306)
    at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:241)
    at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88)
    at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70)
    at java.lang.Class.initAnnotationsIfNecessary(Class.java:3168)
    at java.lang.Class.getAnnotation(Class.java:3127)
    at oracle.j2ee.ws.common.metadata.AnnotationHelper.getWebServiceAnnotation(AnnotationHelper.java:325)
    at oracle.j2ee.ws.common.metadata.AnnotationHelper.getWebServiceAnnotation(AnnotationHelper.java:321)
    at oracle.j2ee.ws.common.jaxws.WebServiceAttributes.<init>(WebServiceAttributes.java:45)
    at oracle.j2ee.ws.common.jaxws.runtime.ServiceEndpointRuntimeModeler.processAnnotation(ServiceEndpointRuntimeModeler.java:122)
    at oracle.j2ee.ws.common.jaxws.runtime.ServiceEndpointRuntimeModeler.buildRuntimeModel(ServiceEndpointRuntimeModeler.java:110)
    at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.getRuntimeMetadata(WsClientProxyFactory.java:69)
    at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:126)
    at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:483)
    at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:467)
    at javax.xml.ws.Service.getPort(Service.java:160)
    at com.oracle.xmlns.apps.hcm.common.batchloader.core.loaderintegrationservice.LoaderIntegrationService_Service.getLoaderIntegrationServiceSoapHttpPort(LoaderIntegrationService_Service.java:68)
    at aldr.oracle.apps.aldrhr.UploadFileUCM.runProgram(UploadFileUCM.java:165)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:156)

    Please see if the solution in (FND_SOA_SERVICE_EXECUTION_ERR Error When Invoking EBS SOA Gateway Web Service [ID 1512956.1]) is applicable.
    Thanks,
    Hussein

  • Invoke function from oracle application express

    Hello,
    I am using oracle application express 10g.
    I wrote a simple function.
    I want to call the function from oracle application express.
    *Is it possible to invoke the function from oracle application express?*
    I search the web and find no example for it.
    Can you please write any good links for an example? What have I missed?_
    I am really stuck with it. Any help will be appreciated!
    Thanks a lot,
    Niron.

    Hi,
    You can call function in e.g. computations, validations and process like you call it in SQL sheet.
    Process example to get value to variable from function sending item value as parameter
    DECLARE
      l_my_var varchar2(32700);
    BEGIN
      l_my_var := my_function(:Px_MY_ITEM);
      /* other code */
    END;Regards,
    Jari

  • Urgent: How to invoke webservice from a remote client?

    How could I invoke webservice deployed on the weblogic server on different System from client residing on my System?
    I would like to know the different ways to do this and the advantages and dis-advantages of each one of them.
    Thanks in advance.
    Nitin

    nitind,
    Did you figure out how to connect to Weblogic web-service remotely?
    I tried doing so, but I get the following error on the client-side.
    A exception was thrown from the client handler sending a JAXM message.
    A stack trace for a previously logged message.
    Exception in handler handleRequest() method.
    Exception in thread "main" java.rmi.RemoteException: null; nested exception is:
    java.lang.NoSuchMethodError
    java.lang.NoSuchMethodError
    at weblogic.webservice.util.FaultUtil.fillDetail(FaultUtil.java:84)
    at weblogic.webservice.util.FaultUtil.fillFault(FaultUtil.java:141)
    at weblogic.webservice.util.FaultUtil.exception2Fault(FaultUtil.java:184
    at weblogic.webservice.core.HandlerChainImpl.handleRequest(HandlerChainI
    mpl.java:183)
    at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:
    218)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.j
    ava:143)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:444)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:430)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:270)
    at myapp.myservice.client.NoCallbackWebServiceSoap_Stub.addition(NoCallb
    ackWebServiceSoap_Stub.java:62)
    at myapp.myservice.client.NoCallbackWebServiceSoap_Stub.addition(NoCallb
    ackWebServiceSoap_Stub.java:84)
    at testclient.example(testclient.java:48)
    at testclient.main(testclient.java:27)

  • Error when calling webservice from oracle function.

    Hi,
    I am getting following error when i am trying to call webserivce from oracle function. Please can anyone suggest the required solution. Below is the error obtained.
    Thanks.
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00225: end-element tag "UL" does not match start-element tag "P"
    Error at line 15
    ORA-06512: at "SYS.XMLTYPE", line 54
    ORA-06512: at "SCOTT.DEMO_SOAP", line 87
    ORA-06512: at "SCOTT.WEB_SERVICE", line 17

    The error message implies that the web service is returning something that is not well formed xml. Can you verify what is being returned by the web service call

  • Getting error  connection timed out while invoking webservice from bpel.

    Hi,
    I am trying to call a secure webservice developed in .Net having extension .svc from the bpel service and in response i am getting error
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{summary=<summary>exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection timed out: connect</summary>
    I am able to call this web service from the java programme using HTTPClient by setting the username/password and soapaction in http Header but not from the BPEL process. This .Net service is synchronous in nature. I also set the proxy in opmn.xml but didn't got any success.
    Please reply me ASAP. Need urgent help.
    Thanks.

    Are you working on 11g ? if this is 11g
    How are you invoking the webservice ...does it have any authentication..
    If the webservice which you are invoking has basic http authentication...
    1. In the composite.xml file, right click on the reference and configure WS policies. In security tab, add a security policy named"oracle/wss_http_token_client_policy"
    2. Add two binding properties for the reference
    (i) oracle.webservices.auth.username
    (ii) oracle.webservices.auth.password
    and provide the username and password for those two properties...
    Just try this out...
    Thanks,
    N

  • Calling OCS webservices from Oracle apps 9i database

    Hi I want to know if there is any documentation on how to call OCS web services directly from 9i database on which our oracle E-Bussiness Suite 11.5.10 is running.
    There is a metalink note on calling ocs java api using load java utility. I am not looking at this but I want to call directly web service( SOAP xml etc) from 9i PL/SQL. Where can I get more info on this? All I see is Java Web services API.

    Hi,
    Is there any way to upload files into OCS using standard web services? I am not talking about ocs java api on the top of web services.
    I have been looking into getting more info but I am not able to get any help on this.
    If OCS is completely supporting webservices, then Why are webservices are not exposed?
    We have many client applications, from which we want to upload documents into OCS. Is there any sample code using java on how to call OCS web services( not the ocs java API) to upload content into OCS?

  • Error when invoking WebService from WTK 2.5 client

    hi all,
    i have developend an EJB3 webservice using JBoss4.0.5.GA...
    i wrote a java client using wstools and it worked fine
    Then i used StubGenerator from WTK , it generated stubs....
    i then tried tocall the jbossws.. the jbossws received the call, but in i got a disaster error when i received back the response from the webservice.
    this was the response from the webservice (as i checked in the WTK network monitor)
    <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
    <env:Header/>
    <env:Body><ns1:loginResponse xmlns:ns1='http://org.jboss.ws/ejb3ws' xmlns:xsi='http://www.w3.org/2001/XMLSchema
    -instance'/>
    </env:Body>
    </env:Envelope>and this was the exception that i was able to see in the WTK
    javax.xml.rpc.JAXRPCException: java.rmi.MarshalException: (1)Missing end tag for Body or Envelope
         at com.sun.j2mews.xml.rpc.SOAPDecoder.decode(+243)
         at com.sun.j2mews.xml.rpc.OperationImpl.invoke(+90)
         at com.mm.j2me.ws.WSRemoteSEI_Stub.login(+48)
         at com.mm.j2me.midp.model.HTTPCommunicationHandler.createAccount(+36)
         at com.mm.j2me.midp.model.RemoteModelRequestHandler.createAccount(+16)
         at com.mm.j2me.midp.model.RemoteModelProxy.createAccount(+16)
         at com.mm.j2me.midp.model.ModelFacade.createAccount(+16)
         at com.mm.j2me.midp.ui.UIController$EventDispatcher.run(+277)Well, i can see both Body and Envelopen in the message that has been sent back, so can anyone tell me what's wrong with WTK??
    thanks in advance and regards
    marco

    Hi all,
    as many developers I have encountered the famous "java.rmi.MarshallException:(1)Missing end tag for Body or Envelope" during the development of my WS app for J2ME (JSR 172).
    It is correct that is the empty tag <soapenv:Header /> causing this error.
    To fix this error, it is necessary to stop the server to generate this empty header in the response stream.
    I have fixed this error for Axis2: unfortunaly it is necessary to modify a class in Axiom library. This library is used in Axis2 to produce the SOAP response, you can download the source code at http://ws.apache.org/commons/axiom/source-repository.html.
    Here the class to modify:
    axiom\modules\axiom-impl\src\main\java\org\apache\axiom\soap\impl\llom\soap11\SOAP11Factory.java
    by commenting the line 273 in the method called getDefaultEnvelope() to prevent the empty header insertion in SOAP response:
    public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
            OMNamespace ns =
                    new OMNamespaceImpl(
                            SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                            SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
            SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
            //createSOAPHeader(env); the line to be commented
            createSOAPBody(env);
            return env;
        }Finally you have to recompile Axiom using Maven to obtain the fixed package axiom-impl.jar and to replace this package on the lib repository of your Axis2 server.
    A little tricky to fix this bug but now my app runs perfectly ;)
    Enjoy!
    Romain Pellerin
    http://www.gasp-mobilegaming.org

Maybe you are looking for