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

    Can i change the generated wsdl?

    jo raksit Newbie

      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/">
       <ns0:findAudiorecResponse xmlns:ns0="http://Audiorec/">
       <return>sample text</return>

      using 4.2.1.GA in netbeans