1 /* |
1 /* |
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
26 package com.sun.xml.internal.ws.client.sei; |
26 package com.sun.xml.internal.ws.client.sei; |
27 |
27 |
28 import java.util.List; |
28 import java.util.List; |
29 |
29 |
30 import javax.jws.soap.SOAPBinding.Style; |
30 import javax.jws.soap.SOAPBinding.Style; |
|
31 |
|
32 import com.sun.xml.internal.ws.api.message.MessageContextFactory; |
31 import com.sun.xml.internal.ws.model.JavaMethodImpl; |
33 import com.sun.xml.internal.ws.model.JavaMethodImpl; |
32 import com.sun.xml.internal.ws.model.ParameterImpl; |
34 import com.sun.xml.internal.ws.model.ParameterImpl; |
33 import com.sun.xml.internal.ws.model.WrapperParameter; |
35 import com.sun.xml.internal.ws.model.WrapperParameter; |
34 |
36 |
35 public class StubAsyncHandler extends StubHandler { |
37 public class StubAsyncHandler extends StubHandler { |
36 |
38 |
37 private final Class asyncBeanClass; |
39 private final Class asyncBeanClass; |
38 |
40 |
39 public StubAsyncHandler(JavaMethodImpl jm, JavaMethodImpl sync) { |
41 public StubAsyncHandler(JavaMethodImpl jm, JavaMethodImpl sync, MessageContextFactory mcf) { |
40 super(sync); |
42 super(sync, mcf); |
41 |
43 |
42 List<ParameterImpl> rp = sync.getResponseParameters(); |
44 List<ParameterImpl> rp = sync.getResponseParameters(); |
43 int size = 0; |
45 int size = 0; |
44 for( ParameterImpl param : rp ) { |
46 for( ParameterImpl param : rp ) { |
45 if (param.isWrapperStyle()) { |
47 if (param.isWrapperStyle()) { |