[jboss-user] [JBossWS] - Can i change the generated wsdl?
Jihnd
do-not-reply at jboss.com
Tue Jan 8 10:23:59 EST 2008
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117948#4117948
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117948
More information about the jboss-user
mailing list