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

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

  • SaxParser error while using WSIF bindings in BPEL

    Hi All,
    I am using WSIF bindings in BPEL to invoke a java class.
    This java classs is using Jersey Client. For this I have imported relevant jersey jar files version 1.1.4.1.
    My java class is getting invoked and even the jersey client jars are also recognized by my project.
    But I am getiing the following SAX parser error:
    *Operation failed!; nested exception is: javax.ws.rs.WebApplicationException: javax.xml.bind.JAXBException: Error creating SAXSource - with linked exception: [org.xml.sax.SAXNotSupportedException: SAX feature 'http://xml.org/sax/features/external-general-entities' not supported.]*
    I found the following details when checked the logs.
    JAXP feature XMLConstants.FEATURE_SECURE_PROCESSING cannot be set on a SAXParserFactory. External general entity processing is disbaled but other potential securty related features will not be enabled.
    Please let me know what should be done in order to solve this issue.
    Thanks in advance!!!

    I am having the same problem in a non-BPEL application. I am using Oracle MDS in an application that is also using Jersey 1.1.4.1 and it blows up Jersey 1.1.4.1 in the same way.
    Oracle MDS has a dependency on Oracle XDK, an XML parser (xmlparserv2.jar). xmlparserv2.jar registers Oracle's oracle.xml.jaxp.JXSAXParserFactory using the Java ServiceLoader API (by using the file META-INF/javax.xml.parsers.SAXParserFactory.
    Jersey doesn't like Oracle's JXSAXParserFactory, as you can see. From what I've found so far, it seems that the Oracle SAXParserFactory is clamped down for security and Jersey will not work with it. Here is a more complete stack trace that I have:
    [org.xml.sax.SAXNotSupportedException: SAX feature 'http://xml.org/sax/features/external-general-entities' not supported.]
    at com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.getSAXSource(AbstractJAXBProvider.java:178)
    at com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider.readFrom(XMLRootElementProvider.java:110)
    at com.sun.jersey.core.provider.jaxb.AbstractRootElementProvider.readFrom(AbstractRootElementProvider.java:105)
    Caused by: org.xml.sax.SAXNotSupportedException: SAX feature 'http://xml.org/sax/features/external-general-entities' not supported.
    at oracle.xml.parser.v2.NonValidatingParser.setFeature(NonValidatingParser.java:1974)
    at oracle.xml.parser.v2.SAXParser.setFeature(SAXParser.java:270)
    at oracle.xml.jaxp.JXSAXParserFactory.newSAXParser(JXSAXParserFactory.java:92)
    at com.sun.jersey.core.provider.jaxb.AbstractJAXBProvider.getSAXSource(AbstractJAXBProvider.java:174)
    In my case, Jersey seems to ignore the system property that I set with -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
    I am trying to figure out a way to satisfy the dependency that my app has on Oracle's XDK (xmlparserv2.jar) without having its SAXParserFactory take over Jersey.
    I'll try to post here if I ever solve my problem because it sounds the same as yours.

  • Problem while using HTTP Binding in BPEL

    Hello
    I have a scenario where I am suppose to access a JSON based RESTful API from BPEL. I have created a HTTP binding adapter for the given endpoint.
    When I test the process I am getting the following error
    <part name="summary">
    <summary>oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): REPLACE_WITH_ACTUAL_URL</summary>
    </part>
    <part name="detail">
    <detail>Unable to access the following endpoint(s): REPLACE_WITH_ACTUAL_URL</detail>
    </part>
    And while I was compiling it in JDeveloper I am getting the following error
    Warning(24,52): Failed to Find Binding "Get":"{http://xmlns.oracle.com/pcbpel/adapter/http/ProcessProject/GetContact/Get}Request_Response_pt" in WSDL Manager
    Can anyone please help me with this?
    Thanks

    Thank you for the reply
    I am able to contact the same endpoint from SoapUI and also the browser. As far as I know there is no proxy that is required but I will still go ahead and ask the provider.
    And do you have any clue why I am getting the error in Jdev when I compile the project?
    And another thing that I would like to mention is that the WSDL that the HTTP Binding adapter created is incomplete as in it does not have the <wsdl:service> tag, is that something that I should be looking out for?
    This is what my WSDL (generated by HTTP Binding Adapter) looks like
    <?xml version="1.0" encoding="UTF-16"?>
    <wsdl:definitions
    name="Get"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/http/ProcessProject/GetContact/Get"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/http/ProcessProject/GetContact/Get"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:msg_in_out="http://TargetNamespace.com/http"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
    <plt:partnerLinkType name="Request_Response_plt">
    <plt:role name="Request-Response_role">
    <plt:portType name="tns:Request_Response_ptt"/>
    </plt:role>
    </plt:partnerLinkType>
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://TargetNamespace.com/http" schemaLocation="xsd/Get.xsd"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="root_msg_in">
    <wsdl:part name="root" element="msg_in_out:root"/>
    </wsdl:message>
    <wsdl:message name="root_msg_out">
    <wsdl:part name="root" element="msg_in_out:root"/>
    </wsdl:message>
    <wsdl:portType name="Request_Response_ptt">
    <wsdl:operation name="Request-Response">
    <wsdl:input message="tns:root_msg_in"/>
    <wsdl:output message="tns:root_msg_out"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>
    Thanks
    Edited by: user1165407 on Aug 1, 2012 3:54 PM

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

  • Dynamic call to a partnerlink using WSIF.

    Hi,
    I've already seen the "DynamicPartnerLink" sample and the "Making BPEL Processes Dynamic" cookbook.
    I want to do something similar, but using WSIF. I want to be able to change binding information in runtime to be able to call Java/EJB using WSIF.
    According to a Edwin (ekhodaba) post, "The only think that you can change at runtime in the address/binding information". But I don't know if this is only possible for SOAP binding.
    First, I tried a similar approach to the Dynamic cookbook and example. I had a parterlink to a service with Java binding information. This worked fine. Then I changed the service name (like in the cookbook using a reference variable to change the service name, no address) to use another service with the same binding information but a different implementation Java class and I got a binding exception.
    Eventually I will also wanto to do that with EJB.
    Is there any way to change in runtime the WSIF binding information to call a EJB/Java class ? Any suggestions to get it? I want to have several Java classes or EJB with the same interface and be able to choose in runtime which one to call using WSIF.
    Furthermore, It'd be interesting to change the Java/EJB classname, jndiName, initialContextFactory, jndiProviderURL, etc. (e.g. reading from DB or a configuration file)
    Strictly speaking, this information is not needed in development time, it's only binding information so it is only useful in runtime.
    I've also tried a service per Java class, but the service name can't be changed in the partnerlink in runtime, you'll get a binding error.
    Thanks.

    Hi, sure you will need to register your private certificate with ADF Mobile's embedded JVM. This is a security mechanism - the JVM we embed will only recognize certificates from well-know CA out of box. However, you can register your private certificate with the JVM. The steps are described in the ADF Mobile Developer Guide: http://docs.oracle.com/cd/E35521_01/doc.111230/e24475/security.htm#CDDCCDFF.
    Please note that you will need to be very careful when registering the JVM - extra spaces for example will cause certificate error and it could be hard to diagnose. Please ensure all the fields matches exactly with your private certificate's fields.
    Thanks,
    Joe Huang

  • How to access the ejb using WSIF

    I have deployed my Bean Managed Persistance Entity Bean in Weblogic 8.1 App Server. Trying to access the ejb from Synchronous BPEL process using WSIF. I am getting following error
    - WSIF0011I: Preferred port 'EJBPort' was not available
    org.apache.wsif.WSIFException: Unable to find an available port
         at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)
         at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)
         at com.test.wsif.RunInventory.main(RunInventory.java:55)
    How to resolve the above said problem??
    Here is my Inventory.wsdl file
    <?xml version="1.0" ?>
    <definitions targetNamespace="http://wsifservice.Inventory/"
    xmlns:tns="http://wsifservice.Inventory/"
    xmlns:typens="http://wsiftypes.addressbook.service.ejb/"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:format="http://schemas.xmlsoap.org/wsdl/formatbinding/"
    xmlns:ejb="http://schemas.xmlsoap.org/wsdl/ejb/"
    xmlns="http://schemas.xmlsoap.org/wsdl/">
    <!-- type defs -->
    <types>
    <xsd:schema
    targetNamespace="http://wsiftypes.addressbook.service.ejb/"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <xsd:complexType name="vecdetails">
    <xsd:sequence>
    <xsd:element name="make" type="xsd:string"/>
    <xsd:element name="bodystyle" type="xsd:string"/>
    <xsd:element name="model" type="xsd:string"/>
    <xsd:element name="quantity" type="xsd:int"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    </types>
    <!-- message declns -->
    <message name="getInventoryRequestMessage">
    <part name="vecdetails" type="typens:request"/>
    </message>
    <message name="getInventoryResponseMessage">
    <part name="response" type="typens:response"/>
    </message>
    <!-- port type declns -->
    <portType name="Inventory">
    <operation name="getInventory">
    <input name="getInventoryRequest" message="tns:getInventoryRequestMessage"/>
    <output name="getInventoryResponse" message="tns:getInventoryResponseMessage"/>
    </operation>
    </portType>
    <!-- binding declns -->
    <binding name="EJBBinding" type="tns:Inventory">
    <ejb:binding/>
    <format:typeMapping encoding="Java" style="Java">
    <format:typeMap typeName="xsd:string" formatType="java.lang.String" />
    </format:typeMapping>
    <operation name="getInventory">
    <ejb:operation
    methodName="getInventory"
    parameterOrder="make bodystyle model quantity"
    interface="remote" returnPart="response" />
    <input name="getInventoryRequest"/>
    <output name="getInventoryResponse"/>
    </operation>
    </binding>
    <!-- service decln -->
    <service name="InventoryService">
    <port name="EJBPort" binding="tns:EJBBinding">
    <!-- Put vendor-specific deployment information here -->
         <ejb:address className="com.poc.inventoryejb.InventoryHome"
              jndiName="Inventory"
    initialContextFactory="weblogic.jndi.WLInitialContextFactory"
         jndiProviderURL="t3://localhost:7001"/>
    </port>
    </service>
    </definitions>

    Try to restart BPEL Server. When I tested WSIF Bindings I had to restart server after every changes in WSIF WSDL.
    Alexey.

  • Problems calling java classe using WSIF in BPEL 10.1.3.3

    Hi,
    I am working on a POC for a telecom gaint in Sweden. One of their requirement is to invoke java library.
    Inorder to do it, I have followed the below steps:
    1. Wrote a wrapper java code to a class in this library.(Attached with this mail)
    2. Using JDEV 10.1.3.3 created a wsdl file of WSIF binding type for invoking this wrapper class.(Attached with this mail.)
    3. Created the required fascade classes using the SCHEMAC option in command prompt.
    4. Placed all the class files including the wrapper class file in %BPELHOME%\bpel\system\classes
    5. Created a BPEL process to invoke the wsif wsdl.
    However while Invoking the BPEL process I am getting the error"com.collaxa.cube.ws.wsif.providers.java.WSIFOperation_Java@9ecad : Could not invoke 'authenticate'; nested exception is:
         org.collaxa.thirdparty.apache.wsif.WSIFException: No method named 'authenticate' found that match the parts specified"
    Can someone tell me how to resolve this issue.
    I have to do a presentation on this in 2 days.
    Thanks for the help.
    Regards,
    Gautham

    Hi in BPEL XML,
    Enter the credientials,
    I have pasted the Sample BPEL file.
    <?xml version="1.0"?>
    <BPELSuitcase>
         <BPELProcess id="BankTransferFlow" src="BankTransferFlow.bpel">
              <partnerLinkBindings>
                   <partnerLinkBinding name="client">
                        <property name="wsdlLocation">BankTransferFlow.wsdl</property>
                   </partnerLinkBinding>
                   <partnerLinkBinding name="bankTransfer">
                        <property name="wsdlLocation">BankTransferServiceDesign.wsdl</property>
                        <property name="wsdlRuntimeLocation">BankTransferService.wsdl</property>
                        <property name="java.naming.security.principal">oc4jadmin</property>
                        <property name="java.naming.security.credentials">welcome1</property>     
                        <property name="dedicated.connection">true</property>          
                   </partnerLinkBinding>
              </partnerLinkBindings>
    <configurations>
    <property name="testIntroduction"><![CDATA[
         This demo showcases the integration of session beans into
         an end-to-end business process. The database has 2 accounts 11111 and 22222 and both of them have initial balance 1000.
         ]]></property>
    <property name="defaultInput"><![CDATA[<BankTransferFlowRequest xmlns="http://samples.otn.com">
    <fromAccount>11111</fromAccount>
    <toAccount>22222</toAccount>
    <amount>10</amount>
    </BankTransferFlowRequest>
    ]]></property>
    <property name="transaction">participate</property>
    <property name="inMemoryOptimization">true</property>
    </configurations>          
         </BPELProcess>
    </BPELSuitcase>
    Thank you,
    [email protected]

  • Error while using Java bindings in BPEL (WSIF)

    Hi,
    I have a requirement to invoke a java method from BPEL process using WSIF and get the response back from it.
    MY java method accepts an input parameter which is object of anothe class.
    When I tried to invoke the java class from BPEL, I am getting the following error:
    [email protected] : Could not invoke 'getFullName'; nested exception is: org.collaxa.thirdparty.apache.wsif.WSIFException: Class 'com.services.test.Employee' is not compatible; nested exception is: java.lang.NullPointerException
    Please find below the java class that I created:
    package com.services.test;
    import com.services.test.Employee;
    import com.services.test.EmployeeFullRecord;
    public class EmployeeRecord {
    public EmployeeRecord() {
    public static void main(String[] args) {
    EmployeeRecord employeeRecord = new EmployeeRecord();
    public EmployeeFullRecord getFullName(Employee emp) {
    String fullName = emp.getFname() + emp.getLname();
    EmployeeFullRecord emp1 = new EmployeeFullRecord();
    emp1.setFullName(fullName);
    return emp1;
    The following is the wsdl that I created with JAva bindings:
    <types>
    <schema attributeFormDefault="qualified"
    elementFormDefault="qualified"
    targetNamespace="urn:EmployeeRecord"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="Employee">
    <sequence>
    <element name="fname" type="xsd:string" />
    <element name="lname" type="xsd:string" />
    </sequence>
    </complexType>
    <complexType name="EmployeeFullRecord">
    <sequence>
    <element name="fullName" type="xsd:string" />
    </sequence>
    </complexType>
    </schema>
    </types>
    <message name="EmployeeRequestMessage">
    <part name="emp" type="tns:Employee"/>
    </message>
    <message name="EmployeeResponseMessage">
    <part name="emp1" type="tns:EmployeeFullRecord" />
    </message>
    <portType name="Employee">
    <operation name="getFullName">
    <input message="tns:EmployeeRequestMessage" />
    <output message="tns:EmployeeResponseMessage" />
    </operation>
    </portType>
    <binding name="JavaBinding" type="tns:Employee">
    <java:binding/>
    <format:typeMapping encoding="Java" style="Java">
    <format:typeMap typeName="tns:Employee" formatType="com.services.test.Employee"/>
    <format:typeMap typeName="tns:EmployeeFullRecord" formatType="com.services.test.EmployeeFullRecord"/>
    <format:typeMap typeName="xsd:string" formatType="java.lang.String" />
    </format:typeMapping>
    <operation name="getFullName">
    <java:operation methodName="getFullName" />
    <input/>
    <output/>
    </operation>
    </binding>
    <service name="Employee">
    <port name="JavaPort" binding="tns:JavaBinding">
    <java:address className="com.services.test.EmployeeRecord"/>
    </port>
    </service>
    Please let me know if I have missed out something.
    THanks in advance!!!

    Hi,
    I have created another such service as above and placed the class files in <oraclehome>/bpel/system/classes and invoked the java code from bPEL.
    Now i am getting the following error:
    com.collaxa.cube.ws.wsif.providers.java.WSIFOperation_Java@98065 : Could not invoke 'createIdentity'; nested exception is: org.collaxa.thirdparty.apache.wsif.WSIFException: Class 'com.testx.wam.services.gen.identity.CreateRequest' is not compatible; nested exception is: javax.xml.bind.UnmarshalException: unexpected element (*uri:"",* local:"createRequest"). Expected elements are <{http://services.test.com/shared/xmlschema/user/1}CreateResponse>
    My question is why am I getting URL as empty when I am actually passing the URL to the service. I have highlighted the uri which is showing as empty above.
    Please help me solve this issue.
    Thanks in advance!!!

  • 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

  • BPEL TO BPEL using WSIF

    Can I call One BPEL from another using WSIF?
    Currently when I looks at the BPEL WSDL it has SOAP binding. How can I change the BPEL's WSDL to expose WSIF biniding.
    Also will the WSIF binding work if both BPELs are in different container.
    Thanks for your help
    - Piyush

    I don't think BPEL exposes it self as WSIF. You can do it via optSoapShortcut property process or domain level. If they are in same container/same jvm then it will be native.

  • How to use the bind variable in custom.pll

    Hi,
    How to use the bind variable in custom.pll.Its through error.
    any one gem me.
    very urgent.
    M.Soundrapandian.

    Hello,
    Please, ask this kind of questions in the e-business forum.
    Francois

  • How to use a bind variable in an IN clause

    I am trying to use a bind variable in an IN clause where the column is a varchar2 type. Something like:
    select *
    from test
    where test_column in (:bindVariable)I have tried assigning the bind variable comma separated strings (eg. test,test,test) and comma separated strings with quotes (eg. 'test','test','test'). Neither of these work. Does anyone know the correct way to do this?
    Thanks in advance.

    http://tkyte.blogspot.com/2006/06/varying-in-lists.html
    Presents many options.

  • How to use a bind variable in a table-validated flexfield

    Hi,
    I want to prepare a table-validated descriptive flexfield, which uses as source a select statement.
    So, in the form "Validation table information" I use as table name the statement:
    (SELECT my_procedure('test_value') FROM DUAL)
    Up to here it works fine.
    But instead of 'test_value' I want to use the value of a field in the form or a value of another flex (using $FLEX$ bind variables).
    Please advice if it is possible to perform this in "table name" statement. I use it in "where/order by" clauses and it works fine.
    Thank you.

    Hi,
    I have posted in the place where you did advise,
    https://forums.oracle.com/thread/2560192
    but they reply there that this is an EBS question, with no much relation to dev tools in general.
    Please, can I continue in this place with this question?
    Thank you.

Maybe you are looking for