How to call Weblogic Portal 8.1 Datasync programmatically ?

Hi,
I've a cluster domain with a adminServer and cluster1(managed1 and managed2).
The web application datasync works fine on the adminServer, bootstraping and merging from a jar file and propagating the updated data items to the managedServers.
But I need to call the data items syncronization for a jar file programmatically. Is that possible ?
How can I do this as the propagation mechanism is taken care of by DataSyncServlet ? Do I really have to use the web message protocol mechanism ? What's the message sequence ?
What I've tried:
I've created a WLI bpm application that connects to the adminServer and does the same servlet work of __bootstrap_dr.class. (As far as I can see decompiling the class). The bootstrap and refresh on the adminServer occurs perfectly, but the propagation to the managed servers doesn't happen.
Wesley Imamura.
Accurate Software (Bea partner)
SP - Brazil
Here is the code:
HashMap env = DataRepositoryFactory.getMasterEnvClone();
env.put("BOOTSTRAP_MODE", "TIMESTAMP_MERGE");
env.put("BOOTSTRAP_PERSISTENT_STORE", "JAR_FILE_STORE_READ_ONLY");
env.put("BOOTSTRAP_JAR_FILE_STORE_FILE_NAME", dataSyncFileName);
// To register proxy repositories for receiving updates ???
env.put("PROXY_DATA_REPOSITORY", "EJB_PROXY_DATA_REPOSITORY");
env.remove("BOOTSTRAP_JAR_FILE_STORE_RESOURCE_NAME");
env.remove("BOOTSTRAP_JAR_FILE_STORE_INPUT_STREAM");
env.remove("BOOTSTRAP_DATA_REPOSITORY_DESCRIPTION");
DataRepositoryFactory.boostrapMasterDataRepository(env);

Joydeep,
WebLogic Platform 8.1 is not supported on Win 98 and Red Hat 8.0. Please
refer to the following url for more information.
http://e-docs.bea.com/platform/docs81/support/supp_plat.html#1048419
Regards,
Raj Alagumalai
WebLogic Workshop Support
"Joydeep Paul" <[email protected]> wrote in message
news:3f4e9723$[email protected]..
I've receieved the Weblogic Server 8.1 Evaluation version. I've installedit successfully. But while I try to start the Weblogic Server the progress
bar shows the completion of the server start but the indicator does not turn
green. What might be the reason.Same is the problem with Red hat Linux 8.0 ?
Please send in the solution

Similar Messages

  • How to call a portal KM URL link from WAD template Link

    Hi All
    I  am trying to call a Portal KM URL Link from the web template using the link control.
    I cannot figure out whare and how to put the portal KM URL Link into the web application web link.
    Your help is greatly appreciated.
    Thanks
    Karen

    Add content administration role to the user.
    The the content administration tab would be visible to the user in the main menu tab.
    Then in content administration tab, configure the URL for KM URL tab or link.
    This would be done by EP experts. Please contact your EP experts to do.
    Hope this would help you.

  • How to install Weblogic Portal 10.3.0

    Dear All,
    I need to install Weblogic Portal 10.3.0 in two flavaors. 1) Single instance 2)In a cluster.
    I'm relative new to Weblogic Portal. The platform is solaris 10 64 bit. Can anyone provide a step-by-step installation sequence?
    I read the installation guide but it says nothing about how the installation would work. This is what I have done till now:
    1. Installed the WLP 10.3.0 with Weblogic Server, Weblogic Portal and Workshop components.
    2. After installation, ran config.sh command and configured Admin server and one managed server (to support portal).
    But after my domain is created and I start my managed server, I see nothing in the deployments page. There are no errors either in the log files.
    IS there a step I'm missing? Do we need to manually deploy portal application? if yes, how?
    Any help would be truly appreciated.
    rgds,
    rb

    Hi RB!
    Sounds like you just starting off fresh with WLP. This may or may not help. I suggest learning some of the basics of creating a Portal.Ear file and deploying it to other environments.
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/getting_started/introduction.html#wp1005589
    Using WebLogic Portal
    If you are new to WebLogic Portal, a short tutorial is provided to help you get started. See Tutorials – Getting Started with WebLogic Portal for more information. The tutorials discuss setting up a portal development environment, creating a portal, and assembling a desktop in your staging environment.
    Tip:      If you are unfamiliar with the Eclipse development environment on which Workshop for WebLogic is based, the tutorial “Getting Started with Workshop for WebLogic” located in the Oracle Workshop for WebLogic User’s Guide, is highly recommended; the tutorial shows you how to start Workshop for WebLogic and navigate the workbench user interface, introduces terminology associated with the workbench, and shows you how to create a simple web application.
    The WebLogic Portal Overview provides a starting point for understanding and developing applications with WebLogic Portal. This chapter introduces portal concepts, describes the WebLogic Portal infrastructure framework and business services, and describes the portal life cycle, from architecture through development, staging, and production. The remaining chapters in this guide describe each phase of the life cycle in detail and provide a starting point for using WebLogic Portal.
    Tutorials – Getting Started with WebLogic Portal
    http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/tutorials/index.html
    Cheers!
    RichardL

  • How to call a  portal service from a servlet

    Hello all.
    I have a functioning portal service that I would like to call from a servlet.
    When I try to do so, I get a ClassCastException when I do this (on line two):
    IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
    IDocumentPersistence docPer = (IDocumentPersistence) runtimeResources.getService(IDocumentPersistence.KEY);
    However if I do the following I can get a generic IService and use reflection to invoke the method (in the IDocumentPersistence interface) that I want to invoke:
    IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
    com.sapportals.portal.prt.service.IService aService = (com.sapportals.portal.prt.service.IService) runtimeResources.getService(IDocumentPersistence.KEY);
    There must be a better way to use portal services (hopefully like scenario one above) in servlets. In web dynpro you can use portal services and cast them to the correct type. What am I missing?

    Hi Kim,
    how did you integrate the references to your Portal Service Interface into your web application?
    You should do this using the references in your application-j2ee-engine.xml, did you do this? It might be a problem with the classloader otherwise.
    The way you are calling portal services does work normally, however it is not the recommended way as it is documented in the SAP documentation.
    Please check the SAP documentation on how to access a portal service from a j2ee app:
    http://help.sap.com/saphelp_nw70/helpdata/EN/42/9ddd0cbb211d72e10000000a1553f6/frameset.htm
    Best regards,
    Stefan Brauneis

  • How to add weblogic portal related plugins to my IDE

    Hi friends,
    I am new to weblogic portal 10.3,How to add wlp 10.3. related functionality to my Eclipse IDE .Can you please provide the suitable plugins to work with wlportal 10.3.
    thanks,
    krishna kolla.

    Hi Pramod,
    You can try this workaround for this:
    Create a DC of type ext library (If already done, then put a Build Time Dependency. Also add all the Jar Files to a Assembly and Complation Public part)
    Create a J2EE Application project and define the dependency on the Ext Lib project *Assembly
    An ear gets generated that you can deploy on your server.
    You need to define a Runtime dependency to this J2EE project in your project where you want to use the jar files.
    This way you can proceed with the development and later on chage the reference when you get the proper method to do so.
    Hope this helps!!
    Cheers,
    Arafat

  • How to call a portal component in a java program

    Hi guys,
    We need to add some more operation after user log into portal, thus we need to call a portal component after statement proxy.logon(null) from java program SAPMLogonLogic.java,
    Any ideas how can we call the component directly?
    Thanks

    Hi,
    We can access iview,page,role(pcd objects) thru APIs
    refer [this link|http://help.sap.com/saphelp_nw04/helpdata/en/5f/cf9d4207e1c86ae10000000a155106/frameset.htm].
    may be u can use these APIs to do the task.
    do revert.

  • Calling the same controller in Weblogic portal 10.3.2

    In weblogic 8.1 calling the same controller instance (different action) is very simple.... just pass on the jpfScopeId in the request parameter as per the code below
    function openActionInNewWindow(index){
    <%
    PortletPresentationContext ppc = PortletPresentationContext.getPortletPresentationContext(request);
    String jpfScopeId = ppc.getInstanceLabel();
    %>
    url = "/someApp/portlets/somePath/someAction.do?index="+index;
    url += '&jpfScopeID='+'<%=jpfScopeId%>';
    alert(url);
    extWindow = window.open(url, 'second', 'title=Breaking News,width=650, height=300,toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=yes');
    extWindow.focus();
    How do we do the same in Weblogic portal 10.3.2? I tried the above code but its invoking a new instance of the controller. I want to call the same controller instance as some instance variables in the controller are being used across different actions.

    No, there isn't problem show in log. I don't know why... Please suggest me or help me.
    Thanks in advance!
    Best Regards,
    Coy.

  • How to use servlets in portal web application in Weblogic Portal 4.0

    We are developing a Portal Web application using Weblogic Portal 4.0 where in we
    have the following scenario. one JSP in webflow of a portlet calls the PipeLine
    which does some processing and calls the servlet which is having the typical download
    functionality. The servlet is supposed to read the data from the pipeline session
    and create a CSV String that is dumped to the client browser. The problem is even
    we are doing response.setContentType("application/save") in the servlet it is
    still displaying the content as html in the portlet. I guess since all our request
    are send to the webflow contolling servlet and it is setting the content type
    and hence our servlet is not working. How do I solve this problem? Thanks Yogesh

    Hi Renu
    Please go through the SAP Content Management here you find the documents related to Wab page Compoer and knowledge mangement. Also search for article / blog for more details.
    [http://www.sdn.sap.com/irj/sdn/nw-ecm|http://www.sdn.sap.com/irj/sdn/nw-ecm]
    Hope it will helps
    Best Regards
    Arun Jaiswal

  • How to add Friendly URLs in Weblogic Portal?

    Hi,
    We are developing a portal using Weblogic 10gR3. Right now the URL's that are getting formed are very long which includes the nfpb, nfls, pagelabel e.t.c. The requirement is to have a very user friendly url something like http://www.x.com/portal/<<pageLabel>>
    The Weblogic documentation mentions something about URL compression, however unable to apply it for dynamic URL's. We have URL's which are formed on the fly from the WLP Content Repository
    Is there some kind of servlet / filter provided within WLP. I read somewhere about an URLTransformationServlet. But there was no documentation on its usage. Can some one share a sample code snippet with me. That would be really really helpful, as we are having a slight time crunch here.
    Any kind of help on this will be deeply appreciated. Thanks
    Thanks and Regards,
    Lilly

    Dear Team,
    Please help us in Change Portal Url . Please find below details and help us asap.
    Regards
    Radhakrishna
    Generic Note
    I understand [email protected] looks after your account and he should be able to assist you in this matter.
    You could possibly post your question to the oracle forums, like below
    How to add Friendly URLs in Weblogic Portal?
    [email protected] - November 1, 2010 7:05:03 PM GMT+05:30 [Update from Customer]
    Dear Team,
    Please let us know how to contact the assigned oracle account manager to engage someone from the professional services team.
    Please update us asap.
    Regards
    Radhakrishna
    Oracle Support - November 1, 2010 5:28:59 PM GMT+05:30 [Information]
    Generic Note
    I would suggest you contact the assigned oracle account manager to engage someone from the professional services team.
    [email protected] - November 1, 2010 4:55:25 PM GMT+05:30 [Update from Customer]
    Dear Team,
    How to engage oracle professional services to team to get assistance.
    Regards
    Radhakrishna
    Oracle Support - November 1, 2010 1:48:49 PM GMT+05:30 [Information]
    Generic Note
    As mentioned earlier, changes to the portal url is not provided out of box, the documentation link that I provided mentions a possible way of achieving this by creating a start up servlet, this may or may-not work in all circumstances. If the suggestions provided so far has not helped you so far, I would recommend you engage oracle professional services team to get assistance.
    [email protected] - November 1, 2010 1:36:12 PM GMT+05:30 [Update from Customer]
    Dear Team,
    Please find below comments from Dev team.
    While try to incorporate the URL navigation changes at
    our development environment we are getting exception Unable to render /framework/skeletons/bharti_skeleton/singlelevelmenu.jsp .
    I have also checked feasibility for the URL navigation changes provided and will not work for left menu
    and footer URL because while rendering these URL we are not using single level menu jsp or multilevel menu jsp.
    Please check with these comments and update ASAP.
    Regards
    Radhakrishna
    [email protected] - October 28, 2010 7:56:02 PM GMT+05:30 [Update from Customer]
    Hi,
    regarding making changes to the url meets ,we are working on the document which you have provided.we will update with result onc it get finished.
    Regards,
    Eranna D.
    Oracle Support - October 28, 2010 7:06:32 PM GMT+05:30 [Information]
    Generic Note
    Since your question about Rich Text support in CMS is not related to portal urls, I would request you raise this as a separate issue.
    In the new SR, please elaborate what you mean by the Rich Text support, whats your proposed use case, whats working and what is not.
    Could you also confirm if the further information I have provided regarding making changes to the url meets your requirement.
    [email protected] - October 28, 2010 7:04:48 PM GMT+05:30 [Update from Customer]
    CMS----Content Management System
    Rich contents are : Media files, Vedios, Movies... etc.
    [email protected] - October 28, 2010 6:58:46 PM GMT+05:30 [Update from Customer]
    Hi,
    Can you please clarify the below point also.
    "Please confirm whether CMS support Rich Text in weblogic , currently we have the weblogic version 9.2 . Plz confirm whether it will support or not."
    Regards,
    Eranna D.
    Oracle Support - October 28, 2010 5:41:53 PM GMT+05:30 [Information]
    Generic Note
    The following documentation http://download.oracle.com/docs/cd/E13218_01/wlp/docs81/url/simplify.html tells how you can achieve the simple urls you are looking for.
    Could you let me know if this meets your requirement.
    [email protected] - October 28, 2010 12:07:05 PM GMT+05:30 [Reopen Request]
    Hi,
    Please clarify why it is not possible to remove nfpb parameter.
    Call Me on +91 9686971269 ASAP.
    Oracle Support - September 29, 2010 5:39:48 PM GMT+05:30 [ODM Answer]
    === ODM Answer ===
    weblogic portal does not provide any out of the box way to achieve this functionality
    Oracle Support - September 29, 2010 5:39:15 PM GMT+05:30 [ODM Question]
    === ODM Question ===
    need to change the URL
    http://hostname:port/ics_war/ics.portal?_nfpb=true&_pageLabel=Tariff
    to
    http://hostname:port/ics_war/ics.portal/Tariff.
    Oracle Support - September 25, 2010 4:42:01 PM GMT+05:30 [Information]
    Generic Note
    WLProxy configuration falls under the weblogic server product hence you will have to raise an SR with that product to get any suggestions.
    Before that I would suggest you play around with the parameter I have suggested and see how it is impacting the url and then if there is any specific area you are stuck on check with the WLS team.
    Like I mentioned earlier, I do not know if this will completely meet your business requirement, but something you can look into.
    [email protected] - September 25, 2010 4:32:00 PM GMT+05:30 [Update from Customer]
    Hi,
    Can you please brief us what all are the changes needs to be done to meet our below requirement.
    Regards,
    Eranna D.
    +91 9686971269
    Oracle Support - September 24, 2010 9:00:57 PM GMT+05:30 [Information]
    Generic Note
    URLCompression servlet is the only option that weblogic portal provides out of the box to compress the URL of WLP. I understand this does not suite your requirement.
    The other option I can think of that can possibly help you achieve this is to configure any weblogic proxy plugin that you might be making use of, see the document
    http://download.oracle.com/docs/cd/E15051_01/wls/docs103/plugins/plugin_params.html#wp1143055 look for PathTrim, PathPrepend
    [email protected] - September 24, 2010 5:41:39 PM GMT+05:30 [Update from Customer]
    Hi,
    Please call me on +91 9686971269 ASAP.
    Regards,
    Eranna D
    [email protected] - September 24, 2010 5:41:22 PM GMT+05:30 [Update from Customer]
    Hi,
    Even thogh after implementing the below changes,still we are not able to get the result. " nfpb parameter is still existing in URL ".
    Implementing URL Compression :
    To configure a webapp to use url compression, follow these steps:
    1. Define the compression servlet in web.xml; for example
    <servlet>
    <servlet-name>UrlCompressionServlet</servlet-name>
    <servlet-class>com.bea.portlet.compression.UrlCompressionServlet
    </servlet-class>
    <init-param>
    <param-name>defaultPage</param-name>
    <param-value>/index.jsp</param-value>
    </init-param>
    <init-param>
    <param-name>errorPage</param-name>
    <param-value>/errors/error.jsp</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    2. Map the compression pattern; for example:
    <servlet-mapping>
    <servlet-name>UrlCompressionServlet</servlet-name>
    <url-pattern>wlp.c</url-pattern>
    </servlet-mapping>
    3. Add the token {url:compression} to the templates for which you want to apply compression.
    Please suggest on this ASAP.
    Regards,
    Eranna D.
    [email protected] - September 24, 2010 5:27:58 PM GMT+05:30 [Customer Problem Description]
    Problem Description: We need to change the URL
    http://hostname:port/ics_war/ics.portal?_nfpb=true&_pageLabel=Tariff
    to
    http://hostname:port/ics_war/ics.portal/Tariff.
    Pls suggest on this.
    Regards,
    Eranna D.

  • How to call Flex app from Javascript in portal question

    I've setup my flex 4 app with a callback function. The flex app is embedded in a Java portlet on a WebLogic Portal 10.3.2. How can I call the Flex app from the portlets javascript function? Code below shows how the flex app is embedded in the wrapper jsp.
    <script language="JavaScript" type="text/javascript">
            AC_FL_RunContent(
                        "src", "<%= srcPath %>",
                        "id", "<%= (String)request.getAttribute("portlet_name") %>",
                        "name", "<%= (String)request.getAttribute("portlet_name") %>", 
                        "width", "<%= request.getAttribute("width") %>",
                        "height", "<%= request.getAttribute("height") %>",
                        "align", "middle",
                        "quality", "high",
                        "FlashVars", "PORTLET_WS=<%= request.getAttribute("window_state")%><%= wsrpEncodedChannel %>",
                        "allowScriptAccess","sameDomain",
                        "type", "application/x-shockwave-flash",
                        "pluginspage", "http://www.adobe.com/go/getflashplayer");         
    </script>

    Thanks for the response. I followed the instructions in the link, but it does not appear to work within a Weblogic 10.3.2 portal. My Flex app is wrapped in a Java JSR 286 portlet. Should this approach work or is there a different approach for the portlets wrapper JavaScript to call a Flex callback function?
    thanks
    Dan

  • How To Integrate BPEL Process Into Oracle Weblogic Portal 10.3

    Hi All,
    I have bpel process which which has db adapters and Human Work Flow. I need to integrate this bpel process [ created using Oracle SOA Suite 10131] with Oralce weblogic portal 10.3
    Please let me know how to achieve this.
    Thanks,
    Irfan Khan

    Hi All,
    I tried to call my BPEL Process thru JSP.
    This is how my JSP looks like:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page import = "com.oracle.bpel.client.Locator" %>
    <%@ page import = "com.oracle.bpel.client.NormalizedMessage" %>
    <%@ page import = "com.oracle.bpel.client.dispatch.IDeliveryService" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>InvokeHelloBPELProcess</title>
    </head>
    <body>
    <%
    String name = request.getParameter("name");
    if(name == null) name = "HelloBPEL";
    String xml = "<name xmlns=\"http://xmlns.oracle.com\">"+name+"</name>";
    // Connect to the default BPEL domain using Locator
    // Please set the password (bpel is initial password)
    Locator locator = new Locator( "default", "welcome1" );
    IDeliveryService deliveryService =
    (IDeliveryService)locator.lookupService
    (IDeliveryService.SERVICE_NAME);
    //Construct the normalized messaged and send it to the oracle BPEL PM
    NormalizedMessage nm = new NormalizedMessage();
    System.out.println(" -=-=-=-=-=-=-= XML: "+ xml);
    //attach the payload to the NormalizedMessage
    nm.addPart("payload", xml);
    //Post the message to the HelloBPEL process
    deliveryService.post("HelloBPEL", "initiate", nm);
    out.println("The BPEL process HelloBPEL initiated!!!");
    %>
    </body>
    </html>
    Now once i invoke this JSP page I am getting the 500 internal server error.
    The error message is :
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: While trying to lookup 'ejb.collaxa.system/DeliveryBean' didn't find subcontext 'collaxa'. Resolved 'ejb'; remaining name 'collaxa/system/DeliveryBean'
    Here I have some doubts:
    1) If xml payload that I am passing is correct?
    2) In Locator, do I need to pass 'domain' along with 'password' as my password or it will always be "bpel". i.e.,
    a) Locator locator = new Locator( "default", <password> );
    OR
    b) Locator locator = new Locator( "default", "bpel" );
    Please let me know how to solve this error. I doubt that my xml payload constructed is wrong. could you tell me what is the correct xml payload for below BPEL process WSDL file:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="useWebServiceBpelProcess"
    targetNamespace="http://xmlns.oracle.com/useWebServiceBpelProcess"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:client="http://xmlns.oracle.com/useWebServiceBpelProcess"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         TYPE DEFINITION - List of services participating in this BPEL process
         The default output of the BPEL designer uses strings as input and
         output to the BPEL Process. But you can define or import any XML
         Schema type and use them as part of the message types.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <types>
              <schema xmlns="http://www.w3.org/2001/XMLSchema">
                   <import namespace="http://xmlns.oracle.com/useWebServiceBpelProcess" schemaLocation="useWebServiceBpelProcess.xsd" />
              </schema>
         </types>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         MESSAGE TYPE DEFINITION - Definition of the message types used as
         part of the port type defintions
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <message name="useWebServiceBpelProcessRequestMessage">
              <part name="payload" element="client:useWebServiceBpelProcessProcessRequest"/>
         </message>
         <message name="useWebServiceBpelProcessResponseMessage">
              <part name="payload" element="client:useWebServiceBpelProcessProcessResponse"/>
         </message>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PORT TYPE DEFINITION - A port type groups a set of operations into
         a logical service unit.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <!-- portType implemented by the useWebServiceBpelProcess BPEL process -->
         <portType name="useWebServiceBpelProcess">
              <operation name="initiate">
                   <input message="client:useWebServiceBpelProcessRequestMessage"/>
              </operation>
         </portType>
         <!-- portType implemented by the requester of useWebServiceBpelProcess BPEL process
         for asynchronous callback purposes
         -->
         <portType name="useWebServiceBpelProcessCallback">
              <operation name="onResult">
                   <input message="client:useWebServiceBpelProcessResponseMessage"/>
              </operation>
         </portType>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PARTNER LINK TYPE DEFINITION
         the useWebServiceBpelProcess partnerLinkType binds the provider and
         requester portType into an asynchronous conversation.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <plnk:partnerLinkType name="useWebServiceBpelProcess">
              <plnk:role name="useWebServiceBpelProcessProvider">
                   <plnk:portType name="client:useWebServiceBpelProcess"/>
              </plnk:role>
              <plnk:role name="useWebServiceBpelProcessRequester">
                   <plnk:portType name="client:useWebServiceBpelProcessCallback"/>
              </plnk:role>
         </plnk:partnerLinkType>
    </definitions>

  • Problem in calling a web service hosted on tomcat from BEA WebLogic portal

    Hi,
    I have a wsdl file for my web service which is hosted on apache tomcat 5.5(running on port : 8080). The contents of the wsdl file are-
    *<?xml version="1.0" encoding="UTF-8"?>*
    *<wsdl:definitions targetNamespace="http://soa.tutorials.serg.edu" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://soa.tutorials.serg.edu" xmlns:intf="http://soa.tutorials.serg.edu" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">*
    *<!--WSDL created by Apache Axis version: 1.4*
    Built on Apr 22, 2006 (06:55:48 PDT)-->
    *<wsdl:types>*
    *<schema elementFormDefault="qualified" targetNamespace="http://soa.tutorials.serg.edu" xmlns="http://www.w3.org/2001/XMLSchema">*
    *<element name="getNums">*
    *<complexType>*
    *<sequence>*
    *<element name="n" type="xsd:int"/>*
    *<element name="m" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *<element name="getNumsResponse">*
    *<complexType>*
    *<sequence>*
    *<element maxOccurs="unbounded" name="getNumsReturn" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *<element name="getNums2">*
    *<complexType>*
    *<sequence>*
    *<element name="n" type="xsd:int"/>*
    *<element name="m" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *<element name="getNums2Response">*
    *<complexType>*
    *<sequence>*
    *<element maxOccurs="unbounded" name="getNums2Return" type="xsd:int"/>*
    *</sequence>*
    *</complexType>*
    *</element>*
    *</schema>*
    *</wsdl:types>*
    *<wsdl:message name="getNums2Request">*
    *<wsdl:part element="impl:getNums2" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:message name="getNumsRequest">*
    *<wsdl:part element="impl:getNums" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:message name="getNums2Response">*
    *<wsdl:part element="impl:getNums2Response" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:message name="getNumsResponse">*
    *<wsdl:part element="impl:getNumsResponse" name="parameters"/>*
    *</wsdl:message>*
    *<wsdl:portType name="Echo">*
    *<wsdl:operation name="getNums">*
    *<wsdl:input message="impl:getNumsRequest" name="getNumsRequest"/>*
    *<wsdl:output message="impl:getNumsResponse" name="getNumsResponse"/>*
    *</wsdl:operation>*
    *<wsdl:operation name="getNums2">*
    *<wsdl:input message="impl:getNums2Request" name="getNums2Request"/>*
    *<wsdl:output message="impl:getNums2Response" name="getNums2Response"/>*
    *</wsdl:operation>*
    *</wsdl:portType>*
    *<wsdl:binding name="EchoSoapBinding" type="impl:Echo">*
    *<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>*
    *<wsdl:operation name="getNums">*
    *<wsdlsoap:operation soapAction=""/>*
    *<wsdl:input name="getNumsRequest">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:input>*
    *<wsdl:output name="getNumsResponse">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:output>*
    *</wsdl:operation>*
    *<wsdl:operation name="getNums2">*
    *<wsdlsoap:operation soapAction=""/>*
    *<wsdl:input name="getNums2Request">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:input>*
    *<wsdl:output name="getNums2Response">*
    *<wsdlsoap:body use="literal"/>*
    *</wsdl:output>*
    *</wsdl:operation>*
    *</wsdl:binding>*
    *<wsdl:service name="EchoService">*
    *<wsdl:port binding="impl:EchoSoapBinding" name="Echo">*
    *<wsdlsoap:address location="http://localhost:8080/SOATest/services/Echo"/>*
    *</wsdl:port>*
    *</wsdl:service>*
    *</wsdl:definitions>*
    I created a client from the above wsdl file using ClientGen wizard in WebLogic. This client contains the follwoing classes-
    Echo.java
    EchoService.java
    EchoService_Impl.java
    Echo_Stub.java
    I created a JSP portlet and the jsp content of it is-
    String url = "http://localhost:8080/SOATest/services/Echo";
    Echo echo = new EchoService_Impl(url).getEcho();
    getNumsResponse = echo.getNums(getNums);
    I tried to call that web service from BEA weblogic portal through a JSP potlet. I got an error saying -
    *<An exception [javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element] was thrown while rendering the content at [TestEcho.jsp].*
    *javax.servlet.ServletException: javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextImpl.java:420)*
    *     at jsp_servlet.__testecho._jspService(__testecho.java:112)*
    *     at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)*
    *     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)*
    *     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)*
    *     Truncated. see log file for complete stacktrace*
    *javax.xml.rpc.ServiceException: Failed to parse WSDL http://localhost:8080/SOATest/services/Echo weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.wsee.jaxrpc.ServiceImpl.throwServiceException(ServiceImpl.java:174)*
    *     at weblogic.wsee.jaxrpc.ServiceImpl.loadWsdlDefinition(ServiceImpl.java:485)*
    *     at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:119)*
    *     at edu.serg.tutorials.soa.EchoService_Impl.<init>(Unknown Source)*
    *     at edu.serg.tutorials.soa.EchoService_Impl.<init>(Unknown Source)*
    *     Truncated. see log file for complete stacktrace*
    *weblogic.wsee.wsdl.WsdlException: Failed to read wsdl file from url due to -- java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:313)*
    *     at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:405)*
    *     at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:391)*
    *     at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:79)*
    *     at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:66)*
    *     Truncated. see log file for complete stacktrace*
    *java.io.IOException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:38)*
    *     at weblogic.wsee.util.dom.DOMParser.getWebLogicDocumentImpl(DOMParser.java:122)*
    *     at weblogic.wsee.util.dom.DOMParser.getDocument(DOMParser.java:65)*
    *     at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:311)*
    *     at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:405)*
    *     Truncated. see log file for complete stacktrace*
    *javax.xml.stream.XMLStreamException: Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:206)*
    *     at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:112)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:73)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:35)*
    *     Truncated. see log file for complete stacktrace*
    *Error at Line:2, token:[OPENTAGBEGIN]All tags must be contained within a single element*
    *     at weblogic.xml.babel.baseparser.BaseParser.parseProlog(BaseParser.java:417)*
    *     at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:328)*
    *     at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:195)*
    *     at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)*
    *     at weblogic.xml.domimpl.Loader.load(Loader.java:112)*
    *     Truncated. see log file for complete stacktrace*
    My web service is using soap binding. I have tested it with eclipse and other tools also. It is working well and good. But when I tried to call a web service which is created and hosted on WebLogic server(running on port : 7001), I got the correct output.
    Can anyone help me out in calling a web service hosted on different server from WebLogic server.
    Thanks in advance,
    Tiijnar
    Edited by: user8715057 on Aug 13, 2009 1:11 AM

    Hi
    1. The way you are invoking the WebService deployed on Tomcat server is looks suspicious. It may be valid by adding extra ?wsdl etc into the url, but still I have not seen this way to invoke the webservice.
    2. So you used Weblogic ant task to generate client JARs by giving this WSDL. So looks like it generated the 4 classes (.java) and in addition any other classes for Request/Response xml objects.
    3. Look at the source code of EchoService.java. It should have one default empty constructor. Internally it uses the default wsdl defined in this class. You will see another constructor that takes WSDL URL as one of the parameters (QName) etc. Echo.java is the class corresponding to the Port. In the same EchoService you should see an instance method like getEcho() something like that. This Echo.java class will have methods for all the Operations defined on this Port. So the standard code snippet we use most of the times will be like this:
    EchoService myEchoService = new EchoService(); // Default it uses WSDL deployed on Tomcat at localhost:8080
    Echo myEchoPort = myEchoService.getEchoPort(); // Something along these lines.
    myEchoPort.xxxYYY(); // NOW this is the operation name that takes the input parameters and returns outputs defined as per the WSDL defintions. If the Input and Outputs are complex xml types, it will have corresponing .JAVA files with setters and getters.
    Now if this WebService is deployed on same Tomcat but on different machine or different port, you just give the full WSDL URL with that host and port in the constructor for new EchoService(...). You may need to instantiate QName object. But look at the methods generated in EchoService.java class.
    The way you are using with Impl and Stubs class may also work. I am not much famiiar with this APIs apporach. Still look at the methods generated in these classes.
    Also if you latest Sun JDK 1.6, it also has one command like wsimport. Infact if you install WLS 10.3 with Sun JDK, it should have C:\beawlp103\jdk160_05\bin\wsimport command. This will also generate client jar given a WSDL URL.
    Thanks
    Ravi Jegga

  • How to hide the menus in Weblogic Portal?

    I have to develop a page in Weblogic Portal 10.0 that uses a portlet for the UI presentation.
    I have a requirement that the page is hidden by default. When I navigate to the page by selecting a link, I have to display the contents in that page. While displaying I should hide the portal level menus of other books/pages. But I have to display other contents like logo, etc.
    Can some one please help me on how to hide the menus in the selected page?
    Edited by: [email protected] on Apr 19, 2010 3:43 AM

    As a quick and dirty solution i would edit the navigation jsps (singlelevel/multilevel/yourcustom menu jsp) and disable the navigation for all hidden pages.
    Or create a backing file and dynamically change the navigation state on the desktop when the hidden page is requested.
    Or have the page in a different portal file if possible and set the same header and footer there as well.
    Or You could have a look at the detached portlets. These are used as popups often.

  • How to do development on Weblogic Portal ( 10.3.2 )

    Im trying to do Weblogic Portal Development as described in http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14252.pdf
    But When I downloaded the latest Weblogic Eclipse IDE ( OEPE ) ( Oracle Enterprise Pack for Eclipse ), I do not see the Portal Perspective or an option ro create a Portal project.
    I downloaded the latest OEPE ( Indigo )
    Am I supposed to download a certain version of OEPE ? If yes which one is it ?
    How can I proceed with what is given in the oracle tutorial ?
    Any help will be greatly appreciated

    Praise the Lord!
    It is now working on my MAC with 10.3.4. (I could not yet download 10.3.2 Windows, but should work the same)
    The following versions seem to be used:
    WLP 10.3.4     OEPE 11.1.1.6.1     Eclipse 3.6
    WLP 10.3.2     OEPE 11.1.1.3.1     Eclipse 3.5
    Steps
    1. Download Windows WLP 10.3.4 and install it on a Windows machine
    2. Download and install the Generic WLP 10.3.4 on your MAC
    3. Download OEPE 11.1.1.6.1 and install/extract it under your Middelware home directory where you installed WLP on your MAC
    4. Copy the +\<Middleware Home>\wlportal_10.3\eclipse+ folder from Windows to your MAC +/<Middleware Home>/11.1.1.6.1/dropins/WLP_Portal/.+
    (The link file in the url solution above did not want to work)
    En siedaar! It works
    (Note that when I created a new Server/Domain it did not want to run the Derby DB scripts as the Derby server is not started (Windows and MAC). I got around this by starting the Derby server before I create the Domain.
    +/<Middleware Home>/wlserver_10.3/common/derby/bin/startNetworkServer.sh+ )
    Hope this helps someone else.
    Arriwarrie
    Duncan

  • How to implement Breadcrumb functionality in weblogic portal 10.3

    Hi,
    We need to implement the breadcrumb functionality in weblogic portal 10.3.
    Tried to look for it in Google. But couldn't get success.
    Can someone help on how to implement this.
    Thanks
    Uttam

    Please find the example code for Breadcrumbs
    <%
         ArrayList breadcrumbTitles = new ArrayList();
         ArrayList breadcrumbURLs = new ArrayList();
         BookPresentationContext book = BookPresentationContext.getBookPresentationContext(request);
    PagePresentationContext pageCtx = PagePresentationContext.getPagePresentationContext(request);
         if(pageCtx.getDefinitionLabel() != null )
              breadcrumbTitles.add(pageCtx.getTitle());
              breadcrumbURLs.add(PageURL.createPageURL(request, response, pageCtx.getDefinitionLabel()).toString());
         if (!(book.getDefaultPage().equals(pageCtx.getDefinitionLabel())))
              breadcrumbTitles.add(book.getTitle());
              breadcrumbURLs.add(PageURL.createPageURL(request, response, book.getDefaultPage()).toString());
         else
              breadcrumbTitles.add(book.getTitle());
              breadcrumbURLs.add(PageURL.createPageURL(request, response, pageCtx.getDefinitionLabel()).toString());           
              PagePresentationContext parentPage = book.getParentPagePresentationContext();           
              while (parentPage != null)
                   breadcrumbTitles.add(parentPage.getTitle());
                   if (parentPage instanceof BookPresentationContext)
                        BookPresentationContext parentBook = (BookPresentationContext)parentPage;
                        // condition for not showing my eagle page when user not logged in. instead show default home page
                        if (parentBook.getDefaultPage().equalsIgnoreCase(""))
                             breadcrumbURLs.add(PageURL.createPageURL(request, response, ""));
                        }else
                             breadcrumbURLs.add(PageURL.createPageURL(request, response, parentBook.getDefaultPage()).toString());
                   else
                        breadcrumbURLs.add(PageURL.createPageURL(request, response, parentPage.getDefinitionLabel()).toString());
                   parentPage = parentPage.getParentPagePresentationContext();
    %>
         <ul class="breadcrumbs">
    <%
                   // compare if current page is selected. then dont show hyper link
                   if (pageCtx.getTitle().toString().equalsIgnoreCase((String)breadcrumbTitles.get(i)))               
    %>
                             <%=breadcrumbTitles.get(i)%>  
    <%          
                        }else
    %>                    
                             <a href="<%=breadcrumbURLs.get(i)%> "><font color="#005596"><%=breadcrumbTitles.get(i)%></font></a></b><img src="<render:getSkinPath imageName="/spacer.gif" />" width="2" /><img align="bottom" src="<render:getSkinPath imageName="/arrow_right.gif" />" />
                             <%
    %>
         </ul>

Maybe you are looking for

  • Need some help to develop a 3d graph plotter

    Problem description : Certain numbers are being stored in a mySQL database. The java program has to extract these numbers and then make a 3D plot based on these coordinates. I have been asked to look for a JAVA based freeware which will do the plotti

  • Displaying a Grid

    I need a grid that i can move objects around in I need to have a 10 by 10 grid where 30% of the spaces are occupied by object (15% red and 15% blue). The object will only be able to stay in that square if it's neighbours are predominantly the same co

  • I have leopard v 10.6.8, if i upgrade to lion will i need to reinstall all my software applications?

    Hi, I want to upgrade to lion OS so i can make use of the icloud with my iphone 4S and macbook. However, i'm wondering if i will need to re-install all my software applications all over again after this upgrade is complete? Thanks

  • Troubles installing flash player on my mac

    I get to the third and final step of downloading and installing the flash player and I get a "blocked plug-in" message how do I disable it so I can complete the installation process?

  • To trim leading zeroes

    Hi, I need to trim the leading zeroes from my field. Eg: I am taking the field length as 6, but if my value is only of 4 digits then its coming as 004216. I need this value to be 4216 only. I cant change the field length to 4 as there may be values t