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 shantanu chawla <sh...@gmail.com> on 2006/09/18 18:19:44 UTC
[Axis1.4] error on receiving soap message generated by WSE 2.0 - DIME message version mismatch
I have written email abt this problem last week but I didnt get any
response, so I am curious to know is my problem unique.
I am calling a .NET webservice that is sending soap message using WSE
2.0.and I believe it is sending the message as DIME message. My java
client that is running under servlet instance when receive the message
on post it is giving me an error of
java.io.IOException: DIME version received "7" greater than current
supported version "1".
I am using MultiPartDimeInputStream from org.apache.axis.attachment
package. if I listen to my client on TCP/IP port the application runs
fine and is able to receive soap message. So I am wondering why
servlet container is complaining of DIME version mismath error.
can anyone shed light on this.
Thanks Shantanu
my java code in servlet is which is called in th doPut method of the servlet.
private String extractSoapMessage(HttpServletRequest
request,HttpServletResponse response)
{
String eventInfo=null;
try{
BufferedInputStream in = new BufferedInputStream(request.getInputStream());
MultiPartDimeInputStream mpin=new MultiPartDimeInputStream(in);
SOAPEnvelope env= new SOAPEnvelope(mpin);
SOAPBody body =(SOAPBody)env.getBody();
Iterator iter =body.getChildElements();
while(iter.hasNext())
{
SOAPElement elem = (SOAPElement)iter.next();
eventInfo=elem.toString();
}
}catch(Exception e)
{
System.out.println(e);
}
return eventInfo;
}
--
Graduate Student
Department of Computer Science,
San Diego State University
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
is TCP a supported transport for Axis 1.4 .. ?
Posted by Wenbo <we...@gmail.com>.
The distributed source code doesn't include tcp (under the transport pkg) ..
but there's a sample on TCP support.
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis1.4] error on receiving soap message generated by WSE 2.0 - DIME message version mismatch
Posted by Martin Gainty <mg...@hotmail.com>.
You will see multiple examples of DIME support in Axis 1.x (most notably 1.4 is the latest Ive seen)
client example is located at .\samples\attachments\EchoAttachment.java
service examples is located at .\samples\attachments\EchoAttachmentsService.java)
The original implementation for DIME Proposal is located here (note the last entry is 02/01/2002)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnglobspec/html/dimeindex.asp
The main feature of DIME is that each Unit is self-describing which loosely defined means one can discern the content length from each Attachment unit
NB:Axis 2.x has support for (swA) MIME as well as MTOM attachments
For a comparison of the the 2 attachment types (MIME vs DIME) take a look at these metrics:
http://64.233.187.104/search?q=cache:ocsJAAC2mKkJ:www.allhands.org.uk/2005/proceedings/papers/422.pdf+%22MIME+and+SWA%22&hl=en&gl=us&ct=clnk&cd=1
Unfortunately (or fortunately depending on your perspective) DIME specification has not been supported lately by MS and
consequently is usually the last attachment specification to be supported (as is the case with Axis2)
The good news is that there is nothing to prevent you from implementing this functionality yourself
1. Override org.apache.axis2.transport.TransportUtils class in Axis2 Kernel,
2. a)Override MIMEOutputUtils
b)Override ServiceXMLWriter in AXIOM
3. Override all of the classes from attachments package in AXIOM, (specially any of the Classes that require attachments)
Anyone else?
Martin-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: "shantanu chawla" <sh...@gmail.com>
To: <ax...@ws.apache.org>
Sent: Monday, September 18, 2006 12:19 PM
Subject: [Axis1.4] error on receiving soap message generated by WSE 2.0 - DIME message version mismatch
>I have written email abt this problem last week but I didnt get any
> response, so I am curious to know is my problem unique.
>
> I am calling a .NET webservice that is sending soap message using WSE
> 2.0.and I believe it is sending the message as DIME message. My java
> client that is running under servlet instance when receive the message
> on post it is giving me an error of
>
> java.io.IOException: DIME version received "7" greater than current
> supported version "1".
>
> I am using MultiPartDimeInputStream from org.apache.axis.attachment
> package. if I listen to my client on TCP/IP port the application runs
> fine and is able to receive soap message. So I am wondering why
> servlet container is complaining of DIME version mismath error.
>
> can anyone shed light on this.
>
> Thanks Shantanu
>
> my java code in servlet is which is called in th doPut method of the servlet.
>
>
> private String extractSoapMessage(HttpServletRequest
> request,HttpServletResponse response)
> {
> String eventInfo=null;
> try{
> BufferedInputStream in = new BufferedInputStream(request.getInputStream());
> MultiPartDimeInputStream mpin=new MultiPartDimeInputStream(in);
>
> SOAPEnvelope env= new SOAPEnvelope(mpin);
> SOAPBody body =(SOAPBody)env.getBody();
> Iterator iter =body.getChildElements();
> while(iter.hasNext())
> {
> SOAPElement elem = (SOAPElement)iter.next();
> eventInfo=elem.toString();
>
> }
> }catch(Exception e)
> {
> System.out.println(e);
> }
> return eventInfo;
>
> }
>
>
> --
> Graduate Student
> Department of Computer Science,
> San Diego State University
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>