WSIF Binding Question

I have a question about the capabilities of WSIF Bindings.
In our current environment we have several session beans that we want to invoke from a BPEL process. We would like to invoke the session bean using a local interface and not the remotee interface. Is this possible?
Some of the parameters for the methods on our EJB takes Java classes generated by the XMLBeans tool. As a result the classes are not serializable. Does WSIF require parameters to be serializable?
Thanks,
Frank

A single instance is created at the first invocation [note: The initiate( null ) operation is invoked if the class is an instance of IWSIFJavaService].
That single java object is invoked (concurrently) by all the process instances when they reach an <invoke> node which leverage WSIF Java binding.
Edwin

Similar Messages

  • Invoking a webservice using WSIF Binding

    Hi All,
    I have few queries regarding usage of WSIF Binding in BPEL
    My understanding was it is useful for calling Java Classes from BPEL Process.
    Can I use WSIF Binding for invoking the webservice ?
    Or the use of WSIF Binding is limited to invoking Java classes.
    If we can invoke web service , Can you please let me know how to do it?
    you can mail your replies to [email protected]
    Any help will be immensely appreciated..
    Regards,
    Bhanu

    First of all thanks to Jens and clemens.
    From both of your replies, i learnt that we can call webservice from BPEL process using WSIF binding .
    Can you provide me a bpel sample where we're using wsif binding for invoking web service?
    I have one more doubt:
    "WSIF java binding means, which was used to call java classes. WSIF soap binding used to call web services"
    Is my understanding correct?
    Can you explain a bit on WSIF Java binding?
    Regards,
    Bhanu

  • WSIF Binding Error while invoking HTTP Service

    Hi,
    I am getting a WSIF binding error when invoking an HTTP service. I was able to successfully invoke another HTTP service on the same server. However, while invoking some of the others services, we are getting errors. The wsdl binding declaration is:
    <binding name="JACADACustMaintBinding" type="tns:JACADACustMaintPortType">
    <http:binding verb="POST"/>
    <operation name="PostData">
    <http:operation location="/custmaint.cfg"/>
    <input>
    <mime:mimeXml part="CustMaintInput"/>
    <mime:content type="text/xml"/>
    </input>
    <output>
    <mime:mimeXml part="CustMaintOutput"/>
    <mime:content type="text/xml"/>
    </output>
    </operation>
    </binding>
    The error we are getting is as follows:
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}bindingFault}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{summary=[email protected] : Could not invoke 'PostData'; nested exception is:
         java.lang.Exception: Error in HTTP Post: Status 500: Unable to invoke service method: com.jacada.ea.jclient3.JClient3Exception: com.jacada.ea.jclient3.JClient3Exception:Negative response from server, response code: 110. Message from server: com.jacada.ea.jservice.JServiceException: Could not set input parameter: InVar_0: <html><head><title>Apache Tomcat/4.1.18 - Error report</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --></STYLE> </head><body><h1>HTTP Status 500 - Unable to invoke service method: com.jacada.ea.jclient3.JClient3Exception: com.jacada.ea.jclient3.JClient3Exception:Negative response from server, response code: 110. Message from server: com.jacada.ea.jservice.JServiceException: Could not set input parameter: InVar_0</h1><HR size="1" noshade><p><b>type</b> Status report</p><p><b>message</b> <u>Unable to invoke service method: com.jacada.ea.jclient3.JClient3Exception: com.jacada.ea.jclient3.JClient3Exception:Negative response from server, response code: 110. Message from server: com.jacada.ea.jservice.JServiceException: Could not set input parameter: InVar_0</u></p><p><b>description</b> <u>The server encountered an internal error (Unable to invoke service method: com.jacada.ea.jclient3.JClient3Exception: com.jacada.ea.jclient3.JClient3Exception:Negative response from server, response code: 110. Message from server: com.jacada.ea.jservice.JServiceException: Could not set input parameter: InVar_0) that prevented it from fulfilling this request.</u></p><HR size="1" noshade><h3>Apache Tomcat/4.1.18</h3></body></html>
    ,detail=java.lang.Exception: Error in HTTP Post: Status 500: Unable to invoke service method: com.jacada.ea.jclient3.JClient3Exception: com.jacada.ea.jclient3.JClient3Exception:Negative response from server, response code: 110. Message from server: com.jacada.ea.jservice.JServiceException: Could not set input parameter: InVar_0: <html><head><title>Apache Tomcat/4.1.18 - Error report</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} --></STYLE> </head><body><h1>HTTP Status 500 - Unable to invoke service method: com.jacada.ea.jclient3.JClient3Exception: com.jacada.ea.jclient3.JClient3Exception:Negative response from server, response code: 110. Message from server: com.jacada.ea.jservice.JServiceException: Could not set input parameter: InVar_0</h1><HR size="1" noshade><p><b>type</b> Status report</p><p><b>message</b> <u>Unable to invoke service method: com.jacada.ea.jclient3.JClient3Exception: com.jacada.ea.jclient3.JClient3Exception:Negative response from server, response code: 110. Message from server: com.jacada.ea.jservice.JServiceException: Could not set input parameter: InVar_0</u></p><p><b>description</b> <u>The server encountered an internal error (Unable to invoke service method: com.jacada.ea.jclient3.JClient3Exception: com.jacada.ea.jclient3.JClient3Exception:Negative response from server, response code: 110. Message from server: com.jacada.ea.jservice.JServiceException: Could not set input parameter: InVar_0) that prevented it from fulfilling this request.</u></p><HR size="1" noshade><h3>Apache Tomcat/4.1.18</h3></body></html>
         at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:617)
         at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:437)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:251)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:826)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:402)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:199)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3698)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1655)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:217)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:314)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5765)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1087)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.createAndInvoke(CubeEngineBean.java:133)
         at com.collaxa.cube.engine.ejb.impl.CubeEngineBean.syncCreateAndInvoke(CubeEngineBean.java:162)
         at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiresNewInterceptor.invoke(TxRequiresNewInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeEngineBean_LocalProxy_4bin6i8.syncCreateAndInvoke(Unknown Source)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyType(DeliveryHandler.java:547)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(DeliveryHandler.java:464)
         at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHandler.java:133)
         at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:95)
         at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at DeliveryBean_RemoteProxy_4bin6i8.request(Unknown Source)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processNormalOperation(SOAPRequestProvider.java:451)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:274)
         at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:120)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:956)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
         at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:466)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
         at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:194)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:400)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:414)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Request you all to provide inputs.
    Thanks and Regards.
    John

    Hi,
    Using the exact same wsdl i was able to get a response from the HTTP service using OSB. I created a business service targeting this wsdl. Then created a proxy service to route the xml to the business service.
    I was able to successfully invoke and get response from the HTTP service without making any change to the wsdl.
    Could this be a bug in BPEL PM? Should I raise an SR?

  • 10.1.3.5 - Using WSIF binding in BPEL

    Hi,
    I'm trying to use WSIF binding for a java web service in my bpel process. I'm following the steps given at http://www.oracle.com/technology/pub/articles/bpel_cookbook/juric.html
    I used Jdev to create wsdl for my java class and enabled WSIF bindings. I copied the generated wsdl to my bpel process and used it to create a partnerlink. Now I want to generate XML facade classes using schemac compiler. I modified the BPEL build.xml to call schemac for my generated wdl. The schemac errors out with following message:
    [schemac] schemac> parsing schema file 'C:\share\jdevuserhome\home5\mywork\TestApps\TestWSIF3/bpel/WsifBindingDoc.wsdl' ...
    [schemac] schemac> Loaded schemas from wsdl located at C:\share\jdevuserhome\home5\mywork\TestApps\TestWSIF3/bpel/WsifBindingDoc.wsdl
    [schemac] warn: The W3C datatype 'base64Binary' is not currently supported by Collaxa schemac.
    [schemac] warn: The W3C datatype 'hexBinary' is not currently supported by Collaxa schemac.
    [schemac] warn: The W3C datatype 'time' is not currently supported by Collaxa schemac.
    [schemac] schemac>WARNING: schemac tool has been deprecated, please use jaxb compliant compiler (e.g. oracle jaxb) to generate java classes from xml schema.
    [schemac] schemac> generating XML business document ...
    [schemac] schemac> compiling XML business documents ...
    BUILD FAILED
    C:\share\jdevuserhome\home5\mywork\TestApps\TestWSIF3\build.xml:41: Java compilation failed.
    Failed to compile file(s) //list of files here...
    Exception reported is: F:\Jdev10135\jdev\bin\schemac_1259228108484\src\org\xmlsoap\schemas\soap\encoding\ENTITIES.java:84: Incompatible type for constructor. Can't convert java.lang.String to org.w3c.dom.Element.
    org.xmlsoap.schemas.soap.encoding.ENTITIES value = new org.xmlsoap.schemas.soap.encoding.ENTITIES(childValue);
    ^
    F:\Jdev10135\jdev\bin\schemac_1259228108484\src\org\xmlsoap\schemas\soap\encoding\IDREFS.java:84: Incompatible type for constructor. Can't convert java.lang.String to org.w3c.dom.Element.
    org.xmlsoap.schemas.soap.encoding.IDREFS value = new org.xmlsoap.schemas.soap.encoding.IDREFS(childValue);
    ^
    F:\Jdev10135\jdev\bin\schemac_1259228108484\src\org\xmlsoap\schemas\soap\encoding\NMTOKENS.java:84: Incompatible type for constructor. Can't convert java.lang.String to org.w3c.dom.Element.
    org.xmlsoap.schemas.soap.encoding.NMTOKENS value = new org.xmlsoap.schemas.soap.encoding.NMTOKENS(childValue);
    ^
    F:\Jdev10135\jdev\bin\schemac_1259228108484\src\org\xmlsoap\schemas\soap\encoding\NOTATION.java:84: Undefined variable: childElement
    javax.xml.namespace.QName value = super.getQNameValue(childElement,childValue);
    ^
    F:\Jdev10135\jdev\bin\schemac_1259228108484\src\org\xmlsoap\schemas\soap\encoding\QName.java:84: Undefined variable: childElement
    javax.xml.namespace.QName value = super.getQNameValue(childElement,childValue);
    ^
    5 errors
    Please verify that file /*list of files here */ is valid java file or if all required libraries are included in your classpath.
    classpath: F:\Jdev10135\jdev\lib\ojc.jar;F:\Jdev10135\ant\lib\ant-oracle.jar;F:\Jdev10135\integration\lib\orabpel.jar;F:\Jdev10135\integration\lib\orabpel-ant.jar;F:\Jdev10135\integration\lib\orabpel-common.jar;F:\Jdev10135\integration\lib\orabpel-thirdparty.jar;F:\Jdev10135\webservices\lib\orawsdl.jar;F:\Jdev10135\lib\xmlparserv2.jar;F:\Jdev10135\lib\xml.jar;F:\Jdev10135\j2ee\home\lib\oc4j-internal.jar;F:\Jdev10135\j2ee\home\lib\adminclient.jar;F:\Jdev10135\integration\bpm\support\files;F:\Jdev10135\jdev\lib\jdev.jar;F:\Jdev10135\ant\lib\xml-apis.jar;F:\Jdev10135\ant\lib\xercesImpl.jar;F:\Jdev10135\ant\lib\jakarta-oro-2.0.8.jar;F:\Jdev10135\ant\lib\commons-net-1.3.0.jar;F:\Jdev10135\ant\lib\ant.jar;F:\Jdev10135\ant\lib\ant-xslp.jar;F:\Jdev10135\ant\lib\ant-xalan1.jar;F:\Jdev10135\ant\lib\ant-weblogic.jar;F:\Jdev10135\ant\lib\ant-vaj.jar;F:\Jdev10135\ant\lib\ant-trax.jar;F:\Jdev10135\ant\lib\ant-swing.jar;F:\Jdev10135\ant\lib\ant-stylebook.jar;F:\Jdev10135\ant\lib\ant-starteam.jar;F:\Jdev10135\ant\lib\ant-oracle-adfp.jar;F:\Jdev10135\ant\lib\ant-nodeps.jar;F:\Jdev10135\ant\lib\ant-netrexx.jar;F:\Jdev10135\ant\lib\ant-launcher.jar;F:\Jdev10135\ant\lib\ant-junit.jar;F:\Jdev10135\ant\lib\ant-jsch.jar;F:\Jdev10135\ant\lib\ant-jmf.jar;F:\Jdev10135\ant\lib\ant-jdepend.jar;F:\Jdev10135\ant\lib\ant-javamail.jar;F:\Jdev10135\ant\lib\ant-jai.jar;F:\Jdev10135\ant\lib\ant-icontract.jar;F:\Jdev10135\ant\lib\ant-commons-net.jar;F:\Jdev10135\ant\lib\ant-commons-logging.jar;F:\Jdev10135\ant\lib\ant-apache-resolver.jar;F:\Jdev10135\ant\lib\ant-apache-regexp.jar;F:\Jdev10135\ant\lib\ant-apache-oro.jar;F:\Jdev10135\ant\lib\ant-apache-log4j.jar;F:\Jdev10135\ant\lib\ant-apache-bsf.jar;F:\Jdev10135\ant\lib\ant-apache-bcel.jar;F:\Jdev10135\ant\lib\ant-antlr.jar;F:\Jdev10135\jdk\lib\tools.jar;F:\Jdev10135\jdev\bin
    Any help on how to get rid of this error would be very useful.
    thanks,
    Mrityunjay
    Edited by: mrityunjay_kant on Nov 26, 2009 1:51 AM

    Did you check http://www.oracle.com/us/products/enterprise-manager/039537.pdf ?
    and http://www.oracle.com/technetwork/oem/soa-mgmt/index.html
    MANAGEMENT PACK FOR WEBCENTER SUITE
    Regards
    Rob
    http://oemgc.wordpress.com

  • Http Binding question

    Hello guys.
    I'm new in SOA Suite :) I have question about HTTP binding adapter. I downloaded MS wfetch application to test my REST composite application. I try invoke my composite :
    Host: 192.168.10.2:8001\r\n
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n
    Accept-Language: en-us,en;q=0.5\r\n
    Accept-Encoding: gzip,deflate\r\n
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
    Content-Type: application/x-www-form-urlencoded\r\n
    \r\n
    entry_id=test&entry_type=eee&file_name=aaa&mime_type=fff&meta_data=rrrr
    At response I got :
    HTTP/1.1 500 Internal Server Error\r\n
    When I try to invoke my REST composite using xml it's work fine !! At Oracle MAN :
    For HTTP POST request methods, you can select a payload type of either URL-encoded (ampersand-separated name-value pairs) or XML.
    Please help me.
    Edited by: user5427713 on Feb 22, 2011 11:49 PM
    Edited by: user5427713 on Feb 22, 2011 11:50 PM

    Thank you. I created composite where interface is JCA HTTP Bindung Adapter. At Adapter configuration I set
    Verb : POST
    Payload Type : url-encoded
    Endpoint : /soa-infra/services/CDP/CDPProxyREST/ProxyInterface
    At Wfetch :
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n
    Accept-Language: en-us,en;q=0.5\r\n
    Accept-Encoding: gzip,deflate\r\n
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
    Content-Type: application/x-www-form-urlencoded\r\n
    \r\n
    entry_id=test&entry_type=eee&file_name=aaa&mime_type=fff&meta_data=rrrr&uploadedFile=ddddd
    I got response error :
    HTTP/1.1 500 Internal Server Error\r\n
    X-Powered-By: Servlet/2.5 JSP/2.1\r\n
    X-ORACLE-DMS-ECID: 0000ItIYiI55yWK5qVp2iY1DN_6b00147b\r\n
    When I create request :
    Content-type: text/xml\r\n
    SOAPAction: "Request-Response"\r\n
    \r\n
    <soapenv: ... >
    <root:root><root:entry_id>ssadsd<root:entry_id><root:.......</root:root>
    I got normal response with data without error.

  • Unable to invoke Java WSIF Binding process

    Hi,
    I am using BPEL 10.1.3.1 version.
    - I created Greeting.java, then from JDev generate WebService for class but did not publish or deploy as web service
    - in BPEL created one partner link using same wsdl file from local file system
    - put invoke activity to call this partner link
    - deployed process
    - copied all class file with package folder inside $ORACLE_HOME/bpel/system/classes folder
    When i initiate the process i get error
    Failed get wsdl service definition.
    Failed to get a WSDL service that support the portType "{http://BusinessProcess/}Greeting" in WSDL definition "{http://BusinessProcess/}Greeting".
    Please verify that WSDL portType "{http://BusinessProcess/}Greeting" is supported by a service in WSDL file.
    Please help.

    Hi Jack
    Does your WSDL have the "binding" and "service" section? I do not use JDev or anything else to create the WSDL for me, I create it by hand so I don´t know how to help you in JDev, but it seens that JDev does not generate this sections and you must set then in order to use WSIF Bindings to Java or EJB.
    Regards
    Marcelo

  • Unable to invoke Java WSIF Binding wsdl from BPEL

    Hi,
    I am using BPEL 10.1.3.1 version.
    - I created Greeting.java, then from JDev generate WebService for class but did not publish or deploy as web service
    - in BPEL created one partner link using same wsdl file from local file system
    - put invoke activity to call this partner link
    - deployed process
    - copied all class file with package folder inside $ORACLE_HOME/bpel/system/classes folder
    When i initiate the process i get error
    Failed get wsdl service definition.
    Failed to get a WSDL service that support the portType "{http://BusinessProcess/}Greeting" in WSDL definition "{http://BusinessProcess/}Greeting".
    Please verify that WSDL portType "{http://BusinessProcess/}Greeting" is supported by a service in WSDL file.
    Please help.

    Hi Jack
    Does your WSDL have the "binding" and "service" section? I do not use JDev or anything else to create the WSDL for me, I create it by hand so I don´t know how to help you in JDev, but it seens that JDev does not generate this sections and you must set then in order to use WSIF Bindings to Java or EJB.
    Regards
    Marcelo

  • Mutt Binding Question [Solved]

    So I want to be able to abort/exit mutt's line editor with <esc> (like is default in many other programs..). I don't know why, but it seems there is no corresponding binding for this functionality. The default keybind for this is control-g listed here as "n/a."  If I do "macro editor <esc> \cg" escape will just put ^G in the line editor. Does anyone know how to fix this?
    Last edited by angelic_sedition (2014-04-27 05:29:29)

    jasonwryan wrote:http://unix.stackexchange.com/questions … pt-in-mutt
    No real solution on the mutt side it would seem.. that's pretty dissapointing. Enter is basically the same behaviour if nothing is typed and "macro editor <esc> <enter>" works for searches. That's useless for the editor when adding headers though since it will just go to the next header, so I've found the next best solution to be using something like xsendkey or xdotool to fake control-g:
    macro editor \e "<enter><shell-escape>xsendkey Control+g<enter>"
    It will just type the shell command without the first enter when adding headers. I guess this suffices (it doesn't cause any slowdown at least; index bindings work immediately after hitting escape) though I'm kind of surprised mutt doesn't and can't do this..

  • Invoking Session EJB (with WSIF binding) from a BPEL process

    Hi,
    I am invoking a stateless session bean from a bpel process. The bpel process is throwing:
    Failed to lookup EJB home using JNDI name 'ejb/visilient/BPELHelper'; nested exception is:
         java.lang.NullPointerException
    I can see the ejb jndi name under 'default' app.
    Any ideas?
    TIA

    It is a lovely sample... However, it doesn't cover Complex Types and Exception handling. It would be nice if each example was thorough. Would be a great help.
    What I was hoping to achieve is this:
    1) Have an EJB deployed
    2) Use WSIF for BPEL Processes.
    3) Use Web Service interface for AJAX calls etc.
    I was hoping that this would be the exact code base and that only a single EJB would be deployed.
    So far, it looks like JDeveloper will only support Java WSIF bindings. No EJB Bindings. It also looks like JAXRPC is the best supported WS interface. With that in mind, it deploys a seperate subset of the EJB. Thus causing two seperate deployments. I am working on trying all this out over the next couple days. See where I get.
    Anyways, do you have any recommendation for accomplishing what I am wanting to do? 1 deployed EJB, with a WS interface and allowing WSIF bindings. Any other references for me to look at? Should I not be thinking about using JDeveloper for any of the WSDL generation and do all this manually for now?
    Thanks,
    BradW

  • Adding OSX server to AD--binding questions and server type

    Currently my Macs are simply bound to AD, but I am going to add ML server to the mix so I can simplify management. After all my reading I am still unsure what to do with my current clients. I know the server is bound to both AD and OD, but does each client need to be bound to both?
    Regarding the server type is, should my OD be a master, replica, or relay?

    Yes, you have to bind the client and server to both OpenDirectory and ActiveDirectory. The configuration is commonly called "Magic Triangle". You'll find lots of examples online under that moniker.

  • Binding question i think (:

    I'm working on a website (holiday homes for rent). One of the
    pages is contact.cfm. People visiting the site will come to that
    page after clicking a text link "
    Contact us about this house"on a result page with available
    holiday homes. The problem is that that result page is not an
    actual part of my webpage but a external page loaded in a frame in
    my website. The contact link for a particular house looks like
    this:
    http://www.a20realestate.com/contact.cfm?ref=REF000176
    What I would like is that the reference number appears in my
    contact.cfm page
    How do I accomplish that? Has it something to do with formurl
    or binding?
    Thanks in advance

    Url variables passed to contact.cfm are accessible in the
    url structure
    <!--- in contact.cfm --->
    <cfif isDefined("url.ref")>
    <cfoutput>reference number is
    #url.ref#</cfoutput>
    </cfif>
    To display all url variables ..
    <cfdump var="#url#">

  • Session Binding Question

    Hello All,
    I might be missing something, but I am trying to bind a session when a user logs
    in and out of my web application in order to be able to actively track online usage,
    however I can't seem to get it to work.
    I would appreciate any help that may shed some light on the problem.
    I invoke the bind listener in a servlet thus:
    session.setAttribute("listener", listener);
    I have a simple BindListener Class:
    import javax.servlet.http.*;
    public class BindListener implements HttpSessionBindingListener
    public int numSessions = 0;
    public BindListener()
    public synchronized void valueBound(HttpSessionBindingEvent event)
    numSessions++;
    public synchronized void valueUnbound(HttpSessionBindingEvent event)
    numSessions--;
    public int getNumSessions()
    return numSessions;
    However when I call a jsp page to monitor the online connections with the command
    BindListener listener = new BindListener();
    listener.getNumSessions()
    It always reports a 0 value even though I have serveral sessions running.
    Can anyone help explain why the counter is not working?
    I would extremely grateful of any assistance on this issue.
    Thanks in advance.
    Regards
    Les,

    Greetings,
    I would appreciate any help that may shed some light
    on the problem.First, it's important to understand a couple things about binding listeners:
    1. A session binding listener is an object that listens for its own binding; IOW, it receives notifications when it specifically is bound to or unbound from the session; and
    2. A session binding listener is specific to the session to which it is bound.
    I invoke the bind listener in a servlet thus:
    session.setAttribute("listener", listener);After the container binds the specified listener instance to this particular session, it calls the object's valueBound method...
    Conversely, when (after) the object is removed from the session by calling
        session.removeAttribute( "listener" );or
        session.invalidate();  // Which implicitly calls the above ;)then it's valueUnbound method is called.
    I have a simple BindListener Class:
    import javax.servlet.http.*;
    public class BindListener implements
    HttpSessionBindingListener
    public int numSessions = 0;
    public BindListener()
    public synchronized void
    valueBound(HttpSessionBindingEvent event)Synchronizing this method only keeps multiple threads from concurrently calling it on this instance... Since it's the current container instance that calls these (container callback) methods, there will (should) be only one thread calling it...
    numSessions++;
    }numSessions will only ever be 1 (at most), since this method only gets called when the instance is bound to the session - which is only when your user logs in. Again, session objects ('listener' or otherwise), unless persisted, exist only for the life of the current session...
    public synchronized void
    valueUnbound(HttpSessionBindingEvent event)
    numSessions--;
    }Refer again to the above. Incidentally, what are you trying to achieve with this?
    public int getNumSessions()
    return numSessions;
    }Refer again to the above. :)
    However when I call a jsp page to monitor the online
    connections with the command
    BindListener listener = new BindListener();This simply invokes the class' constructor and - most importantly in this case ;) - creates a new instance of the class, and...
    listener.getNumSessions();
    It always reports a 0 value even though I haveSince this is a new instance whose 'numSessions' member is initialized to '0', the accessor is reporting correctly.
    To get an existing listener object for the current session use:
    <jsp:useBean id="listener" scope="session" class="BindListener"/>...then one of:
    <jsp:getProperty name="listener" property="numSessions"/>
    <%-- or --%>
    <%= listener.getNumSessions() %>Keep in mind, however, that the above only retrieves the listener object for, again, the current session and whose 'numSessions' will still only be '1' (as currently implemented ;).
    serveral sessions running.A session is a reference to a client's life in the application (refer to thread http://forum.java.sun.com/thread.jsp?forum=13&thread=249978 for further discussion on "session life"); one session cannot access the (in memory ;) information of other sessions...
    Can anyone help explain why the counter is not
    working?Refer again to all the above. :)
    I would extremely grateful of any assistance on this
    issue.If your goal is to track "online usage" then you're on the right track. However, as explained, the current implementation will only count the current session. To keep track of all sessions for a user your bean needs to persist and re-load the current count statistics for the user. The following illustrates:
    import java.io.*;
    import java.util.*;
    import javax.servlet.http.*;
    * <p>Tracks user login counts.  A count of user's accesses is stored
    * in a file within the webapp space.</p>
    * <p>NOTE: This class is intended only to illustrate a method for
    * managing persistent session tracking.</p>
    * @author     Tony "Vee Schade" Cook, [email protected]
    public class SessionTracker implements HttpSessionBindingListener
         * <p>Creates a new session tracking instance.
         * @param  sessionFile     the user specific session file.
        public SessionTracker( File sessionFile )
            this.sessionFile = sessionFile;
         * <p>Loads current session count.
        public void valueBound( HttpSessionBindingEvent event )
            Properties data = new Properties();
            try {
                data.load( new FileInputStream( sessionFile ) );
                numSessions = Integer.parseInt( data.getProperty( "count" ) );
            catch( Exception ex ) {
                /* Assume no persistent data, or corrupt/invalid...
                 * either way, accept default numSessions = 0
            /* Remember this session too! ;)
            numSessions++;
         * <p>Stores current session count for later retrieval.
        public void valueUnbound( HttpSessionBindingEvent event )
            Properties data = new Properties();
            data.setProperty( "count", Integer.toString( numSessions ) );
            try {
                data.store( new FileOutputStream( sessionFile ), sessionFile.toString() );
            catch( Exception ex ) {
                /* Sorry, Charley - "log" the error for the administrator.
                ex.printStackTrace();
         * <p>Returns current session count for this user.
        public int getNumSessions()
            return numSessions;
        private File sessionFile;
        private int numSessions;
    }The above should actually be using a database for the persistence if you also want to be able to efficiently access the count statistics from a separate session. Yet, the above illustrates what is needed (session persistence) and should get you started in the right direction. :)
    I hope this helps.
    Thanks in advance.
    Regards
    Les,Regards,
    Tony "Vee Schade" Cook

  • Binding Question

    Ok, I'm slowly, slowly starting to get my tiny little brain around the binding API.
    I've worked out the following bit of code to 'or' together a bunch of boolean values:
    BooleanProperty parent = new SimpleBooleanProperty();
    BooleanProperty child1 = new SimpleBooleanProperty();
    BooleanProperty child2 = new SimpleBooleanProperty();
    BooleanProperty child3 = new SimpleBooleanProperty();
    parent.bind(child1.or(child2).or(child3));
    System.out.println(String.format("0) Parent=%s (child1=%s, child2=%s, child3=%s)",
            parent.get(), child1.get(), child2.get(), child3.get()));
    child1.set(true);
    System.out.println(String.format("0) Parent=%s (child1=%s, child2=%s, child3=%s)",
            parent.get(), child1.get(), child2.get(), child3.get()));Seems obvious now but originally I spent a lot of time working out why this wouldn't work (I guess I was thinking that since the '.bind' method was like an 'equals', the '.or' method was similar):
    // don't do this at home
    parent.or(child1);
    parent.or(child2);
    parent.or(child3);My problem now is that I don't know my variables up front. Imagine I've got a class that gets boolean values passed to it to bind to, how do I progressively bind to it in a nice way? Do I need to keep track of the BooleanBinding instance and add to this?
    The best I've come up with for doing this is the following, but this seems horribly complex for what I want to do and I reckon (hoping) I'm missing something. Can anyone streamline the following at all?
    public class MyClass
        private BooleanProperty parent;
        private BooleanProperty first;
        private BooleanBinding binding;
        public MyClass()
            parent = new SimpleBooleanProperty();
        public void trackThisGuy(BooleanProperty child)
            if (first == null)
                // first guy we have to bind directly
                parent.bind(child);
                first = child;
            else if (booleanBinding == null)
                // second guy we have to create our binding with the first guy
                booleanBinding = first.or( child );
                parent.bind(booleanBinding);     
            else
                // everyone else we add to our binding and rebind
                booleanBinding = booleanBinding.or(child);
                parent.bind(booleanBinding);
    }I feel like I should be able to replace that whole mess of if-else statements with a single line of something like parent.or(child) but, as we found out above, that doesn't work.
    Currently I'm just holding onto the BooleanProperty's passed in and then recreating the whole binding each time but this is not nice either.
    Cheers for the help,
    zonski

    Hi Michael,
    I have a few scenarios where I have hit this issue.
    One example is the 'glasspane' example I have mentioned in a few posts earlier. In this, I have a top-level StackPane with a 'glasspane' in it that blocks the dialog (by preventing input and showing a loading cursor) whenever one of the child controllers is 'busy' (i.e. it is running a background thread).
    The child controllers get added and removed dynamically on a regular basis. So I'd like to be able to have a method to do something like:
    public void registerBusyWorker(BusyWorker child)
        glassPane.visibileProperty().orWithCurrentBinding(child.busyPoperty());
    public void removeBusyWorker(BusyWorker child)
        glassPane.visibileProperty().removeFromCurrentBinding(child.busyPoperty());
    } I've just used those method names to be explicit about what I am trying to do, I'm not suggesting they would be good names.
    Of course I could implement this with the low level API and I could do it the old fashion way and roll my own event handlers, etc. I was just expecting the high level binding to give me something nice in this space. It could be that my case falls outside the 80-20 rule and it may not be worth catering for, but I've certainly hit it. Maybe my expectations of the API have been influenced by the Hibernate Criteria API too (http://docs.jboss.org/hibernate/core/3.3/reference/en/html/querycriteria.html) which has similar Java based 'expressions' but a totally different way of doing it.
    If I implemented it using the low-level binding API I believe it would look like this:
    private List<BusyWorker> busyWorkers = new ArrayList<BusyWorker>();
    public void registerBusyWorker(BusyWorker child)
        busyWorkers.add(child);
        child.busyProperty().addListener(this);
        updateState();
    public void removeBusyWorker(BusyWorker child)
        busyWorkers.remove(child);
        child.busyProperty().removeListener(this);
        updateState();
    public void changed(ObservableValue<? extends Boolean> source, Boolean oldValue, Boolean newValue)
        updateState();
    protected void updateState()
        for (BusyWorker : busyWorkers)
            if (busyWorker.isBusy())
                glassPane.setVisible(true);
                return;
        glassPane.setVisible(false);
    }

  • Access/SQL to PDF data binding question

    Hello,
    The goal = Using an access form, fill out fields which populate a table on the sql server. Open a PDF and data bind the fields to that table. Lock the fields with the correct information. Then send to an individual with read only data that is NOT bound to the server.
    I can get to binding the data and seeing the correct information populate on the PDF fields, but I'm stuck on how to make the fields read only and turn the data binding off through script.
    Any and all help is greatly appreciated!!
    I'm using LCD ES2, Access 2010, SQLExpress 2008 R2
    Thank you,
    James

    There are a number of ways you could do it, but the most seamless involve some type of programming. Here's a good article that discusses some of the ways: http://acrobatusers.com/articles/getting-external-data-acrobat-x-javascript
    In item #3 the article touches on the importTextData method. If you export the spreadsheet to a tab-delimited text file, you can use the doc.importTextData method to (manualy) import a row of data from the file: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.502.html
    This is probably the simplest method that will get you what you want. The first row of the data file has to be the tab-delimited field names.
    Another way that can be automated would be to create an FDF file using a macro in Excel and then loading the FDF into the form. If you haven't done this sort of thing before, it will involve a bit of a learning curve.

  • Simple binding question

    Hello,
    I have an inputText bound to a backed bean property in contrast to a an ADF bind attribute, the getter method for the inputText look up the value from a hashMap, while going through the debugger, it looks like the code returning the correct value, however, it does not show up on the page, could someone give me a hint to what is wrong with the below code, thnx
    public String getFirstname() {
    Long custid =
    (Long)ADFUtils.getBoundAttributeValue(getBindings(), "currentCustomer");
    if (custid != null && customerLookUp != null) {
    Customer cust = (Customer)customerLookUp.get(custid);
    if (cust != null)
    return cust.getCustFirstName();
    return this.firstname;
    }

    Hi,
    did you also provide a setter method before binding it with EL? If no - give it a try as it could solve the issue
    Frank

Maybe you are looking for