Asynchronous Web Service

I am looking for an approach to decouple my sytem. Traditional approach I have done before is to construct custom xml message, send the message to JMS queue. Another process (MDB) retrieve the message from the queue, parse the message and invoke the corresponding services.
This approach is working, however, it involves a lot of work (to construct and parse the xml message).
I am looking for the new approach based on asynchronous Web Service.
Read through the document:
http://e-docs.bea.com/wls/docs81/webserv/jmstransport.html#1054482
In weblogic 8.1, you can use JMS transport to invoke a webLogic web service. Also, you can create asynchronous client to invoke web service. Have some questions here:
1. the document did not emphasize the advantage to use JMS based web service. It sounds like it's just an alternative approach comparing the traditional http based approach. does JMS based web service mean more reliable?
2. for me, to use JMS base web service with RPC (synchronous) type of client sounds funky. Is there a way to specify that the JMS based web service is for aynchronous client only?
3. the way asynchronous client work is to create a temp response queue to receive the web service response. Is there any performance penalty? For my case, I never expect any result to come back - all actions return void (why? cause all the services interact with the same database).
4. continue to question 3. Is there a way to specify that the asynchronous client never expect any result and don't create a temp response queue? Also, if the return result is void, whether or not the response queue is still created?
Ok, here's the short question - what I am looking for is an alternative approach to replace the traditional approach. Sounds for me, it should be a combination of JMS based web service and asynchronous client. Weblogic seperate them into two seperate features. How to efficiently use them together?
thanks.

1. the document did not emphasize the advantage to
use JMS based web service. It sounds like it's just
an alternative approach comparing the traditional
http based approach. does JMS based web service mean
more reliable? JMS transport is not emphaized because it is not a
standard. You can not use JMS transport and interop
with other vendors.
>
2. for me, to use JMS base web service with RPC
(synchronous) type of client sounds funky. Is there a
way to specify that the JMS based web service is for
aynchronous client only? Sorry, no.
>
3. the way asynchronous client work is to create a
temp response queue to receive the web service
response. Is there any performance penalty? For my
case, I never expect any result to come back - all
actions return void (why? cause all the services
interact with the same database).
4. continue to question 3. Is there a way to specify
that the asynchronous client never expect any result
and don't create a temp response queue? Also, if the
return result is void, whether or not the response
queue is still created?The response queue is created when the JMS connection is
created. Hence the temp queue is created always. I agree
that it is nice to have an option to turn it off. Will try
to add it in 9.0
>
Ok, here's the short question - what I am looking for
is an alternative approach to replace the traditional
approach. Sounds for me, it should be a combination
of JMS based web service and asynchronous client.
Weblogic seperate them into two seperate features.
How to efficiently use them together? You are right, JMS transport and async client can be
combined to form a scalable system. It is not
optimized for this use case in 8.1, because the focus
was on portability (async client is WLS specific) and
interop.
An alternate approach will be to expose a POJO as
web service. POJO can drop the incoming data to a
JMS queue. Then use an MDB to drain the queue to
do the actual work. This way, the client will have
a typed interface (in WSDL) to work with and it can
use the normal HTTP transport. Since the POJO is
just doing an enqueue, I think it can scale well too.
Regards,
http://manojc.com

Similar Messages

  • Invoking Asynchronous Web Service from BPEL Process

    Hi,
    I have been working on the BPEL Process Manager for some time and now facing problem in invoking asynchronous web service from a BPEL Process. I have implemented a web service in Java using Axis but wasn't able to invoke it.
    I have gone through all the meterial available on this site but couldn't get any great help.
    Can some one help me in resolving this issue. A pointer to any example or sample material/tutorial will be appreciated.
    thanks
    Farooq

    I do the same thing.
    Take wsdl from axis and save it somewhere.
    Then you can create a standard project in Oracle BPEL PM. Create partnerlink, give a name and click on first icon to take your wsdl. It will add some needed code, you answer always yes. Then you can create receive, assign, invoke, assign and callback or similar and deploy it.
    Try it through BPEL Console...
    Ema

  • How to create asynchronous web services in OSB 11g?

    Hi,
    Using the workbench, when I try to create a web service from an existing WSDL, the workbench automatically uses JAX-WS.
    JAX-WS does not offer support for asynchronous web services, since it supports only HTTP ports (@WLJmsTransport does not work).
    Request your help in resolving this issue. One way is to use JAX-RPC but I do not know how to configure the workbench to use JAX-RPC instead of JAX-WS.
    Thanking you in advance.
    Regards
    Shyam.V

    Hi,
    see <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d7/951b42f828df2ce10000000a1550b0/frameset.htm">this</a> and also carry out a search in this forum, this has been asked before.
    Regards, Heidi

  • How to test/consume asynchronous web services in SAP?

    Hi,
    How do we test/consume asynchronous web services in SAP - either version 4.7 or ECC6.0?
    TIA,
    Regards
    Deepthi

    Go through the following link to know how to consume web services using ABAP:
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/20eb3174-41ab-2a10-a383-907faf60eed3|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/20eb3174-41ab-2a10-a383-907faf60eed3]
    Regards,
    Siva.

  • Asynchronous web service call from Redwood

    Hi Everyone,
    Build version M33.104.
    We have a scenario where we have to call an asynchronous web service.
    From the documentation i understand that the Redwood job will be in status Running until the web service completes.
    How does the call back work from the web service to Redwood? How does Redwood know the asynchronous web service job completed?
    From the documentation, the per-requisite is:
    callback to UpdateJob1 web service at ServerAddress with JobId and FinalStatus as Out parameters
    Should i create two out parameters for the web service job definition in Redwood? one JobId and another FinalStatus?
    How do i get the URL to UpdateJob1 web-service, so that i can make my web service, call it, to update the Redwood job that called it?
    thanks
    Nanda

    Hi HP,
    I included the following snippet in job source:
    //Set completion strategy to external
    jcsJobContext.setCompletionStrategy(CompletionStrategyType.External);
    I get the following error when compiled:
    JCS-102183: Compile failed for Job Definition SOAP_GlobalWeatherSoap_GetCitiesByCountry (Latest Version): SOAP_GlobalWeatherSoap_GetCitiesByCountry.java:user code 24:40:cannot find symbol symbol : variable CompletionStrategyType location: class com.redwood.scheduler.custom.SOAP_GlobalWeatherSoap_GetCitiesByCountry jcsJobContext.setCompletionStrategy(CompletionStrategyType.External);
    I am not able to find any information from the API documentation on the method setCompletionStrategy, so I'm not able to figure what type of variable am i passing, so that i can initialize it. Please shed some light on it.
    Also there is no path called Scripting > Built-In Web Services
    I have only Scripting>Published Web Services
    Thanks
    Nanda

  • Asynchronous Web Services in BEA

    I need to build an asynchronous web services SOAP message reciever and an asynchronous
    web services SOAP message sender. Over HTTPS.
    I know how I would do it with JAXM and the Sun RI, but can not seem to find any
    implementation or equivelent in WebLogic (though many of the interfaces and abstract
    classes are in the BEA jar files). We are on WebLogic 7.

    I don't understand what you mean in step 5 that the client does not change. I
    want the client to send a SOAP message instead of call a remote process.
    Steve
    "manoj cheenath" <[email protected]> wrote:
    7.0 supports one-way and it is same as in 8.1.
    You got the steps to write a one-way service right.
    Here is it again:
    1. write the backend component. The method
    that you want to make one-way should return void.
    2. Either run servicegen or autotype+source2wsdd
    to generate the XML codecs and web-services.xml
    DD file.
    3. edit the DD file to change invocation-style as
    shown below.
    <operation name="helloOnewayWorld"
    invocation-style="one-way"...
    4. package and deploy.
    5. There is no change required on the client side. Client
    will knows that an operation is one-way by looking at
    the WSDL.
    -manoj.
    "Steve Watson" <[email protected]> wrote in message
    news:[email protected]...
    Can you send me the WL 8.1 example? How has support for one way messagingchanged
    in 8.1? Would there be any advantage for us to move to 8.1?
    Thanks everyones help so far. I am trying to assemble the rules oncreating one
    way messages - from this thread and bits and peices in the documentationI
    have
    found:
    "a document-oriented Weblogic Web Service operation can have only oneparameter,
    of any supported data type"
    "The backend component that implements the operation must explicitlyreturn void."
    "You specify this type of behavior with the invocation-style attributeof
    the
    <operation> element in web-services.xml"
    Have I missed anything?
    Steve Watson
    "manoj cheenath" <[email protected]> wrote:
    You need to set invocation-style="one-way" in the
    operation element of the web-services.xml dd file [1]
    You can use source2wsdd ant task to generate this DD [2].
    I dont have an example that runs on 7.0. But here is an
    example that works with 8.1.
    -manoj
    [1] http://edocs.bea.com/wls/docs70/webserv/wsp.html#1001373
    [2] http://edocs.bea.com/wls/docs70/webserv/anttasks.html#1080421
    "Steve Watson" <[email protected]> wrote in message
    news:[email protected]...
    I can find very little in the documentation on how to do this -
    is
    there a
    cook
    book?
    Steve Watson
    "manoj cheenath" <[email protected]> wrote:
    WLS only supports JAX-RPC. One can do one-way invokes
    using JAX-RPC. So, you can implement your receiver as a
    web service that accept one way invokes.
    Will this fit your use case?
    -manoj
    "Steve Watson" <[email protected]> wrote in message
    news:[email protected]...
    I need to build an asynchronous web services SOAP message recieverand an
    asynchronous
    web services SOAP message sender. Over HTTPS.
    I know how I would do it with JAXM and the Sun RI, but can not
    seem
    to
    find any
    implementation or equivelent in WebLogic (though many of the
    interfaces
    and abstract
    classes are in the BEA jar files). We are on WebLogic 7.
    begin 666 sample3.zip
    M4$L#!!0`" `(`/>!@BX````````````````)``0`345402U)3D8O_LH```,`
    M4$L'" `````"`````````%!+`P04``@`" #W@8(N````````````````% ``
    M`$U%5$$M24Y&+TU!3DE&15-4+DU&\TW,RTQ++2[1#4LM*L[,S[-2,-0SX.5R
    M+DI-+$E-T76J! F8Z!G&&QCIIB8J: 27YBGX9B87Y1=7%I>DYA8K>.8EZVGR
    M<O%R`0!02P<(V@!HADH```!*````4$L#!!0`" `(`$!U@BX`````````````
    M```.````<')O<&5R=&EE<RYT>'2%4$UKPS ,O0?R'P3==5-W&@1Z&AD4!BL[
    M]1;<1&T]',O(RMHR]M]G)RNL'6PZV4_O0]+L]L\JBQF,%80#B5J*"?I/DRA*
    M?8#."K7*<@)EX$'#H+ C3V*4.MA:E]TRLTG,!6H?<!2;$)QMC5KV,9L`;T'W
    M!)'DG>3NDC%JNPHW9'!(C":-^I9B(^J0LJUQ^-.O+*ZU8^[!'2*V[+=VA_VI
    MX]Y8?Z5+L1L3"09QOP::'DUJ+?:JH4)TW!JWYZC5PWQ^/^V5L6QVEF^$#TD)
    M=*2R^/XL'BM<">_$]/"4+X1+KR2>%.IC<"PDN*S7J^>7U_JN7M?9>#KMN,S-
    MQ_F>GSC!9=$Z2UZ;UID8*5Y0+EME\0502P<(3D:RZ!$!```/`@``4$L#! H`
    M`````.R!@BX````````````````(````<V%M<&QE,R]02P,$% `(``@`VX&"
    M+@```````````````!<```!S86UP;&4S+V)U:6QD+7=E8G-S+GAM;*U6VV[;
    M, Q]+]!_((R]Q@;V[ SH+@4R8$6P"_:L2'2B5K8,24X6#/GW49;MV$F<2]<W
    M2SJ'I,@CTFEI]#-R!P7+<1IM<&%M! (S5BDWC1:55"+Z<']W?P>0.F:6.(#&
    M`0`-@C"L<)PI!0';PO@*^4L$LEBAD>Y!J6GD3(41)#UFY;3;E@AA#?#,UNR3
    MSDM=8.'L-'KW-QBS:-:28UPR_L*6N(L/#WR NZ@U(]"ZS]+L^;IR9>5B(<TN
    M^?WEXV3V])APQ:Q%NGK+:H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8`@``4$L#!!0`
    M" `(`-N!@BX````````````````2````<V%M<&QE,R]7;W)L9"YJ879A=9 ]
    M#X(P$(9W$O[#A4D7!B"!A#BY&F/BX%RAP<;2-OU $^-_MQ1$JI)TZMW[W',G
    M4'5%#09M-)<$T5BA5E"<EF$0!L*<*:F@HD@I.'%)ZT<8``A).J0Q'+4DK &&
    M6ES._RFWOX(+0Y$FG#F4K0XPAUFM'0A<%C80;7D_]0ZWOAJ50_&#L"U)FN5)
    MD>5%DA8[U_#TN*-,@_7>,J<!$FLC&>@+4?$DZB<[3FI08VZ^%+PA4]IZ+$#<
    MSG;X87+^J^!=94EDQOB^I:_D'>@7;=\+4$L'"(@-B!+/````WP$``%!+`0(4
    M`!0`" `(`/>!@BX``````@`````````)``0```````````````````!-151!
    M+4E.1B_^R@``4$L!`A0`% `(``@`]X&"+MH`:(9*````2@```!0`````````
    M````````/0```$U%5$$M24Y&+TU!3DE&15-4+DU&4$L!`A0`% `(``@`0'6"
    M+DY&LN@1`0``#P(```X`````````````````R0```'!R;W!E<G1I97,N='AT
    M4$L!`@H`"@``````[(&"+@````````````````@`````````````````%@(`
    M`'-A;7!L93,O4$L!`A0`% `(``@`VX&"+H9Q71=\`@``, D``!<`````````
    M````````/ (``'-A;7!L93,O8G5I;&0M=V5B<W,N>&UL4$L!`A0`% `(``@`
    MVX&"+F$3A>,H`P``30L``!$`````````````````_00``'-A;7!L93,O8G5I
    M;&0N>&UL4$L!`@H`"@``````VX&"+@````````````````\`````````````
    M````9 @``'-A;7!L93,O8VQI96YT+U!+`0(4`!0`" `(`-N!@BY5MM$EK@$`
    M`-\#```8`````````````````)$(``!S86UP;&4S+V-L:65N="]-86EN+FIA
    M=F%02P$"% `4``@`" #;@8(N4'P0;$H!``#8`@``'@````````````````"%
    M"@``<V%M<&QE,R](96QL;U=O<FQD4V5R=FEC92YJ879A4$L!`A0`% `(``@`
    MVX&"+H@-B!+/````WP$``!(`````````````````&PP``'-A;7!L93,O5V]R
    =;&0N:F%V85!+!08`````"@`*`(("```J#0``````
    `
    end

  • Implementation of Asynchronous Web Services using JDeveloper

    Various articles and tutorials, which I have read, are talking about asynchronous BPEL processes. These asynch BPEL processes are result of the orchestration of different synch and asynch atomic services (web services in specific). There are even tutorials as part of Oracle SOA Suite and JDeveloper explaining how to consume asynchronous services in a BPEL process. Well and good.
    But unfortunately I haven’t seen any tutorial or article talks about the implementation of asynchronous web services (How to implement an asynchronous service?). All what they talk about is the consumption side of it and the applicability of WS-Addressing or Correlation ID for the consumption of the Service.
    As part of my research, I delved further into the sample BPEL processes comes out with Oracle BPEL Process Manager. For example; I have had a look into the Asynchronous Loan Processor process, where it is orchestrating a Synch Credit Rating Service and three asynch services namely Star Loan, United Loan and American Loans. But as I delved down into those, I realized that these services are simply BPEL Processes where it is implemented as a sequence of Receive, Assign and Invoke activities, where each of the activities does the following.
    Receive -- Receives the request from the client
    Assign -- Does some manipulation on the Input variable and set the output variable
    Invoke -- Invokes the client back (call back)
    These kinds of asynch services are pretty fine to demonstrate theory.
    But if we put ourselves more into practical scenarios, where we invoke a service from some application and the result of that invocation shall happen after some time (minutes to hours) in the form of a callback. In that case we WON’T be able to realize the service simply by a simple BPEL Process, rather we will have to implement as a Web Service with two port types implemented, where one port type is for the request and another one for the callback.
    I do understand these kinds of services can be implemented using JAX-WS.
    Question Here: How I do it using Oracle JDeveloper and Oracle Application Server???
    If anyone have done it, the REAL implementation of ASYNCH Web Services *(NOT BY USING BPEL or BPEL Wrapper)* using JDeveloper to deploy on Oracle Application Server or on Oracle SOA Suite, please post the know-how. If someone else is interested in taking it forward, we can take it further together.
    -Sudheer
    P.S: I am NOT at all interested in theory, as I had enough. Here I don’t want to be Conceptual; rather I am talking about hands-on.

    Hi Sudheer,
    I am not sure if this will help you
    If you take Oracle SOA Suite Order Booking Tutorial and go to Chapter 5 Creating the CreditService Project ( http://download.oracle.com/docs/cd/B31017_01/core.1013/b28937/creditservice.htm ), you learn how to create a synchronous Web service from a WSDL file.
    If you take the wsdl and delete output and fault tags (you can see it below) and follow the steps you'll generate an asynchronous web service.
    The generated Java method will be a void method
    public class ValidateCreditCardImpl {
    public void verifyCC(CreditCard creditCard) {
    Inside this void method you can try to call to a Receive BPEL Activity.
    I hope this will be useful . Regards,
    J
    <definitions targetNamespace="http://www.globalcompany.com/ns/credit"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://www.globalcompany.com/ns/credit"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:types="http://www.globalcompany.com/ns/credit.xsd">
    <types>
    <schema targetNamespace="http://www.globalcompany.com/ns/credit.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <complexType name="CreditCard">
    <sequence>
    <element name="ccType" type="string"/>
    <element name="ccNum" type="string"/>
    </sequence>
    </complexType>
    <element name="CreditCard" type="types:CreditCard"/>
    <element name="valid" type="boolean"/>
    <element name="error" type="string"/>
    </schema>
    </types>
    <message name="CreditCardValidationRequestMessage">
    <part name="CreditCard" element="types:CreditCard"/>
    </message>
    <message name="CreditCardValidationResponseMessage">
    <part name="valid" element="types:valid"/>
    </message>
    <message name="CreditCardValidationFaultMessage">
    <part name="error" element="types:error"/>
    </message>
    <portType name="ValidateCreditCard">
    <operation name="VerifyCC">
    <input message="tns:CreditCardValidationRequestMessage"
    name="CreditCardInfo"/>
    </operation>
    </portType>
    <binding name="ValidateCreditCardSoapHttp" type="tns:ValidateCreditCard">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="VerifyCC">
    <soap:operation soapAction="http://www.globalcompany.com/ns/credit/VerifyCC"/>
    <input name="CreditCardInfo">
    <soap:body use="literal" parts="CreditCard"/>
    </input>
    </operation>
    </binding>
    <service name="CreditService">
    <port name="ValidateCreditCardServiceSoapHttp"
    binding="tns:ValidateCreditCardSoapHttp">
    <soap:address location="http://localhost:8888/CreditService"/>
    </port>
    </service>
    </definitions>
    Edited by: user10262974 on 30-mar-2009 16:19

  • Is it possible to call asynchronous Web Service using Adaptive WS model?

    Hello,
    I was trying to call asynchronous web service and after execution exception has arised
    java.lang.NullPointerException
        at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.fillOutputParametersToMc(WSGenericModelClassExecutable.java:281)
        at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.execute(WSGenericModelClassExecutable.java:93)
        at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClassExecutable.execute(WSTypedModelClassExecutable.java:46)
        at at.gov.bmf.demo.comp.employee.EmployeeDemo.ok(EmployeeDemo.java:242)
        at at.gov.bmf.demo.comp.employee.wdp.InternalEmployeeDemo.ok(InternalEmployeeDemo.java:285)
    I have NWDS 7.0.
    How can I set model, to avoid binding web service response to model?
    Thanks.

    I just ran into this issue, same exact problem.
    The quick and dirty workaround I did, after trying out several other things to make sure I didn't do anything wrong to cause this problem, was to just catch the nullpointer, and then go along my merry way.
    try{
         query.execute();     
    catch(NullPointerException e){
         //we get a worthless error here from Webdynpro, so we just ignore it. Not pretty. But unavoidable
    If someone else has any other solution, I would love to hear them.
    This is on NW7.0 SP15
    /Björn

  • Asynchronous Web Service PI 7.1

    Hey guys,
    currently we are trying to configure and consume the enterprise services of SAP Transportation Management 7.0. These services use a asynchronous communication method and were created by SAP.
    I'm very new in this field, I couldn't find any guides that describes how to configure this services with PI. It seems as if I can't use a direct communication method without PI. That's only possible when services use a synchronous communication method.
    Maybe you can give me a hint how to start or refer me to a guide in SDN?
    Thanks for help and
    kind regards,
    Christian.

    Hi Abishek,
    thanks for your answer. The problem is, that the service interfaces in the backend system don't have any web service definition. But for direct access (without any PI) I need the web service definition and have to make these services availbale at runtime (via SOA Manager or WSCONFIG) or am I wrong?
    I got this information from the following links:
    Direct call of Asynchronous web service
    Re: Why some proxy interface not defined as web service?
    Kind regards,
    Christian

  • Asynchronous web services support?

    Hi all
    Please advice is async web service calls are supported in siebel crm on demand. Is web services are configurable through admin interface to support asynchronous?
    Thank you.

    Any Information on Asynchronous Web Services request???

  • How to develop and call Asynchronous web service

    Hi All,
    I need to have a java web service that will be called asynchronously.
    That should execute, once triggered and caller shouldnt need to wait till its completion.
    How to develop and call asynchronoue web service ?
    Thanks
    Saikrishna

    Let your web service start its own background thread (*) somehow and move your business logic from web service to this thread. Then you can return from your web service. The client won't be blocked and your application will run on your server after service callout will be finished.
    I hope that's what you need. Anyway, there is only "asynchronous communication" and nothing like "asynchronous web service". At least from HTTP point of view, every call is synchronous - you have request and response.
    (*) You shouldn't start your own thread since you are in JEE world. Look at documentation for your container. E.g. for weblogic there are workers you can use this way. Or you can choose the other way. I hope that for any container you can just enqueue your web service request to any JMS queue and move your business logic to an appropriate MDB. Then, your web service will be just a simple JMS producer and your web service client won't be forced to wait for business logic to finish.
    Last but not least, next time choose a better forum. :-)

  • Asynchronous web services

    If I set up an asynchronous web service using JMS transport, would I be able to receive the callbacks in the business service that invokes the ws?
    Is this the only approach to callbacks that I can use?

    If I set up an asynchronous web service using JMS transport, would I be able to receive the callbacks in the business service that invokes the ws?
    Is this the only approach to callbacks that I can use?

  • Does ws adapter only work with asynchronous web service?

    Hi all,
    can you please confirm whether or not ws adapter (PI 7.1) only works with asynchronous web service?
    I have created an async. outbound service interface in PI 7.1, generated the client proxy in ECC, created an web service based on the proxy, wrote a test program to call the web service (PI scenario uses ws adapter in the sender CC). Everything works fine.
    Then I did the same thing with sync. outbound service interface. I got exception while calling the web service in ECC.
    I've heard that ws adapter is designed for async. communication. Does it mean that it won't work with sync. web service?
    I haven't seen any official SAP document saying taht ws adapter only works for async. web service. If you have any, can you please share it?
    Thanks
    Jayson

    Thank you all for your information.
    The error I got when calling the proxy with logical port (web service) is:
    SOAP:1,007 SRT: Unsupported xstream found: ("HTTP Code 404  : Not Found") 
    I will debug it to see what exactly happens. And will keep you guys updated.
    Just debugged, the error is because the http header's content type is text/html while it should be test/xml. However this type is set by the ws runtime, not by the application. Anybody has an idea about this?
    Jayson
    Edited by: Jayson on Feb 18, 2009 10:04 AM
    Edited by: Jayson on Feb 18, 2009 12:11 PM

  • 11G - invoking an asynchronous Web service that is not a BPEL process

    Hi all,
    Is there an 11G example of implementing and invoking an asynchronous Web service that is not a BPEL process ? . In 10g there is an example for Axis web service (Oracle_Home\integration\orabpel\samples\interop\axis\BPELCallingAsyncAXIS ) but I can't find anything related to 11G so far.
    Thanks in advance,
    sasha

    Hey Chris.
    I am just starting to write a jcd that calls an external web service but cannot find any sample code nor instructions on how to do it in the supplied documentation. Could you send me a code sample from your one?
    Cheers
    Matt

  • Making Asynchronous Web Services in apache axis

    Hi all,
    I am willing to make an asynchronous web service using apache axis.Can I use Tomcat 5.x or I have to use WebLogic only.Please help.
    With regards,
    ajse

    Hi all,
    I really need to know this,becouse I am running out of time.Can anyone pls
    let me know about this?
    With regards,
    ajse

Maybe you are looking for