Creating a Button Class from MC

I have a few simple questions for those who know about
classes. I have been reading the tutorials on creating classes and
specifically extending the MC class. I am pretty sure that an
extended MC_Class might help me get what I need from my project.
I essentially have a bunch of buttons, hundreds to be exact -
and the exact number needs to be dynamic. Each one is currently a
static MC with a bunch of variables assigned to each one via global
variables. Its iis pulling in data taht assign the button values
from XML files and - these XML files may change.
Q1. If I extend the MC class so I can add attributes to MC's
instance (Avoiding global variables) - will it mess with the rest
of the movie clips in my scene? I mean if all I want to do is ad a
a few dynamic string variables - it really shouldnt effect any of
the other clips would it? MC.JumpURL = "newurl.com", MC.Thumnail
="/here/image.jpg" (This would help alot)
Q2. What if I wanted to define actions of the new MC in the
class? If the MC is an extension of the MC class. Would all of my
MC's automatically take on the actions of the custom MC Class? For
instance - I want the movieclip to animate onscreen and have
rollover effects. I could do this easy if it were static - but I
need this to become dynamic. Also - there are now unknown
quantities to deal with
Q3. How exactly would I call and assign the MC its atributes
at the same time? And how do I specify this MC to use the functions
defined in the class and not the other MC's I created elsewhere in
the File.
Example. Currently I have a grid of MCs' created when the
User clicks a menu item (Another type of MC).
Each new MC animates onstage - it calls a
loadMovie(_root.thumb[0], this.Flipper) to assign and embedded MC
an image defined in the XML that was loaded and assigned because I
placed the instance on stage and wrote a MC script on each MC.
Confused - check out what I am creating at
www.vincesidwell.com/Fischer
Click Fabrication or TurboSystems menus. Both menues will
load a new set of Thumbnails at the bottom. They are loaded via an
XML loaded by the menu and a function assigns the jpgs for the main
gallery, Rollover image, and eventually a URL for a downloadable
High Res Image.
The client recently added more than 9 images per menu item. I
will need to create a scrollable thumbnail gallery with dynamic
quantities
I can manually create the MC Scroller item for static number
of buttons. But scripting an unknown for each ones links and images
is insane. So I am looking at Classes. Assign a custom class for
the flipping buttons and I should be able to assign tthem as the
XML loads, and have it automatic. (pray please please please)
Anyhelp?
Thanks
Vince Sidwell

Hi there!
I'll try and give some answers to your questions below...
"vin-E" <[email protected]> wrote in message
news:[email protected]...
>I have a few simple questions for those who know about
classes. I have
>been
> reading the tutorials on creating classes and
specifically extending the
> MC
> class. I am pretty sure that an extended MC_Class might
help me get what
> I
> need from my project.
>
> I essentially have a bunch of buttons, hundreds to be
exact - and the
> exact
> number needs to be dynamic. Each one is currently a
static MC with a
> bunch of
> variables assigned to each one via global variables. Its
iis pulling
> in
> data taht assign the button values from XML files and -
these XML files
> may
> change.
>
> Q1. If I extend the MC class so I can add attributes to
MC's instance
> (Avoiding global variables) - will it mess with the rest
of the movie
> clips in
> my scene? I mean if all I want to do is ad a a few
dynamic string
> variables -
> it really shouldnt effect any of the other clips would
it? MC.JumpURL =
> "newurl.com", MC.Thumnail ="/here/image.jpg" (This would
help alot)
You do not have to create a new MC class to assign local
values or functions
to it. A pseudo code example:
Loop through total buttons you want to make (which can be
number of entries
in an XML file)
Create a new movieclip and load the button graphic into
this, give it a
name like
MyButtonX, where X is an increasing number based on which
button this
is. (Instead of creating
and empty movielcip, you could also attach a movie (or
button) from
library.
Assign the values and create the functions for this button
that you
would like (probably based
on information in the XML file):
MyButtonX.someVariable = node.attribues.someData;
createOnRelease(MyButtonX, someOtherParamters)
(where you have defined the function createOnRelease to do
something
like
function createOnRelease(MC, someOtherParameteres) {
MC.onRelease = function() {
do what you want to do based on someOtherParameteres
Position and resize MyButtonX
In your example you have a 3x3 grid, which might extend to
3xTOTAL,
so you'd have to use some
mathematical formula based on the value X, something like
MyButtonX._x =
(((X-1)%3)*(buttonWidths+hSpaceBetweenButtons)
MyButtonY._y = Math.floor((X-1)/3)*(buttonHeights
+vSpaceBetweenButtons
end of loop.
>
> Q2. What if I wanted to define actions of the new MC in
the class? If
> the MC
> is an extension of the MC class. Would all of my MC's
automatically take
> on
> the actions of the custom MC Class? For instance - I
want the movieclip
> to
> animate onscreen and have rollover effects. I could do
this easy if it
> were
> static - but I need this to become dynamic. Also - there
are now unknown
> quantities to deal with
If you actually create a new class, than all instances of
that class will
have the methods you define for it (just like all instances
of a movieclip
has those methods. At least, have them available. That
doesn't mean they are
always in use ... like for example the onRollOver. But again,
you don't need
to create a class to give all your dynamically created
buttons a rollover
effect. (Check code above).
> Q3. How exactly would I call and assign the MC its
atributes at the same
> time? And how do I specify this MC to use the functions
defined in the
> class
> and not the other MC's I created elsewhere in the File.
You use the instance name of the MC to access that MC and its
attributes/methods. For example button number 10 might look
like this:
trace(MyButton10._x);
trace(MyButton10.someVariableYouHaveDefined);
MyButton10.callSomeFunctionYouHaveDefined();
For a movieclip to access a variable that has been defined
for that instance
of the movieclip, use "this" to point to that particular
instance. So if we
defined the function "callSomeFunctionYouHaveDefined" for
button number 10
and want to access "someVariableYouHaveDefined" for this
particular
instance, then
MyButton10.callSomeFunctionYouHaveDefined = function() {
trace(this.someVariableYouHaveDefined);
> Example. Currently I have a grid of MCs' created when
the User clicks a
> menu
> item (Another type of MC).
> Each new MC animates onstage - it calls a
loadMovie(_root.thumb[0],
> this.Flipper) to assign and embedded MC an image defined
in the XML that
> was
> loaded and assigned because I placed the instance on
stage and wrote a MC
> script on each MC.
>
> Confused - check out what I am creating at
www.vincesidwell.com/Fischer
>
> Click Fabrication or TurboSystems menus. Both menues
will load a new set
> of
> Thumbnails at the bottom. They are loaded via an XML
loaded by the menu
> and a
> function assigns the jpgs for the main gallery, Rollover
image, and
> eventually
> a URL for a downloadable High Res Image.
>
> The client recently added more than 9 images per menu
item. I will need
> to
> create a scrollable thumbnail gallery with dynamic
quantities
>
> I can manually create the MC Scroller item for static
number of buttons.
> But
> scripting an unknown for each ones links and images is
insane. So I am
> looking
> at Classes. Assign a custom class for the flipping
buttons and I should
> be
> able to assign tthem as the XML loads, and have it
automatic. (pray please
> please please)
Again, no need for a class for this. If you load the buttons
into seperate
MCs, and make sure to have all these MCs created inside a
common parent MC
for these buttons (which then _only_ contains these buttons).
You can move
this parent MC up and down on the stage based on the
scrollbar. And you can
read height off this MC to create your scrollbar.
You might want to check out the following tutorials at
http://www.gotoandlearn.com/:
XML Video Playlist
Creating Animated Buttons
Introduction to OOP
Now, I've said many times you don't need to make your own
class to do what
you want. That does not mean you can't make your own class. I
just think
that the main problem you are facing is the dynamic part,
which you will be
facing if you make your own class or not.
/Jensen/
>
> Anyhelp?
>
> Thanks
> Vince Sidwell
>
>
>

Similar Messages

  • Can't create client proxy classes from WebLogic-generated WSDL file

    We have a web service that we used to generated a WSDL file. We then used clientgen
    to try and create the client proxy classes from the WSDL. This failed. Doesn't
    it seem reasonable that if WebLogic creates a WSDL that WebLogic should also be
    able to consume that WSDL?

    Can you please post the wsdl?
    Regards,
    -manoj
    http://manojc.com
    "Robert" <[email protected]> wrote in message
    news:40db0bc0@mktnews1...
    >
    We have a web service that we used to generated a WSDL file. We then usedclientgen
    to try and create the client proxy classes from the WSDL. This failed.Doesn't
    it seem reasonable that if WebLogic creates a WSDL that WebLogic shouldalso be
    able to consume that WSDL?

  • Create PDF button gone from Excel worksheet

    Recently had to restore computer back to factory. I installed full CS4 WebSuite which includes Acrobat. I used to have a PDF button in Excel that would let me create a PDF from an Excel worksheet. How do I get that back? I used to use Office 2003 and now I use Office 2013.
    Thanks so much in advance!

    The store is at http://www.adobe.com/products/acrobatpro/buying-guide-upgrade-pricing.html. If you click the upgrade option, you will see the option to upgrade to AA XI from the AA X Suite (whatever that is, I assume CS) or from individual products. In your case it is not an individual product, but a suite. If you have questions or want to see if you can get a deal, you will have to call the Adobe sales folks. We can only repeat what we see and have heard from others (except for those folks who have the suite).
    You can still print to the Adobe PDF printer from Excel 2013, if you can get AA9 to work on Win8 (an outside chance, but may require some workarounds). You would just not get links or bookmarks. You might see if there is a MS plugin for creating PDFs from Excel. If there is, you might be able to create the PDFs that way and edit in Acrobat 9.

  • Error creating instance of class from same package

    When I try to create an instance of a class that is in the same package, my IDE indicates that the constructor can not be found. Can anyone tell me what is wrong? Thanks. Below are the codes for both classes:
    package com.practice;
    import java.applet.*;
    import java.awt.*;
    import javax.swing.*;
    public class WebProject extends Applet{
         public void init(){
                    // The following line is where the IDE indicates there is an error
              UserInterface gui = new UserInterface();
         } // end init()
         public void start(){
         } // end start()
         public void stop(){
         } // end stop()
         public void destroy(){
         } // end destory()
    } // end class
    package com.practice;
    import java.applet.*;
    import java.awt.*;
    import javax.swing.*;
    public class UserInterface extends Applet{
         JPanel menuPanel = new JPanel();
         JPanel contentPanel = new JPanel();
         JPanel savePanel = new JPanel();
         ImageIcon saveIcon = new ImageIcon("workspace/images/toolbarButtongraphics/general/Save24");
         JButton saveButton = new JButton("Save", saveIcon);
         public UserInterface(){
              savePanel.add(saveButton);
              setLayout(new BorderLayout());
              add(menuPanel, BorderLayout.NORTH);
              add(contentPanel, BorderLayout.CENTER);
              add(savePanel, BorderLayout.SOUTH);
    } // end UserInterface class

    Thanks for the explanation and example. At first, I didn't understand what you were getting at, but after reading "Using Top-Level Containers" and "How to Use Root Panes" java tutorials it made much more sense. Unfortunately, the books I've read up to this point, did not cover those topics at all. The books simply stated that the first step in creating a Swing gui was to extend the JFrame, or JApplet, or etc.
    Unfortunately, my original problem persists. I continue to get compile-time errors such as:
    TestUserInterface.java:5: cannot find symbol
    symbol: class UserInterface
    location: class projects.web.TestUserInterface
                          UserInterface ui = new UserInterface(); Anyone know why?
    Both the classes are in the same named packaged. Below is my code:
    package projects.web;
    import java.awt.*;
    import javax.swing.*;
    public class UserInterface extends JFrame{
         JPanel menuPanel = new JPanel();
         JPanel contentPanel = new JPanel();
         JPanel selectionPanel = new JPanel();
         JButton save = new JButton("Save");
         JButton addFiles = new JButton("Add");
         public UserInterface(){
         super("File Upload");
         setSize(500, 500);
         menuPanel.add(addFiles);
         selectionPanel.add(save);
         setLayout(new BorderLayout());
         add(menuPanel, BorderLayout.NORTH);
         add(contentPanel, BorderLayout.CENTER);
         add(selectionPanel, BorderLayout.SOUTH);
         } // end constructor
    } // end UserInterface class
    package projects.web;
    public class TestUserInterface{
         public static void main(String[] args){
              UserInterface ui = new UserInterface();
    } // end TestUserInterface class

  • Coldfusion create instance of class from data element when cosuming a webservice

    I am calling the following wsdl via cfobject https://services-staging.labcorpsolutions.com/webservice/services/LabcorpOTS/wsdl/LabcorpO TS.wsdl
    I am attempting to call the following method registerDonor(java.lang.String, java.lang.String, com.labcorp.ots.ws.data.CreateRegistrationRequest) which references the CreateRegistrationRequest data element.
    I haven't been successful in creating an instance of the CreateRegistrationRequest class and setting values of its members, as well as the Phone class which is also a data element.
    Any assistance would be greatly appreciated in creating instances of methods located in the targetNamespace="http://data.ws.ots.labcorp.com" of the wsdl.
    Thanks

    Thanks for the explanation and example. At first, I didn't understand what you were getting at, but after reading "Using Top-Level Containers" and "How to Use Root Panes" java tutorials it made much more sense. Unfortunately, the books I've read up to this point, did not cover those topics at all. The books simply stated that the first step in creating a Swing gui was to extend the JFrame, or JApplet, or etc.
    Unfortunately, my original problem persists. I continue to get compile-time errors such as:
    TestUserInterface.java:5: cannot find symbol
    symbol: class UserInterface
    location: class projects.web.TestUserInterface
                          UserInterface ui = new UserInterface(); Anyone know why?
    Both the classes are in the same named packaged. Below is my code:
    package projects.web;
    import java.awt.*;
    import javax.swing.*;
    public class UserInterface extends JFrame{
         JPanel menuPanel = new JPanel();
         JPanel contentPanel = new JPanel();
         JPanel selectionPanel = new JPanel();
         JButton save = new JButton("Save");
         JButton addFiles = new JButton("Add");
         public UserInterface(){
         super("File Upload");
         setSize(500, 500);
         menuPanel.add(addFiles);
         selectionPanel.add(save);
         setLayout(new BorderLayout());
         add(menuPanel, BorderLayout.NORTH);
         add(contentPanel, BorderLayout.CENTER);
         add(selectionPanel, BorderLayout.SOUTH);
         } // end constructor
    } // end UserInterface class
    package projects.web;
    public class TestUserInterface{
         public static void main(String[] args){
              UserInterface ui = new UserInterface();
    } // end TestUserInterface class

  • Creating a dynamic button class

    Hi all. I'm trying to create a button class that has some
    properties such as scale that can be coded at runtime. The tutorial
    I found hard codes the scale amount into the class, but I would
    like to be able to create a new instance of the button class in
    Flash, and say on the main timeline, define my variables for
    scale...and pass these to the class file. I'm running into an
    "1120" error message. I have attached the original working code.
    Thanks.

    Thanks. I'm having trouble finding a clear tutorial that I
    can understand on this topic. I've tried creating a set function
    but not sure where to write the get function. I have attached my
    class file and my call to it in the main timeline. I've been
    struggling with learning custom classes and appreciate any help!
    Also, I am now creating a new instance on the main timeline
    instead of linking to it in the library. What is the best way of
    doing this.

  • Can I work with a derived class from u0093ApplicationClassu0094

    Hello, I want to create a derived class from “ApplicationClass” for use in my Application, the problem is the function “SAPbouiCOM.SboGuiApi.GetApplication(-1)”, it return a COM object. If I do a specific cast to my own class (that derive from ApplicationClass), the metod give a COM exception and say that I can’t do a specific cast with a COM object.
    Can I do that cast? And How can I do it?
    I’m programming in C#.
    Thanks.

    I think that you can´t assign an object of the base class
    to an object of the derived class. I don´t know why you need to do that. With more information we could help you

  • Dynamic proxy class from a Class instead of an Interface

    Why is not possible to create a dynamic proxy class from a Class instead of an Interface, using java.lang.reflect.Proxy?
    I have seen the source code of Proxy :
         * Verify that the Class object actually represents an
         * interface.
         if (!interfaceClass.isInterface()) {
              throw new IllegalArgumentException(
              interfaceClass.getName() + " is not an interface");
    It seems to be restricted as a desing desition. Has someone knows about the reason of that?
    There is a workarround for creating dynamic proxy classes from any POJO which not implements any interface?

    The JDK doesn't allow you to proxy classes for a few reasons: it encourages you to use interfaces - often a good idea - and also, proxying of classes exposes you to unpredictable behaviour. Since dynamic proxies are created by generating a new class at runtime, if you proxied a class you'd be generating a subclass of that class, and if the superclass had any final methods, the proxy wouldn't be able to intercept invocation of them, so your proxy wouldn't work properly. Also, the superclass would actually be loaded, which could produce other unpredictable results if, say, that class had a static initializer. With an interfaces, you generate an object that just has the public API described by the interface, with a class, you're actually generating a subclass of the proxied type, which isn't the same thing
    If you really want to proxy a class rather than an interface, there are various third-party libraries around that will do it for you. ASM, CGLIB, BCEL to name a few. My choice would be ASM, but really I'd urge you to try and re-design with interfaces if at all possible
    http://cglib.sourceforge.net/
    http://asm.objectweb.org/
    http://jakarta.apache.org/bcel/

  • Creating a button through a class... H E L P

    Can any on ehelp me...
    I need to make a class, so that i in my JSP-file can create multiple buttons with different names..
    Something like this:
    package form;
    import java.awt.*;
    import java.applet.*;
    public class knap1 extends Applet
         public knap1()
              Button Knap = new Button("Knap");
              add(Knap);
    I'm pretty new at this, so can any one help me...
    Martin

    You'r right...
    The only thing i want is to have a set of different classes, that makes different form tag's by sending information to them..
    fx. TextField("the_name", "size","max_length")
    NumField("the_name", "size","max_length")
    and so on....
    Can you help from here....

  • Can you create a button from apDiv in CS4

    can I create a button action for in the code view
    <div id="ap Div3"></div>
    I know how to link text that I place within the div id to a html document but I want to be able to draw an AP DIV from the layout and have it contain an image or color, then when hovering over have the background change to a color, then be able to hit anywhere whithin the <div id="ap Div3"></div> area and have it change to another color.
    I am very comfortable with flash and am having a dificult time understanding the rigid layout of dreamweaver.
    thanks in advance

    I get the impression you are new to DW.  With that said, I think it would be a very good idea for you to go over to http://www.w3schools.com and get familiar with html and css.
    I dont believe you can have an apdiv as a link (I may be wrong, but hopefully at the end of this  it will not be relevant), however you can have a "button" or other graphic as a link. Here is the code.
    <a href="http://www.yourlink.com"><img src="folder/file.ext" width="200" height="200" /></a>
    This will create a link on an image.
    If you want the image or colors to change, you will have to go and set rules for your links.  Put the following in your editor (DW Code View) and adjust as you like.
    a:link {
        color: #333333;
    a:visited {
        color: #FFFFFF;
    a:hover {
        color: #CCCCCC;
        background-color: #333333;
    a:active {
        color: #333333;
    Lastly, apdivs, in particular for someone new to DW and html can be a world of pain.  Trying to use them as a layout object can be very frustrating, because once you have tweaked and tweaked them, you look at your layout on a different machine, and chances are it looks nothing like what you had.
    HTH
    Gary

  • Parse errors while creating a Web service from Java class!

    Can anybody tell me please, is it possible to create a Web Service from java class where the input from user is required ?
    I have the following program, which is successfully compiled, but when I'm trying to make a web service in JDeveloper, the following error occurs:
    "Validation failed.
    The implementation class primePackage.isPrime ofport type MyWebService contains parse errors."
    import java.io.*;
    import java.util.*;
    class isPrime
    public static void main (String args[])
    Scanner reader = new Scanner(System.in);
    int n;
    System.out.println ("Enter a number you want to know is it prime or not");
    n=reader.nextInt();
    if (isPrime(n))
    System.out.println ("True");
    else
    System.out.println ("False");
    static boolean isPrime (int n)
    int i=2;
    while (i<=n-1)
    if (n%i==0)
    return false;
    i++;
    return true;
    }

    Hi,
    Can anybody tell me please, is it possible to create
    a Web Service from java class where the input from
    user is required ?Yes, the parameters of your method will be mapped in WSDL.
    But i've some considerations about your code.
    I suggest you change the name of isPrime do Prime, its a good code convention to put the name of class starting with Upper case. and isn't good the name of class equals to name of method.
    I suggest you to change the "static boolean isPrime (int n)" to "public boolean isPrime(int n)" to publish a method as a WebService method it's must be public and not static. After this change try to generate your Web Service.
    Regards.

  • Any difference in creating a web service from a java class or session bean?

    Hi,
    The JDeveloper tutorial at http://www.oracle.com/technology/obe/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm demonstrates creating a web service from a plain java class. I'm wondering:
    - Is it possible to create a web service from a stateless session bean instead of a java class? If so, what's the proper way to do this in JDeveloper? When I tried doing so in JDeveloper 10.1.3.0.4 (SU5) using the J2EE Web Service wizard, the wizard did not list the session bean in the Component To Publish dropdown (it does list any java classes available in the project). I can proceed by manually typing in the name of the session bean. After the wizard completes though, the @Stateless annotation that had been in my session bean class code is removed and replaced by a @WebService annotation. The end result is that it looks like it made no difference whether I had tried to create the web service from a session bean or plain java class as the annotations in the resulting web service code are the same (although if I had started from a session bean, the class for the web service still implements the Local/Remote EJB interface that the session bean originally implemented).
    - Assuming it's possible to create a web service from a stateless session bean, is there any advantage/disadvantage creating a web service from a java class vs a stateless session bean? I'm creating the web service from scratch so I also need to either build the java class or stateless session bean the web service would be based on from scratch too.
    Thanks for any ideas about this.

    Hi,
    EJB Session beans (EJB 3.0) are deployed as WebServices by annotating the class with @WebService and the methds with @WebMethod (both tags require you to add the JSR-181 library to your project (available in the JDeveloper list of libraries)). Unlike the J2E WebService, the EJB session bean service is turned into a WebService upon deployment. This means you obtain teh WSDL file after deployment
    - Assuming it's possible to create a web service from a stateless session bean, is there any advantage/disadvantage creating a web service from a java class vs a stateless session bean?
    The difference is that EJB Session bean based web services are integrated with the J2EE container, which means that they can leverage container services like transaction handling, data sources, security, JMS etc.
    Frank

  • Help on creating Java Classes from WSDL in JDev 10.1.3

    Hi all,
    I am creating Java Web Service Class in JDev 10.1.3 based on my WSDL file, but I am getting a JAVA class for each Element in my WSDL, and each class has its own methods. But what I need is to have Only ONE Class with the Elements wrapped as methods in this class (this is the result I had when I was using JDev 9.0.2 but I had Datatype conversion issue, so now I am trying to do the same with JDev 10.1.3)
    My WSDL file is as follows:
    - <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
    - <s:element name="Connect">
    <s:complexType />
    </s:element>
    - <s:element name="ConnectResponse">
    <s:complexType />
    </s:element>
    - <s:element name="Disconnect">
    <s:complexType />
    </s:element>
    - <s:element name="DisconnectResponse">
    <s:complexType />
    </s:element>
    - <s:element name="GetPIValue">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="piTAG" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="piTS" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="GetPIValueResponse">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="GetPIValueResult" type="s:double" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="double" type="s:double" />
    </s:schema>
    When creating the JAVA Classes in JDev, I am getting the following:
    Connect.java
    ConnectResponse.java
    Disconnect.java
    DisconnectResponse.java
    GetPIValue.java
    GetPIValueResponse.java
    But what I actually need is to have a Method GetPiValue that should take in 2 paramters as strings and return a Double Value. Now the GetPIValue looks like this:
    package ConnecttoPI;
    public class GetPIValue implements java.io.Serializable {
    protected java.lang.String piTAG;
    protected java.lang.String piTS;
    public GetPIValue() {
    public java.lang.String getPiTAG() {
    return piTAG;
    public void setPiTAG(java.lang.String piTAG) {
    this.piTAG = piTAG;
    public java.lang.String getPiTS() {
    return piTS;
    public void setPiTS(java.lang.String piTS) {
    this.piTS = piTS;
    With this class Generated, how can I call the Class Methods and get the response?
    Do I have to change the way/settings when I am creating the Java Classes using the Wizard? Why is the Wrapper wrapping the WSDL in multiple classes?
    Thanks to anyone's help in advance.
    Regards,
    Baz

    An update to my previous Post:
    After creating the Web Service proxy based on my WSDL file, I tested the Web Service Call from the Java Class (Service1SoapClient) and it is properly Calling the Web Service passing in String Paramters (2 Strings) and returning a Double Datatype. The Class is as below:
    package project1.proxy;
    import oracle.webservices.transport.ClientTransport;
    import oracle.webservices.OracleStub;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Stub;
    public class Service1SoapClient {
    private project1.proxy.Service1Soap _port;
    public Service1SoapClient() throws Exception {
    ServiceFactory factory = ServiceFactory.newInstance();
    _port = ((project1.proxy.Service1)factory.loadService(project1.proxy.Service1.class)).getService1Soap();
    * @param args
    public static void main(String[] args) {
    try {
    project1.proxy.Service1SoapClient myPort = new project1.proxy.Service1SoapClient();
    System.out.println("calling " + myPort.getEndpoint());
    // Add your own code here
    double testResponse = myPort.getPIValue("A3LI004.pv", "9/9/2007 9:20 am");
    System.out.println("response from PI " + testResponse);
    } catch (Exception ex) {
    ex.printStackTrace();
    * delegate all operations to the underlying implementation class.
    Connect to PI Server
    public void connect() throws java.rmi.RemoteException {
    _port.connect();
    Disconnect from PI Server
    public void disconnect() throws java.rmi.RemoteException {
    _port.disconnect();
    Retrieve PI Values
    public double getPIValue(String piTAG, String piTS) throws java.rmi.RemoteException {
    return _port.getPIValue(piTAG, piTS);
    Now I am trying to IMPORT this class into Oracle Forms, but I am getting the following Error:
    Importing Class project1.proxy.Service1SoapClient...
    Exception occurred: java.lang.NoClassDefFoundError: oracle/webservices/transport/ClientTransport
    First, is this the Correct Class that should be Imported into Oracle Forms in order to Trigger the Java Class to Call the Web Service? Why am I getting this Error? I have read that this could be because of my CLASSPATH environment variable or the J2SE version compiling the java class???
    Can someone help me to IMPORT this Java Class properly into Oracle Forms and Call the Web Service?
    Many thanks for your help,
    Baz

  • Create data control button missing from menu

    I'm using Jdeveloper 11.1.2
    1. I create a new Application
    2. create a new JavaClass under viewController
    3. right click the class
    and...
    I can't find the create data control button and create webservice button
    I do the same operation on another computer , it appears !
    why ?
    is ther any settings I need to turn ?

    If you do not bother about loosing your current IDE preferences then close/kill jdev and try deleting the jdev system directory. Start jdev again.
    Refer http://tompeez.wordpress.com/tag/system-folder/

  • How to create a UML diagram from a existing .java/.class file?

    I want to create a UML diagram from a existing .java/.class file automatic in JDeveloper. Can I get it? thanks!

    create a new class diagram and then simply drag the java classes from your project onto the diagram area.

Maybe you are looking for