Webservice scheduled client

Hello,
I am new to webservices and totally new to Application Express.
If I got it correctly then it is possible to write an apex program that calls an external webservice.
I would like to know whether it is possible to execute this webservice client program periodically, as a scheduled task, such as a dbms_job, dbms_schedule or crontab job.

I suspect that you can only do this if the web service that the applet is calling is on the server from which the applet originated.

Similar Messages

  • How to pass username/password through WebService proxy client to E-BS.

    Hi
    We are using ADF Webservice proxy client to integrate E-Business suite with ADF. It asks for username/password to access details from E-BS. In the generated webservice XSD file, a method is available with 2 parameters.
    1) SOAP header( Contains Username, responsibility and 2 more fields)
    2) Class object(Nested Object)
    However i didn't find "*Password*" field anywhere in it. Then how can I pass "*Password*" along with username to invoke this method?
    When i checked SOAP, the password is defined like this
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</wsse:Password>a
    Thanks
    Raja

    hi Dario
    Thank you for your post. It is really helpful. Now I got stuck with a doubt, in this piece of code
    final Binding binding = ((BindingProvider) servicePort).getBinding();
    List<Handler> handlerList = binding.getHandlerChain();
    if (handlerList == null)
    handlerList = new ArrayList<Handler>();
    They didn't mention properly about "*servicePort*". What object is this?
    I checked in Oracle document, even in that I was not clear with that piece of code.
    public class HandlerWS{ 
    @Resource WebServiceContext ctx;
    @WebMethod()
    public String getProperty(String propertyName) {  
    return (String) ctx.getMessageContext().get(propertyName);
    public class Main {
    public static void main(String[] args) {
    HandlerWS test;
    try {
    test = new HandlerWS(new URL(args[0] + "?WSDL"), new
    QName("http://example.org", "HandlerWS") );
    } catch (MalformedURLException murl) { throw new RuntimeException(murl); }
    HandlerWSPortType port = test.*getHandlerWSPortTypePort*();
    What is this HandlerWSPortType object???. Can you give me little more explanation about it?
    Thanks

  • I got ClassCastException when i use the Webservice Deployeble Client.

    hi, i created a webservice deployeble client. when i use the proxys i got ClassCastException
    here it is my code
    Context ic = new InitialContext();
                   out.println("----1---");
                   Object lookuped =
                        ic.lookup(
                             "wsclients/proxies/sap.com/ClientProxyDefinition/in.mobileone.demo.proxy.WSClientProxy");
                   out.println("\n----2---"+lookuped.getClass());     
                   PortableRemoteObject objPortableRemoteObject=new PortableRemoteObject();
                   out.println("\n---3--
                   Object narrowed =
                        objPortableRemoteObject.narrow(lookuped, AdminOperWS.class);
                   out.println("\n---4--" + narrowed);
                   AdminOperWS service = (AdminOperWS) narrowed;
                   out.println("----5---" + service);
                   AdminOperWSViDocument client = null;
                   ClsSuper objClsSuper = new ClsSuper();
                   String strErrorCode = null, strErrorMessage = null;
                   client =
                        (AdminOperWSViDocument) service.getLogicalPort(
                             "Config1Port_Document",
                             AdminOperWSViDocument.class);
                   out.println("----5---" + client);
                   objClsSuper = client.createUser("2", "lakshman", "lakshman", "ad");
    i got the output:
    1-----
    2-----class in.mobileone.demo.proxy.AdminOperWSImpl
    3----
    java.lang.ClassCastException
    plz send solu...
    Thank U

    Hi Lakshman,
    can you please elaborate how you are calling this web service( where you get the stub?)
    Why are you using these lines?
    PortableRemoteObject objPortableRemoteObject=new PortableRemoteObject();
    out.println("\n---3--");
    Object narrowed =
    objPortableRemoteObject.narrow(lookuped, AdminOperWS.class);
    out.println("\n---4--" + narrowed);
    These are used mailny for CORBA objects( while calling EJBs).
    Just remove these line and try.
    Please do come back with the output.
    Regards,
    Piyush

  • Installing Tidal 5.3.1 Scheduler Client silently

    Hello,
    Just wondering if it's possible to silently install the 5.3.1 Scheduler Client. The only reference I can find to a silent install refers to the 3.0 agent. Am I chasing an untamed ornithoid without cause here?
    Thanks,
    Ryan

    I have actually figured out a work around while I was waiting for a response so I will share it for others who may be in a similar situation.
    I was able to get it working by creating and utilizing the Install Shield response file.
    To do this use the following syntax:
    \\networkshare\Client\Setup.exe /r /f1"\\networkshare\Client\Setup.iss" (you can call the ISS file whatever you'd like)
    This will launch the installer for you to manually configure and all settings will be captured to the .iss file you specified.
    To test if your installer works you can use the following command on a machine where no tidal client is present:
    \\networkshare\Client\Setup.exe /s /f1"\\networkshare\Client\Setup.iss"
    That's it. Every InstallShield installer that uses an .iss file will also create a setup.log file which you can reference to see if it is successful. If you are having problems with this method I would encourage you to search for Install Shield ResultCodes.
    Cheers!

  • Implementing Asynchronous comm. in WebService & its client

    Hi Friends,
    I am trying to implement Asynchronous communication between a WebService & its Client. I am using Sun JWSDP 1.6.
    My doubts are:
    1. Is there any difference in WSDL? If yes, then What?
    2. What are the differences in WSDL for
    a. Client Call-Back or
    b. Polling
    3. How to use JWSDP to implement such communication?
    Thanx in advance.

    Thanks swatdba,
    I came to know later that JWSDP 1.6 doesnt have support for Asynchrony, but my concern is about WSDL.
    * What needs to be published in WSDL for Asynchronous support in WebService?
    * I studied WSDL of an Asynchronous BPEL process. It has
    2 Service endpoint definition,
    2 Ports and
    2 Bindings
    - One for Request and the other for CallBack
    Can anyone explain me what does it mean? Is there any way to create client for that (other than JAX-WS 2.O)?

  • Error while sending request to Webservice from Client app on Weblogic

    Hi Everybody,
    As part of web service development and deployment, I created one simple webservice and tried to deploy it on Apache Tomcat 5.5 and then weblogic 9.2. It worked fine on Apache Tomcat but it didn't work on Weblogic. Here are the steps I followed.
    1) Created a webservice within one Dynamic Web project
    2) Created a Client application
    3) Deployed both (by exporting war files from eclipse3.2) on Tomcat Apache locally on the same machine (localhost)
    4) Invoked client in the browser which allows to send simple request (Hello!) to Webservice
    5) Invoked webservice method call from the Client browser window
    6) Received success response back from webservice.
    Then, I deployed same war files on Weblogic 9.2 (different machine on the network)
    - Both got deployed successfully and reached to ACTIVE state on Weblogic and became ready to accept requests.
    - When invoked Client application on the browser, it worked.
    - From that client application browser window, I tried to invoke webservice call, I got the exception as below:
    exception: java.net.ConnectException: Connection refused: connect
    I will greatly appreciate any advice on this. Let me know if more information is needed.
    Thanks in advance.
    Gaurang Prajapati

    Have you given the correct ip or machine name in the client?

  • Could I get result in xml from webservice (my client is java application)?

    Hi,
    I have a client which is a java application to call to my existed webservice and webservice return object result is okie. But I would like to get the result which is wrapped in xml file, not object? Can webservice do that? (If not, I have to wrap the result in xml by hand).
    Anyone who know please help me. Very urgent, I have to have answer in 1 day.
    Thank in advance.

    The result when we call to my webservice is an object which contain data, I don't want to get this object, I would like to gain an equivalent xml instead of object ( I don't know if webservice support this).
    Yes, the last way is convert result java object to xml. But I think web service should support get xml results because client call to webservice is whatever, right?

  • Workshop : webservices : Dynamic Client

    I am using WebLogic Workshop 8.1 to crate a test Web Service.
    I have created a webservice with two methods to support
    1. SOAP RPC call
    2. SOAP document call
    This is working fine with the test harness provided by workshop.
    I have written two Dynamic clients to test this web service (one for soap RPC
    type call and another for soap "document" type call).
    The SOAP RPC type call dynamic client is working fine.
    The SOAP "document" type call dynamic client is throwing the following exception
    javax.xml.rpc.JAXRPCException: failed to invoke operation 'ReservationRQ' due
    to an error in the soap layer (SAAJ); nested exception is: Message[ failed to
    serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}]StackTrace[
    javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}
    at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
    at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
    at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:619)
    at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:444)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:430)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:539)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:392)
    at TestWSClientDoc.main(TestWSClientDoc.java:74)
    Caused by: weblogic.xml.schema.binding.SerializationException: mapping lookup
    failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}
    at weblogic.xml.schema.binding.RuntimeUtils.lookup_serializer(RuntimeUtils.java:151)
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:187)
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:174)
    at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:324)
    ... 9 more
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:559)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:392)
    at TestWSClientDoc.main(TestWSClientDoc.java:74)
    Failed to send doc.
    I have attached a zip file conatining the following files with this.
    TestWebService.jws - web service code
    TestWSClientDoc.java - dynamic client to test "document" type call
    TestWSClientRpc.java - dynamic client to test "rpc" type call
    test.xml – test document.
    Could you please let me know here am I doing wrong?
    Thanks
    Purna
    [webservice.zip]

    Hi Mike,
    Your code worked for me. I will go from here.
    Thanks,
    Purna
    "Michael Wooten" <[email protected]> wrote:
    >
    >
    >
    Hi Purna,
    I have attached the source for a DII client that I think may work for
    you.
    It contains comments that describe what I think is causing the problem
    you are
    having in WLW 8.1, because I was having the same problem in WLW 7.0 :-)
    You'll need to have %WL_HOME%\server\lib\webservices.jar in the client's
    CLASSPATH,
    because that's where the ElementCodec (and DocumentCodec) is. Let me
    know if it
    works.
    Regards,
    Mike Wooten
    "Purna" <[email protected]> wrote:
    Hi Bruce,
    The example you provided is working fine. In fact I had used your example
    to write
    the Dynamic client.
    Background on my requirement:
    I had created a web service out of my application, which has set ofenterprise
    java beans. The web service is working fine with WLW test harness and
    static client.
    I want to write a Dynamic Cient for this web service. Inside this web
    service
    the methods are expecting a document object. I am getting the exceptions
    for
    the Dynamic Client.
    Please find the attached zip file containg the wsdl files.
    It would be great if you can provide a working document style web service
    (*.jws
    file - generated from WL workshop) and Dynamic Client code.
    Thanks,
    Purna
    Bruce Stephens <[email protected]> wrote:
    Hi,
    I would suggest trying to narrow down the problem. I suspect that there
    are server side issues. Try going back to this example and making
    sure
    it works OK.
    http://newsgroups.bea.com/cgi-bin/dnewsweb/domdocdyn.zip?cmd=article&group=weblogic.developer.interest.webservices&item=4127&part=2&utag=&/domdocdyn.zip
    Spin up WLW and compare the two WSDLs. I suspect there will be some
    differences that could be causing your problem.
    Could you tell us a bit about your goal?
    Thanks,
    Bruce
    Purna wrote:
    Hi Bruce,
    I have removed the "rpc" style method and now I have only "document"style method,
    but still I am getting the same exception with Dynamic Client.
    Do you have any suggetions?.
    Thanks,
    Purna
    Bruce Stephens <[email protected]> wrote:
    Hello,
    Take a look at "style" attribute:
    http://edocs.bea.com/wls/docs81/webserv/wsp.html#1015120 in the
    web-service element, it states the "style" attribute applies to
    an
    entire Web Service, all operations specified in a single <web-service>
    element must be either RPC-oriented or documented-oriented; WebLogic
    Server does not support mixing the two styles within the same Web
    Service.
    Hope this helps,
    Bruce
    purna wrote:
    I am using WebLogic Workshop 8.1 to crate a test Web Service.
    I have created a webservice with two methods to support
    1. SOAP RPC call
    2. SOAP document call
    This is working fine with the test harness provided by workshop.
    I have written two Dynamic clients to test this web service (one
    for
    soap RPC
    type call and another for soap "document" type call).
    The SOAP RPC type call dynamic client is working fine.
    The SOAP "document" type call dynamic client is throwing the followingexception
    javax.xml.rpc.JAXRPCException: failed to invoke operation 'ReservationRQ'due
    to an error in the soap layer (SAAJ); nested exception is: Message[failed to
    serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface javax.xml.soap.SOAPElement
    class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}]StackTrace[
    javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
    mapping lookup failure. class=interface javax.xml.soap.SOAPElement
    class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}
    at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
    at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
    at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:619)
    at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:444)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:430)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:539)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:392)
    at TestWSClientDoc.main(TestWSClientDoc.java:74)
    Caused by: weblogic.xml.schema.binding.SerializationException:
    mapping
    lookup
    failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}
    at weblogic.xml.schema.binding.RuntimeUtils.lookup_serializer(RuntimeUtils.java:151)
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:187)
    at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:174)
    at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:324)
    ... 9 more
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:559)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:392)
    at TestWSClientDoc.main(TestWSClientDoc.java:74)
    Failed to send doc.
    I have attached a zip file conatining the following files with
    this.
    TestWebService.jws - web service code
    TestWSClientDoc.java - dynamic client to test "document" type
    call
    TestWSClientRpc.java - dynamic client to test "rpc" type call
    test.xml – test document.
    Could you please let me know here am I doing wrong?
    Thanks
    Purna
    Name: webservice.zip
    webservice.zip Type: Zip Compressed Data (application/x-zip-compressed)
    Encoding: base64

  • Testing a webservice proxy client.

    Hello,
    I am new to JEE and JAX-WS.
    I generated a client from the webservice interface. It automatically created all the java classes for me.
    I am writing a simple test class with "main method" to call this web service method.
    I get null pointer exceptions.
    Here is my code:
    public class DoeWsClientTest {
    @WebServiceRef(name="SalesOrderCreate_Out_Service")
    static SalesOrderCreateOutService service;
         * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
    *          SalesOrderCreateOut servicePort = service.getPort(com.....SalesOrderCreateOut.class);*
    I get null pointer exception on the bold line above

    seenuFour wrote:
    Thanks Adhir,
    When I paste the wsdl URL in the browser I don't see the original wsdl file, I get:
    - <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Header />
    - <SOAP:Body>
    - <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>SOAP:Client</faultcode>
    <faultstring>Empty HTTP request received</faultstring>
    <faultactor>http://sap.com/xi/XI/Message/30</faultactor>
    - <detail>
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
    <SAP:Category>XIProtocol</SAP:Category>
    <SAP:Code area="MESSAGE">EMPTY_HTTP_REQUEST_RECEIVED</SAP:Code>
    <SAP:P1 />
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:Stack>Empty HTTP query received; message processing not possible</SAP:Stack>
    </SAP:Error>
    </detail>
    </SOAP:Fault>
    </SOAP:Body>
    </SOAP:Envelope>How to get the URL for the wsdl file?Are you appending ?wsdl in your web service URL and not getting the complete WSDL? If it is the case, you need to talk to your service provider to get the WSDL by some other means. It's not always possible to get the WSDL using ?wsdl in URL.

  • How can Webservice manage client sections and send back messages to clients

    Hi all.
    I am starting working with Webservice (jax-ws). Now i can make a good server side and on client side i can use method interface on webservice server side.
    But i want to make a advance feature as Server side manage client section and can send back message to client when Server change status...
    I know RMI and Corba can seems to support to send back messages to sections of cliens right ?
    So Webservice can do it ? Please help me !
    Thanks
    Diego
    Edited by: ThuCT on Sep 14, 2010 1:57 AM

    Hi all.
    I am starting working with Webservice (jax-ws). Now i can make a good server side and on client side i can use method interface on webservice server side.
    But i want to make a advance feature as Server side manage client section and can send back message to client when Server change status...
    I know RMI and Corba can seems to support to send back messages to sections of cliens right ?
    So Webservice can do it ? Please help me !
    Thanks
    Diego
    Edited by: ThuCT on Sep 14, 2010 1:57 AM

  • Webservice without client side interface

    Is there a way to call a webservice from the client side with out having any jar or interface used in the client side?
    Can you recommend me some good links on this?
    Thanks

    The most flexible client invocation method is DII (Dynamic Invocation Interface). With this approach your client needs just the standard JAX-RPC JARs from the JWSDP, but it doesn't need any runtime classes generated by WSDL to Java mapping tools.
    The following link has some DII examples as well as comparisons with the other types of client invocations:
    http://www-128.ibm.com/developerworks/webservices/library/ws-javaclient/

  • Consume Webservice using Client Proxy

    I wanted to consume the .NET webservice in SAP. I've below question, can anyone clarify me please?
    1. Can we use client Proxy to consume the external webservice? I read in some document that this can be used if we are using XI message interface.
    2. The webservice requires an user ID & password, how can i pass the authentication details to call the webservice if I use the Client proxy?
    Thanks in advance
    BM

    1. Can we use client Proxy to consume the external webservice? I read in some document that this can be used if we are using XI message interface.
    2. The webservice requires an user ID & password, how can i pass the authentication details to call the webservice if I use the Client proxy?
    -> 1) You can configure the server to use its own soap runtime. Check out transaction lpconfig.
    -> 2) You may user transaction sm59 and configure a rfc connection of type HTTP to extenal server. This allows you to pass
             a user/password permanently.
    regards, Stefan

  • EJB webservice -- getting client IP

    Hi,
    I am trying to obtain the IP address of the client calling an EJB based webservice. After some reading on related topics, I think I have to create a handler class and try to retrieve the IP address there.
    Can someone tell me if the MessageContext parameter of handleRequest contains the client IP address...if yes, then what's the property name?
    Thanks!

    656 hits and no reply...
    Bump!

  • Abap webservice Both Client & Server Issue???

    Hi all
         I Want to test SAP ABAP As Client to Call another systerm method~ But Now I am not a outside WSDL,So For Test,
         STEP1:I Use SAP Self to Create a Remote-function Moudle ,then Create Webservice with It.Name.YYSPP3001.Test OK.
         STEP2:Then Se80,Create client proxiex with YYSPP3001 WSDL.Proxy Name:YYSCO_YYSPP3001
         STEP3:Using Lpconfig to Configure This Proxies as a Logic Port  name:YYSCO_YYSPP3001
         STEP4:Test This Client Proxies:YYSCO_YYSPP3001 ,But Return This Message;
        SOAP:14 Unexpected element -el=defins=http://schemas.xmlsoap.org/wsdl/ 
     What is this Error Mean??? My WSDL Is Create By systerm auto with soamanager.
        So Please Help me On This .Thanks~~~

    Hi all
         I Want to test SAP ABAP As Client to Call another systerm method~ But Now I am not a outside WSDL,So For Test,
         STEP1:I Use SAP Self to Create a Remote-function Moudle ,then Create Webservice with It.Name.YYSPP3001.Test OK.
         STEP2:Then Se80,Create client proxiex with YYSPP3001 WSDL.Proxy Name:YYSCO_YYSPP3001
         STEP3:Using Lpconfig to Configure This Proxies as a Logic Port  name:YYSCO_YYSPP3001
         STEP4:Test This Client Proxies:YYSCO_YYSPP3001 ,But Return This Message;
        SOAP:14 Unexpected element -el=defins=http://schemas.xmlsoap.org/wsdl/ 
     What is this Error Mean??? My WSDL Is Create By systerm auto with soamanager.
        So Please Help me On This .Thanks~~~

  • How to set SSL from an Webservice EJB client

    I want to invoke a web service from a stateless session EJB. How do I
    configure Weblogic 9.0/8.1 so that the transport uses SSL? I have a set of
    SSL related properties that I want to set e.g. Client Authentication
    Enabled, Private Key file, Client Certifiicate file etc.
    Note that I am NOT using weblogic native programming (i.e.e jws
    files/controls and annotations) to create the web service client. It is a
    simple EJB that was developed outiside weblogic and runs in the weblogic
    container.
    How do I set the SSL related properties in this case?
    Thanks for any help.
    Shantanu Sen

    You configuring both the server and client side? And how exactly is you're client implemented?
    A bit difficult but basic way to do this is with SSLSocket and giving that the necessary keystore which holds you're client certificate (key) and the server CA.
    Then push you're soap envelope with http-headers up the socket?

Maybe you are looking for