OneWay webservice called synchrnously instead of asynchronously

Hello

I have a webservice and BPEL processes deployed on the server of SOA. The Webservice is a POJO method annotated with @Oneway. BPEL process is webservice call. I noticed that the BPEL is waiting for the webservice finish before proceeding to next process/activity in the BPEL.

Given that the operation was called as oneway, I expected the BPEL process to invoke the process and continue with other activities without waiting for the webservice finish. Isn't he supposed to submit the application and move forward with other activities without waiting for the Web service call ends?

Here is the excerpt of the Audit trails which shows that the BPEL process waited 5 minutes before scoring the invocation as complete:

invokeSlowResponder
April 12, 2013 * 11: 37:01 * PM Started invocation of the operation "testSleep" the partner "SlowResponder".
April 12, 2013 * 11: 42:01 * PM Invoked 1 channel operation "testSleep" the partner "SlowResponder".
payload of <>
< invokeSlowResponder_testSleep_InputVariable >
< name of part = 'Settings' >
< testSleep >
< > 300000 arg0 < / arg0 >
< / testSleep >
< / part >
< / invokeSlowResponder_testSleep_InputVariable >

Why the BPEL process waits until the Web service process is completed in a Oneway operation?

With the help of 11G (11.1.1.6), Weblogic 10.3.6.0

Thanks in advance,
Khalil

Hi khadija.

We are facing a similar problem here on my business.

Please, take a look at Metalink note @ONEWAY Web Service method does not immediately return [1500032.1 ID].

There is a patch for Weblogic server:

Patch 14644893: SU [JJ1I] Patch: ONEWAY WS METHOD DOES NOT RETURN DIRECTLY

We have yet to test this patch, but I hope that this information can be useful for you.

Kind regards

Luis Fernando Heckler

Tags: Fusion Middleware

Similar Questions

  • How the webservice call (two way ssl) from a composite?

    How the webservice call (two way ssl) from a composite? What configuration of weblogic, I put?

    Problem with one of the managed server while activating SSL. _ issue Resovled

    Certificate is not correct according to standarad for its use.

    Kind regards
    Anuj

  • WebService call ends in error check during after decoding (after update to Flex builder 3 /Flex builder 2.01 hotfix 3)

    Hi all

    I would like to ask if anyone has ever get or hear about this error (or can help me to discuss how would be the best way to fix it). Also, please note that the error occure didn t when I used Flexbuilder 2.01 Hotfix 2 and Flashplayer 9.0.47.

    The error occurred just to myapp when I make a Web service call what response message includes a parameter array.
    There is a work around in the WSDL of the parameters definition, cause the WSDL contains at this place a tag < choice >, which is only partially supported by FLEX. Workaround for this is to use an own wsdl for the flex client where it including tags using attributes minOccurs = "0" maxOccurs = "1".

    The console window of FB3 Watch (under some entries of hundreds of battery), the following error:
    VerifyError: Error #1068: iwp.myapp.searchform.MySearchForm and iwp.myapp.searchform.MySearchForm cannot be reconciled.

    at iwp.myapp.searchform::MySearchForm/getSearchFormResultHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    to mx.rpc::AbstractOperation / http://www.adobe.com/2006/flex/mx/internal:dispatchRpcEvent () [E:\dev\flex\sdk\frameworks\ projects\rpc\src\mx\rpc\AbstractOperation.as:196 ]
    to mx.rpc::AbstractInvoker / http://www.adobe.com/2006/flex/mx/internal:resultHandler () [E:\dev\flex\sdk\frameworks\pro jects\rpc\src\mx\rpc\AbstractInvoker.as:198 ]
    at mx.rpc::Responder/result() [E:\dev\flex\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.a s:48]
    at mx.rpc::AsyncRequest/acknowledge() [E:\dev\flex\sdk\frameworks\projects\rpc\src\mx\rpc\Asy ncRequest.as:81]
    to DirectHTTPMessageResponder / completeHandler ([E:\dev\flex\sdk\frameworks\projects\rpc\src\ mx\messaging\channels\DirectHTTPChannel.as:387])
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()


    I really appreciated if somone could help me with this or have any idea how I can go on.
    (a Question is there a way to get the source "open source" code before FB3 came out?)

    Best regards
    Kcell

    Hi all

    today I found the reason of the accident, that occure when my application calls him Web service works in the new Flash Player 9.0.115).

    The reason is that in the function ResultHandler the webservice call it were nested terms "switch" used and missed in two branches "case" a "pause." So the problem could be fixed easily, but I just want to inform people if you have a similar problem, they should try to start the issue with Manager of result/fault 'empty '.
    (the old version (9.0.47) seems to be more robust against a 'pause' missing; but for sure to have other leaks and, of course, features)

    kepp both on bending ;)

    Best regards
    Kcell

  • The vSphere Client Plugin Web WebService call

    Hello

    I have found no examples of vSphere call Web Service from Web Client Plugin. How can it be done? I have to create some adapter data/property provider and call webservice that somehow?

    See the samples/vsphereviews/vsphere-wssdk-provider, it shows how to use vSphere SDK WebService.

    See doc html at docs/samples-doc/vsphereviews.html#vsphere-ui.

  • Secure RestFul WebService call with basic authorization via https

    Hello

    is it possible to call a secure RestFul WebService with basic authorization via https to APEX?

    Database: Oracle 11g XE
    APEX: 4.2.1

    I have a solution by calling the Java Web service, which was called from the database via a scheduled task (run).

    As my hosting partner does not support Java, I'm looking for another option.

    Concerning
    Markus

    Hello

    Oracle XE can USE a wallet with utl_http without problem. Just create a portfolio from a version supporting the creation of the portfolio and copy this portfolio to your XE machine and use it. It really works.

    ---
    Lavenu
    MaxApex accommodation
    http://www.maxapex.com

    Published by: Richard on January 23, 2013 23:32

  • IOM WebService call

    Hello

    I want to call webservice of the IOM. Could you please guide me the steps to achieve the same.

    Thank you

    Please place the vial in /server/apps/oim.ear/APP-INF/lib and restart the server of the IOM
    It shd work

  • SSLHandshake failed: the external SSL WL10.3 webservice call

    Hello


    I need to call a webservice active external SSL XXX. I have the Web service provider certificate.
    My client is deployed on Weblogic 10.3. This client works very well since autonomous as uses the java ssl settings. But it fails when it is deployed on WL. I used the java standard ssl setting... javax.net.ssl.trustStore etc.

    WebLogic probably replaces the java ssl settings and therefore me below the exception. I tried setting java ssl in JAVA_OPTIONS but still not the same error. Am not well versed with trustore and the keystore and so incapable of understanding the problem basically... I have a file dev.pem and dev.pfx given by XXX. WL in my case, acts as a customer and I want it as a way SSL configuration IE. customer (WL) should not check the certification of the server (XXX)

    I've imported the certificate in DemoTrust.jks and do not know what should be imported into a DemoIdentiy.jks...

    Can someone help me understand how I can configure my application deployed on weblogic for use of keys and trustore file. This type of emergency and he beat me with some time...

    Caused by: javax.net.ssl.SSLHandshakeException: [Security: 090497] HANDSHAKE_FAILURE alert from tseiod - dev.xxx.com - 62.109.62.19. Check both sides of the configuration of SSL to the mismatches in the supported encryption algorithms, taken protocol versions supported, approved certification and verification of hostname settings.
    at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireException (unknown Source)
    at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireAlertReceived (unknown Source)
    at com.certicom.tls.record.alert.AlertHandler.handle (unknown Source)
    at com.certicom.tls.record.alert.AlertHandler.handleAlertMessages (unknown Source)
    at com.certicom.tls.record.MessageInterpreter.interpretContent (unknown Source)
    to com.certicom.


    This is console with ssl debug weblogic on...


    May 19, 2010 11:49:13 IST > < Debug > < SecuritySSL > < BEA-000000 > < SSLSetup: loading of CA certificates >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < JSSE SSLSocket filtering >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < SSLIOContextTable.addContext (ctx): 9879252 >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < SSLSocket is Muxing >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < writing SSL_20_RECORD >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < isMuxerActivated: false >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < 9878982 SSL3/TLS MAC >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < 9878982 receipt HANDSHAKE >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < HANDSHAKEMESSAGE: ServerHello >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < isMuxerActivated: false >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < 9878982 SSL3/TLS MAC >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < 9878982 receipt HANDSHAKE >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < HANDSHAKEMESSAGE: certificate >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < certificate validation chain 0: serial number: 72465856653933152398554388484605014177
    Issuer: C = SE, O is XXX e-billing Test System Server, CN = XXX XXX CA Server Server e-billing Test System
    Subject: C = SE, O = Server XXX e - invoice, System Test, CN = tseiod - dev.xxx.com
    Not valid before: Thu Aug 26 18:01:33 2009 IST
    Not Valid After: Friday 26 August at 18:21:33 IST 2011
    Signature algorithm: SHA1withRSA
    >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < validation 1 chain certificate: serial number: 8156897441280436316327587821418687967
    Issuer: C = SE, O is XXX e-billing Test System Server, CN = XXX XXX CA Server Server e-billing Test System
    Subject: C = SE, O is XXX e-billing Test System Server, CN = XXX XXX CA Server Server e-billing Test System
    Not valid before: kill Oct 10 17:26:39 IST 2006
    Not Valid After: Sun Oct 10 17:46:39 IST 2021
    Signature algorithm: SHA1withRSA
    >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < validationCallback: validateErr = 0 >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < cert [0] = serial number: 72465856653933152398554388484605014177
    Issuer: C = SE, O is XXX e-billing Test System Server, CN = XXX XXX CA Server Server e-billing Test System
    Subject: C = SE, O = Server XXX e - invoice, System Test, CN = tseiod - dev.xxx.com
    Not valid before: Thu Aug 26 18:01:33 2009 IST
    Not Valid After: Friday 26 August at 18:21:33 IST 2011
    Signature algorithm: SHA1withRSA
    >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < cert [1] = serial number: 8156897441280436316327587821418687967
    Issuer: C = SE, O is XXX e-billing Test System Server, CN = XXX XXX CA Server Server e-billing Test System
    Subject: C = SE, O is XXX e-billing Test System Server, CN = XXX XXX CA Server Server e-billing Test System
    Not valid before: kill Oct 10 17:26:39 IST 2006
    Not Valid After: Sun Oct 10 17:46:39 IST 2021
    Signature algorithm: SHA1withRSA
    >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < user weblogic specified validation trustmanager status 0 >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < SSLTrustValidator returns: 0 >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < Trust of State (0): NONE >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < performing audits of validation of host name: tseiod - dev.xxx.com >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < isMuxerActivated: false >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < 9878982 SSL3/TLS MAC >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < 9878982 receipt HANDSHAKE >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < HANDSHAKEMESSAGE: CertificateRequest >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < HANDSHAKEMESSAGE: ServerHelloDone >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < no certificates of identity appropriate channel has been found >.
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < write HANDSHAKE, offset = 0, length = 7 >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < ignoring unsupported Mac PVE: Sunjce()) version 1.6 for HmacMD5 algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < will use default Mac algorithm HmacMD5 >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < ignoring unsupported Mac PVE: Sunjce()) version 1.6 for HmacSHA1 algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < will use default Mac HmacSHA1 algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < will use default Mac for the SHA algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < using JCE Cipher: Sunjce()) version 1.6 for the algorithm AES/CBC/NoPadding >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < ignoring unsupported Mac PVE: Sunjce()) version 1.6 for HmacMD5 algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < will use default Mac algorithm HmacMD5 >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < ignoring unsupported Mac PVE: Sunjce()) version 1.6 for HmacSHA1 algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < will use default Mac HmacSHA1 algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < using JCE Cipher: Sunjce()) version 1.6 for the RSA algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < write HANDSHAKE, offset = 0, length = 134 >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < write CHANGE_CIPHER_SPEC, offset = 0, length = 1 >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < using JCE Cipher: Sunjce()) version 1.6 for the algorithm AES/CBC/NoPadding >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < ignoring unsupported Mac PVE: Sunjce()) version 1.6 for HMACSHA1 algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < will use default Mac HMACSHA1 algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < ignoring unsupported Mac PVE: Sunjce()) version 1.6 for HmacMD5 algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < will use default Mac algorithm HmacMD5 >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < ignoring unsupported Mac PVE: Sunjce()) version 1.6 for HmacSHA1 algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < will use default Mac HmacSHA1 algorithm >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < write HANDSHAKE, offset = 0, length = 16 >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < isMuxerActivated: false >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < 9878982 SSL3/TLS MAC >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < 9878982 receipt ALERT >
    < 19 May 2010 11:49:14 IST > < Debug > < SecuritySSL > < BEA-000000 > < NEW ALERT with the severity: FATAL, Type: 40
    java.lang.Exception: new alert battery
    to com.certicom.tls.record.alert.Alert. < init >(Unknown Source)
    at com.certicom.tls.record.alert.AlertHandler.handleAlertMessages (unknown Source)
    at com.certicom.tls.record.MessageInterpreter.interpretContent (unknown Source)
    at com.certicom.tls.record.MessageInterpreter.decryptMessage (unknown Source)
    at com.certicom.tls.record.ReadHandler.processRecord (unknown Sou

    I think at that time that you open a support with oracle request and they could help you.
    I think that we have tried every possible way to debug this problem.

    Thank you
    Sandeep

  • POST REST webservice call

    Hello

    I'm new to web services. I created a POST web service using the REST in APEX, which accepts 3 data variables and inserts them into a table.

    I don't know how to call this web service through java script POST to test works. My main question is how to send data to the web service POST.

    Hi Ally_p,

    Ally_p wrote:

    I'm new to web services. I created a POST web service using the REST in APEX, which accepts 3 data variables and inserts them into a table.

    I don't know how to call this web service through java script POST to test works. My main question is how to send data to the web service POST.

    Check out the following OBE tutorial: Creating and Using RESTful Web Service on-demand Express 5.0

    The illustrated tutorial how to create type GET/POST to web services in Oracle APEX 5.0, but unfortunately it gives example only how to consume GET kind of RESTful Services.

    For example how to use POST type of RESTful Web Service in Oracle APEX consult: https://www.youtube.com/watch?v=QnNtrxNlRgw

    Kind regards

    Kiran

  • Where can get newspaper of reason behind Manager jaxws soap does not run during the webservice call in weblogic 11 g

    Hi guys,.

    http://docs.Oracle.com/CD/E23943_01/Web.1111/e13734/handlers.htm#WSADV189

    I created SOAP manage by top surround URL and deployment artifacts are generated with build.xml.

    I don't know why managers do not run in the web service call in weblogic 11 g.

    Regarding

    Siddharth Singh

    Solution

    Ant was not generating little class and manager xml file

    I manually copy these files

    Maybe Ant was not generating these files because of this warning

    [jwsc] WARNING: types of annotations without Transformers: [javax.xml.bind.annotation.XmlRootElement, javax.xml.bind.annotation.XmlAccessorType, javax.xml.bind.annotation.XmlType, javax.xml.bind.annota

    n.XmlElement]

    [jwsc] 1 WARNING

    Full journal of ants

    D:\SOAP_JMS>Ant f ant - build - jhand.xml
    BuildFile: Ant - build - jhand.xml
    Trying to replace the old definition of the task clientgen

    Build-service4:
    [jwsc] TJ: processing module/om/sai/buddh/SaiWebService
    [jwsc] The analysis of source files
    [jwsc] The analysis of source files
    [jwsc] 1 TJS files processing for the module/om/sai/buddh/SaiWebService
    [jwsc] TJ: D:\Oracle-ESB-RND\EncrpytionDecriptionWS\src\om\sai\buddh\SaiWebService.java valid.
    [jwsc] Treatment of the web services JAX - WS 1...
    [jwsc] WARNING: types of annotations without Transformers: [javax.xml.bind.annotation.XmlRootElement, javax.xml.bind.annotat
    tion. XmlElement]
    [jwsc] 1 WARNING
    [jwsc] Compilation of 5 source files for C:\Users\si244339\AppData\Local\Temp\_y1j0ng
    [jwsc] Building jar: D:\SOAP_JMS\outputnew\AAJAXHandlerSai1EarResponseQ\om\sai\buddh\SaiWebService.war
    [jwsc] Created JWS deployment outputFile: D:\SOAP_JMS\outputnew\AAJAXHandlerSai1EarResponseQ\om\sai\buddh\SaiWebServic
    [jwsc] [EarFile] Application file: D:\SOAP_JMS\outputnew\AAJAXHandlerSai1EarResponseQ\META-INF\application.xml
    [AntUtil.deleteDir] remove directory C:\Users\si244339\AppData\Local\Temp\_y1j0ng

    BUILD SUCCESSFULLY

  • How to use the credentials to connect to webservice call remains

    Hi all

    I use jdev 11.1.2.4.0 version

    I create the security feature (features) for my mobile application using this article.

    Andrejus Baranovskis Blog: ADF Mobile - Login functionality

    now call web service after that connection and this service need to username which connect on app.

    so my question is how to get the details of the user logon and go to another Web service?

    Thank you

    Manish

    #{securityContext.userName}

    String username = (String) AdfmfJavaUtilities.evaluateELExpression("#{securityContext.userName}");

  • WebService call failed during the test adapter for oracle applications

    In SOA 11 g, when I test my application that uses Oracle Applications card it gives an error "Webservice invocation failed. The error stack is

    oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occurred when the link was invoked.
    Exception occurred during invocation of the JCA binding: "binding JCA execute of operation 'getDailyRatesAdpSelect' failed due to the reference: connection problem component binding JCA.".
    JCA Binding component is unable to create an outgoing connection of JCA (CCI).
    + OutboundR12:getDailyRatesAdp [getDailyRatesAdp_ptt::getDailyRatesAdpSelect (getDailyRatesAdpSelect_inputParameters, GlDailyRatesInterfaceCollection)]: the JCA Binding component was unable to establish an outgoing connection of JCA CCI due to the following problem: BINDING. JCA-12510 +.
    Location of JCA resource adapter error.
    Cannot find the adapter in JCA resources via the element of the binding .jca file

    The Binding of JCA component is unable to the adapter resources specified in the startup item: location = "jdbc/EI/R12.
    The reason is most likely to be

    + 1) the resource adapter RAR file has not been deployed successfully to the WebLogic application server or +.

    + 2) the "element in weblogic - ra.xml has not been defined in eis/jdbc/R12. In the latter case, you need to add a new factory of connections from WebLogic JCA (deploy a RAR). +

    Please fix this and then restart the application server

    The same as xADataSourceName the value of the Data Source JNDI name, but still get this error.
    Specify the location of the ra.xml file - weblogic and steps to guide to solve this problem.

    Thank you
    Sadia

    Looks like the Oracle Application adapter is not running.
    Connect to the weblogic administration console on your left window, click on * "Deployments" *, and then click your right window, under summary of deployments, check the status of * "OracleAppsAdapter."
    It should be in Pavilion OK, so that it can reproduce and accepting applications.

    Thank you
    Vijay

  • How can I get the original xml code to a webservice called...

    I use WL 10.3.

    I created a WebService using WSDL as a starting point. The Web service is running as it should, but now I want to go back to the original XML that was passed in.

    I tried to collect the data to a string using JAXB, but he complains that there is no notation for @XmlRootElement - so, who does not work.

    I also tried to access the original data by injecting the WebServiceContext, but this value is always zero (not sure why that doesn't work)...


    Is someone can you PLEASE tell me how can I get the original XML code?

    You can use managers to this end, for example,

    package server.handlers;
    
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.ws.LogicalMessage;
    import javax.xml.ws.handler.LogicalHandler;
    import javax.xml.ws.handler.LogicalMessageContext;
    import javax.xml.ws.handler.MessageContext;
    
    public class ServiceLogicalHandler implements LogicalHandler {
    
        public boolean handleMessage(LogicalMessageContext context) {
            Boolean direction = (Boolean) context.get(LogicalMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (direction) {
                System.out.println("LOGICAL - DIRECTION IS OUTBOUND");
            } else {
                System.out.println("LOGICAL - DIRECTION IS INBOUND");
            }
            return true;
        }
    
        public boolean handleFault(LogicalMessageContext context) {
            Boolean direction = (Boolean) context.get(LogicalMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (direction) {
                System.out.println("LOGICALFAULT - DIRECTION IS OUTBOUND");
    
                LogicalMessage message = context.getMessage();
                Source payload = message.getPayload();
                try {
                    Transformer transformer = TransformerFactory.newInstance().newTransformer();
                    transformer.transform(payload, new StreamResult(System.out));
                } catch (TransformerException ex) {
                    ex.printStackTrace();
                }
            } else {
                System.out.println("LOGICALFAULT - DIRECTION IS INBOUND");
            }
            return true;
        }
    
        public void close(MessageContext context) {
        }
    }
    

    More information on managers can be found here: http://www.javaworld.com/javaworld/jw-02-2007/jw-02-handler.html

  • How to return the Id of the Instance in a webservice call?

    Hi all.

    I have a process that is exposed as a WS. I can create instances that calling WS from an external application.
    Now I need return the instance id every time an instance is created in the WS call.
    This 'return' must be almost immediately in the next activity after the start event. I have been able to return more, but can not access the information on the process here.

    How can I do?
    I can't be able to bind the instance Id to an outgoing argument WS.

    Thanks for the help.

    Directly after the start event, place an event to throw the message - I guess that's what you already have. To get the instanceId, use XPath in Associations of data of the event Message to throw away. instanceId is under the "advanced features" such as "ora:getInstanceId(). If you want to return the instanceId of the composite process, use ":getCompositeInstanceId() ora".

    HTH.

  • external salesforce webservice call

    I am not able to invoke the sales force external webservice for my bpel

    I assume you have the wsdl file that you are able to access from your machine when you develop the code.
    Just try this:

    1. place the url of wsdl in IE.
    2. right click and say view source.
    3. save the source as the .wsdl file.
    4. give to this wsdl file by invoking a partnerlink.

    Kind regards
    Smail

  • Synchronous asynchronous Webservice Web service call error

    Hello. I have the following scenario.

    I created an asynchronous Web Service (WS_1) to SOA that takes a string as input and waits 10 seconds then returns a reminder. I call this Web Service asynchronous to another web service (WS_2) (that I also created in SOA). In the BPEL I use "invoke activity" to call the Web Service asynchronously and below, I use "activity to receive" a reminder of the Service.When Web I test this Web (WS_2) Service in WeblogicEM, I'm not getting any reminder of asynchronous Web Service (WS_1). On the trail of the flow, 'receive activity' is highlighted and said "Receive1 (in progress)".

    -Does anyone know what is happening here?

    -Thank you

    It is not a good practice to call services async to sync processes.

    For your scenario, have the property of the value requiresNew transaction. This property is listed under your synchronization bpel component in composite.xml

Maybe you are looking for

  • to install the Xp SP3 but I'm not an IT Pro

    Hey I want to know where the other can I could download an Xp SP3 online application and install it on my computer (my computer do not have access to the internet, I use the Internet Café) I'm not an IT Pro

  • Is it normal that settings are turned off by itself?

    Hello world. Sometimes, my phone displays a notification that (unfortunately settings stopped) although I was not using my phone for a long time. Is it normal that the settings will stop by itself? Is using some applications can cause this? Thank you

  • Drag and drop work stoppages until the computer restarts

    We are experiencing a problem on some machines (Windows 7 SP1 64 bit) where slide - déposer ceases to function in all applications. For example, in Windows Explorer, you can initiate the drag, but when you release the mouse button to make the 'drop'

  • How can I renounce my membership?

    In 'my products', I don't see anything, but I still have access to all of my products (for example, illustartor).I wish to resign my membership, but do not have access to a phone number

  • How would recreate the pagefile to a Windows 2008 virtual computer running on a host ESX 3i?

    As the subject says, I'm looking for a way to do this.  I inherited the environment of another group and it is very small, but it performs ESX 3i on the two hosts and Vcenter version 2.5 (Infrastructure) is a bit old.  5 of 6 VM are operational, howe