0 Replies Latest reply on Jan 8, 2008 10:23 AM by jihnd

    Can i change the generated wsdl?

    jihnd

      For once, i think i have quite a simple problem - the wsdl generates an xml node named "return" - i'm consuming the web service in flex, in which "return" is a reserved word and so breaks the code - so, any way i can change the name -

      here's the web service (exposed in stateless session bean) code snippet:

      public String findAudiorec(@WebParam(name = "Audiorec_alias" String alias) {
       Audiorec arrr = manager.find(Audiorec.class, alias);
       return arrr.getSerial_audiorec();
       }


      and sample output:

      <?xml version="1.0" encoding="UTF-8"?>
      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
       <soap:Body>
       <ns0:findAudiorecResponse xmlns:ns0="http://Audiorec/">
       <return>sample text</return>
       </ns0:findAudiorecResponse>
       </soap:Body>
      </soap:Envelope>


      using 4.2.1.GA in netbeans