How to Make Web Service Async In nature

Hi ,
I have a requitement to send back the http 200 from PLSQL package which is exposed as web service. Depending on the one of the element coming in the input XML I need PLSQL WS to behave in sync or async mode.
If the XML emelent value if 'Async' then I need to send back the HTTP 200 status back to calling application.
My query is how to send http 200 code back to invoking apps using PLSQL?
Is this possible? Basically my aim is to expose http async using WS.
Any help will be appriciated.
Aditya

If the callback method is also an WSDL operation, you can generate a PL/SQL wrapper to call external webservice. JPublisher callout utility would allow you to generate and load such wrapper. Otherwise, I am not sure how you can call an arbitrary callback method inside PL/SQL.

Similar Messages

  • How call a web service WCF pl/sql

    Hi,
    I developed a web services using Visual Studio .NET Framework 4.0, and I need call this web service from Store procedure in Oracle 10g, but I don't have Idea how. I have seen some examples in web but that examples not work when I've used.
    My web service is developed using WCF and It has the address:
    http://10.200.53.250/PeajeElect/Bcac.PeajeElect.Agente_Servicio_ETC.svc
    The config specification is:
    <endpoint address="" binding="basicHttpBinding" contract="Bcac.PeajeElect.IAgente_Servicio_ETC" bindingConfiguration="TheBasicBindingConfig">
    <identity>
    <dns value="localhost" />
    </identity>
    </endpoint>
    Somebody can helppe me, please
    And the wsdl specification is:
    <?xml version="1.0" encoding="utf-8" ?>
    - <wsdl:definitions name="Agente_Servicio_ETC" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://tempuri.org/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata">
    - <wsdl:types>
    - <xsd:schema targetNamespace="http://tempuri.org/Imports">
    <xsd:import schemaLocation="http://win-r6ddgayo3y4/PeajeElect/Bcac.PeajeElect.Agente_Servicio_ETC.svc?xsd=xsd0" namespace="http://tempuri.org/" />
    <xsd:import schemaLocation="http://win-r6ddgayo3y4/PeajeElect/Bcac.PeajeElect.Agente_Servicio_ETC.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
    </xsd:schema>
    </wsdl:types>
    - <wsdl:message name="IAgente_Servicio_ETC_ConsultaDeTransacciones_InputMessage">
    <wsdl:part name="parameters" element="tns:ConsultaDeTransacciones" />
    </wsdl:message>
    - <wsdl:message name="IAgente_Servicio_ETC_ConsultaDeTransacciones_OutputMessage">
    <wsdl:part name="parameters" element="tns:ConsultaDeTransaccionesResponse" />
    </wsdl:message>
    - <wsdl:message name="IAgente_Servicio_ETC_ListaDeTags_InputMessage">
    <wsdl:part name="parameters" element="tns:ListaDeTags" />
    </wsdl:message>
    - <wsdl:message name="IAgente_Servicio_ETC_ListaDeTags_OutputMessage">
    <wsdl:part name="parameters" element="tns:ListaDeTagsResponse" />
    </wsdl:message>
    - <wsdl:message name="IAgente_Servicio_ETC_ResultadoListasDeTags_InputMessage">
    <wsdl:part name="parameters" element="tns:ResultadoListasDeTags" />
    </wsdl:message>
    - <wsdl:message name="IAgente_Servicio_ETC_ResultadoListasDeTags_OutputMessage">
    <wsdl:part name="parameters" element="tns:ResultadoListasDeTagsResponse" />
    </wsdl:message>
    - <wsdl:message name="IAgente_Servicio_ETC_TagsPorNumeroDocumento_InputMessage">
    <wsdl:part name="parameters" element="tns:TagsPorNumeroDocumento" />
    </wsdl:message>
    - <wsdl:message name="IAgente_Servicio_ETC_TagsPorNumeroDocumento_OutputMessage">
    <wsdl:part name="parameters" element="tns:TagsPorNumeroDocumentoResponse" />
    </wsdl:message>
    - <wsdl:message name="IAgente_Servicio_ETC_Echo_InputMessage">
    <wsdl:part name="parameters" element="tns:Echo" />
    </wsdl:message>
    - <wsdl:message name="IAgente_Servicio_ETC_Echo_OutputMessage">
    <wsdl:part name="parameters" element="tns:EchoResponse" />
    </wsdl:message>
    - <wsdl:message name="IAgente_Servicio_ETC_ws_add_InputMessage">
    <wsdl:part name="parameters" element="tns:ws_add" />
    </wsdl:message>
    - <wsdl:message name="IAgente_Servicio_ETC_ws_add_OutputMessage">
    <wsdl:part name="parameters" element="tns:ws_addResponse" />
    </wsdl:message>
    - <wsdl:portType name="IAgente_Servicio_ETC">
    - <wsdl:operation name="ConsultaDeTransacciones">
    <wsdl:input wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/ConsultaDeTransacciones" message="tns:IAgente_Servicio_ETC_ConsultaDeTransacciones_InputMessage" />
    <wsdl:output wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/ConsultaDeTransaccionesResponse" message="tns:IAgente_Servicio_ETC_ConsultaDeTransacciones_OutputMessage" />
    </wsdl:operation>
    - <wsdl:operation name="ListaDeTags">
    <wsdl:input wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/ListaDeTags" message="tns:IAgente_Servicio_ETC_ListaDeTags_InputMessage" />
    <wsdl:output wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/ListaDeTagsResponse" message="tns:IAgente_Servicio_ETC_ListaDeTags_OutputMessage" />
    </wsdl:operation>
    - <wsdl:operation name="ResultadoListasDeTags">
    <wsdl:input wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/ResultadoListasDeTags" message="tns:IAgente_Servicio_ETC_ResultadoListasDeTags_InputMessage" />
    <wsdl:output wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/ResultadoListasDeTagsResponse" message="tns:IAgente_Servicio_ETC_ResultadoListasDeTags_OutputMessage" />
    </wsdl:operation>
    - <wsdl:operation name="TagsPorNumeroDocumento">
    <wsdl:input wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/TagsPorNumeroDocumento" message="tns:IAgente_Servicio_ETC_TagsPorNumeroDocumento_InputMessage" />
    <wsdl:output wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/TagsPorNumeroDocumentoResponse" message="tns:IAgente_Servicio_ETC_TagsPorNumeroDocumento_OutputMessage" />
    </wsdl:operation>
    - <wsdl:operation name="Echo">
    <wsdl:input wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/Echo" message="tns:IAgente_Servicio_ETC_Echo_InputMessage" />
    <wsdl:output wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/EchoResponse" message="tns:IAgente_Servicio_ETC_Echo_OutputMessage" />
    </wsdl:operation>
    - <wsdl:operation name="ws_add">
    <wsdl:input wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/ws_add" message="tns:IAgente_Servicio_ETC_ws_add_InputMessage" />
    <wsdl:output wsaw:Action="http://tempuri.org/IAgente_Servicio_ETC/ws_addResponse" message="tns:IAgente_Servicio_ETC_ws_add_OutputMessage" />
    </wsdl:operation>
    </wsdl:portType>
    - <wsdl:binding name="BasicHttpBinding_IAgente_Servicio_ETC" type="tns:IAgente_Servicio_ETC">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="ConsultaDeTransacciones">
    <soap:operation soapAction="http://tempuri.org/IAgente_Servicio_ETC/ConsultaDeTransacciones" style="document" />
    - <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    - <wsdl:operation name="ListaDeTags">
    <soap:operation soapAction="http://tempuri.org/IAgente_Servicio_ETC/ListaDeTags" style="document" />
    - <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    - <wsdl:operation name="ResultadoListasDeTags">
    <soap:operation soapAction="http://tempuri.org/IAgente_Servicio_ETC/ResultadoListasDeTags" style="document" />
    - <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    - <wsdl:operation name="TagsPorNumeroDocumento">
    <soap:operation soapAction="http://tempuri.org/IAgente_Servicio_ETC/TagsPorNumeroDocumento" style="document" />
    - <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    - <wsdl:operation name="Echo">
    <soap:operation soapAction="http://tempuri.org/IAgente_Servicio_ETC/Echo" style="document" />
    - <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    - <wsdl:operation name="ws_add">
    <soap:operation soapAction="http://tempuri.org/IAgente_Servicio_ETC/ws_add" style="document" />
    - <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    - <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    - <wsdl:service name="Agente_Servicio_ETC">
    - <wsdl:port name="BasicHttpBinding_IAgente_Servicio_ETC" binding="tns:BasicHttpBinding_IAgente_Servicio_ETC">
    <soap:address location="http://win-r6ddgayo3y4/PeajeElect/Bcac.PeajeElect.Agente_Servicio_ETC.svc" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    user5514643 wrote:
    Can you give some tip about how connect the web service ?The HTTP protocol obviously need to be used. Oracle provides a couple of HTTP client (web browser like) interfaces. Obviously there is no rendering engine/DOM in PL/SQL as this does not make much sense in a server side language. As a web service typically returns XML, that is not a problem as XML is something that servers need to deal with - and Oracle fully supports XML via SQL, PL/SQL and database structures.
    A basic example of how to use the UTL_HTTP interface for interacting with a web service is in {message:id=4205205}. If you scroll up in that thread, you will also see more complex approaches of loading the web service WSDL and using that to make calls to the service - something that involves too many moving parts and Java unnecessarily.

  • How to consume web service in Agentry in SMP 3.0

    Dear All , I am using web service in Agentry to retrive data but could not able to fetch it . I have made connection with HTTP-XML for consuming webservices. and also give proper information in Agentry.ini files Ex : [HTTPXML-2] name=HTTP-XML Back End authenticationCertificateStore=MY authenticationCertificateStorePassword= authenticationCertificateStorePasswordEncoded=false autoDequote=true ;baseURL=http://localhost:81 baseURL=http://sapes1.sapdevcenter.com:8080/sap/opu/odata/iwbep/gwdemo/ basicAuthenticationPassword=123456 basicAuthenticationPasswordEncoded=false basicAuthenticationUserID=P1466405733 constantsFile=httpxml_sd.ini enableAuthentication=false enablePreviousUserAuthentication=false httpConnectTimeout=300 httpReceiveTimeout=300 httpResolveTimeout=300 httpSendTimeout=300 listenOn= timeout=300 timeZoneName= useSSL=false xmlAllowXSLTScript=true xmlNamespaces= xmlResolveExternals=true xmlValidateOnParse=true for more information i have attached agentry XML screen shot as well . Can you please guide me how to consume web services in Agentry correct way ? Note : Currently i am using standard netweaver demo web services . Thanks & Regards ,   Kunal Varaiya
    Tags edited by: Michael Appleby

    The XML Steps URL will be added to the Agentry.ini BaseURL.  So you dont' need the full URL on the step.
    So when Agentry Runs the step to call the backend it will go:
    <BaseURL>/<Step's URL>
    This way if you need to change the base URL, IE, going from Dev to QA to Production Server you only need to change the Base, and not go into every step and update it.
    URL: This attribute contains the URL to which the Agentry Server will make a request. This value will be appended to the value configured as the base URL for the HTTP-XML system connection. This base URL is configured within the HTTP-XML system connection configuration options for the Agentry Server. Proper use of both this base URL option and the URL entered in the requests of the step definitions can support portability for the application, with the base URL being the implementation-specific portion and the step’s URL being the portion not likely to change for the same back end system from one implementation to the next.
    http://help.sap.com/saphelp_smp303sdk/helpdata/en/7c/143d5d70061014b323be16eb0b0a77/frameset.htm 
    Stephen

  • How to call WEB Service From SAP 4.6 c

    Hi Friend,
    How to call WEB Service From SAP 4.6 c Report
    Thanks in advance.

    It is not possible to directly call a web service from SAP 4.6c.
    Indeed, web service enablement is available as from Web AS 6.20, thus as from SAP R/3 4.7
    So as described above, the solution is indeed to make use of PI(XI) for this.
    Rgds,
    Karim

  • (261680070) Q SYNCH-11 How do my web service methods accees EJBs and java classes?

    A<SYNCH-11> How do my web service methods accees EJBs and java classes?
    A<SYNCH-11> It is simple to use java classes, just do it as you would ordinarily.
    The .jws file really contains a simple class so you can program with it in the same
    way that you would use a regular Java class.
    To use an EJB you can go and access it directly as you would with any EJB remote
    client (lookup home stub, create, etc) or if the EJB is deployed to WLS you can use
    a control to provide a very simple wrapper to the EJB. We will see this in detail
    on Thursday in the ADVC module.

    Futher information about the possibility of callback:
    It may be possible for a synchronous only web service (i.e. MS .net) to even paticipant
    in the callback functionality of asynchronous web services. If the client implements
    the appropriate methods for the callback but listens for them on a different port
    or binding than the SOAP request, then web service may be able to build a response
    if the client's "callback URL" is submitted as the beginning part of a conversation.
    Watch the BEA developer forum (http://dev2dev.bea.com) for more information about
    this approach and other tips and techniques for building web services.
    "Adam FitzGerald" <[email protected]> wrote:
    >
    Q<SYNCH-03> I heard that MS .net only implements synchrnonus method? If
    this is true.
    Does it means my async methods will only work with J2EE clients?
    A<SYNCH-03> I do not know the limitations of .net but let me point out that
    is very
    difficult to provide asynchronous web service method invocation (this is
    different
    from an asynchronous web service). HTTP as a general communication protocol
    is based
    on a request and response paradigm so your client libraries will mostly
    likely be
    expecting a response even if it is empty (check the asynchronous example
    from today
    to see that the start method still returns an empty response). You must
    distinguish
    this from the notion of an asynchronous web service which is a business
    operation
    that occurs on the server whose return value/result is not directly associated
    with
    building response to the client. An asynchronous web service can (and generally
    will)
    be started and stopped with web service operations that are invoked synchronously.
    Thus MS .net clients can still be client to WLS hosted web services.

  • How to call web service using J2SE 1.3?

    Dear All,
    i have developed a web service by jdev 10.1.3 (JAX-RPC with web service security
    enabled).
    i generate the ws proxy (jdev 10.1.3) and run it with wsclient_extended.jar (required JDK 1.4.1 or above??).
    but one of my client say he has to use J2SE 1.3.x (as OS=AIX 4.3 that without J2SE
    1.4.x ), could anyone tell me how can generate ws proxy (with supporting
    library) for jdk 1.3.x?
    if oracle don't have such library / tools, any third party tools / library available?
    thank you.
    lsp

    I'm found answer:
    Java and SAP Portal blog: How to call web service from java code example

  • How to call web services in WEB DYNPRO ABAP

    Hi ABAPER'S,
    Please let me know how to call web services in web dynpro.
    Thanks,
    Sandy.

    Hi Sandy,
    Please check this blog..
    /people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    also cehck this...
    call the webservices in webdynpro ABAP.
    calling webservice in webdynpro component
    Re: Web Services in WDA.
    Cheers,
    Kris.
    Edited by: kissnas on May 24, 2011 11:37 AM

  • How to consume Web Service in ABAP WebDynpro

    Hi
    I want to know the entire details about how to consume Web Service in WebDynpro application.
    regards
    Piyush

    hI piyush,
    Have a look at this Blog by Thomas Jung.
    /people/thomas.jung/blog/2007/12/17/consuming-services-with-abap
    on consuming webservies thru webdynpro ABAP
    Cheers
    Mary

  • How to develop web services in OSB using Eclipse OEPE

    Hello,
    We have some live web services developed in SOA ESB using JDeveloper.
    We are now forced to migrate to OSB because of the reason that sometime next year ESB will be de-supported by Oracle.
    I am looking for some good documentation which explains how to create web services in OSB using Eclipse. Please help.
    I am installed Web logic + OEPE + OSB in my local machine already. All I need is to know how to start development.
    Thanks,

    Hi,
    You can start with this:
    http://docs.oracle.com/cd/E17904_01/doc.1111/e15866/tasks.htm
    Cheers,
    Vlad

  • How to create Web services to communicate InfoPath forms to Share Point lists ?

    How to create Web services to communicate InfoPath forms to Share Point lists ?

    Hi,  
     As per your posting and my understanding, you wanted to communicate your infopath with SharePoint list/library. Please refer the below link(s) which may help you to solve your issue.
    http://blogs.msdn.com/b/russmax/archive/2012/08/17/want-to-call-sharepoint-2010-web-services-within-browser-based-infopath-2010-forms.aspx
    http://jaliyaudagedara.blogspot.in/2011/03/submitting-data-to-sharepoint-2010-list.html
    or 
    http://blogs.msdn.com/b/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx
    If you need more help please let usknow
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever you
    see a reply being an answer to the question of the thread, click "Mark As Answer

  • How to create web services in java?

    Hi,
    I am a newbie to java webservices. Can anybody tell me how to create web services in java?
    Any tutorial link or step by step doc would be useful.
    Appreciate your help in this regard.
    Thanks in advance.
    naymo01.

    Creating web services in Java appears to depend highly upon the server you intend to use.
    Here's a tutorial: http://java.sun.com/webservices/docs/1.6/tutorial/doc/index.html

  • Adobe Bridge 5.0.2.4 (CS6) - How to make Web Gallery.

    Adobe Bridge 5.0.2.4 (CS6) - How to make web gallery.

    System Info:
    Windows 7 x64 SP1
    Dell T1650
    8GB RAM
    Xeon E3-1220 V2
    Crash log;
    Problem signature:
      Problem Event Name:          APPCRASH
      Application Name:          Bridge.exe
      Application Version:          5.0.2.4
      Application Timestamp:          50d99f7a
      Fault Module Name:          StackHash_59c3
      Fault Module Version:          6.1.7601.17725
      Fault Module Timestamp:          4ec49b8f
      Exception Code:          c0000374
      Exception Offset:          000ce6c3
      OS Version:          6.1.7601.2.1.0.256.48
      Locale ID:          3081
      Additional Information 1:          59c3
      Additional Information 2:          59c39f5460f96c9e8c0a2e4cf426da4f
      Additional Information 3:          f054
      Additional Information 4:          f054c556062bcb3c14c6b443b38515c8
    Event Viewer log;
    Faulting application name: Bridge.exe, version: 5.0.2.4, time stamp: 0x50d99f7a
    Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b8f
    Exception code: 0xc0000374
    Fault offset: 0x000ce6c3
    Faulting process id: 0x1fe0
    Faulting application start time: 0x01ce7e8d7553cc63
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe Bridge CS6\Bridge.exe
    Faulting module path: C:\Windows\SysWOW64\ntdll.dll
    Report Id: b3e6d539-ea80-11e2-92af-b8ca3a7791fa

  • How to update web service proxy in JDeveloper 10.1.3.0

    hi all
    I want to ask how to update web service proxy in JDeveloper 10.1.3.0?

    What do you mean update?
    You can go into the source code and update whatever you want.
    If you mean that the WS spec has changed - then you can either change the proxy manually, or create another proxy.

  • How to use Web services in BI 7?

    HI all,
    Can anyone pls let me know how to use Web services in BI
    Thanks
    Pooja

    http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/2d/64d029e74911d6b2e400508b6b8a93/content.htm

  • How to create Web Service Proxy with help of WSDL.

    Hi ,
    How to create Web Service Proxy with help of WSDL .
    Please help me .
    Thanks in advacne for reply .

    check out this article. It has all the details
    http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html

Maybe you are looking for

  • How to use AppleScript to set "character fill color" in Pages 5.2?

    For Pages 5.2 on OSX 10.9.3, what is the correct applescript for changing the "character fill" of text in pages.  If you highlight text, you do this via your mouse in the inspector by clicking "style," "advanced option (the gear wheel to the right of

  • "Server Not Found" Message when downloading Flash Player

    Hello, I am trying to download Macromedia Flash Player using my Firefox browser, but when I click on "Download Now" an error message appears: "Server not found Firefox can't find the server at fpdownload.macromedia.com. * Check the address for typing

  • How to give free to a product

    hi, How can we give free to a product where and how it has to be done . i.e consider cycle i like to give a umberlla free then if a customer order 10 cycle then i have to give them 10 umberlla while delivery . how can do it help me ......

  • Without Soruce of  a form needs to compile into new release !!!

    Dear all, i am standing in very difficult situation that one of our client doesnt have the .fmb files (source file), now they planned to upgrade their database into latest 11gR2, as well as their forms also. their forms is just in 4.5 version. Can an

  • Auto scrolling JTextAreas

    Hi, I am having an infuriating problem with my JTextArea which hopefully someone can help me with. On my GUI I have a JTextArea in a JScrollPane which is uneditable as it is there purely to give the user feedback. The user presses a button and the pr