Webservice result ComplexString?

what is this ComplexString and how can i get the values to
convert correctly? I'm making requests against a soap java
webservice and i'm getting errors in my program because these
datatypes don't seem to be translating over correctly. Everything
looks right, but yet longs and booleans get transferred into this
funny complex string thing. It's breaking code, because it's not
automatically transferring them over to the right dataTypes. is
there anything i can do to get the data types to convert correctly?
Anybody know why they aren't just transferring over correctly??
thanks in advance for any help.

Did you ever find a solution to this problem? I have exactly
the same problem when calling a SOAP Java WebService.

Similar Messages

  • Caching WebServices Result

    Hi,
    Does WebLogic Server (7.0 or 8.1) offer a functionality to cache the WebService
    results in the
    server-side?
    Thanks,
    Charles.

    Hi Charles,
    No, but if you could describe your "use case" it would be helpful to
    understand; possibly existing functionality could be adapted or future
    enhancements could be put into the product.
    Thanks,
    Bruce
    Charles Desmoulins wrote:
    >
    Hi,
    Does WebLogic Server (7.0 or 8.1) offer a functionality to cache the WebService
    results in the
    server-side?
    Thanks,
    Charles.

  • Accessign webservice result from another mxml file

    HI,
    I have an mxml application that uses the <mx:webservice
    function to load a wsdl and get some values. I have tested the code
    and it works fine and i can get the result and fault methods
    correctly.
    I would now like to call this service from another mxml file
    and use access the result or fault string accordingly.
    example scenario would be that when i load my main page, i
    would like the lookup values obtained from using the webservice to
    be available.
    i tried the following but didnt get any luck. Here lookup is
    the mxml file which contains the webservice, which i am importing
    in this file. GetLookValuesWithAuth is the operation name.
    var l:lookup=new lookup;
    var s:AsyncToken=l.es.GetLookupValuesWithAuth.send();
    s.addResponder(new mx.rpc.Responder(onSResult,onSFault));
    public function onSResult(e:ResultEvent):void{
    Alert.show("value is");
    var xy:XMLList=XMLList(e.result);
    lplist=xy.descendants("LOOKUPVALUES");
    Alert.show("lookup is
    "+lplist.toXMLString()+xy.toXMLString());
    public function onSFault(e:FaultEvent):void
    Alert.show("Fault is "+e.toString());
    An example of the webservice call in lookup.mxml is shown
    below
    <mx:WebService id="e1" wsdl="{wsdl "
    result="resultHandler(event)"
    fault="mx.controls.Alert.show(event.fault.faultString.toString())>
    <mx:operation name="GetLookupValuesWithAuth"
    resultFormat="e4x">
    <mx:request>
    <databaseName>{database name}</databaseName>
    <userName>{username}</userName>
    <password>{password}</password>
    <lookupID>05855b98-75c7-4117-a91c-db59e9ea0204</lookupID>
    </mx:request>
    </mx:operation>
    Any suggestions?

    "amthekkel" <[email protected]> wrote in
    message
    news:g9ovt2$e63$[email protected]..
    > HI,
    > I have an mxml application that uses the
    <mx:webservice function to load a
    > wsdl and get some values. I have tested the code and it
    works fine and i
    > can
    > get the result and fault methods correctly.
    > I would now like to call this service from another mxml
    file and use
    > access
    > the result or fault string accordingly.
    > example scenario would be that when i load my main page,
    i would like the
    > lookup values obtained from using the webservice to be
    available.
    >
    > i tried the following but didnt get any luck. Here
    lookup is the mxml file
    > which contains the webservice, which i am importing in
    this file.
    > GetLookValuesWithAuth is the operation name.
    > {
    > var l:lookup=new lookup;
    > var s:AsyncToken=l.es.GetLookupValuesWithAuth.send();
    > s.addResponder(new
    mx.rpc.Responder(onSResult,onSFault));
    > }
    >
    > public function onSResult(e:ResultEvent):void{
    > Alert.show("value is");
    > var xy:XMLList=XMLList(e.result);
    > lplist=xy.descendants("LOOKUPVALUES");
    > Alert.show("lookup is
    "+lplist.toXMLString()+xy.toXMLString());
    > }
    >
    > public function onSFault(e:FaultEvent):void
    > {
    > Alert.show("Fault is "+e.toString());
    > }
    >
    > An example of the webservice call in lookup.mxml is
    shown below
    >
    > <mx:WebService id="e1" wsdl="{wsdl "
    result="resultHandler(event)"
    I have no idea about web services, but it seems to me you
    should have a
    closing curly bracket in the wdsl property.
    HTH;
    Amy

  • Mapping webservice result to a Data Type

    Hi,
    I receive an array of String objects as a result of a webservice call. These String Objects are XML documents (but as String Object...). How can I take each element of the array and extract all tags values to be mapped to a pre-defined Data Type? Have I to implement a parser in an UDF? How can I do the same mapping for each array cell automatically?
    Thanks!

    Use a simple XSLT to extract the xml document from a particular string.
    Suppose the response XML is like:
    <OutputMessage>
    <string></string>
    </OutputMessage>
    Your xslt would be something like:
    <xsl:template match="/OutputMessage/string">
    <xsl:value-of select="." disable-output-escaping="yes"/>
    </xsl:template>
    If you have more than 1 string, create a root tag and extract all of them inside that tag.
    Regards,
    Henrique.

  • How to get webservice result as "e4x" format in a professional solution?

    Hi. I want to get data from a .Net webservice as "e4x"
    format. It works when i use <mx notation to define the service
    in flex. However i want to build a more professional solution and
    want to implement the webservice as a class. But I can't get it to
    work such that i return the result as "e4x". Instead i get an
    object with arrays etc. The problems might be that i need to use
    the flex class operation to define "e4x" and then i need to bind
    the operation with the webservice but it seems that the webservice
    still doesn't know about to return the result as e4x. Here you see
    the code in <mx notation which is working fine:
    <mx:WebService id="WS" wsdl="
    http://localhost/testservice/service.asmx?WSDL"
    result="WS_onResult(event)" >
    <mx:operation name="HelloWorld" resultFormat="e4x" >
    <mx:request></mx:request>
    </mx:operation>
    </mx:WebService>
    And in the WS_onResult procedure i get the result by doing
    this:
    var xmlResult:XML = XML(event.result);
    As i said the above code is working fine but the code below
    doesn't work well because it doesn't return the result as "e4x":
    WS = new mx.rpc.soap.WebService();
    WS.wsdl = "
    http://localhost/testservice/service.asmx?WSDL";
    WS.addEventListener(LoadEvent.LOAD, load_listener);
    WS.addEventListener(ResultEvent.RESULT, result_listener);
    OP = new mx.rpc.soap.Operation(WS,"HelloWorld");
    WS.loadWSDL();
    And in the load procedure to perform the call:
    public function load_listener(event:LoadEvent):void {
    OP.resultFormat = "e4x";
    WS.HelloWorld.send();
    And in the result listener i get a result as object and NOT
    as "e4x". Can anyone help?
    Btw. here i add the .Net code:
    [WebMethod]
    public XmlElement HelloWorld() {
    XmlDocument doc = new XmlDocument();
    string xml = "<Test>this is a test</Test>";
    doc.LoadXml(xml);
    return doc.DocumentElement;
    }

    Hmm, try setting the resultFormat at the WS level. But what
    you have looks like it should work.
    Tracy

  • Webservice result and dataGrid fields

    Hello,
    I try to bind data from webService to dataGrid.
    The trace of webService response is [Object],[Object]
    For each Object I have:
         Object.id = 0
         Object.name = "fullname"
         Object.id = 1
         Object.name = "fullname1"
         Object.id = 2
         Object.name = "fullname2"
          Ect....
    the binding in datagrid is
    <mx:Script>
         import webapps.pharmaspot.App;
         [Bindable] public var resultObject:Object = null;
    </mx:Script>
    <mx:WebService
         id="groupWS"
         wsdl="{ App.getEntryPoint() + 'groupManagerService?wsdl' }"
         showBusyCursor="true">
    <mx:operation
         name="listAll"
         resultFormat="object"
         fault="App.faultHandler(event)"
         result="App.resultHandler(event, resultObject)"
    />
    </mx:WebService>
    <mx:DataGrid id="groupGrid" width="100%" dataProvider="{groupDataProvider.resultObject}">
         <mx:columns>
              <mx:DataGridColumn headerText="Id" dataField="id"/>
              <mx:DataGridColumn headerText="Name" dataField="name"/>
        </mx:columns>
    </mx:DataGrid>
    This is the soap response
    <?xml version="1.0" encoding="UTF-8"?>
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
        <S:Body>
            <ns2:listAllResponse xmlns:ns2="http://webservice/">
                <return>
                    <id>1</id>
                    <name>Gruppo Uno</name>
                </return>
                <return>
                    <id>2</id>
                    <name>Gruppo Due</name>
                </return>
            </ns2:listAllResponse>
        </S:Body>
    </S:Envelope>
    I can NOT see data in datagrid....
    Please, help ...... thank you.

    Hey!
    You should inspect the groupDataProvider.resultObject with the Debugger because it's probably empty, otherwise data would show in the DataGrid.
    Also, look at the resultHandler function to see if it populates te variable correctly.
    Good luck!

  • Accessing webservice result - e4x format

    Hi
    (Flex 2 Beta version)
    I am having trouble gaining access to the child elements from
    a webservice call with a resultformat type of e4x.
    I am receiving the results as expected but I haven't been
    able to gain access to elements nested within the XML. I would like
    to be able to gain access to the ''modules'' elements within the
    results.
    For example, using the e4x format I should be able to access
    elements from the WSDL results:
    event.result.ns1::findEquipmentReturn.modules;
    (See the below code for complete app, just outputting to text
    field at the moment)
    Any help would be appreciated.
    Cheers
    Wayne

    hi,
    u can send httprequest this way
    <mx:HTTPService id="FolderReq" url="
    http://deepakt:8080/PopMailConnector/servlet/GetFolderList
    " method="POST" showBusyCursor="true"
    useProxy="false" resultFormat="e4x" result="initList(event)"
    fault="mx.controls.Alert.show(event.fault.faultDetail)">
    <mx:request>
    <rand>
    Math.rand();
    </rand>
    </mx:request>
    </mx:HTTPService>
    and
    retrive data in result event by calling initList method as
    mentioned above
    and then use this
    [Bindable]
    public var XLC:XML;
    public function initList(event:Event) : void
    XLC = event.target.result;
    u can get the result in e4x format

  • Extracting XML from webservice result with Namespaces using E4X

    Hi,
    I need to extract some data from proprietary Web Service (to be fed to HierarchicalData for dataProvider of ADG).
    So I made service.returnType=’e4x’;
    In that case it returns data as XML.
    I need to get useful data from it after Snapshot:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header xmlns:msdwHdr="http://xml.msdw.com/ns/appmw/soap/1.0/header">
    <msdw:RequestID xmlns:msdw="http://xml.msdw.com/ns/appmw/soap/1.0/header">restsoap#1390182244050#197728273958044232</msdw:RequestID>
    <msdwHdr:FinalMessage>true</msdwHdr:FinalMessage>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <ADSSnapshotResponse xmlns="http://xml.ms.com/ns/appmw/dataserver/1.0">
    <Snapshot seqNo="0">
    <BASE_ELEMENT_NAME BASE_ELEMENT_NAME="4.11.2.0">
    Using E4X, like:
    var root:XML = event.result as XML; //good!
    var xmlRoot1:XMLList = root['SOAP-ENV:Body'].ADSSnapshotResponse.Snapshot.BASE_ELEMENT_NAME;
    it does return XMLList (tried different variants), but debugger shows nothing at all inside that XMLList.
    var root1:XMLList = root.children();  // that returns valid XMLList with 2 XML elements inside
    But all other data I could not get if I use any E4X:
    Can I skip Envelope, going to Body as one of its children?  suppose I can...
    a) root.SOAP-ENV:Body would give compilation errors because of ‘-‘, ‘:’
    b) root.Body gives blank XMLList
    c) root.Body[0] returns NULL  
    Any idea how to extract the load from ADS Response (envelope)?
    What can I do regarding XML Namespaces in E4X ?
    If I set service.returnType="xml" it returns data as XMLNode's.
    But I prefer to use E4X if possible.
    Please help!
    TIA,
    Oleg.
    P.S.: using Flex 4.5.1 with Flex3 ADG.

    not an implementable option for us and cost prohibitive.

  • Formating the response of Java webservice to table structure in webdynpro

    Hi All,
    I am stuck at a point where I have  a Java Webservice resulting an ArrayList Response.
    My webdynpro will have to populate the ArrayList response into a table.
    Below is the piece of code am using to execute my webservice.
    CODE :
    JavajdbcModel md = new JavajdbcModel();
        Request_Display reqDisp= new Request_Display(md);
        try
        reqDisp.execute();
        wdComponentAPI.getMessageManager().reportSuccess("Str: "+reqDisp.getResponse());
    RESULT :
    <modelObject class="Response_Display"><target roleName="DisplayResponse"><modelObject class="DisplayResponse"><attribute name="Response" value="[[i01111, USSS, DSGTechTwo, DEF], [i012345, USSS, DSGTechOne, ABC], [i067890, USSS, DSGTechTwo, DEF], [i07777, USSS, DSG, ggg], [i08888, cccc, vvvv, bbbb], [io3333, USSS, DSGTechOne, abc]]"/></modelObject></target></modelObject>
    The required output are the values that are with the blue font above.
    I have tried with methods like :
    getAttributeValue, getResult - but are of not much help.
    Could you please help me out in this.
    Thanks & Regards,
    Suyukti. B N.

    Dear Suyukti,
    Since your web service returns an arraylist,
    you need to retreive the response into an arraylist. Then you can you this arraylist to populate the node for the table as required.
    Your code will be something like
    ArrayList al = (ArrayList)reqDisp.getResponse();
    Now that you have the response, then use the get function of the arraylist to set the context.
    al.get(index);
    This function returns  java.lang.Object, so you need to to cast into the required type.
    e.g. String str = (String) al.get(0);
    Hope that works.
    Regards,
    Mayuresh.
    PS: xxxxxxxxxxxxxxxxxxxxxxxxxx
    Edited by: Armin Reichert on Jan 1, 2008 3:49 PM

  • Getting web service results from double click event

    I have an Elixir ILOG Org Chart and I want to add nodes dynamically when a user clicks on the node.  When the click event fires, Can I assign the results of the webservice result to the node as children of that node; similar to what someone would do when calling a function in another language like Java or C#.  For instance I have a method that handles the double click or single click of a user on a node in my Org Chart:
    private function doubleClickHandler(event:OrgChartEvent):void{
         event.item.appendChild(getResults(_id, _idSecond, "") );
    private function webServicehandler_Result(event:ResultEvent):XML{
         return event.result;
    getResults(x,y,z) is the function that calls the web service and returns XML results of all the employees/people that are underneith the object that was double clicked on.  Will this work?

    Use the change event.

  • Java Webservice and Flex

    Hello All,
    I am stuck at getting webservice result from flex. I have
    created a webservice which has following method:
    @WebMethod
    public String Login(@WebParam(name = "userID") String
    userID, @WebParam(name = "password") String password) {
    // TODO Store privilege and user ID in session
    String privilege =
    UserManager.getInstance().validateUserLoginInfo(userID,password);
    return privilege;
    I was getting correct response from this service(as object
    format) untill I defined
    @WebResult(name="userPrivilege") in the method. after that I
    am getting null if I defined Web service defination in flex MXML as
    follows:
    <mx:WebService id="wsLogin"
    service="NMSMainServiceService" port="NMSMainServicePort"
    wsdl="
    http://localhost:8080/NMS/NMSMainService?wsdl"
    >
    <mx:operation name="Login"
    result="loginResultHandler(event)"
    fault="loginFaultHandler(event)">
    <mx:request>
    <userID>{userID.text}</userID>
    <password>{password.text}</password>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    I don't know any reason, then if I define resultFormat="xml"
    or "e4x" I do get response by event.result however I can not access
    a node in the response array or xml.
    private function loginResultHandler(event:ResultEvent):void{
    //var myXML:Array = event.result as Array;
    var can:String = event.result.LoginResponse.userPrivilege;
    Alert.show(can);
    is giving me error saying : A term is undefined. When I
    checked response in log file it is :
    <ns2:LoginResponse xmlns:ns2="
    http://service.nms.satpath.com/"
    xmlns:S="
    http://schemas.xmlsoap.org/soap/envelope/">
    <userPrivilege>manager</userPrivilege>
    </ns2:LoginResponse>
    I have created namespace too
    private var ns2:Namespace = new Namespace("
    http://service.nms.satpath.com/");
    private var S:Namespace = new Namespace("
    http://schemas.xmlsoap.org/soap/envelope/");
    but no luck.
    I would really appreciate if somone could help me this,
    please do let me know if you need any more information. Please
    help, its urgent.
    Thanks.

    Thanks for your response Sujit, however in this case I can
    not store complex results like this:
    <S:Envelope xmlns:S="
    http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
    <ns2:GetUsersResponse xmlns:ns2="urn:satpath/service">
    <users>
    <active>No</active>
    <address>----</address>
    <createdBy>----</createdBy>
    <department>----</department>
    <email>----</email>
    <loginID>admin</loginID>
    <phone>----</phone>
    <privilege>Manager</privilege>
    <superVisor>----</superVisor>
    <userName>----</userName>
    </users>
    <users>
    <active>No</active>
    <address>----</address>
    <createdBy>----</createdBy>
    <department>----</department>
    <email>----</email>
    <loginID>meena</loginID>
    <phone>----</phone>
    <privilege>Network Operator</privilege>
    <superVisor>----</superVisor>
    <userName>----</userName>
    </users>
    </ns2:GetUsersResponse>
    </S:Body>
    </S:Envelope>
    Actually I have a data grid in which I am displaying results
    obtained by web service, result is a bean which has all the details
    related to a user in the system like userName, loginID, Address,
    phone etc. I am getting all the result and displaying them by
    <mx:Datagrid dataprovider="myService.myOperation.lastResult"
    > and its working fine.
    Now I want to display 3 columns (user name, log in id and
    user privilege) when I click on one row I want to use states and
    transictions so that I can display user deatils (all other
    information obtained from the web service) for that I have to store
    the result somewhere possibly in a bean so that I can fetch it in
    the changed state( which is user detail) based on user has selected
    which row.
    I don't know how can I store the result in the bean at flex
    side, if I declare resultFormat as object I am unable to typecast
    it in some collection, if I take xml as result format soap headers
    are creating problem. Or should I follow some other approach?
    Please help its really urgent.
    Thanks for all the help & support.

  • Webservice : problem with Base64 returned value

    Hello all,
    We are calling a webservice from a Flex2 application.
    When the returned value does not contain accentuated letters,
    we receive the value "as-is", everything is OK.
    When there is at least one accent, the result is
    automatically Base64 encoded by the server, and the
    xsi:type="n2:base64 is specified in the XML answer.
    The problem is that Flex2 does not Base64 decode the returned
    string, ans we cannot get the right value.
    We do not think that the problem is on the server, because we
    tryied to use 2 other webservice clients, and they worked well.
    We wonder if Flex2 can handle Base64 encoding on Webservice
    results or not.
    We thought abut using the Base64 decoder class, but it won't
    work because the result if not *always* Base64 encoded (depending
    if it contains some chars or not).
    Is there any solution to this issue ? If it can help, I paste
    the XML returned by the server at the end of this message.
    Thank you for your help.
    MiF
    <?xml version="1.0" encoding="UTF-8" ?>
    <env:Envelope xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:env="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <env:Body>
    <n1:GetArticleResponse xmlns:n1="urn:ActionWebService"
    env:encodingStyle="
    http://schemas.xmlsoap.org/soap/encoding/">
    <return xmlns:n2="
    http://schemas.xmlsoap.org/soap/encoding/"
    xsi:type="n2:base64">PD94bWwgdmVyc2lvbj0iMS4xIiBlbmNvZGluZz0iSVNPLTg4NTktMSI/Pgo8
    YXJ0aWNsZXM+CiAgPGFydGljbGU+CiAgICA8aWQ+MTwvaWQ+CiAgICA8Y29k
    ZT5NaXRjaDwvY29kZT4KICA8L2FydGljbGU+CiAgPGFydGljbGU+CiAgICA8
    aWQ+MjwvaWQ+CiAgICA8Y29kZT5Qb2xvPC9jb2RlPgogIDwvYXJ0aWNsZT4K
    ICA8YXJ0aWNsZT4KICAgIDxpZD4zPC9pZD4KICAgIDxjb2RlPkvpa+k8L2Nv
    ZGU+CiAgPC9hcnRpY2xlPgo8L2FydGljbGVzPgo=</return>
    </n1:GetArticleResponse>
    </env:Body>
    </env:Envelope>

    You should use cast_to_varchar2 regardless what is source of base64_encode.
    Because base64-value consists of single byte ASCII-characters.

  • Webservice & SSO in SAP portal

    Hi,
    I have created a webservice with basic authentification in my ABAP SAP backend.
    Now I like to use this webservice at my Java Web Dynpro application in SAP Portal. SSO (or is it SAP Logon-Ticket?) for the portal is set up correctly. I tested it with a SAP transaction iView that now doesn't need an addition logon.
    In the Web Dynpro application I added the webservice as a model.
    At project properties a also added tcsecwssec~service in the "Service references" tab.
    If I manually add username/pw the webservice works fine.
    ._setUser("user");
    ._setPassword("pw123456");
    But I like to use Single Sign On (SSO) for calling the webservice. How can I reach this?
    I also searched the Forum but none of the tested workarounds worked for me.
    Calling the webservices results in this exception:
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
    Thanks a lot.
    Henning

    ok, I found the solution on my own.... it's easy :-D
    I had to define a HTTP destination for my webservice in Visual Administrator:
    (Services -> Destionations -> HTTP)
    Then only add the destination in the custom controller:
    setHTTPDestinationName("ZDEMO_SERVICE");
    Henning

  • WebService not initialized

    I am experimenting with WebServices, when i used form a JSP/Servlet client the webservice is working fine:
    package org.me.calculator.client;
    import com.delunasaenz.scoreboard.Game;
    import com.delunasaenz.scoreboard.ScoreboardWS;
    import com.delunasaenz.scoreboard.ScoreboardWSService;
    import java.io.*;
    import java.util.List;
    import javax.annotation.Resource;
    import javax.servlet.*;
    import javax.servlet.annotation.WebServlet;
    import javax.servlet.http.*;
    import javax.xml.ws.WebServiceContext;
    import javax.xml.ws.WebServiceRef;
    import javax.xml.ws.soap.SOAPFaultException;
    * @author mg116726
    @WebServlet(name="ClientServlet", urlPatterns={"/ClientServlet"})
    public class ClientServlet extends HttpServlet {
        @WebServiceRef(wsdlLocation = "http://localhost:8080/ScoreboardApp/ScoreboardWSService?wsdl")
        public ScoreboardWSService service;
        @Resource
        protected WebServiceContext context;
        * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
        * @param request servlet request
        * @param response servlet response
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try {
                out.println("<h2>Servlet ClientServlet at " + request.getContextPath () + "</h2>");
                    ScoreboardWS port = service.getScoreboardWSPort();But using that in a JavaFX code service is null:
    import com.delunasaenz.scoreboardWS.Game;
    import com.delunasaenz.scoreboardWS.ScoreboardWS;
    import com.delunasaenz.scoreboardWS.ScoreboardWSService;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.List;
    import java.util.ResourceBundle;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.ActionEvent;
    import javafx.fxml.FXML;
    import javafx.fxml.Initializable;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.control.Label;
    import javax.annotation.Resource;
    import javax.xml.ws.WebServiceContext;
    import javax.xml.ws.WebServiceRef;
    * @author charly
    public class ScoreBoardController implements Initializable {
        @WebServiceRef(wsdlLocation = "http://localhost:8080/ScoreboardApp/ScoreboardWSService?wsdl")
        public ScoreboardWSService service;
        @Resource
        protected WebServiceContext context;
        @FXML
        private ChoiceBox leagueSelection;
        @FXML
        private void handleButtonAction(ActionEvent event) {
        @Override
        public void initialize(URL url, ResourceBundle rb) {
            leagueSelection.getSelectionModel().select(0);
            leagueSelection.getSelectionModel().selectedIndexProperty()
                    .addListener(new ChangeListener<Number>() {
                @Override
                public void changed(ObservableValue<? extends Number> ov,
                                                    Number t, Number t1) {
                    ScoreboardWS port = service.getScoreboardWSPort();Am I doing something wrong?
    Greetings and thanks in advance.
    NetBeans 7.3 , Java 7, GlasFish 3

    Hi,
    Getting the result back from a httpservice / webservice /
    remoting call always happens asynchronously. That is, there is no
    way to force your script to wait for the result before proceeding.
    The validator has to return true or false immediately. There is no
    way to make it wait for a webservice result.
    Ideally, Flex validators are for client side validation.
    Though you could make a web service call, and check the result in
    the result handler, and then fire your validator (or simply set
    errorString of your component to the error message).
    Whatever the case, the validator has to have all the
    necessary information to validate when it is called.

  • Webservice based on PL/SQL function - ORA-04068

    Hi,
    we have a problem here with PL/SQL based webservices. If the PL/SQL package gets invalid then the very first request to the webservice results in:
    java.sql.SQLException:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package "TUG_NEW.WBSERVICES" has been invalidated
    ORA-04065: not executed, altered or dropped package "TUG_NEW.WBSERVICES"
    ORA-06508: PL/SQL: could not find program unit being called ORA-06512: at line 1
    Any workarounds? Shouldn't the package become recompiled automatically when it was invalid?
    Thanks, Christian

    the caller gets an error on the first request. from the second request on it works ... indicates the package is not yet recompiled when the first request is sent. When the second request is sent, the package has been recompiled.

Maybe you are looking for