Renaming the argument name in JAX-WS

TheSpeed

New Member
I created a web service using JAX-WS in RSA 7.5 and Websphere 7 using bottom-up approach. When I open the WSDL in SOAP UI, then the arguments section is appearing like this:\[code\]<!--Optional--><arg0> <empID>?</empId></arg0><!--Optional--><arg1> <empName>?</empName></arg1><!--Optional--><arg2> <empAddress>?</empAddress></arg2><!--Optional--><arg3> <empCountry>?</empCountry></arg3>\[/code\]The service method takes the above 4 elements as the parameters to return the employee details.1) I want to rename this arg0, arg1, and so on with some valid names.2) I want to remove the \[code\]<!--optional-->\[/code\] present above the arg tags. (For removing the \[code\]<!--optional-->\[/code\] from elements name, I used @XMLElement(required=true)). But I am not sure where exactly to use this annotation in this case :(Please help.Regards,
 
Back
Top