How to connect to a Java WSDL in Flash Builder 4 ?

Hi everybody!
I have a Java project made with Hibernate + JPA.
There is the code of the Java Class:
package com.scop.acesso;
import java.io.Serializable;
import java.util.List;
import com.scop.dao.DisciplinaDAO;
import com.scop.dao.ProfessorDAO;
import com.scop.dao.ProvaDAO;
import com.scop.dao.TurmaDAO;
import com.scop.entity.Disciplina;
import com.scop.entity.Professor;
import com.scop.entity.Prova;
import com.scop.entity.Questoes;
import com.scop.entity.Turma;
public class CadastrodeProva implements Serializable{
     private static final long serialVersionUID = 1L;
     public Turma[] ListTurma()
          try{
               TurmaDAO turmadao = new TurmaDAO();
               List<Turma> list = turmadao.listarTurma();
               Turma[] turmas = new Turma[list.size()];
               for(int i = 0; i< list.size(); i++)
                    turmas[i] = list.get(i);
               return turmas;
          }catch(Exception e){
               e.printStackTrace();
          return null;
     public Disciplina[] ListDisciplina()
          try{
               DisciplinaDAO disciplinadao = new DisciplinaDAO();
               List<Disciplina> list = disciplinadao.listarDisciplina();
               Disciplina[] disciplinas = new Disciplina[list.size()];
               for(int i = 0; i< list.size(); i++)
                    disciplinas[i] = list.get(i);
               return disciplinas;
          }catch(Exception e){
               System.out.println("Erro: " + e.getMessage());
          return null;
     public Professor[] ListProfessor()
          try{
               ProfessorDAO disciplinadao = new ProfessorDAO();
               List<Professor> list = disciplinadao.listarProfessor();
               Professor[] professores = new Professor[list.size()];
               for(int i = 0; i< list.size(); i++)
                    professores[i] = list.get(i);
               return professores;
          }catch(Exception e){
               e.printStackTrace();
          return null;
     public void cadastraProva(Turma codigoturma, Disciplina codigodisciplina, Professor codigoprofessor, String dataprova, int qtdquestoes, List<Questoes> questoesList, double valorprova)
          Prova prova = new Prova();
          ProvaDAO provadao = new ProvaDAO();
          prova.setCodigoturma(codigoturma);
          prova.setCodigodisciplina(codigodisciplina);
          prova.setCodigoprofessor(codigoprofessor);
          prova.setDataprova(dataprova);
          prova.setQtdquestoes(qtdquestoes);
          prova.setQuestoesList(questoesList);
          prova.setValorprova(valorprova);
          provadao.inserirProva(prova);
When i generate WSDL automatically in Eclipse i receive this message:
"IWAB0489E Error when deploying Web Service to Axis runtime"
My questions are...
The Java Class is wrong?
I have to follow any model in Java for FB4 recognize the WSDL?
I made some tests with simples Java Classes like this:
package com.calculo.vo;
public class CalculoVO {
     public int soma(int a, int b) {
           return a + b;
and this
package classes;
public class NoticiaEsporteVO {
     public String noticia;
     public String data;
     public String getNoticia() {
          return noticia;
     public void setNoticia(String noticia) {
          this.noticia = noticia;
     public String getData() {
          return data;
     public void setData(String data) {
          this.data = data;
With that classes i generate WSDL normally and FB4 revognize them.
Someone can help me? PLEASE!!!
obs: IM BAGGIN xD

it may be the issue that i had
add a reference nulling out w3.org
otherwise it would be a real problem with your service
can you provide a url link to your wsdl for a sanity check ?

Similar Messages

  • How to use the Google Android Emulator in Flash Builder on Windows 7?

    I want to try out Flash Builder to create an app, but I cannot find out how to use the Google Android Emulator in Flash Builder. The simulators in Flash Builder work, and the android emulator is installed correctly and can run. I just can't seem to connect them. How do I do that?

    Hi Pahup,
    Thank you for your reply!!
    I adapted an Android App using Flash CC on a Mac. I already published this App for the Apple App Store. When I published the App for Android I chose Air 3.7.xxx for Android. I also created the p12 certificate using Flash CC in the publishing settigns for Android. So my App is theoretically finished and ready for Upload.
    When I went to the Google Play Store Developer Console I had the options to
    1.) Upload APK
    or
    2.) Prepare Store Entry
    ...so I prepared the Store entry first. When I go to "APK"-Tab in the console it looks like this:
    ... it says "Upload APK" and the Button below "Get Licence Key". When I click on the license Key Button it looks like this:
    So I think I should enter this RSA-Key somehow into my App BEFORE uploading it to the Google Play Store. This is recommended when an Ap is set to be paid. My Application is set to paid.
    I did not use any kind of licensing API (until now - cause I don´t know how and what it is for)
    This is all new to me. It is the first App I want to bringt to the Android market. I really hoped it would be as easy as getting an app into the Apple App Store. I found so many step by step instructions for dummies on "How to get an Flash iOS App into the App Store plus creating all the certificates needed", so I thought it would be the same for Android. But there is no help at all at the moment. I am totally confused.
    So any help, hint or instrusction would be great!!
    By the way - this is the App I want to get into the Google Play Store

  • Can anyone explain me how to scale the image in canvas in flash builder 4.6

    Can anyone explain me how to scale the image in canvas in flash builder 4.6, Scaling of image in component , can i get some examples ..  it should set almost all size screen

  • Java projects in Flash Builder

    Hi all,
    I previously used Flex Builder 3 on Vista x64.   Inside Flex Builder 3, I had both flex projects and java projects.  I needed both because I use BlazeDS and kept the java code in a separate project.  I would only like 1 development environment.
    I recently upgraded to Windows 7 x64 and went ahead and upgraded my Flex Builder 3 to Flash Builder 4.
    It was a simple measure to import my flex projects into Flash Builder 4.
    When I tried to import the Flex 3 java projects into Flash Builder 4, Flash Builder responded with:
      " The folder does not contain a valid Flash Builder Project."
    Short of installing Eclipse, a 32bit version of java, and using the Flash Builder Plugin, is there a way to get my java projects to import and compile in Flash Builder 4 while running on Windows 7 x64?
    Thanks in advance for any thoughts,
    - Steve
    P.S.  I may have had to import something special to get it to work in Flex Builder 3, I just can't remember.

    If you're trying to compile Java projects in FB4, you'll need to add eclipse's Java Development Tools (JDT).
    You can add the JDT this way:
    - quit FB4, and launch with "Run as Administrator" from the context (right-click) menu
    - from the Help menu choose "Install New Software..."
    - in the resulting dialog click "Add", and enter a name of your choosing such as "Galileo Updates" in the Name field
    - enter this URL into the Location field:
    http://download.eclipse.org/releases/galileo/
    - hit OK and then browse the available Galileo Updates
    - select Programming Languages > Eclipse Java Development Tools
    - continue on with the usual Update workflow, and after finishing it will prompt you to relaunch automatically.
    Allow FB4 to relaunch, and you should now have the JDT available for compiling Java projects.
    -Chris

  • How 2 connect webdynpro for java to R/3 system

    could any one tell me . how 2 connect web Dyn pro for java to connect to R/3 system????

    Hi,
    Pls check threads like
    Read R/3 table in Webdynpro
    Changing R/3 data in webdynpro
    or go via Jco
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm
    JCO
    Eddy
    PS. Reward useful answers and earn points yourself

  • How to connect OpenLDAP WAS Java, EP?

    Hello experts,
    did anyone succed to connect an OpenLDAP to WAS Java?
    I think a OpenLDAP libary need to be installed/configured in order to use it for the user management in the EP.
    I would appreciate to get information how to realize the connection?
    Where I can get the libary?
    Is there any step-by-step-guide?
    Thanks in advance.
    Thomas

    Thank you for your reply.
    I would like to connect an OpenLDAP to our EP7.0 with Web Application Server Java.
    However all experts just inform me that it is possible to use LDAP as a datasource. I know this already and I know where to find general information about using LDAP for identity management.
    But I need information how to connect especially an OpenLDAP to EP7.0 with WAS Java, Win2k3 64bit; Connection should be writeable and in a Flathierachy.
    I think I just have to adjust one of the LDAP-configuration XML-files to the OpenLDAP requirements.
    In the standard delivery there are already Configuration-XML-Files for Microsoft AD, Novell, Sun etc.
    Is there already an Configuration-XML-File which I can use for OpenLDAP?
    If not how I can use and adjust the exisiting files to make the OpenLDAP connection work (Access writeable, Flathierachy)?
    Thanks in advance for your help.
    Thomas

  • Updating web service WSDL in Flash Builder 4

    I have a web service added to my FB4 project. It is all working nicely but I cannot work out how to refresh the web service wsdl. In flex builder 3 there was a "Manage web services" option that let you do it but there doesn't appear to be one in Flash Builder 4.
    How do I update the generated code?

    In FB 4.5,  if you go to the Data Services view, and then right click on the data service (WSDL) you connected to, there is an option there to refresh the WSDL.  It works very well for me.

  • Import WSDL into Flash Builder 4 (Flex 4)

    Our Flex 3 applications use the File \ Import \ Web Services (WSDL) feature to import a WSDL directly into our source code.
    With Flash Builder 4, how do we import a WSDL directly into our source code?
    Thanks,
    Bruce

    With Flex Builder 3 I used to import Web services directly from my file system, is that possible any more?
    Thanks,
    Philip

  • How to use combobox to filter datagrid in Flash Builder 4?

    Hi,
    I've been working through the TestDrive application with Flash Builder 4 and I would like to learn how to filter a datagrid using a combobox.  I've googled the subject and results for many different versions of Flash, some which look like they will take a considerable amount of time to implement.  I'm hoping with Flash Builder 4 there is a straight-forward way to do this without writing pages of code.
    I think I may be close to getting this working by passing the combobox value into a PHP script which queries the database with a WHERE clause.
    Thakns,
    David

    I was able to get the data returned from a PHP call into an array by placing the following in the service result handler:
       public var myEmployeesArray : Array;
       [Bindable]
       public var myEmployeesDataProvider : ArrayCollection;
        myEmployeesArray = mx.utils.ArrayUtil.toArray(event.result);
        myEmployeesDataProvider = myEmployeesArray[0];   //data provider for the datagrid
    Not certain how to use filterfunction yet though.  I started to read this page but need to work on it more: http://cookbooks.adobe.com/post_Using_the_to_ArrayCollection_s_filterFunction-5441.html
    I'd like to filter only one field in the ArrayCollection.
    Also, for anyone else who may be learning while reading this, I found the following page helpful in figuring out how to load the PHP service return data into an array:
    http://www.cflex.net/showFileDetails.cfm?ObjectID=415
    David

  • How to put ActionScript into Catalyst project via Flash Builder?

    I don't know if this is the wrong place to put this, but I need to add some ActionScript into my Catalyst project... from what I understand, it can only be done via Flash Builder. Am I right? How?

    Hi Alex,
    To edit the code of a Flash Catalyst project, you can import it into Flash Builder as follows:
    File > Import > Flash Builder Project
    Select the FXP file from Catalyst
    Make sure "Import new copy of project" is selected, then hit Finish
    I'm not sure where you got the ActionScript code that you're planning to use, but it may be difficult to integrate into your project if it's not designed for use with Flex (a lot of AS code snippets you'll find online are just for general use in Flash, not tailored for Flex applications).  But you'll probably want to do something like this:
    Locate the image you want to make random.  If you're having trouble doing this, switch the view to Design mode, select the image with the mouse, and then switch back to Code mode to see the corresponding code highlighted.
    If there's no id attribute set on the image, add one (so you can refer to it in code later).
    If the tag is s:BitmapImage, change it to mx:Image (this is needed to make the contents dynamic)
    If the root s:Application tag doesn't have a creationComplete handler, add one (type it partway, then hit Ctrl+Space, then choose "Generate Handler").
    In the handler, add your code to randomly select an image filename.
    Then set <your image's id>.source = <filename>
    Hope that helps!
    - Peter

  • How can I open a local folder using flash builder or AS3?

    I need to open a local folder get the zip file and unzip it.
    I know that i cannot open a folder using flash builder, i did it using air app. now i do not know how do i integrate it with my flex program.
    Please help me with this issue.
    Thanks

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script source="Asset/folder.as" />
    <mx:Button x="10" y="10" label="My Button" width="122" height="31" id="myButton" click="folder()"/>
    <mx:ComboBox x="10" y="49" id="cbobx" dataProvider="{}"  ></mx:ComboBox>
    </mx:Application>
    and .as code is:
    // ActionScript file
    import flash.display.*;
    import flash.events.*;
    import flash.net.FileFilter;
    import flash.net.FileReference;
    import flash.net.FileReferenceList;
    import mx.controls.Alert;
    import mx.controls.ComboBox;
    private var fr:FileReferenceList;
    private var cmbobx:ComboBox = new ComboBox();
        private function folder():void
    fr = new FileReferenceList();
    fr.browse([new FileFilter("Zip Files", "*.zip")]);
    fr.addEventListener(Event.SELECT, listZipFiles);
    private function listZipFiles(e:Event):void
    Alert.show("selectHandler: " + fr.fileList.length + " files");
            var fls:Array = new Array();
            var file:FileReference;
            for (var i:uint = 0; i < fr.fileList.length; i++)
                file = FileReference(fr.fileList[i]);
                //Alert.show("File Name: " + fr.fileList[i]);
                Alert.show("File Name: " + file.name);
                fls.push(file);
                cmbobx.selectedItem = fls;
    private function getShpFiles(event:MouseEvent):void

  • How to work with multiple catalyst components in Flash Builder?

    Hey There,
    Can I create multiple components and merge them together? For example, I want to create a list control state, and bring it into my existing Flash Builder project. Then down the road, do something similiar... How would I go about that, and what files are essential fromt he catalyst project.. (assets, components, main.css, privateData..
    Thanks in advance!

    Yes, you can :-)
    You can export the components from different Flash Catalyst projects as fxpl files and then import them into Flash Builder. In Flash Catalyst, right-click in the Library panel and you will see the export command to save the current project's components into an fxpl file.
    A great article on Flash Builder/Flash Catalyst workflows is here:
    http://www.adobe.com/devnet/flashcatalyst/articles/flashbuilder_flashcatalyst_workflows.ht ml
    Ty

  • How to connect network with java?

    If I have already configured the network connection, my java application can work through it. But if I don't configure the network connection, how can my java application connect the nwtwork automatically? For example, popup a dialup dialog.
    Please tell me how to solve it if you know, thanks a million.

    I believe you will have to resort to native (C) code and JNI...
    Chuck

  • How to connect obiee using java?

    please any one help to my request.
    -GB

    please review my java code....
    String s_userName = "Administrator";
              String s_password = "Administrator";
              String s_olapSvrName = "10.112.176.53";
              String s_provider = "http://10.112.176.53:13080/aps/JAPI";      //what purpose this line and what type of service provider required here     
              try
              IEssbase ess = IEssbase.Home.create(IEssbase.JAPI_VERSION);
    System.out.println("STEP1..........");
              //IEssDomain dom = ess.signOn(s_userName, s_password, false, null, s_provider);
    IEssDomain dom = ess.signOn(s_userName, s_password, false, null, s_provider);
              System.out.println("STEP2..........");
              IEssOlapServer olapSvr = (IEssOlapServer)dom.getOlapServer(s_olapSvrName);
              System.out.println("STEP3..........");
              olapSvr.connect();
              System.out.println("STEP4..........");
    catch(Exception e) {
    e.getMessage();
    i am getting error
    ERROR: Cannot connect to Provider Server.Make sure the signon parameters are correct and the Provider Server is running.
    1. where we can find the provider service in obiee?
    2. how to configure this service?
    3. which port this service is running?
    thanks in advance
    -GB

  • How to check internet connection available or not in adobe flash builder 4.6

    Hi
    Can you please help me for the above query.
    Thanks In Advance.

    rohit pathak wrote:
    iwhen internet is down , it throw an exception on Connection.connect() ,
    connect() is void type , it is not returning anything, that's why i can not handle itWhen an exception is thrown, you have two choices:
    1) Catch it and actually handle it. This means whatever failed, you have to make it work. Maybe by trying again, maybe be providing a default value.
    2) If you cannot to #1, then you should not catch the exception in the first place. Or, if you do catch it, wrap it and rethrow it.
    So, for example, in your case, if your code is:
    Establish connection.
    Use connection.If the "establish" part fails, you obviously can't do the "use" part, and this overall task has failed. That happens sometimes.

Maybe you are looking for