Author: ehugonnet
Date: 2014-04-28 08:54:25 -0400 (Mon, 28 Apr 2014)
New Revision: 18589
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/OneWayUnMarshallerHTTP.java
Log:
Fixing client to pass TCK5
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java 2014-04-28
12:28:17 UTC (rev 18588)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java 2014-04-28
12:54:25 UTC (rev 18589)
@@ -416,6 +416,10 @@
catch (Exception ex)
{
Boolean isOutbound =
(Boolean)msgContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
+ if(isOutbound == null)
+ {
+ isOutbound = Boolean.FALSE;
+ }
if (oneway && isOutbound && ex instanceof ProtocolException)
{
//swallow the outbound SOAPException threw in hanlders
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/OneWayUnMarshallerHTTP.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/OneWayUnMarshallerHTTP.java 2014-04-28
12:28:17 UTC (rev 18588)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/OneWayUnMarshallerHTTP.java 2014-04-28
12:54:25 UTC (rev 18589)
@@ -23,15 +23,11 @@
import java.io.IOException;
import java.io.InputStream;
-import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
-import javax.servlet.http.HttpServletResponse;
import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
import org.jboss.logging.Logger;
import org.jboss.remoting.marshal.UnMarshaller;
@@ -45,7 +41,7 @@
public Object read(InputStream inputStream, Map metadata) throws IOException,
ClassNotFoundException
{
Integer resCode = (Integer)metadata.get(HTTPMetadataConstants.RESPONSE_CODE);
- if(!resCode.equals(200))
+ if(!resCode.equals(200) && !resCode.equals(202))
{
throw new WSException("One-way operation returned invalid HTTP response:
" + resCode);
}
Show replies by date