Flex + cairngorm problem with 2 webservice

hi i want to retrive data from 2 webservices using cairngorm.  flex can get data from the firsone and from the second is telling that doesn't see method, for me it is cos service it trying to find method from second webservice in this firstone. so when shoudl i call second service? or how can i clear service, i am sure that i call proper method.
public function runApp():void
    services.serviceURL = "http://localhost:84/Service1.asmx?wsdl";
    new GetService1Event().dispatch();
    services.logout();
    services.serviceURL = "http://localhost:85/service2.asmx?wsdl"
    new GetService2Event().dispatch();   

Hi,
check the type of sandbox when you run it localy and from server.
Security.sandboxType

Similar Messages

  • Flex Mobile: Problems with MultiDPI SplashScreen

    Hi guys,
    The property applicationDPI in my application is 160, and I created three bitmaps to 160, 240 and 320 DPI to be used in the SplashScreen.
    I created this class . see : http://www.adobe.com/devnet/flex/articles/mobile-skinning-part2.html#articlecontentAdobe_n umberedheader_5
    package preloaders
        import mx.core.DPIClassification;
        import mx.core.mx_internal;
        use namespace mx_internal;
        public class MultiDPISplashScreen extends CustomSplash
            [Embed(source="assets/mobile160/splash_160.png")]
            private var SplashImage160:Class;
            [Embed(source="assets/mobile240/splash_240.png")]
            private var SplashImage240:Class;
            [Embed(source="assets/mobile320/splash_320.png")]
            private var SplashImage320:Class;
            public function MultiDPISplashScreen()
                super();
            override mx_internal function getImageClass(dpi:Number, aspectRatio:String):Class
                if (dpi == DPIClassification.DPI_160)
                    return SplashImage160;
                else if (dpi == DPIClassification.DPI_240)
                    return SplashImage240;
                else if (dpi == DPIClassification.DPI_320)
                    return SplashImage320;
                return null;
    Ih the main app:
    <s:TabbedViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                applicationDPI="160"
                                preloader="preloaders.MultiDPISplashScreen"
                                splashScreenMinimumDisplayTime="2000">
    The problem is that Flex does not take the correct bitmap if i run my app at 240DPI or at 320DPI (as does the class MultiDPIBitmapSource)and my splash screen is scaled and grainy! :-(
    Can anyone help me?
    Thnks a lot!
    Francesco

    Hi Francesco,
    Setting the application dpi shouldn't affect the splash screen (you can verify by testing when you don't set the app dpi or by debugging the function).  The dpi that gets passed in to the imageClass should always be the runtime dpi.
    I see that in your MultiDPISplashScreen class extends CustomSplash instead of the SplashScreen.  Maybe that could be the issues, where does CustomSplash come from?
    Edit:
    The issue seems to be that in the SplashScreen class we don't undo the automatic dpi scale factor when the scaleMode="none" (the default).  When this is combined with different images per dpi, this will cause the observed behavior.  Setting scaleMode to any other value should fix the issue.
    If you need to have the image centered and not scaled, then you may follow the work-around posted by Uggers at the end of the thread (bottom of the page) at http://www.adobe.com/devnet/flex/articles/mobile-skinning-part2.html#articlecontentAdobe_n umberedheader_5
    Thanks,
    -Evtim

  • Problem with starting webservice since latest patch.

    Since we updated our NWDS and Server to (SP03 PAT0001) the webservices we create as a starting webservice for or BPM process don't appear in the single service administration. When we try to start the process manually from the process repository we can start it normally but in our scenario we need the starting webservice.
    First thing we thought was that because of the patch some things in the project got corrupt and that's why it doesn't show but when we created a new project and build a small test with it we ran into thesame problem. We did the exact same test with a previous version of the NWDS and with that one we were able to get the webservice.
    Did anyone else run into this problem ? and is there a way to fix it ?
    To reproduce just do the following steps:
    - create a Process composer project
    - Create a WSDL in the project with only 1 operation with only a input structure.
    - Create a process
    - Set the WSDL as interface for the start
    - Added a user for the swimming lane
    - Add a userInterface or Automated step.
    - Deploy

    Hi,
    Normally there should not be any issue with the upgrade, but in your case if something that was working previously is not working after upgrade without any changes being made then there might be some functional issue and it would be better to raise an OSS Note with SAP.
    Plese keep us posted on this as we are also planning an upgrade soon.
    Regards,
    Arafat

  • Cairngorm & Problems with Shared Components

    Thanks in advance for any help. I still consider myself a
    newbie, so please excuse any stupid errors that I make in
    describing the problem I am having.
    I am working on a Cairngorm app, the framework of which has
    been handed to me. I have a component that can be used to either
    enter or "update". Update is in quotes because what really happens
    is that the old record is voided and a new one is entered -- but
    the user is oblivious to this.
    This component, which wraps and submits the data, is
    instantiated twice in the app. Each instantiation is accessed via a
    different "link". The problem: each time the user enters or
    "updates", 2 records entered. I watch it in debug, two RPC's and
    two results. I assume that this is because the component is
    instantiated twice and, for the life of me, I cannot figure out how
    to prevent this. I
    I have tried a couple of things 1) created two sets of events
    (Cairngorm & Completion), one for submit and one for modify,
    but because the command expects a Cairngorm event of a certain
    type, it can't handle both without a bunch messing around. I tried
    using one initial Cairngorm event (submit) and two distinct
    completion events, but no go. I am thinking about now creating two
    commands .... ???
    Actually, this is not a new problem. I am a bit under the gun
    here, so when it came up before, I duplicated all the code,
    including everything related to RPCs (DTOs, commands, etc.) but
    this is becoming a nightmare to maintain and is bad, bad, bad ....
    Any suggestions? This cannot be a completely uncommon thing?

    I am not sure why you need to instantiated the component
    twice. A component can broadcast several different events of the
    same Type. For an example:
    broadcaster.broadcastEvent(WidgetEvent.ENTER, new
    WidgetEvent(widgetVo));
    broadcaster.broadcastEvent(WidgetEvent.UPDATE, new
    WidgetEvent(widgetVo));
    Are you sure the component doesn't broadcastEvent 2 calls for
    a each click? Perhaps one is being fired off in a subclass and the
    other in the super class?
    "...but because the command expects a Cairngorm event of a
    certain type..."
    The command expects a Event Type. Cairngorm will deserialize
    your custom event into a Event type with the following properties:
    public var type:String;
    public var data:Object;
    So the data will property will hold your custom Event. And
    you would set that as an instance var in the command.

  • Problem with using webservice

    Hi all !
    I aim at using a webservice through my SAP server.
    The result of the test of the webservice contains the following :
    Die Anmeldung wurde f[0xc3][0xbc]r den Mandanten 999 und den Benutzer loginXXX      und die Sprache    durchgef[0xc3][0xbc]hrt
    My question is : where is specify these 999 ? because my wsdl is like :
    http://xxxxxx..fr/sap/bc/soap/wsdl11?sap-client=320&services=ZADD
    I need 320 and not 999.
    Thanks for helping !

    I may have find the solution....
    With SICF transaction, I could specify the "mandant" in the description of the soap service.

  • Problem With importing webservice model

    Hai,
       I used webservices to develope a webdynpro project. that web services are in some other server, now the problem is  the ipAddress of the system (contains webservice)is changed . My Application is not working after changing the ipaddress.
    What is the solution for consistency of webdynpro  when the changing of ipaddress of webservices.
    regards,

    Naga,
    Dynamic modification of the endpoint of your Webservice model is possible.
    You may write the following code exactly before the suitable lines of code which execute the WebService model.
    wdContext.current<ModelNode>Element().modelObject()._setEndPoint("<URL>");
    You may also refer the following links for further references. <a href="http://help.sap.com/saphelp_nw04/helpdata/en/f3/7d7b60d1e9744d9fe27b4438d9014d/frameset.htm">Configuring Logical Ports</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm">Creating a Logical Port</a>
    Bala

  • Problem with calling Webservice from Java Webdynpro

    Hi,
    I have a scenario where I need to call a Webservice through my Webdynpro application. I need to pass few parameters(of type string) and the Webservice is suppose to retrun a few records based on the input values.
    When I run the webservice directly using the browser, the output is in XML format.
    When I create a model for the webservice in webdynpro, the return value is a Node element of type java.lang.Object. From webdynpro, I am successfully able to make a call to the Webservice (as there is no exception with model execute command), but the return value is always null. I am not sure if the webservice is not returning any data or if I am not reading the correct context element. There is no documentation available for the webservice either.
    Can anyone tell me what is that I am missing. Is it not possible for Webdynpro to call a webservice which can return only XML data?
    Any help on this issue would be greatly appreciated.
    Thanks,
    Sudheer

    Hi Sudheer,
    You can refer to wiki link (& other links available at the end in this)
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/faq-Models-AdaptiveWebService
    Kind Regards,
    Nitin

  • Problem with a Webservice's proxy client  re-generation...

    Hi all,
    I have a problem. I'm trying to re-generate a proxy client for a Web service and, when i'm about to finish WAS server ask me for an user. it shows me a window such as the window it shows when you launch (verify) a web app. standalone. Do i have to have a special permission for re-generate (generate) a proxy client for an enterprise service?. I tried to enter the user that i have in the server...and it doesn't work...please help

    This proxy is based on a .NET Webservice. This Webservice is on a intranet server. When i launch the wsdl in a regular browser...it asks me enter an intranet user... (not was)...but the prompt that the WAS shows me when it is just about to regenerate...is an enter data logon of WAS, When i put my WAS User...doesnt work...ask me again for an user.... that is a bummer that you couldnt simulate my exact problem....

  • Flex application problem with Sql editor

    Hi,
    I get the error message:
    Error in compiling Flex application (1). When deploying a SQL query iView
    I browsed trough som threads, and see that others have  had the same problem. I looked in the log file but, the same message is displayed there.
    My problem is that I only get this message when I use the SQL editor. I can deploy other iViews perfectly fine.
    The sql statment works fine.
    Can anyone help?
    Ingvild
    Message was edited by: Ingvild Nygaard

    Hi,
    Thanks for helping
    In your document you drag one table( order details) into your iView. When you do this you are only getting data from one table right? If do as you do, drag one table into the iView my SQL will be like this;
    Select ""."MATRICS"."PERIOD"."PERIOD_ID" , ""."MATRICS"."PERIOD"."LAST_MODIFIED_TIME" , ""."MATRICS"."PERIOD"."LAST_MODIFIED_BY_ID" , ""."MATRICS"."PERIOD"."FOLDER_ID" , ""."MATRICS"."PERIOD"."PERIOD_NAME" , ""."MATRICS"."PERIOD"."START_DATE" , ""."MATRICS"."PERIOD"."END_DATE" , ""."MATRICS"."PERIOD"."END_DATE" from ""."MATRICS"."PERIOD"
    If I remove the ." and the " I will get my table printed out, and I can deploy the iView.
    My problem was how to join all my tables in the sql editor, I do not understand how this can only be a copy paste operation. So I can not paste in her my SQL from my VC because I do not know how it is suppose to look in VC. In SQLPlus code is:
    SQL> SELECT indices.index_name, period.period_name, MAX(price.bid)
      2  FROM folder, indices, price, series, period,source
      3  WHERE folder.folder_id = indices.folder_id
      4  AND indices.index_id = series.index_id
      5  AND series.series_id = price.series_id
      6  AND period.period_id = series.period_id
      7  AND series.source_id = source.source_id
      8  AND folder.folder_id = '15351'
      9  AND source.source_id = '573'
    10  AND price.trade_date = SYSDATE -1
    11  GROUP BY index_name, period_name;
    I have solved my problem by crating a view in the database. This mayby the soulution ? Or is it possbile to solve it within VC?

  • Problems with weblogic webservices internationalization

    We have currently two applications deployed across two weblogic instances which talk to each other through web services. The application currently hosting the web service returns a string having special characters which are basically double byte characters like TM (trademark) symbol. However these special characters get corrupted when the data is received at the client level.
    This we presume is happening because the response from the web services is US-ASCII while the client expects data in UTF-8.
    We did look up to some of the Weblogic documentation online and following solutions were proposed for weblogic 81 and weblogic 10.
    Weblogic 10:
    Simple port = service.getSimpleSoapPort();
    ((Stub) port)._setProperty(weblogic.wsee.jaxrpc.WLStub.CHARACTER_SET_ENCODING, "UTF-16");
    port.invokeMethod();
    Weblogic 8.1:
    <web-services>
    <web-service name="stockquotes"
    targetNamespace="http://example.com"
    uri="/myStockQuoteService"
    charset="Shift_JIS">
    </web-service>
    </web-services>
    The default value is US-ASCII.
    You can also specify the character set for all deployed WebLogic Web Services deployed on a WebLogic Server instance by setting the system property weblogic.webservice.i18n.charset equal to the name of the character set. Set this system property in the script that starts up the WebLogic Server instance:
    -Dweblogic.webservice.i18n.charset=utf-8
    We applied both of these proposed solutions to our Weblogic instances which are of version 9.2 and still faced the same problems. Please let us know whether the above proposed solutions are applicable for Weblogic 9.2 or there is an alternative? Also we could not find the CHARACTER_SET_ENCODING attribute in Weblogic 9.2 version

    As far as I know, we don't support changing outbound message encoding charset in 9.x. Both 8.x and 10.x support it. Check [url http://docs-stage/wls/docs100/webserv/client.html#wp230016]here

  • Flex display problem with firefox !

    Hi,
    I am getting a wierd problem when running my flex app in
    firefox, however it does work fine in IE.
    Can you please find out the reason to why this kind of
    dissimilarity happen.
    Here is my mxml code which displays an orange area on the
    screen.
    According to the width specified in mxml the width should be
    674 pixels but for some reasons it is displaying the widh more than
    900 pixels, I can see the actual width in gradient but am not
    able to get rid of the background orange.
    This does happen when there is already a browser open (IE or
    mozilla). When all the browsers are closed and
    if we run the app from flex ide, it opens perfectly in
    firefox. As soon as I open a new instance of the application
    the problem arises again.
    In IE it is working perfectly fine.
    Pl. help me to find the solution of such a strange problem.
    Thanks.
    Soundarya

    On MacOsx (firefox 3.0.5) the width is correct (674).
    Probably your javascript embed has been messed up for some
    reason.
    It should be something like:
    <embed width="674" height="680" align="middle"
    type="application/x-shockwave-flash" pluginspage="
    http://www.adobe.com/go/getflashplayer"
    allowscriptaccess="sameDomain".../>
    HTH

  • Problem with GetFileService - Webservice

    Hi,
    I´m trying call the GetFileService with a SoapClient, but i'm receiving a follow message error:
    <idc:statusCode>-20</idc:statusCode>
    <idc:statusMessage>Unable to download file. To proceed, you must enter the correct login authentication credentials.</idc:statusMessage>
    Follow my Soap Request:
    <soapenv:Envelope xmlns:get="http://www.stellent.com/GetFile/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header>
    <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken>
              <wsse:Username>sysadmin</wsse:Username>
              <wsse:Password>idc</wsse:Password>
         </wsse:UsernameToken>
    </wsse:Security>
    </soapenv:Header>
    <soapenv:Body>
    <get:GetFileByID>
    <!--Optional:-->
    <get:dID>000026</get:dID>
    </get:GetFileByID>
    </soapenv:Body>
    </soapenv:Envelope>
    Thanks for help

    Hey,
    this is related to either the user credential being wrong or the user not having access to the document in question. Also have a look at your stub class. you will need to set the appropriate credentials in the implementation method there.
    If you can share the way you are using the WSDLs I amy be able to help you here.
    cheers,
    sapan

  • Problem with using webservice wich generated by ALBPM

    I have business process. All Activities in this process are automatic. I generated Web service and wsdl by this process. But now, when I want to use it, I see that there are not only my operation myOperation(java.lang.String sessionId_arg,ArgType1 arg1,ArgType2 arg2), but
    discardSession(java.lang.String sessionId_arg);
    getInstanceStatus(java.lang.String sessionId_arg,java.lang.String instanceId_arg)
    startSession(java.lang.String password_arg,java.lang.String user_arg)
    How should I use my service? Should I invoke only myOperation or I should use other methods too? Can set "1" to sessionId_arg in myOperation , or I should take it from some place?
    Now, when I execute myOperation("1",someArg1,someArg2), I have NullPointerException.
    Edited by: KamilBek on 16.10.2008 23:02

    If you don't want to make two calls (one to get a session id and the second to start/interact with the process) you can enable username/token authentication for the process web services. This way you can just make one call that includes appropriate credentials required for authenication.
    Hope that helps,
    Mike.

  • B1WS Problem with error response

    We use B1WS to communicate with the SAP system. Communication works fine until a exception occurs. In my special case I try to create a delivery note but there are not enough items on stock. When I add the delivery note the following exeception is raised:
    com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: A Subcode must be  namespace-qualified
    There is no other information available. When I add the delivery note with SoapUI I get the message from sap the there are not enough items on stock. Is there any way to fix this problem with the webservice?

    Thanks for your answer. The exception in this case is no problem for me. The problem is that I cannot get the exception because the SAP response cannot be parsed.
    Here is another post of the same problem.
    https://java.net/projects/metro/lists/users/archive/2010-08/message/185
    I cannot figure out why the response from sap causes this problems.

  • Problem with the flex and the webservice

    Hey everyone,
    I have a problem with flex; I declared a web service ( that I
    test it and it works ) inside flex and declared also the operation.
    But it seems that flex doesn't recognize the web method so
    when i use something like
    ws.Getheader.send()
    it pop up an error : Property Send not found on ....
    and in the intellisens menu after I write ws. I don't find my
    method
    here is a fragment of the code :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    xmlns:local="*"
    creationPolicy="all"
    backgroundColor="white"
    backgroundGradientColors="white"
    themeColor="#8190b7"
    width="970"
    creationComplete="initVars()">
    <mx:WebService id="ws" wsdl="
    http://localhost/csp/SearchWS.asmx?WSDL"
    useProxy="false">
    <mx:operation name="SearchHeaderText" />
    </mx:WebService>
    <mx:Script>
    <![CDATA[
    import mx.events.ListEvent;
    import flash.net.*;
    import mx.rpc.soap.*;
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.utils.ObjectUtil;
    import mx.rpc.http.HTTPService;
    private function initVars():void
    ws.SearchHeaderText.Send()
    ]]>
    </mx:Script>

    Have you tried the data wizard in Flex Builder 3 ?
    Data > Import Web Service (WSDL).
    It will create all the classes automatically for you from the
    WSDL. More about this here:
    http://www.adobe.com/devnet/flex/articles/flex_ws.html?devcon=f4

Maybe you are looking for

  • I want to know the algorithm of interpolation of 2-D array in LabVIEW.

    I want to know the algorithm of interpolation of 2-D array in LabVIEW.Is there any formation about it?

  • How to use JDBC driver (type 4) with struts?????

    Hi! have a nice day!!!!! i want to connect database use struts with JDBC driver type 4. i must add <data-source/> to <data-sources></data-sources> tag but i don't know how to use <data-source/> with it's properties. please tell me! thank very much

  • System.getProperty()

    Hi all, i am able to read the system property defined using -D in the command line.but i don't know, how to read a property from the properties file. what should be the exact format of the properties file. can u pls give me a sample properties file ,

  • To show ECB in dataview webpart Sharepoint 2013

    HI I have to add ECB to my dataview webpart. Normally it was not feasible in 2010 but is it possible now in 2013. Can we add the ECB or it remains same  Thanks

  • Placing text inside curved shape

    i am having bit trouble placing the text inside this custom shape (i used custom shape tool) I followed one of the post found here Fitting text inside a custom shape but i couldn't get any results at all. Would someone maybe try to give me exact inst