Use operation instead of method to avoid NPE with async server operation

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1170560 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
antelder 2011-09-14 12:19:37 +00:00
commit f0581d4562

View file

@ -306,7 +306,7 @@ public class JAXWSJavaInterfaceProcessor implements JavaInterfaceVisitor {
}
List<ElementInfo> inputElements = new ArrayList<ElementInfo>();
for (int i = 0; i < method.getParameterTypes().length; i++) {
for (int i = 0; i < operation.getInputType().getLogical().size(); i++) {
WebParam param = getAnnotation(method, i, WebParam.class);
ns = param != null ? param.targetNamespace() : "";
// Default to "" for doc-lit-wrapped && non-header