You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by jy <jy...@gmail.com> on 2007/05/31 04:29:51 UTC

Axis2 1.1 vs. 1.2

Hello,

I am encountering some different behaviors when I migrate over my
service from 1.1 to 1.2.

1. In 1.2, I run into <faultcode>soapenv:MustUnderstand</faultcode>.
My request contains mustUnderstand attribute in the header.  I looked
at the source code of 1.1 and 1.2.  It seemed like in 1.1 has more
complex logic as below, hence my request wasn't tripping on
mustUnderstand.  I don't know which is more correct behavior, but is
there any way I can suppress the MustUnderstand check in 1.2?

                if ((role != null) &&
!SOAP11Constants.SOAP_ACTOR_NEXT.equals(role)) {
                    throw new AxisFault(Messages.getMessage(
                            "mustunderstandfailed",
                            prefix,
SOAP12Constants.FAULT_CODE_MUST_UNDERSTAND));
                }

2. I tried submitting the request without setting mustUnderstand.  I
got past the error above, however when I try to retrieve the
attachements in the request, stream read times-out

Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:129)
        at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:747)
        at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
        at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:115)
        at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:712)
        at org.apache.coyote.Request.doRead(Request.java:429)
        at org.apache.coyote.tomcat5.InputBuffer.realReadBytes(InputBuffer.java:290)
        at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:374)
        at org.apache.coyote.tomcat5.InputBuffer.read(InputBuffer.java:305)
        at org.apache.coyote.tomcat5.CoyoteInputStream.read(CoyoteInputStream.java:179)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
        at java.io.FilterInputStream.read(FilterInputStream.java:111)
        at java.io.PushbackInputStream.read(PushbackInputStream.java:161)
        at org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(BoundaryPushbackInputStream.java:99)
        at org.apache.axiom.attachments.BoundaryPushbackInputStream.readFromStream(BoundaryPushbackInputStream.java:99)
        at org.apache.axiom.attachments.BoundaryPushbackInputStream.read(BoundaryPushbackInputStream.java:224)
        at org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:84)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
        at com.sun.mail.util.ASCIIUtility.getBytes(ASCIIUtility.java:246)
        at javax.mail.internet.MimeBodyPart.<init>(MimeBodyPart.java:175)
        ... 40 more

Any idea?

Thanks,
Jennifer

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org