Calling a asynchronous web service method

I am designing a game using web services(asp.net)
one player write to array and waite till other modify that
array.Assume i am player 1 and wait till player 2 modify array
in web service.Writing to array part is working.But reading part
is not working .I implement asynchronous call to web service
call reLabelAsync and pass argument 1.That means i am player 2
modify the array and return to my program onces other player(player 1)
modify the array.And modify my program according his updates.
private void jLabel1MouseClicked(java.awt.event.MouseEvent evt) {                                    
jLabel1.setText("O");//this my player
// jProgressBar1.setIndeterminate(true);
writeArra(2,1);//this is working
reLabelAsync(1);
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new NewJFrame().setVisible(true);
public void reLabelAsync(int player){
// Call Web Service Operation(async. callback)
as.Service service = new as.Service();
as.ServiceSoap port = service.getServiceSoap();
// TODO initialize WS operation arguments here
javax.xml.ws.AsyncHandler<as.ReLabelResponse> asyncHandler = new javax.xml.ws.AsyncHandler<as.ReLabelResponse>() {
public void handleResponse(javax.xml.ws.Response<as.ReLabelResponse> response) {
// java.awt.EventQueue.invokeLater(new Runnable() {
// public void run() {
String s;
try {
// TODO process asynchronous response here
s = response.get().reLabelResult();
s=removeTags(s);//this to remove tags.working
System.out.println(s);
if (s=="1"){
jLabel1.setText("X");//update my program
else{
jLabel2.setText("X");//update my program
} catch(Exception ex) {
// TODO handle exception
jProgressBar1.setIndeterminate(false);
can some one please help me. I try to call asynchronous method in loop.
I think it's the way to do this. But it didn't work.Thanks..

Looking a bit at your history here... this is the fourth go around at least for dancing around this question.
To summarise the advice given to you previously "Please stop blathering on about asynchonous blah blah and start by sending and recieving a message correctly"
You really seem way over your head here. An empty catch block is a bad bad bad sign. You can run before you can walk and right now you're having problems crawling.

Similar Messages

  • 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 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

  • Capturing the response received from the WCF web service method?

    Hi,
    I am trying to call a WCF web service method with input parameters in an xml file and then receive the returned output data by the web service as response into an xml file.
    So far I am able to call the webservice method successfully and not sure how to capture the response data. I am able to see the response data in the tracked message event using the query expression search at the BizTalk group root.
    I may be missing something simple in my orchestration(image at http://social.msdn.microsoft.com/Forums/getfile/535971)  ?
    Steps in my orchestration are,
    1) Receive the xml file with input parameters
    2) Send to webservice using WCF-BasicHttp transport type
    3) Receive response from web service
    4) Send to xml file
    Not sure how I can have 2 receive shapes in series there. I have seen few related posts in the forum but could not resolve.
    Could someone please correct me?

    Hi Rachit,
    Thanks for your quick response. My orchestration is similar to the one in that post. In your post at step 7, how you are able to set 'Activate property' of the receive shape to true? as its the 2nd receive shape in series.
    I am unable to post any images or links at the moment. My orchestration is posted at this link  http://social.msdn.microsoft.com/Forums/getfile/535971
    I am able to access  the above link using chrome.
    Yes,  I did use the Request/Response port to communicate with the web service.  I
    am looking to achieve similar to the one in your post.
    Thanks.

  • (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.

  • Asynchronous web service call doesn't work

    Hi,
    I'm trying to convert a synchronous web service call into an asynchronous call. (Folder-level Javascript, Acrobat Professional 8.1, Windows XP).
    Everything works fine when I call Soap.Request as a synchronous call. It calls the web service and gets the expected result. However, when I try to convert Soap.Request into an asynchronous call by adding the OAsync property, as described on pp. 198-199 of "Developing Acrobat Applications Using JavaScript," NONE of the various OAsync functions (i.e. result, response, wait) are ever called. IOW, the Javascript code continues executing after the Soap.Request call and doesn't wait for my web service call to return. Indeed, the web service method on the server doesn't even BEGIN to execute by the time the Javascript code runs to completion. (I can confirm this by watching my ASP.Net code execute in the Visual Studio debugger. In fact, the Javascript code runs to completion even before the Global.asax Session_Start code begins to execute, much less the web service method itself.) So, the problem is not with the web service, which works fine when Soap.Request is called as a synchronous method.
    To reiterate, my Javascript code is identical to the code on pp. 198-199 of "Developing Acrobat Applications Using JavaScript." In troubleshooting this, I've tried calling the OAsync functions (mySync.wait(), mySync.result(), mySync.response()) after calling the Soap.Request, but nothing works.
    Is there something else that I must add to my Javascript code (e.g. an additional Soap.Request property, or something after calling Soap.Request) to force the Javascript to wait until the web service method returns?
    Thanks,
    Bill

    Hi Lukasz,
    you can also define namespace the later in the operation GetOpenOrders itself, e.g.:
    <tem:GetOpenOrders xmlns:tem=u201Dhttp://tempuri.org/u201D>
    It does not need to be part of the Envelope element.
    Best regards
    Bastian

  • Calling Web Service Methods in  Web Dynpro

    1. Created a Bean with get & set methods..Created a portal Service around it
    2. Created a Web Service and checked the same using EP Web Checker
    3. Created a Web Dynpro app having two screens (First one for setting String value and second  for getting string value)
    4. Configured the Web Service in the model...I can see the Request and Response in the Context...Mapped the request to first view and Response to Second View
    How do I call the Web Service method to Set the Paramter and how do I extract the value from the response?
    Rgds

    Hello Gulshan,
    Did you check this:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing an email web service - 6_0_.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing the car rental web service - 7.htm
    Best regards, Maksim Rashchynski.

  • TimeoutException - when calling web services method that opens a PDF

    I am updating a legacy program which uses Adobe Acrobat 7.0 Professional.  The idea is that the client will call web service methods, which handle opening a PDF, reading from or writing to the PDF, saving if necessary, and closing.  It then returns the data (if reading) to the client.
    The only issue with this that I'm having is that the client will pause for about 60 seconds, and throw a TimeoutException.
    I know that the method on the web services end is working, because I wrote a quick driver which calls the very same method, but it executes normally, and works perfectly.
    My question is basically, is there anything that would cause the client to hang/freeze when calling the web services method to do this task? Everything is running on my workstation, and I've debugged to see that the filename being passed is the same in both tests.
    Thanks!

    Thank you, I somehow missed seeing that subforum. I reposted it in that forum instead. This thread can be deleted/closed. Thanks!

  • 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

  • Serialization error when calling web service method

    Hi,
    In JDeveloper 10.1.3.1, I'm working on an EJB that will be deployed as a web service. There is a method in the EJB that is defined to return a generic Object, but in the implementation, it really returns one of several possible specialized bean objects. I can deploy the EJB successfully to IAS 10.1.3.1.
    I created a web service proxy from the wsdl that was generated from deploying the EJB. Using the proxy, I try to call the EJB method and cast the method's return value to the bean object I know should be returned. However, I get an error like this:
    java.rmi.ServerException:
    start fault message:
    Internal Server Error (serialization error: no serializer is registered for (class com.test.TestBean, null))
    :end fault message
    Does anyone know how this serialization error can be resolved? If I change the web service method signature to return the bean object that is actually being returned (instead of Object), then it works fine. But I want to be able to define the method to return a generic Object because I plan to make the method flexible enough to return several different types of bean objects. Whenever the client calls the method, it will know what is the actual object being returned and I had planned to cast the return value to its actual class.
    Thanks for any ideas.

    Well, I think so... I've followed all the steps, and my merged WSDL file seems like the one in page 12...
    Any suggestion, please?
    Thank you,

  • 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. :-)

  • Calling Oracle Report InSide Web Service Method

    Is there way to call oracle reports inside one of my web service method.
    If yes kindly let me know how we can do this and some documents related to this.
    Thanks
    Robert

    Oracle reports does have a Web API when reports are run from the application server. As a result one way to do what you are asking is to write a Web service that use java.net.URL to invoke the Reports Service Web interface:
    http://otn.oracle.com/products/reports/htdocs/getstart/docs/A92102_01/pbr_run.htm#1005598
    As I understand it, this interface itself is actually being exposed as a Web service in a future release of Oracle9iAS Reports ... I don't know if this is a Oracle9iAS Reports 9.0.4 feature or beyond that. You might try asking on the Reports forum:
    Reports
    Mike.

  • 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^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L0S>1
    M>B/+!=!A["X.Y\\%__"Z5E)PY[2=GYM^B330^^#[\.:CHS\X'MTM8)OYJT ;
    M>\8-WA\]%DYF/=/5RN @ZR $2YM!9^T"85[IWA6IBQS7*,#]-);/`OI@KWM[
    M1D%!R1([$Y*:<IC8P=Z<Y,[]^5QT,SQ227)@YCE"! ('NZ,ME/WALKR4>)?D
    M_.WI\?[WD+O[B4_R>(.FKW]02P<(81.%XR@#``!-"P``4$L#! H``````-N!
    M@BX````````````````/````<V%M<&QE,R]C;&EE;G0O4$L#!!0`" `(`-N!
    M@BX````````````````8````<V%M<&QE,R]C;&EE;G0O36%I;BYJ879AM9-=
    MJ]- $(;O"_T/0ZY2A$7QSE!$1&G!XQ'+P8O#0::;:;*ZR8;=2=,H_>]N-FD^
    M_+@T!!)F7IYY9V:W0OD=,P*NV5B%6C@L*DTOA=2*2D[6J_5*%96Q#-_PC$(9
    ML;]_=Y%4L3)ELDA>Q*70PE92',B>E:2Y;KVJZJ-6$J1&Y^ .5?FSBP(,<<?(
    M_G,V*H7"9V,XL%5E]O@$:#,'FT$.H$YQ" E-9<8Y;+?P(J0A/"4U`=^+'I\_
    MP2;I<U?2CD8=Y]8T0;W7FC+4;VQ6%[[IT78,T</G#V!.7DO@^J:@- RN(JE.
    MBM)H@G>?ZZ*ENUD;T+A4/U@]&F7;CE9VI+7Y8JQ.A\F-Q;;!X!_YKWN_I7AB
    M)O\D?>JV$U:TO4%%1OS6XH\VZ.)-<ALL0(A 3IB2[?][`Y.RU\T4PA%_Q(+\
    ML&0'A::+]G-98H\F;6_0SI'(.[.["14O*L\!A]8Q%<+4+"H_3=9^KA-NKIS
    M]]XX#CU"M/.[1DO0FOKUW-Q5(LL\AMFI!IJ=IK]5CMZCTI0"&Y"6D D:.HXK
    MZV_.JPB>=:!D6>;WF_%?:@TGT;^_`%!+!PA5MM$EK@$``-\#``!02P,$% `(
    M``@`VX&"+@```````````````!X```!S86UP;&4S+TAE;&QO5V]R;&1397)V
    M:6-E+FIA=F%]4LMJPS 0O!O\#XM/3DJ<0V\)@4(IY-#'P8?VNK&71%26A"3'
    M<4/_O=:C=@)M0""8G9G=64EA]8E[`MM:J1GRPF"C.-VOTR1-EO-YFL <'CK>
    MF55'.T/ZR"H");5]Q88VV:/&K_Y=:EYGCKI,$]7N.*N@XF@,;(ESZ<MED)Z=
    M+T!PAM%;H;9P(*Q)>S9P6:%E4FRR@&:!OG17[!"(!]=A.RGS$9_,9K$KQ-I.
    MUF%FV("@+J#Y;!TX8[4PY%/FEV;%/H(S^!5HLJT6D\[#WW\'E8JT#P9,'&/&
    MA;$]'W8I!2TZ[/^(>I0L)GT;YL4^)BVM9F(/#1GCWM#%=/.4O;'4%+*UA1H(
    MEHL<L@LA&.S-"C*XFZ2W9J93Q=N:_AFKEL(^G90TPTK.-US\$Y\:7KJP;H,@
    M_ \:H+" >N& F^D_7IZOHU_YC>V'\P-02P<(4'P0;$H!``#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

  • How to call a secure web service via XAI Sender in CC&B

    Hi All,
                I want to a call a secure web service from CC&B through out bound message. I have configured the calling  WSDL in XAI Sender. The wevservice is secured one.I tried to call it by configuring user name and password in XAI sender context.But still i am not able to call the service.
    Can anybody help me how to over come this issue ??
    I have cretaed the same post under utilities,but i am not able reply it.
    I am using HTTPSNDR  as XAI class.
    Thanx in advance.
    Regards
    sunil

    Are you getting any errors? What type of XAI Class are you using?
    One thing I've noticed is that if you are making changes to the XAI Sender you will have to restart the environment before the changes can take effect.
    Also, if you are using RTHTTPSNDR as XAI Class you may have to include the HTTP Method - Post in the context.
    Hope this helps.
    Regards,
    Philip

Maybe you are looking for

  • Opening a pdf in Adobe Acrobat from Flash exe

    I'm trying to get a btn to open a pdf in Acrobat from a published exe file. I have created something like this before but have used the Get URL code. I DON'T WANT THIS OPENING IN INTERNET EXPLORER! is something like this is possible? Cheers- Graeme

  • I have a Visual Basic applicatio​n that is also an ActiveX server. L

    abWindows 5.5 recognizes the controls and I can use them (methods and properties). LabVIEW 6i doesn't recognize it at all. When this same application was released to be only an ActiveX control, LabWindows and LabVIEW could both work with it. What hap

  • Cannot download trial copy of Flex 3

    Am using Firefox 3.0.8 (latest) on my MacBook Pro - Mac OS X 10.4.11 and there is no option to right click on download button to save file as, so I can only click on download to automate the process - which would be good if it worked.  Not sure if I

  • Synonym (to table) visibility in Query Builder?

    Hello, I have a schema that contains a table or two, and a bunch of synonyms to other tables in other schemas. In my current Query Builder (1.1.3 MAIN-27.69), I don't see the tables represented by the synonyms -- other available tools show the tables

  • Require the Standard BAPI or IDOC

    Hi all I am using LSMW for Packing Instruction Determination (T-code POF1). Is there any Standard BAPI or IDOC available in LSMW for data transformation for Packing Instruction Determination. If it is available please share. regards, Aboli