You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Ferdy KAKAM NGANGOUE <fe...@lcicm.com> on 2015/03/12 12:33:42 UTC

Invoking the web service using JavaScript

Hello,
I generated javascript customer using  the tool  wsdl2js - Apache CXF 3.0.4:
wsdl2js -p SOAP -d ./ -validate -V
http://xx.xx.xx.xx:8080/houseWS-war/houseWebServiceCommon?wsdl

When I invoke an operation of the web service:

<script type="text/javascript" src="js/cxf-utils.js"></script>

<script type="text/javascript" src="js/iSanteWebServiceCommon.js"></script>

<script language="JavaScript" type="text/javascript">

function invokeIsanteInformation()

{

webservice_lci_com__iSanteWebServiceCommon.prototype.listerVille(sucessRespo
nse, errorResponse);

}

function errorResponse(error)

{

alert("Error message is " + error);

}

function sucessResponse(response)

{

console.log(response);

}

</script>


 I have the message:
Uncaught TypeError: Cannot read property 'trace' of undefined
cxf-utils.js:521 

Please what is the problem ??
How can i correct this ???


Best Regards / Cordialement