|
Good Afternoon Andrew-
The way I attempt to
debug these situations is to start at the Macro Level and fine tune
from there
services.xml
check the Inflow and Outflow parameters The
Outflow has class definitions (passwordCallbackClass) and properties files
(sec.properties)
all of which have to be on the
classpath
axis2.xml
Messages flowing in or out route thru the defined the respective
messageReceiver where the respective classes have to be on the path
The same hold true for phases
Anyone else???
M-
********************************************************************* 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 -----
Sent: Monday, July 10, 2006 4:09 PM
Subject: Re: [Axis2] MTOM client
example
Ah, you've got me there. I don't know what
those things are - the MTOM documentation (http://ws.apache.org/axis2/1_0/mtom-guide.html)
never mentioned any of that.
-Andrew
Martin Gainty
<[EMAIL PROTECTED]>
wrote:
I would look at your outflow
definitions for any missing handlers ..can we take a look at
module.xml
M-
********************************************************************* 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 -----
Sent:
Monday, July 10, 2006 3:29 PM
Subject:
Re: [Axis2] MTOM client example
Martin,
The stacktrace
is:
java.net.UnknownServiceException at
javax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSourcejava:57)
at ttaxis2client.TestClient.main(TestClient.java:73)
and the code
is:
OMElement response = stub
.getData();
OMText binaryNode = (OMText)
response.getFirstOMChild();
DataHandler dataHandler =
(DataHandler) binaryNode
.getDataHandler();
DataSource ds =
dataHandler.getDataSource();
ByteArrayOutputStream baos =
(ByteArrayOutputStream) ds.getOutputStream();
byte[]
compressedXML =
baos.toByteArray();
Thanks,
Andrew
Martin
Gainty <[EMAIL PROTECTED]> wrote:
Andrew-
Please post
Stacktrace Thanks M-
********************************************************************* 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 -----
Sent:
Monday, July 10, 2006 12:53 PM
Subject:
[Axis2] MTOM client example
Hi,
Can anyone point me to an example of an
Axis2 client that receives a byte array via MTOM? The Axis2
documentation shows how to get an image, not a byte
array.
Thanks,
Andrew
__________________________________________________ Do You
Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection
around http://mail.yahoo.com
Why keep checking for Mail? The all-new
Yahoo! Mail Beta shows you when there are new
messages.
__________________________________________________ Do You
Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|
- Re: [Axis2] MTOM client example Martin Gainty
-