Webshpere Studio Site Developer 5.1.1

We have added the Kodo plug-in as instructed into the C:\Program
Files\IBM\WebSphere Studio\Site Developer\v5.1.1\eclipse\plugins\
directory. When you select package.jdo in your project and then "Ehance
Metadata" menu item of the Kodo menu we get the following error response:
<error>-The Enhancer failed. The message included was:
{0}
org.apache.commons.lang.exception.NestableRuntimeException:
com.progressive.claims.entities.ProgressivePerson
<info>-Done.
if I look in the .log file at ...\My
Documents\IBM\wssitedev51\workspace\.metadata it shows that the above
error is a rethrow and that the real error is a class not found exception.
The ProgressivePerson class is the first defined in the package.jdo file
driving the enhancement and exists in the project being enhanced. I have
done a build all prior to trying to enhance.
I also have Eclipse 2.1 installed elsewhere on my machine, and the exact
same project and Kodo plug-in installed, works just fine. I need to get
this working in Websphere Studio... looks like a classpath issue for the
WSSD initiated Kodo Enhancer....

Evidently, when the Kodo Enhancer runs it cannot handle this type UNC pathInteresting ... we have not heard of any problems using Kodo against a
UNC path.
If you run the enhancer (jdoc.bat) from a command prompt using the UNC
path, do you still get the same error?
In article <[email protected]>, Robert Grimwade wrote:
This issue apparently has been resolved. The default in WebSphere Studio
is to place the workspace directory in "My
Documents\IBM\wssitedev51\workspace". On our system this resolves to a
UNC path such as "\\Server\joeUser\My
Documents\IBM\wssitedev51\workspace". Evidently, when the Kodo Enhancer
runs it cannot handle this type UNC path, and needs a specific mapped
drive path - such as "U:\My Documents\IBM\wssitedev51\workspace". Once
the default project path is set using a mapped drive, everything seems to
work just fine. This was the actual difference between the integration of
Kodo with regular Eclipse and the integration with WebSphere Studio Site
Developer......
Robert Grimwade wrote:
We have added the Kodo plug-in as instructed into the C:Program
FilesIBMWebSphere StudioSite Developerv5.1.1eclipseplugins
directory. When you select package.jdo in your project and then "Ehance
Metadata" menu item of the Kodo menu we get the following error response:
<error>-The Enhancer failed. The message included was:
org.apache.commons.lang.exception.NestableRuntimeException:
com.progressive.claims.entities.ProgressivePerson
<info>-Done.
if I look in the .log file at ...My
DocumentsIBMwssitedev51workspace.metadata it shows that the above
error is a rethrow and that the real error is a class not found exception.
The ProgressivePerson class is the first defined in the package.jdo file
driving the enhancement and exists in the project being enhanced. I have
done a build all prior to trying to enhance.
I also have Eclipse 2.1 installed elsewhere on my machine, and the exact
same project and Kodo plug-in installed, works just fine. I need to get
this working in Websphere Studio... looks like a classpath issue for the
WSSD initiated Kodo Enhancer....
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Dissatisfied with usability of the Portal Studio site

    Hello,
    We are ramping up production and I have been tasked with developing a proof of concept for Portal. Of course, I've spent countless hours setting up 9iAS, and even trying to understand this whole 'Portal' portal product (like many others). I have devloped in J2EE, VB, VC++, and plenty of other scripting (ASP, Perl) languages.
    My experience on that site has been painful at best and it doesn't really seem to be very useful for the most important documentation from a developers standpoint.
    It's almost as if it's information overload and just outright confusing. (Which is a concern our company has of implementing portal to our mere mortal users :-] )
    All I want to do is find good reference material for setting up Portal, using Java to develop portlets on our development 9iAS instance (NOT using Oracle's hosted 'portal studio'!!), and configuring and setting up the URL based portlets.
    This has turned out to be no easy task.
    FOr instance, I want to figure out how to create a URL based portlet, AND UNDERSTAND WHAT I"M DOING! This seems to be the part that is skipped. If it's sooooo easy than why is it so difficult to find good reference to what i'm doing?
    So I dig around the main portal page. I see a getting started link.. *click*.
    Well, I don't see anything specific to URL Providers... maybe the "How can I create portlets using my existing web applications?" is what I want. *click*
    Oh, look.. it's like 3rd grade.. a slide show!>.. Cool. :-| okay.. ERRRGHHHT!... hit the brakes!.
    "The PDK provides a samle XML configuration file.." ??? where is my link to more information about this magic "configuration file"???.... ahh. So I stop the silly slideshow and I want to know about this "configuration file".. *close window*
    Now I'm back at the portal studio heap.
    hmm.. "Documentation" for POrtal *click*
    Hmm.. after searching through this mind boggling page, there is a "Portal configuration guide" link.. sounds reasonable. *click*
    so I look for "URL Provider".. or just "URL" on that page. Nothin found. bah!.. well, now I'm stumped. There is this mystery 'config' file that i've failed to quickly find information about. Strike 1.
    So I use the other part of my brain (the developer side)...
    There is this "HTTP Adapter" thing. Looks like part of the acclaimed "URL provider" mess. SO i read on...
    blah blah blah... nothin of significant use stands out.
    ah... somethin... "4.3 Registering A Provider Using The PL/SQL HTTP Adapter".. again. useless. *click * click * back *
    So now I retreat back to the silly portal studio page.
    Back to the task at hand... finding out the innerds of the configuration files involved in writing a "URL provider".
    Looking at the available documents.. OHH LOOK! the actual documentation library is buried at the bottom of the page!.. hmm. I just read the "config guide".. "web toolkit"...?? I wonder.. *click* (grinding as Acrobat loads again)
    AHhhh.. it's a "PL/SQL" web toolkit. Not imporessed. How many web developers actually know PL/SQL .. or would WANT to program logic in that query language??? or even any Java or C developers?...grr..
    *click* back *
    Where is it..??>. this is about the point where I start to forget what I'm looking for.
    Well, I've come to the conclusion that the "Oracle9iAS Portal Documentation Library" is a small library, as it doesn't appear to have any good reference for the details of portal use and configuration.. or at least involving the URL services.
    *back*back*.. Oh, look what I found.
    Near the bottom of the page ("getting started"), there is a link under ""Navigation"" that reads "URL-based: Learn how the PDK helps you build portlets in any web language."
    hmm. looks promising. Maybe a little more respectable than that 3rd grade slide show.
    *click*
    "BUilding URL based portlets".. Ahh presto!
    Nice. opened a new browser window. (dumb)
    Okay.. I need the PDK.
    *click**download**wait*
    I extract it to a warm home.
    hmm.."Installing URL based Portlets".. sounds intriguing
    well, it's now lunch time and I thing I found some good meat.
    If you've rached this point you can probably now understand (after reading this long post) tha pain I experience.
    GOtta eat some lunch.
    -sean@Tekelec

    Sean,
    I am sorry to hear that you had such problems navigating through Portal Studio to find content on URL Services. Right now Portal Studio is geared by technology, so you click on URL-Based for URL Services, Java for building Java Portlets. Hopefully all the doc will be there to help you. If not, I would be happy to point you in the right direction.
    If you are looking to display web content as portlets, you should take a look at Web Clipping, it is a wizard form of URL Services where you simply use the wizard UI.
    Go to Portal Studio and click on OmniPortlet and WebClipping or go here:
    http://portalstudio.oracle.com/servlet/page?_pageid=350&_dad=ops&_schema=OPSTUDIO&12678_PDKHOME902_39847486.p_subid=350276&12678_PDKHOME902_39847486.p_sub_siteid=73&12678_PDKHOME902_39847486.p_edit=0
    This page has demos and papers on using Web Clipping. To install Web Clipping, download the PDK and follow the instructures under the pdk/pdk/portalTools directory.
    We are revamping the Portal Studio site to hopefully make navigation much easier for all users (developer and non developer).
    Please let me know if you help finding other information. The feedback does help us improve the site.
    Thanks,
    Sue Vickers

  • How to check if the site studio site is in contribution mode?

    Is there a function or global variable using which we can check if the site studio site is in contribution mode?
    Regards,
    Pratap

    Yes, please look into Site Studio Technical refrence guide.
    I think variable name is 'SSContributor'
    regards,
    deepak
    Edited by: r.dipk on Oct 1, 2010 2:09 AM

  • Run site studio site out side WCC

    We have a requirement where I would like to run Site Studio site built in WCC using Site studio designer out side WCC on a tomcat container. Is it possible? Can I just publish the site.xml file to the container and drop some of the Site studio jars in tomcat lib and run the site. Has any one done this?

    It is not possible - if nothing else, it'd definitely violate the licensing policy.
    What you can do, however (if you still pay the license!), is exposing the Site Studio for External Application (SSXA) - see http://docs.oracle.com/cd/E29542_01/doc.1111/e13650/ssxa_understanding.htm#WCMJD538, and http://docs.oracle.com/cd/E29542_01/doc.1111/e13650/ssxa_deploying.htm#WCMJD7000 for more details. It is, however, certified only with Weblogic and Websphere. Also, SSXA projects are not the same as Site Studio Designer ones, so you might have to port your application first (it uses a lot of shared concepts, though).

  • [b]Websphere studio Apllicatiion Developer error[/b]

    Hi All
    When I try to start websphere studio Application Developer ,it is giving an error called cccmndlg.dll is not found in many paths.Actually it is in Rational Clearcase's bin dir. And I am n't able to import project to wizard... So anybody Who knows this plzzzzz help..............................
    rgds
    Nisha

    set PATH = %PATH%; <Clearcase bin directory>
    Alternatively, if you are using Windows 2k or the like... set the same in Environment variables.
    ***Annie***

  • WebSphere Studio Application Developer?

    Hi..
    In HFSJ book Apache WebServer and Tomcat Web Container is used to explain the concepts. I am using WebSphere Studio Application Developer. Then What Could be the WebContainer for this.. or else WSAD combines both the server and the container..
    Thanks in Advance..

    We use WSAD 4.0 and TopLink 4.6 together on our project. We did the following:
    1. Created a Java Project in WSAD.
    2. Created all our Java Data Objects in this project.
    3. Added the following files in the ClassPath of this Project:
    a. wdiwasx.jar
    b. wdiall.jar
    c. wdiwsadx.jar
    4. Created a TopLink Project in the Mapping Workbench.
    5. Set the ClassPath to the location of our Java Data Objects' class files.
    6. Mapped the Data Objects to Tables.
    7. Exported TopLink Project to 'Java Source'.
    8. Added the Java Source back into the WSAD Java Project.
    Hope this helps.
    Deepak.

  • Sealing Violation with EJBs in WebSphere Studio Application Developer

    I have several projects in WebSphere Studion Application Developer.
    They are an Enterprise application project, an EJB Project, a Java project which has
    common classes being used by both client and server and a Client Project. The enterprise application project
    is referencing the EJB project and the Client project. The EJB project is referencing the Common project
    and the Common project is referencing the EJB project. The client project is referencing the Common project.
    The code I have in the projects is imported from the file system.
    I am getting all the projects compiled. The build paths are fine. I have a server instance and configuration
    for the enterprise project. I have specified classpath for the server instance.
    Now when I run the instance, I get the Sealing violation as given below
    [4/15/02 10:18:55:232 MDT] dc3bd46 EJBEngine I WSVR0037I: Starting EJB jar: ejbjar
    [4/15/02 10:18:55:732 MDT] dc3bd46 SystemOut U Inside LoggerHelper(String null, String com.rac.ao.ApplicationObject)
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U System property:LoggerConfigFile:null
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U Default file being used:log4j.conf
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U Searching for the configFile=log4j.conf
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U Searching for the config file in C:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.runtime/properties/
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U Searching for the config file in C:/Dev/RACCommon/bin/
    [4/15/02 10:18:55:748 MDT] dc3bd46 SystemOut U Config file for LoggerHelper in the current VM=null
    [4/15/02 10:18:55:795 MDT] dc3bd46 SystemOut U Could not read the file log4j.conf. Logging is disabled.
    [4/15/02 10:18:55:810 MDT] dc3bd46 EJBEngine X WSVR0062E: Failed to start EJB, RAC#RACServer.jar#AccountAO: sealing violation
    [4/15/02 10:18:55:951 MDT] dc3bd46 SystemOut U static in EntityObject
    [4/15/02 10:18:55:951 MDT] dc3bd46 SystemOut U static in AccountEOBean
    [4/15/02 10:18:55:951 MDT] dc3bd46 SystemOut U Inside EntityObject(AccountEO)
    [4/15/02 10:18:56:045 MDT] dc3bd46 SystemOut U Inside AccountEOBean() after calling super()
    [4/15/02 10:18:56:045 MDT] dc3bd46 EJBEngine X WSVR0062E: Failed to start EJB, RAC#RACServer.jar#AccountEO: sealing violation
    [4/15/02 10:18:56:076 MDT] dc3bd46 SystemOut U Inside EntityObject(AdminEO)
    [4/15/02 10:18:56:076 MDT] dc3bd46 EJBEngine X WSVR0062E: Failed to start EJB, RAC#RACServer.jar#AdminEO: sealing violation
    [4/15/02 10:18:56:951 MDT] dc3bd46 ServletEngine A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2001
    [4/15/02 10:18:56:998 MDT] dc3bd46 ServletEngine A SRVE0162I: Servlet Specification Level: 2.2
    [4/15/02 10:18:57:013 MDT] dc3bd46 ServletEngine A SRVE0163I: Supported JSP Specification Level: 1.1
    [4/15/02 10:18:57:232 MDT] dc3bd46 ServletEngine A SRVE0167I: Session Manager is Configured - Initializing...
    [4/15/02 10:18:57:466 MDT] dc3bd46 CacheManager A DYNA0011E: Servlet cache file dynacache.xml not found; caching is disabled
    [4/15/02 10:18:57:513 MDT] dc3bd46 ServletEngine A SRVE0169I: Loading Web Module: IBM EJB Test Client.
    [4/15/02 10:18:58:045 MDT] dc3bd46 WebGroup I SRVE0091I: [Servlet LOG]: JSP 1.1 Processor: init
    [4/15/02 10:18:58:091 MDT] dc3bd46 WebGroup I SRVE0091I: [Servlet LOG]: SimpleFileServlet: init
    [4/15/02 10:18:58:310 MDT] dc3bd46 HttpTransport A SRVE0171I: Transport http is listening on port 8,080.
    [4/15/02 10:18:58:357 MDT] dc3bd46 Server A WSVR0023I: Server Default Server open for e-business
    To dig into the problem, I created a sample ejb project and added it to the same server configuration. When I server instance,
    I got the sealing violation for my sample ejb also.
    After that I created a new server configuration and added the Sample ejb project to the server configuration.
    When I started the fresh server instance with this server configuration, the server was up without any sealing violation.
    I know the concept of sealing violation. I have even solved the sealing violation in other examples.
    But now here I don't have a control over RACServer.jar which I doubt might be sealed.
    Any comments will be appreciated.

    Using Visual Source Safe with Websphere Studio Application Developer (WSAD)
    Installing Visual Source Safe Plug In
    1.     Navigate to Netservb\data1\vol1\itdw\dev\new apps\vsswasplugin (Netservb should be the S: drive).
    2.     Double click on setup.exe.
    3.     Click OK on the initial message.
    4.     Browse to the Eclipse home directory. It should be similar to: C:\Program Files\IBM\WebSphere Studio\eclipse. Click Next.
    5.     The plug in should install.
    Integrating with WSAD
    A. Joining an Existing Visual Source Safe Project:
    1.     Open WSAD.
    2.     Create a project in WSAD.
    3.     Right click on project and select Team/Share Project.
    4.     From the Share Project screen, select VSS Configuration Wizard as the repository type and click Next.
    5.     The SS.EXE path should be similar to: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE.
    6.     Enter username and password.
    7.     The VSS directory should be Netservb\MIS-PC\VSS (Netservb should be the S: drive).
    8.     Leave source directory blank
    9.     Put Visual Source Safe project name in the Relative mount point entry.
    10.     Click Finish.
    11.     Right click on the WSAD project and select Team / Refresh.
    B. Creating a New Project (doesn�t exist in Visual Source Safe)
    1.     Open WSAD.
    2.     Create a project in WSAD.
    3.     Right click on project and select Team/Share Project.
    4.     From the Share Project screen, select VSS Configuration Wizard as the repository type and click Next.
    5.     The SS.EXE path should be similar to: C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\SS.EXE.
    6.     Enter username and password.
    7.     The VSS directory should be Netservb\MIS-PC\VSS (Netservb should be the S: drive).
    8.     Leave source directory blank
    9.     Put Visual Source Safe project name in the Relative mount point entry.
    10.     Click Finish.
    11.     Right click on the WSAD project and select Team / Add to VSS
    12.     Restart Visual Source Safe and new project should appear.
    C. Adding Source to Visual Source Safe from WSAD
    1.     Right click object to be added to Visual Source Safe.
    2.     Select Team / Add to VSS. Object should appear in Visual Source Safe.
    D. Checking out Visual Source Safe object from WSAD
    1.     Right click object to checkout and select Team / Check Out.
    2.     To undo check out, right click object and select Team / Undo Check Out.

  • Useing  ajax technologies in webSphere studio application developer 5.1.2

    1>Tell me how to implement ajax with JSF in webSphere studio application developer 5.1.2.
    2>Give me that information details with exmplex.
    3>If required any plagging for that ,how to collect that requirement file.

    Look around for existing Ajax for JSF frameworks, such as Ajax4jsf, then read its documentations.

  • EJB Deployment in WebSphere Studio Application Developer

    I am using WebSphere Studio Application Developer (WSAD) to write an EJB. I have written the code and done a "Deploy and RMIC Code" to generate the stub files, etc. I have also set-up the JNDI Name bindings to be similar to another EJB in my EAR.
    When I run my server (WebSphere) I get a NameNotFoundException. I've used the WSAD EJB Test Client to see the EJB but it doesn't appear on the list. Looks like I haven't fully deployed my EJB. Any ideas on what I've missed ? I've looked at every menu option and property there is and can't find out what's missing. The Help isn't much good either !
    Thanks.
    Sarah.

    Yes I believe all of the classes and their methods are OK and the server restarted.
    We have another EJB developed by someone else and mine appears to be identical - except for my own methods that are required. I can't help thinking that I have missed out some configuration somewhere.

  • Debugging in websphere studio application developer

    hi all
    i am working on websphere studio application developer.
    i wrote a Junit test calss for a systemaccessor which interact with DB2 database.
    the test is failed.
    i dont know debugging.
    can any one tell me how to debug a test case in WSAD in detail please?
    thanks in advance

    Check if the properties that specify the parser JAXP will use are well set:
    The javadoc for the newInstance() method of DocumentBuiderFactory says:
    Use the javax.xml.parsers.DocumentBuilderFactory system property.
    Use the properties file "lib/jaxp.properties" in the JRE directory. This configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above.
    Use the Services API (as detailed in the JAR specification), if available, to determine the classname. The Services API will look for a classname in the file META-INF/services/javax.xml.parsers.DocumentBuilderFactory in jars available to the runtime.
    bye.
    Platform default DocumentBuilderFactory instance.

  • Can I use Visual Studio to develop Sharepoint Online workflows on existing site lists?

    I've been using Sharepoint Designer to develop workflows in Sharepoint 2013 on Office 365, but hitting limitations. I would like, for example, to be able to trigger a workflow when a list item is deleted.
    Perhaps naively I thought Visual Studio should be able to help. I've read of useful things like Remote Event Receivers - sounds exactly what I need. I've used VS before for Windows desktop applications in VB, so downloaded a trial version of VS 2013.
    Now I'm having doubts. It looks like I can create a Sharepoint App on a development site and create lists and workflows within it, but I can't access my existing lists to do anything more sophisticated than I already can in SPD. Is that right?
    I was expecting to be able to enter my Sharepoint site URL into Visual Studio somewhere, just like in SPD, and do wonderful things with my lists - but unless I'm missing something, that's not possible.
    Have I just got it completely wrong??!

    Hi,
    yes you can check those links
    http://blogs.msdn.com/b/bharatgupta/archive/2013/04/27/sharepoint-2013-app-workflow-with-custom-task-outcomes-in-o365.aspx
    https://msdn.microsoft.com/en-us/library/office/jj164126.aspx
    http://www.andrewconnell.com/blog/sharepoint-online-integrated-workflow-apps-workflows-as-apps-in-the-hostweb
    https://msdn.microsoft.com/en-US/library/jj220043.aspx
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

  • Show a WebPart view in a visual studio site definition

    Hi Guys ,
    i developed a Site definition in VS. In this Definition i have a list instance  based on Promoted link template (type 170).Now i want to show in the Deafault.aspx a view of the promoted link but when i put the snipet
    <WebPartPages:WebPartZone runat="server" FrameType="TitleBarOnly" ID="full" Title="loc:full">
    <WebPartPages:XsltListViewWebPart runat="server"
    ListUrl="Lists/List1"
    IsIncluded="True"
    JsLink="clientTemplate.js"
    NoDefaultStyle="TRUE"
    PageType="PAGE_NORMALVIEW"
    Default="False"
    ViewContentTypeId="0x">
    </WebPartPages:XsltListViewWebPart>
    </WebPartPages:WebPartZone>
    the server respond me  : ..Type 'Microsoft.SharePoint.WebPartPages.WebPartZone' does not have a public
    property named  'XsltListViewWebPart'. I added
    <%
    @RegisterTagprefix="WebPartPages"Namespace="Microsoft.SharePoint.WebPartPages"Assembly="Microsoft.SharePoint,
    Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
    but it doesn´t work..
    Any suggestion?

    Hi gohberto,
    Before <WebPartPages:XsltListViewWebPart> tag,you can add <zoneTemplate>
    Here is a code snippet for your reference:
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main">
    <ZoneTemplate>
    <WebPartPages:XsltListViewWebPart runat="server" ListUrl="Lists/My List" [abbreviated...]>
    <XmlDefinition>
    <View Name="Some View" Type="HTML" Hidden="TRUE" TabularView="FALSE" DisplayName="" Url="View.aspx" Level="255" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/generic.png">
    <Query>
    <OrderBy>
    <FieldRef Ascending="FALSE" Name="ID"/>
    </OrderBy>
    </Query>
    <ViewFields>
    <FieldRef Name="ID"/>
    </ViewFields>
    <RowLimit Paged="TRUE">1</RowLimit>
    <Aggregations Value="Off"/>
    <Toolbar Type="Standard"/>
    </View>
    </XmlDefinition>
    <DataFields>
    </DataFields>
    </WebPartPages:XsltListViewWebPart>
    </ZoneTemplate>
    </WebPartPages:WebPartZone>
    Here is a similar thread for your reference:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/7740935e-d4d7-46f8-9dac-09b9c46855c6/type-microsoftsharepointwebpartpageswebpartzone-does-not-have-a-public-property-named-webpart?forum=sharepointcustomizationlegacy
    Best Reagrds
    Zhengyu Guo
    TechNet Community Support

  • Using Studio to develop DII Client for DiningGuide example

    Hi,
    I am trying to develop a DII client to the DiningGuide example from the Java Studio Enterprise Tutorials and Code Camps:
    http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.html
    I am using Studio6 with Application Server 7 update 3 with Java WSDP 1.3 [JAX-RPC 1.1 support]
    The question is how does Studio support JAX-RPC DII client development ? I understand that the config.xml file is different between Static stub based client and a DII client. Please let me know as to how to configure
    Studio to do this.
    Below is the code that is new in the DIIClient shown in 3 sections:
    - imports area in CustomerReviewTable.java
    - getCustomerReviewByName method in CustomerReviewTable.java
    [Basically taking the code from
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXRPC6.html#75222
            and modifying this to use this service and make appropriate
    changes for the return value (Vector).
            I suspect that this is where the problem is but need help to fix
    it. - Thanks!!]
    - Variables declaration new for DIIClient
    - The WSDL for the DGWebService service is also shown
    I tried it with both JAXRPC 1.0 and JAXRPC 1.1 [Setting this for the
    Service in Studio 6] and regenerating the Service code
    but did not see any difference.
    Right now, with the code shown below, I do not get any exceptions, but
    it doesnot show any reviews [Vector returned is null].
    Really appreciate your help,
    Sridhar.
    ============ imports area in CustomerReviewTable.java ===============
    package DIIClient;
    import javax.swing.table.*;
    import java.util.*;
    import WebService.DGWebServiceClientGenClient.*;
    /* New for DII */
    import javax.xml.rpc.Call;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.JAXRPCException;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.ParameterMode;
    ========= getCustomerReviewByName method in CustomerReviewTable.java
    =========
    private Vector getCustomerReviewByName(java.lang.String
    restaurantname) {
    Vector custList = new Vector();
    try {
    /* Old Static Stub in the Swing Client that works:
    WebService.DGWebServiceClientGenClient.DGWebService service2
    = new
    WebService.DGWebServiceClientGenClient.DGWebService_Impl();
    WebService.DGWebServiceClientGenClient.DGWebServiceServantInterface
    port = service2.getDGWebServiceServantInterfacePort();
    custList =
    (java.util.Vector)port.getCustomerreviewsByRestaurant(restaurantname);
    /* New DII Code below ... */
    System.out.println("Now using DII Code ...");
    ServiceFactory factory = ServiceFactory.newInstance();
    Service service = factory.createService(new
    QName(qnameService));
    QName port = new QName(qnamePort);
    Call call = service.createCall(port);
    call.setTargetEndpointAddress(endPointAddress);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new
    Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
    QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
    QName QNAME_TYPE_VECTOR = new QName(NS_XSD, "vector");
    call.setReturnType(QNAME_TYPE_VECTOR);
    call.setOperationName(new QName(BODY_NAMESPACE_VALUE,
    "getCustomerreviewsByRestaurant"));
    call.addParameter("String_1", QNAME_TYPE_STRING,
    ParameterMode.IN);
    String[] params = { restaurantname };
    custList = (java.util.Vector) call.invoke (params);
    System.out.println(custList);
    catch (Exception ex) {
    System.err.println("Caught an exception." );
    ex.printStackTrace();
    return custList;
    ============ Variables declaration new for DIIClient ====================
    //Variables declaration new for DIIClient
    private static String qnameService = "DGWebService";
    private static String qnamePort = "DGWebServiceServantInterface";
    private static String endPointAddress =
    "http://localhost:80/DGWebService/DGWebService";
    private static String BODY_NAMESPACE_VALUE = "urn:DGWebService/wsdl";
    private static String ENCODING_STYLE_PROPERTY =
    "javax.xml.rpc.encodingstyle.namespace.uri";
    // private static String NS_XSD = "http://www.w3.org/2001/XMLSchema";
    private static String NS_XSD =
    "http://java.sun.com/jax-rpc-ri/internal";
    private static String URI_ENCODING =
    "http://schemas.xmlsoap.org/soap/encoding/";
    //http://schemas.xmlsoap.org/soap/encoding/
    //http://java.sun.com/jax-rpc-ri/internal
    ============ The WSDL for the DGWebService service =================
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="DGWebService" targetNamespace="urn:DGWebService/wsdl"
    xmlns:tns="urn:DGWebService/wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:ns3="urn:DGWebService/types">
    <types>
    <schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal"
    xmlns:tns="http://java.sun.com/jax-rpc-ri/internal"
    xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <import namespace="urn:DGWebService/types"/>
    <complexType name="vector">
    <complexContent>
    <extension base="tns:list">
    <sequence/></extension></complexContent></complexType>
    <complexType name="list">
    <complexContent>
    <extension base="tns:collection">
    <sequence/></extension></complexContent></complexType>
    <complexType name="collection">
    <complexContent>
    <restriction base="soap11-enc:Array">
    <attribute ref="soap11-enc:arrayType"
    wsdl:arrayType="anyType[]"/></restriction></complexContent></complexType></schema>
    <schema targetNamespace="urn:DGWebService/types"
    xmlns:tns="urn:DGWebService/types"
    xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <import namespace="http://java.sun.com/jax-rpc-ri/internal"/>
    <complexType name="CustomerreviewDetail">
    <sequence>
    <element name="customername" type="string"/>
    <element name="restaurantname" type="string"/>
    <element name="review" type="string"/>
    <element name="sampleProperty"
    type="string"/></sequence></complexType>
    <complexType name="RestaurantDetail">
    <sequence>
    <element name="address" type="string"/>
    <element name="cuisine" type="string"/>
    <element name="description" type="string"/>
    <element name="neighborhood" type="string"/>
    <element name="phone" type="string"/>
    <element name="rating" type="int"/>
    <element name="restaurantname" type="string"/>
    <element name="sampleProperty"
    type="string"/></sequence></complexType></schema></types>
    <message name="DGWebServiceServantInterface_createCustomerreview">
    <part name="String_1" type="xsd:string"/>
    <part name="String_2" type="xsd:string"/>
    <part name="String_3" type="xsd:string"/></message>
    <message
    name="DGWebServiceServantInterface_createCustomerreviewResponse"/>
    <message name="DGWebServiceServantInterface_getAllRestaurants"/>
    <message name="DGWebServiceServantInterface_getAllRestaurantsResponse">
    <part name="result" type="ns2:vector"/></message>
    <message name="DGWebServiceServantInterface_getCustomerreviewDetail"/>
    <message
    name="DGWebServiceServantInterface_getCustomerreviewDetailResponse">
    <part name="result" type="ns3:CustomerreviewDetail"/></message>
    <message
    name="DGWebServiceServantInterface_getCustomerreviewsByRestaurant">
    <part name="String_1" type="xsd:string"/></message>
    <message
    name="DGWebServiceServantInterface_getCustomerreviewsByRestaurantResponse">
    <part name="result" type="ns2:vector"/></message>
    <message name="DGWebServiceServantInterface_getRestaurantDetail"/>
    <message name="DGWebServiceServantInterface_getRestaurantDetailResponse">
    <part name="result" type="ns3:RestaurantDetail"/></message>
    <portType name="DGWebServiceServantInterface">
    <operation name="createCustomerreview" parameterOrder="String_1
    String_2 String_3">
    <input
    message="tns:DGWebServiceServantInterface_createCustomerreview"/>
    <output
    message="tns:DGWebServiceServantInterface_createCustomerreviewResponse"/></operation>
    <operation name="getAllRestaurants">
    <input message="tns:DGWebServiceServantInterface_getAllRestaurants"/>
    <output
    message="tns:DGWebServiceServantInterface_getAllRestaurantsResponse"/></operation>
    <operation name="getCustomerreviewDetail">
    <input
    message="tns:DGWebServiceServantInterface_getCustomerreviewDetail"/>
    <output
    message="tns:DGWebServiceServantInterface_getCustomerreviewDetailResponse"/></operation>
    <operation name="getCustomerreviewsByRestaurant"
    parameterOrder="String_1">
    <input
    message="tns:DGWebServiceServantInterface_getCustomerreviewsByRestaurant"/>
    <output
    message="tns:DGWebServiceServantInterface_getCustomerreviewsByRestaurantResponse"/></operation>
    <operation name="getRestaurantDetail">
    <input
    message="tns:DGWebServiceServantInterface_getRestaurantDetail"/>
    <output
    message="tns:DGWebServiceServantInterface_getRestaurantDetailResponse"/></operation></portType>
    <binding name="DGWebServiceServantInterfaceBinding"
    type="tns:DGWebServiceServantInterface">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
    style="rpc"/>
    <operation name="createCustomerreview">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getAllRestaurants">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getCustomerreviewDetail">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getCustomerreviewsByRestaurant">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation>
    <operation name="getRestaurantDetail">
    <soap:operation soapAction=""/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"
    namespace="urn:DGWebService/wsdl"/></output></operation></binding>
    <service name="DGWebService">
    <port name="DGWebServiceServantInterfacePort"
    binding="tns:DGWebServiceServantInterfaceBinding">
    <soap:address
    location="http://localhost:80/DGWebService/DGWebService"/></port></service></definitions>
    =================================================================

    you may have a little better luck in the JNI forum.

  • List of question to ask to business as a Site Developer for the new site creation or enhancement ?

    Hi,
    Please help ?
    Thanks
    srabon

    Hi srabon,
    As I understand you are about to create site as developer, I find some references relevant for you:
    https://msdn.microsoft.com/en-us/library/ee231576.aspx
    https://msdn.microsoft.com/en-us/library/ee231568.aspx
    http://blogs.msdn.com/b/kaevans/archive/2013/10/24/what-every-developer-needs-to-know-about-sharepoint-apps-csom-and-anonymous-publishing-sites.aspx
    If you have specific question, please create new threads and provide more detail information.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Groupwise.wsdl in Visual Studio Web Developer 2010 Express

    Hello,
    I'm trying to add a "Service Reference" in VS Web Developer 2010 Express by importing the groupwise.wsdl file.
    Everything looks fine when importing the file/adding the reference but when using it several things are missing (e.g. there is no GroupWiseBinding)
    I tried with the groupwise.wsdl file of GW 8 and GW 7 SP3.
    Should I use another .wsdl file or is this just not supported by VS Web Developer? (it works fine in Visual Studio 2010 Express)
    Tx, vha

    Originally Posted by vha001
    Hello,
    I'm trying to add a "Service Reference" in VS Web Developer 2010 Express by importing the groupwise.wsdl file.
    Everything looks fine when importing the file/adding the reference but when using it several things are missing (e.g. there is no GroupWiseBinding)
    I tried with the groupwise.wsdl file of GW 8 and GW 7 SP3.
    Should I use another .wsdl file or is this just not supported by VS Web Developer? (it works fine in Visual Studio 2010 Express)
    Tx, vha
    Replying to an old thread, but since i walked into this problem myself and google could not not help me, maybe this is usefull for others.
    In Visual Studio 2010 (and 2008) you will need to add a Web Reference, not a Service Reference.
    This is done by right clicking on References, selecting "Add Service Reference", clicking Advanced, and then "Add Web Reference".
    Ray

Maybe you are looking for