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(); }
<?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>