Request and response using Ajax...

Hi' does anyone know how to get 2 or more response if using ajax? (let's say that it's more than 1 response).
cos XMLHttpRequest only can retrieve for one response at time. does anyone know how to solve this?
Thanks a lot....

what i mean like this, i have a multiply function in my jsp, code like this :
<%
    String a = request.getParameter("a");
    String b = request.getParameter("b");
    total = ( (Integer.parseInt(a))*(Integer.parseInt(b)) );
    out.println(total);
    out.println("hello");
%>it prints total and hello.
How to handle it in my javascript? ajax just handle the response with xmlHttp.responseText. So all the output are handle in only in xmlHttp.responseText). how to make my ajax can receive 2 output from server seperately?
Thanks...
Btw this is my ajax source :
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<html>
     <head>
          <title>Ajax Multiply Example</title>
          <script language="Javascript">
             xmlHttp = null;
               function postRequest(strURL){
                    if(window.XMLHttpRequest){ // For Mozilla, Safari, ...
                         xmlHttp = new XMLHttpRequest();
                    else if(window.ActiveXObject){ // For Internet Explorer
                         xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
                    xmlHttp.open('POST', strURL, true);
                    xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
                    xmlHttp.onreadystatechange = function(){
                         if (xmlHttp.readyState == 4){
                             //alert(xmlHttp.responseText);
                             updatepage(xmlHttp.responseText);                           
                    xmlHttp.send(strURL);
               function updatepage(str){
//i don't know how to modify in this.can anyone help?
                    document.getElementById('result').value = str;
                    document.getElementById('helloField').value = str;                        
               function callMultiply(){
                    var a = parseInt(document.f1.a.value);
                    var b = parseInt(document.f1.b.value);
                    var url = "multiply.jsp?a=" + a + "&b=" + b + "";
                    postRequest(url);
          </script>
     </head>
     <body>
          <h1 align="center"><font color="#000080">Ajax Example</font></h1>
          <form name="f1">
               <input name="a" id="a" value="">
               <input name="b" id="b" value="">
               <input name="result" type="text" id="result">
               <input name="helloField" type="text" id="helloField">
               <input type="button" value="Multiply" onClick="callMultiply()" name="showmultiply">
          </form>
     </body>
</html>

Similar Messages

  • Use Sign.xml and Encrypt.xml for both request AND response within WSDL?

    Hi,
    ALSB: 2.6
    I was wandering if it's possible to use abstract outof the box WS-Policy file within WSDL file to specify encryption
    (Encrypt.xml) and digital signature(Sign.xml) with X509 for both request and response???
    So far, it only works for either request or response BUT not both. i.e. within WSDL file
    <!-- following WSDL works for encrypting and signing request with X509 in test console -->.....
    <wsdl:binding name="DexService2Soap" type="tns:DexService2Soap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
        <wsdl:operation name="Message">
                <soap:operation soapAction="urn:moe:dex:dexservice:2.0.0/Message" style="document" />
                              <wsdl:input>
                               <!-- WS-Policy file applied here -->
                             <wsp:Policy>
                                            <wsp:PolicyReference URI="policy:Sign.xml"/>
                                            <wsp:PolicyReference URI="policy:Encrypt.xml"/>
                                       </wsp:Policy>
                                     <soap:body use="literal" />
                               </wsdl:input>
                             <wsdl:output>
                                  <soap:body use="literal" />
                               </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
               Or
    <!-- following WSDL works for encrypting and signing response with X509 in test console -->
    <wsdl:binding name="DexService2Soap" type="tns:DexService2Soap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
        <wsdl:operation name="Message">
                <soap:operation soapAction="urn:moe:dex:dexservice:2.0.0/Message" style="document" />
                              <wsdl:input>
                                     <soap:body use="literal" />
                               </wsdl:input>
                             <wsdl:output>
                                       <!-- WS-Policy file applied here -->
                                       <wsp:Policy>
                                            <wsp:PolicyReference URI="policy:Sign.xml"/>
                                            <wsp:PolicyReference URI="policy:Encrypt.xml"/>
                                       </wsp:Policy>
                                  <soap:body use="literal" />
                               </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
    But not both
    <!-- following WSDL doesn't work for encrypting and signing both response and request with X509 in test console -->
    <wsdl:binding name="DexService2Soap" type="tns:DexService2Soap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
        <wsdl:operation name="Message">
                <soap:operation soapAction="urn:moe:dex:dexservice:2.0.0/Message" style="document" />
                              <wsdl:input>
                                        <!-- WS-Policy file applied here -->
                                       <wsp:Policy>
                                            <wsp:PolicyReference URI="policy:Sign.xml"/>
                                            <wsp:PolicyReference URI="policy:Encrypt.xml"/>
                                       </wsp:Policy>
                                     <soap:body use="literal" />
                               </wsdl:input>
                             <wsdl:output>
                                       <!-- WS-Policy file applied here -->
                                       <wsp:Policy>
                                            <wsp:PolicyReference URI="policy:Sign.xml"/>
                                            <wsp:PolicyReference URI="policy:Encrypt.xml"/>
                                       </wsp:Policy>
                                  <soap:body use="literal" />
                               </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>
    ...      Instead, I got error message like
    <15/01/2008 10:15:04 AM NZDT> <Error> <ALSB Security> <BEA-387023> <An error ocurred during web service security inbound response processing [error-code: Fault
    , message-id: 3917705281899426819-4368b1eb.117762cff6e.-7fdb, proxy: DexServiceX509-Stub/Proxy Services/DexServiceX509-ProxyService, operation: Message]
    --- Error message:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode>
    <faultstring>Failed to get token for tokenType: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3</faultstring></soapenv:Fa
    ult></soapenv:Body></soapenv:Envelope>
    weblogic.xml.crypto.wss.WSSecurityException: Failed to get token for tokenType: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#
    X509v3
    at weblogic.xml.crypto.wss.SecurityBuilderImpl.addEncryption(SecurityBuilderImpl.java:308)
    at weblogic.wsee.security.wss.SecurityPolicyDriver.processConfidentiality(SecurityPolicyDriver.java:280)
    at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:75)
    at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:64)
    at weblogic.wsee.security.WssServerHandler.processOutbound(WssServerHandler.java:86)
    Truncated. see log file for complete stacktrace
    >
    <15/01/2008 10:15:24 AM NZDT> <Error> <com.bea.weblogic.kernel> <000000> <Failed to build CertPath
    java.security.cert.CertPathBuilderException: [Security:090603]The certificate chain is invalid because it could not be completed. The trusted CAs did not inclu
    de CN=x509,OU=x509,O=x509,L=Wellington,ST=Wellington,C=NZ.
    at weblogic.security.providers.pk.WebLogicCertPathProviderRuntimeImpl$JDKCertPathBuilder.engineBuild(WebLogicCertPathProviderRuntimeImpl.java:669)
    at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:194)
    at com.bea.common.security.internal.legacy.service.CertPathBuilderImpl$CertPathBuilderProviderImpl.build(CertPathBuilderImpl.java:67)
    at com.bea.common.security.internal.service.CertPathBuilderServiceImpl.build(CertPathBuilderServiceImpl.java:86)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            Truncated. see log file for complete stacktrace
    >
    <15/01/2008 10:15:24 AM NZDT> <Error> <ALSB Security> <BEA-387022> <An error ocurred during web service security inbound request processing [error-code: Fault,
    message-id: 3917705281899426819-4368b1eb.117762cff6e.-7fd8, proxy: DexServiceX509-Stub/Proxy Services/DexServiceX509-ProxyService, operation: null]
    --- Error message:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><soapenv:Fault xmlns:wsse="http://docs.oasis-open.or
    g/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><faultcode>wsse:InvalidSecurityToken</faultcode><faultstring>Security token failed to validate. weblo
    gic.xml.crypto.wss.SecurityTokenValidateResult@3c5347b[status: false][msg [
      Version: V1
      Subject: CN=x509, OU=x509, O=x509, L=Wellington, ST=Wellington, C=NZ
      Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
      Key:  Sun RSA public key, 1024 bits
      modulus: 13052787793731294943682394984664645854838424340012907077330623....
      The 'System Error Handler' from 'Invocation Trace' in ALSB test console is something like
    [pre]     
    $fault:
    <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>BEA-386201</con:errorCode>
         <con:reason>
              A web service security fault
              occurred[{http://schemas.xmlsoap.org/soap/envelope/}Server][Failed
              to get token for tokenType:
              http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3]
         </con:reason>
         <con:details>
              <err:WebServiceSecurityFault
                   xmlns:err="http://www.bea.com/wli/sb/errors">
                   <err:faultcode
                        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
                        soapenv:Server
                   </err:faultcode>
                   <err:faultstring>
                        Failed to get token for tokenType:
                        http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3
                   </err:faultstring>
              </err:WebServiceSecurityFault>
         </con:details>
         <con:location>
              <con:path>response-pipeline</con:path>
         </con:location>
    </con:fault>
    So is this a feature not supported in ALSB 2.6 yet or am I missing something dead simple?
    Thanks in advance
    Sam

    Instead of specifying policies for input and output separately you could place the policy reference only once in the operation element. Maybe will this solve your problem...
    http://e-docs.bea.com/alsb/docs26/security/ws_policy.html#wp1061166

  • How to restrict the Request and Response process in that cookies should be Secure way SAP Portal 7.0 ?

    Dear Experts,
    Please any one can help me i am getting one security issue.Some third party tools using and hacking the Request and Response of the Server.That time there taking one successfully Request (GET http://1.1 302 found)   and Response (http://1.1 200 ok).In this request based on again there giving some invalidate credential in that time server giving request replacing for success fully Request that time there login in to portal successfully(Bypassing).In this Request level only getting the information for URL and set-cookies only.Here any process is there to restrict the set cookies.like JSESSIONMARKID and JSESSIONID SAP_LB.
    We are using 7.0 Version and SP 12. Please share you are solutions because of this is very high problem here.
    Thanks for Advance
    Thanks and regrades,
    Durga Rao. 

    Dear Samuli,
    Thanks for the Replay,
    We are using HTTPS and SSL confined but man in the middle types of attack is happening here there using one tool based one there taking the Request and Response.The below given cookie are available in that request.
    According to this , set-cookie: JSESSIONMARKID , JSESSIONID and MYSAPSSO2 values are user login time it will change every time  are not.
    After  capturing above response HTTP/1.1 302 etc , when user gives valid credentials and logs in ,
    and now ill give wrong password and wrong user id and on click of log on button, i can intercept the request and response coming from the server and when i replace this valid response stil i am able to loggin in to the portal , which should not happen as JESSIONMARKID is changed , server should not allow , but it is loggin in.Standard Login page also allowing to login in this case.
    My server version is EP 7.0 SP 12.
    Please suggest a solution so that if we restric the hacker at this stage , no matter he can never hijack the sesiona and login  with invalid username and  password.
    Thanks for Advance
    Thanks and regrades,
    Durga Rao.

  • How to retrieve SOAP Original Header from request and response

    Hi,
    Does anyone know how to retrieve SOAP original header from SOAP request and response? I surfed but I'm able to see only the retrieval of SOAP custom headers via BPM mediator. Can anyone please help me regarding this? Also Please tell me how to check the headers in the Enterprise Manager.

    HI Chandra,
    Thanks for your suggestions.
    But i think in my case we do not want to get the complete list. We still want to get only 100 items initially and then if the user would scroll down he/she would see more items. But we already need to know the total number of items for the purpose of showing a message to the user. For e.g. Total issues (515),  but the table would initially show only 100 and then another 100 after scroll. So setting the size litmit to max would not help.
    And to be able to use the $count you mentioned, we have to still make another oData service call which we do not want.
    But as i mentioned there is already a property named "__count" in the response of the bindItems() method call and i see that it has correct count but not sure how to retrieve it inside the controller. Thanks.
    Regards,
    Ashish

  • SOAP request and response message

    Hi,everyone:
    I am working on one jaxrpc project.
    I would like to get a concrete SOAP request and response message.
    Do somebody know how and where i can get these two message?
    thanks in advance
    Hui
    [email protected]

    I am also interested in the sample. Please post, any examples, I just finished the tutorial looking for further resources too.
    R

  • Cloning and Synchronizing Oracle BI Requests and Dashboards Using CAF

    Hi,
    Cloning and Synchronizing Oracle BI Requests and Dashboards Using Content Accelerator Framework (CAF)
    what is this and in what scenario we use it? Is it useful for webcatalog/rpd migration from one env to other?
    Thanks
    Jay.

    Hi Jay,
    CAF is a utility that is used in migration of logical part of RPD and catalog objects from source to target environments. There are bunch of OBIEE bloggers already blogged about this a while ago. Check this article out, it should provide the information you are looking for: ( http://debaatobiee.wordpress.com/2009/11/26/playing-with-cafobiee-content-accelerator-framework/ ).
    FYI - If you are working in 11g environment, this tool (CAF) as far as I know is not supported. This tool was introduced by oracle few months before 11g came out which everyone thought would be big on revolutionizing the way migrations are done in OBIEE between environments.
    -Amith.

  • Request and Response Objects

    Hi,
    I was told that there is a limit for the request and response object sizes and crossing them will throw IllegalStateException. Could some one explain whether this is true and what is the maximum size of the object allowed?
    Thanks,
    Des

    As far as I know no such limit is defined by the API. There will always be a limit due to implementation and underlying architecture. Which particular implementation of request/response are you concerned about?

  • Web Service Usage Discussion - Both for request and response.

    Hi,
    I have some discussion questions ( by the way i have done my search in the forums )
    1) How would you solve the problem of registering user from iphone application without making the user to enter a security code to prevent spam?
    ( We use graphical captchas to minimize the risk in web.. but what would you do or what are you doing to make a proper registration from iphone directly to the web server? ) I can request, user, pass,email and register the user, but i can not want him to click on the confirmation code that i've sent to his/her email.. He'll leave my application, click the link,... safari will open.. etc etc...
    2) How would you authenticate the user and send commands according to that session?
    Would you send user and pass in plaintext, like many web pages' login system..?
    And after that would you just get a session id from response and after that, would you use only that code to send new commands according to that authenticated user? like ( http://myserver.com/?cmd=message&text=hi&session_id=34524534 ) ? How would you implement, or you are implementing this in iphone application?
    3)What would you use to send commands to server? You use simple url request? ( maybe somewhat REST ) or would you send xml to the server? And how would you get the response? As an XML? as comma seperated simple mode, as JSON to parse? Or would you return property list recognized by iphone? Or.... Or?? What would you use, or what are you using? What's your idea to do it in a proper way? (I know that this can change from people to people, but at least we can see what everyone is telling.. )..
    What response type you prefer and why do you prefer it? For example, you are trying to avoid xml to stay away from parsing it without standard libraries... OR... ?
    I'll be glad if you share your ideas/experiences with us? We may learn new things/we may improve our selves/we may change the way we do these things, we may be happy together (:

    Hi MaxLeyton,
    Thank you for posting in the MSDN forum.
    >>I am trying create a webmethod in a webservice, this webmethod must to have two different headers, one for request and one for response.
    Since it is related to the Web, to help you resolve this issue as soon as possible, you could post this issue to the ASP.NET forum.
    http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Synchronous interface udf to remember value between request and response

    Hello,
    I have two synchronous message interfaces bundled in an operation mapping and a message mapping for the request and one for the response.
    I need to remember a value obtained during request message mapping so that I can access it in the response message mapping.
    Is there any place where I can put a value and then access it later on the way back?
    I tried global container in udf, but the scope of that object seems to be just the current message mapping.
    Any ideas appreciated!
    Thanks
    Matthias

    Hi Matthias,
    the fact is that the Integration Engine is stateless and not statefull, hence it cannot remember anything between two messages.
    Perhaps, the correct way for this needs could be to use a BPM.
    At any rate, when I need of this persistence I write the data on ABAP stack via UDF/Lookup function.
    If you choose this way, remember to clean the table when you used it and forecast a way to manage the exceptions that could leave dirty in your temporary table.
    Ciao.
    Nicola

  • Integrating sortables and mySQL (using AJAX?)

    Hi there. I have a rather specific requirement and I'm not necessarily looking for someone to tell me the exact code to use (though that would be nice too)... I mostly want to make sure I'm heading the wise way, and get some guidance on how i should tackle this problem.
    I have a database with a number of fields (16 in fact). I have a jquery "sortable" grid set up with 16 blocks, each of which represents one of the fields. field 1 = block 1, etc.
    I want to make it so that the end user can drag the blocks into a different order of their choosing and then click a button that will then rearrange the data in the 16 fields to fit the order in which the user specified. Basically allowing the user to rearrange the order of the data and then re-saving it. So if i drag the block so as to swap block 2 and 8 for example, and nothing else is changed, when saved i would want (behind the scenes of course) the function to swap the values of fields 2 and 8 and re-save the data.
    I am a php guy and not an ajax guy, but I understand it's likely an AJAX solution i need since it needs to be client-side. the question is 1st, is that a correct assumption, and b) what's the simplest most straightforward way for me to do this? Remember you're talking to someone who is an AJAX novice. :-)

    carunkumar wrote:
    function ajaxFunction(chz)
    jsnds = document.getElementById('snds');
    jmin = document.getElementById('min');
    var back;
    var ans = 'arunkumar c';
    try
    var xmlHttp=new XMLHttpRequest();
    catch (io)
    alert("Your might be using IE or your browser does not support AJAX!.");
    return false;
    }First thing is that the Ajax request you are building is not browser specific.
    Go to this site it will give you the specific code www.tizag.com/ajaxTutorial/
    And do try and test your program on diff browser from your pc only. Its a ajax world so be careful while dealing with browsers
    and there settings. Just check your browser setting on your pc and check the same setting at your college also.
    Buddy this ajax give a trick in big presentation also :) So no need to worry and test it and do it, its real fun when you just
    cross this browser secific dependencies.
    Cheers
    Sachin Kokcha

  • Unabl to retrieve request parameters sent using AJAX

    Hi
    I have a html form
    <form name="chpass">
                        <input type="text" name="newPass" id="newPass">
                        <input type="text" name="passwordChange" id="passwordChange">
                        <input type="text" name="user" id="user" value="<%= ((UserRegistrationObj)listItems.get(i)).getfName() %>">
                        <a onclick="ajaxFunction();">New</a>
                    </form>Below is javascript code which sent request to server location ChangePass.do as a POST request
         function ajaxFunction(){
         var ajaxRequest;  // The variable that makes Ajax possible!
         try{
              // Opera 8.0+, Firefox, Safari
              ajaxRequest = new XMLHttpRequest();
         } catch (e){
              // Internet Explorer Browsers
              try{
                   ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
              } catch (e) {
                   try{
                        ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
                   } catch (e){
                        // Something went wrong
                        alert("Your browser broke!");
                        return false;
            ajaxRequest.onreadystatechange = function(){
              if(ajaxRequest.readyState == 4){
                        alert(ajaxRequest.responseText);
                   document.chpass.passwordChange.value = ajaxRequest.responseText;
         ajaxRequest.open("POST", "ChangePass.do", true);
         ajaxRequest.send(null);
    }Now in my java code when I am trying to retrieve parameters in html form, I am getting NULL.
       String userId = request.getParameter("user");
      String newPass = request.getParameter("newPass");What could be the possible reason !

    Yes,
    Below is my servlet code :
      protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            PrintWriter out = response.getWriter();
            try {
              String userId = request.getParameter("user");
    String oldPass = request.getParameter("oldPass");
      String newPass = request.getParameter("newPass");
      UserRegistrationBackend obj = new UserRegistrationBackend();
      String authMsg = "Authenticated";
         authMsg = obj.changePass(PasswordService.getInstance().encrypt(newPass), userId);
         out.println(authMsg);
            } finally {
                out.close();
        } It is not taking any time for servlet to process. I have debugged it and found.
    It is just after last line... that it is waiting somewhere.

  • How to monitor Http Request and Response when load testing is going on

    Hi,
    can any one please let me know how to monitor http request sent and response received for each virtual ID when a load test is going on ?
    Thanks,

    You used to be able to see what the VUs "see" using the "VU Monitor" (it would only do a simple rendering of the HTML but it served it's purpose). However this was replaced (in v12 I think?) by the "VU Log". While this offers simlilar functionality, I have had problems getting to see the same level of detail. You may need to use the "debug" modes. Also check the "Content" tab within the VU Logs (it is the closest equivalent to the HTML you would see in the responses in the old VU Monitor).

  • Web Services with two different "headers" for Request and Response

    Hello,
    I am trying create a webmethod in a webservice, this webmethod must to have two different headers, one for request and one for response.
    I know exist an atribute called "SoapHeaderAttribute", the problem is his direction, just has one direction or two (in and out) but the same "header".
    I hope you can help me.
    Thanks in advance.

    Hi MaxLeyton,
    Thank you for posting in the MSDN forum.
    >>I am trying create a webmethod in a webservice, this webmethod must to have two different headers, one for request and one for response.
    Since it is related to the Web, to help you resolve this issue as soon as possible, you could post this issue to the ASP.NET forum.
    http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • For Superior Stability and Responsiveness: Use Spaces for Every App as Much as Possible

    Hi. It's great to share this experiement. It's Hard to Crash Mountain Lion OS X with Spaces or even bring out the spinning wheel.
    Any OS (it's good to have Windows, OS X and Linux all at the same time, best of all worlds) should probably be stable if each app was on a separate desktop environment or separate account (with the main one logged in, in the background). The permission were repaired (it crashed the last time I tried this with just one Spaces) using Disk Utility in Mountain Lion's Recovery partition.
    Testing the overall stability and responsiveness: more than 12 app including Cinebench 12, Winclone, 2 3D Games from App Store (not Crysis or Rage but helps stress things along with Cinebench), all default Mountain Lion apps except Time Machine launched in one windows , Winclone cloning BootCamp a Win8 (upgraded from Win7) for hours, playing two 3D games (shooter Uberstrike and Marble World, fulscreen windowed) from App Store, Carbon Copy Cloner, watching a fullscreen movie on VLC, Activity monitor and iStats to see how the temperatures, CPU, GPU and memory are doing), quicktime playing a catholic chant in a loop- anything to bring the Mac, the whole system to a crawl, spinning wheel of death or to a crash which it didn't. Launching and relaunching app on their on Spaces was responsive even with all the system taxed at almost 100%.
    There was around 12 Spaces running at the same time on the iMac i7 with 8GB. It's not the most convenient way to switch between apps (having everying in one Spaces and clicking on it still the best, followed by swithing via Dock), the gestures and mission control significantly made it easier to have so many Spaces and not that much of a burden to manage when you get used to it. It's much better than Windows 8 implementation for a less cluttered environment. The command-tab is good to combine with Mission Control gestures for switching from fullscreen apps.
    .All that while running Cinebench 11.5 which taxes the CPU at almost and GPU 100% but surprisingly the fps shooter and Marble Worlds 3D games didn't crawl as I expected.Having an ambient temperature of about 30 Celsius, with full load the CPU temp was at 66, GPU was at 88, fans where surprisingly at CPU and optical disk fans were only at 900+ rpm with hardisk at 1000+ rpm which is the only 'side effect' to having taxing the system like this (I still have Applecare and Time Machine backup for a worry free test) is it confuses the SMC because without load all fans were at 1000+ rpm (I brough it back to normal with a SMC reset). All these for hours and there's still 1GB memory to use out of the 8GB (with 100GB hardisk space).
    When I closed all 11 Spaces and brought all the apps to just one desktop, it wasn't as stable nor as responsive like I have experienced before. Marble World when you switch to it, would have artifacts, the game was almost a slide show. If you have lots of clips to copy past from on the Desktop and you have to hide all to see the finder and then Show All, Carbon Cloner would not show up right away and would have that spinning wheel. I quitted all the apps to prevent a crash and to bring temperatures down.
    At first the Mountain Lion was almost a regret with some crashes but with Spaces, Misson Control and gestures for Mission Control, It's bring out the value and it just incredibly stable and responsive (Linux have their multiple desktop environment but Apple's implementation makes you see everything like a map almost bringing the convenience of just one desktop with all the apps placed strategically so you can click and switch to it faster). It's a great way to do a lot of things when you need to without worrying about slowing things down to a crawl.
    Thank you for your time.
    God bless.

    Hi. It's great to share this experiement. It's Hard to Crash Mountain Lion OS X with Spaces or even bring out the spinning wheel.
    Any OS (it's good to have Windows, OS X and Linux all at the same time, best of all worlds) should probably be stable if each app was on a separate desktop environment or separate account (with the main one logged in, in the background). The permission were repaired (it crashed the last time I tried this with just one Spaces) using Disk Utility in Mountain Lion's Recovery partition.
    Testing the overall stability and responsiveness: more than 12 app including Cinebench 12, Winclone, 2 3D Games from App Store (not Crysis or Rage but helps stress things along with Cinebench), all default Mountain Lion apps except Time Machine launched in one windows , Winclone cloning BootCamp a Win8 (upgraded from Win7) for hours, playing two 3D games (shooter Uberstrike and Marble World, fulscreen windowed) from App Store, Carbon Copy Cloner, watching a fullscreen movie on VLC, Activity monitor and iStats to see how the temperatures, CPU, GPU and memory are doing), quicktime playing a catholic chant in a loop- anything to bring the Mac, the whole system to a crawl, spinning wheel of death or to a crash which it didn't. Launching and relaunching app on their on Spaces was responsive even with all the system taxed at almost 100%.
    There was around 12 Spaces running at the same time on the iMac i7 with 8GB. It's not the most convenient way to switch between apps (having everying in one Spaces and clicking on it still the best, followed by swithing via Dock), the gestures and mission control significantly made it easier to have so many Spaces and not that much of a burden to manage when you get used to it. It's much better than Windows 8 implementation for a less cluttered environment. The command-tab is good to combine with Mission Control gestures for switching from fullscreen apps.
    .All that while running Cinebench 11.5 which taxes the CPU at almost and GPU 100% but surprisingly the fps shooter and Marble Worlds 3D games didn't crawl as I expected.Having an ambient temperature of about 30 Celsius, with full load the CPU temp was at 66, GPU was at 88, fans where surprisingly at CPU and optical disk fans were only at 900+ rpm with hardisk at 1000+ rpm which is the only 'side effect' to having taxing the system like this (I still have Applecare and Time Machine backup for a worry free test) is it confuses the SMC because without load all fans were at 1000+ rpm (I brough it back to normal with a SMC reset). All these for hours and there's still 1GB memory to use out of the 8GB (with 100GB hardisk space).
    When I closed all 11 Spaces and brought all the apps to just one desktop, it wasn't as stable nor as responsive like I have experienced before. Marble World when you switch to it, would have artifacts, the game was almost a slide show. If you have lots of clips to copy past from on the Desktop and you have to hide all to see the finder and then Show All, Carbon Cloner would not show up right away and would have that spinning wheel. I quitted all the apps to prevent a crash and to bring temperatures down.
    At first the Mountain Lion was almost a regret with some crashes but with Spaces, Misson Control and gestures for Mission Control, It's bring out the value and it just incredibly stable and responsive (Linux have their multiple desktop environment but Apple's implementation makes you see everything like a map almost bringing the convenience of just one desktop with all the apps placed strategically so you can click and switch to it faster). It's a great way to do a lot of things when you need to without worrying about slowing things down to a crawl.
    Thank you for your time.
    God bless.

  • Different Namespaces in request and response of a webservice in BPEL

    Hello I have created  a  piece of code in BPEL in JDeveloper where i invoke a partner link. The namespaces of the request differs from the name space of response of the wsdl.I have tried to just change the namespace of output variables to the required one in the wsdl and xsd .But it results in errors.
    Can some one suggest me a way of doing this.
    Regards
    Sam.
    PS:I am new to BPEL

    This is my wsdl
    <?xml version="1.0" encoding="UTF-8"?><wsdl:definitions name="testprojectMS" targetNamespace="http://abcd.org/testprojectMS" xmlns:oldtns1="http://www.xyz.net" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://abcd.org/testprojectMS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:mrm1="http://abcd.org/testprojectMS">
    <wsdl:types>
    <xsd:schema targetNamespace="http://abcd.org/testprojectMS" xmlns:mrm="http://abcd.org/testprojectMS">
    <xsd:import namespace="http://www.xyz.net" schemaLocation="testproject.xsd"/>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="testproject_in">
    <wsdl:part element="oldtns1:testprojectIn" name="testprojectIn"/>
    </wsdl:message>
    <wsdl:message name="testproject_out">
    <wsdl:part element="oldtns1:testprojectOut" name="testprojectOut"/>
    </wsdl:message>
    <wsdl:portType name="testprojectMSPortType">
    <wsdl:operation name="testproject">
    <wsdl:input message="tns:testproject_in" name="testproject_Input"/>
    <wsdl:output message="mrm1:testproject_out" name="testproject_Output"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="testprojectMSSOAP_HTTP_Binding" type="tns:testprojectMSPortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="testproject">
    <soap:operation soapAction=""/>
    <wsdl:input name="testproject_Input">
    <soap:body parts="testprojectIn" use="literal"/>
    </wsdl:input>
    <wsdl:output name="testproject_Output">
    <soap:body parts="testprojectOut" use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="testprojectService">
    <wsdl:port binding="tns:testprojectMSSOAP_HTTP_Binding" name="testprojectPort">
    <soap:address location="http://myhost/testprojectService"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Please let me know where it went wromg

Maybe you are looking for