Hi all,
 I just join cxf users mailingL, 
 i'm a new cxf user and try to use the JavaScript CXF Client (good
capability !)

 I got no problem since i try the sample (described into documentation)
on Firefox (2.0.0.13)

 but i got a JavaScript error with Internet Explorer 7 (7.05730.13)
(idem on version 6) :
>  Microsoft Jscript runtime error: 'spring_demo__HelloWorld' is
undefined

 Here is an extract of the client src :
 -------
 (...)
 <head>
  <!-- Generate and retrieve a JavaScript client for the server. -->
  <script type="text/javascript" src="/api/HW?js"></script>
  <script type="text/javascript">
  // <![CDATA[
  var responseSpan;

  <!-- This is the function called upon success. -->
  function sayHiResponse(response) {
    responseSpan.firstChild.nodeValue = response.getReturn();
  }

  <!-- This is the function called for an error. -->
  function sayHiError(error) {
    alert('error ' + error);
  }

  <!-- This function is invoked from the button press to run the
service. -->
  function invokeSayHi() {
        var HW = new spring_demo__HelloWorld ();
    HW.url = "/api/HW";  
    responseSpan = document.getElementById('sayHiResponse');
    responseSpan.firstChild.nodeValue = " - pending - ";
    HW.sayHi(sayHiResponse, sayHiError, document.forms[0].text.value);
  }
  
  function init() {
    invokeSayHi();
  }
  // ]]>
 </script>
 </head>
 (...)
 -------
 Here is the cxf doc. :
http://cwiki.apache.org/CXF20DOC/javascript-clients.html
 CXF version used (SNAPSHOT) :
apache-cxf-2.1-incubator-20080314.200134-39


 Could you help me to solve this problem ?

Here is another test i do :
 When i make a direct access to the generated JS (/api/HW?js) with IE, i
got a popup titled : "File download security warning" : 
   "Do you want to save this file, of find a program online to open it
?"
        - Name : HW
      - Type : Unknown File Type
      - From : <myhost>
   [find] [save] [cancel]

  Maybe the mime-type isn't correct or null ?
  If i choose save the file, i got the correct javascript client code.


 Thanks
 Regards
 Brice Vandeputte
 

Reply via email to