Re: [Axis2] MTOM client example
Thilina,Thanks for the reply. Tried that option, and it didn't make any difference. The messages are as follows:Request:POST /axis2/services/TTWSServiceService HTTP/1.1User-Agent: Axis2SOAPAction: ""Authorization: Basic V0FMTUFSVDpXQUwxMjNNQVJUHost: 127.0.0.1:Transfer-Encoding: chunkedContent-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031; type="application/xop+xml"; start="0.urn:uuid:[EMAIL PROTECTED]"; start-info="text/xml"; charset=UTF-833e--MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031content-type:application/xop+xml; charset=UTF-8; type="text/xml";content-transfer-encoding:binarycontent-id:0.urn:uuid:[EMAIL PROTECTED]?xml version='1.0' encoding='UTF-8'?soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"soapenv:Header /soapenv:BodyTTIS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="VW_TrailerData_Request_Schema.xsd" TRAILERDATATRNRQ TRNID/TRNID TRAILERDATARQ TARGETASSETSTARGETALLY/TARGETALL /TARGETASSETS GETLATESTDATAY/GETLATESTDATA COMPRESSY/COMPRESS /TRAILERDATARQ /TRAILERDATATRNRQ/TTIS/soapenv:Body/soapenv:Envelope--MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031--0Response:HTTP/1.1 200 OKServer: Apache-Coyote/1.1X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)/Tomcat-5.5Set-Cookie: JSESSIONID=8757EBE12760AF3DEEC3119F5A53ED3D; Path=/Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814; type="application/xop+xml"; start="0.urn:uuid:[EMAIL PROTECTED]"; start-info="text/xml";charset=UTF-8Transfer-Encoding: chunkedDate: Tue, 11 Jul 2006 16:19:27 GMT275--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814content-type:application/xop+xml; charset=UTF-8; type="text/xml";content-transfer-encoding:binarycontent-id:0.urn:uuid:[EMAIL PROTECTED]?xml version='1.0' encoding='UTF-8'?soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"soapenv:Header /soapenv:Bodyttws:CompressedXML xmlns:ttws="http://www.geassetintelligence.com"xop:Include href="" xmlns:xop="http://www.w3.org/2004/08/xop/include" //ttws:CompressedXML/soapenv:Body/soapenv:Envelope2000--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814content-id:1.urn:uuid:[EMAIL PROTECTED]content-type:application/octet-streamcontent-transfer-encoding:binaryxÅì�moÃF¶ÃÃÃOAìâ¹Ã765ùZ/ÃÃXbLâ*IYQ..Å kt´Ià [more binary .]--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814--0Thanks,AndrewThilina Gunarathne [EMAIL PROTECTED] wrote: Hi Andrew,Axis2 MTOM should work out of the box without much hassel if you have enabled MTOM on client side as follows.options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); The way you are trying to receive the byte[] is correct. Can u post ur messsage snaphots. You can capture them using TCPMON.~Thilina On 7/11/06, Andrew B [EMAIL PROTECTED] wrote: Martin,The stacktrace is:java.net.UnknownServiceException at javax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSource.java: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 ThanksM- *This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message - From:AndrewB To: axis-user@ws.apache.org Sent: Monday, July 10, 2006 12:53 PMSubject: [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 getan image, not a byte array.Thanks,Andrew __ Do YouYahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com Why keep checking for Mail? The all-new Yahoo! Mail Beta shows you when there are new messages. -- "May the SourcE be with u"http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ http://www.bloglines.com/blog/Thilina Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
Re: [Axis2] MTOM client example
Andrew,hmmm.. Interesting... Give me some time to look in to this. ~ThilinaOn 7/11/06, Andrew B [EMAIL PROTECTED] wrote:Thilina,Thanks for the reply. Tried that option, and it didn't make any difference. The messages are as follows:Request:POST /axis2/services/TTWSServiceService HTTP/1.1User-Agent: Axis2SOAPAction: Authorization: Basic V0FMTUFSVDpXQUwxMjNNQVJUHost: 127.0.0.1:Transfer-Encoding: chunkedContent-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031; type=application/xop+xml; start= 0.urn:uuid:[EMAIL PROTECTED]; start-info=text/xml; charset=UTF-833e--MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031content-type:application/xop+xml; charset=UTF-8; type=text/xml; content-transfer-encoding:binarycontent-id:0.urn:uuid:[EMAIL PROTECTED] ?xml version='1.0' encoding='UTF-8'?soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/soapenv:Header /soapenv:BodyTTIS xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:noNamespaceSchemaLocation=VW_TrailerData_Request_Schema.xsd TRAILERDATATRNRQ TRNID/TRNID TRAILERDATARQ TARGETASSETSTARGETALLY/TARGETALL /TARGETASSETS GETLATESTDATAY/GETLATESTDATA COMPRESSY/COMPRESS /TRAILERDATARQ /TRAILERDATATRNRQ/TTIS/soapenv:Body/soapenv:Envelope--MIMEBoundaryurn_uuid_53171FBA7FFC6984B711526347067031--0Response:HTTP/1.1 200 OKServer: Apache-Coyote/1.1 X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)/Tomcat-5.5Set-Cookie: JSESSIONID=8757EBE12760AF3DEEC3119F5A53ED3D; Path=/Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814; type=application/xop+xml; start= 0.urn:uuid:[EMAIL PROTECTED]; start-info=text/xml;charset=UTF-8 Transfer-Encoding: chunkedDate: Tue, 11 Jul 2006 16:19:27 GMT275--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814content-type:application/xop+xml; charset=UTF-8; type=text/xml; content-transfer-encoding:binarycontent-id:0.urn:uuid:[EMAIL PROTECTED] ?xml version='1.0' encoding='UTF-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ soapenv:Header /soapenv:Bodyttws:CompressedXML xmlns:ttws=http://www.geassetintelligence.com xop:Include href="" href="mailto:1.urn:uuid:[EMAIL PROTECTED]" target="_blank" >1.urn:uuid:[EMAIL PROTECTED] xmlns:xop=http://www.w3.org/2004/08/xop/include //ttws:CompressedXML/soapenv:Body/soapenv:Envelope 2000--MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814content-id: 1.urn:uuid:[EMAIL PROTECTED]content-type:application/octet-streamcontent-transfer-encoding:binaryxÅ"ì�moÛF¶ÇßßOAì‹Û765ùZ/ÆÃ"XbL‘*IYQ..Åkt´IÃ' [more binary .] --MIMEBoundaryurn_uuid_F5DB3E419AAC78B0F011526347677814--0Thanks,AndrewThilina Gunarathne [EMAIL PROTECTED] wrote: Hi Andrew,Axis2 MTOM should work out of the box without much hassel if you have enabled MTOM on client side as follows. options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); The way you are trying to receive the byte[] is correct. Can u post ur messsage snaphots. You can capture them using TCPMON. ~Thilina On 7/11/06, Andrew B [EMAIL PROTECTED] wrote: Martin,The stacktrace is: java.net.UnknownServiceException at javax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSource.java: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 ThanksM- *This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message - From:AndrewB To: axis-user@ws.apache.org 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 getan image, not a byte array.Thanks,Andrew __ Do YouYahoo!? Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com Why keep checking for Mail? The all-new Yahoo! Mail Beta shows you when there are new messages. -- May the SourcE be with u http://webservices.apache.org/~t
[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
Re: [Axis2] MTOM client example
Andrew- Please post StacktraceThanksM- *This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message - From: Andrew B To: axis-user@ws.apache.org 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
Re: [Axis2] MTOM client example
Martin,The stacktrace is:java.net.UnknownServiceException at javax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSource.java: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,AndrewMartin Gainty [EMAIL PROTECTED] wrote: Andrew- Please post StacktraceThanksM- *This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message -From:AndrewBTo: axis-user@ws.apache.orgSent: Monday, July 10, 2006 12:53 PM Subject: [Axis2] MTOM client example Hi,Can anyone point me to an example of an Axis2 clientthat receives a byte array via MTOM? The Axis2 documentation shows how to getan image, not a byte array.Thanks,Andrew __Do YouYahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com Why keep checking for Mail? The all-new Yahoo! Mail Beta shows you when there are new messages.
Re: [Axis2] MTOM client example
I wouldlook atyour 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 confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message - From: Andrew B To: axis-user@ws.apache.org ; Martin Gainty 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,AndrewMartin Gainty [EMAIL PROTECTED] wrote: Andrew- Please post StacktraceThanksM- *This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message - From: Andrew B To: axis-user@ws.apache.org 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.
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.-AndrewMartin Gainty [EMAIL PROTECTED] wrote: I wouldlook atyour 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 confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message -From:AndrewBTo: axis-user@ws.apache.org ; Martin Gainty Sent: Monday, July 10, 2006 3:29 PM Subject: Re: [Axis2] MTOM clientexample Martin,The stacktraceis:java.net.UnknownServiceException atjavax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSourcejava:57)at ttaxis2client.TestClient.main(TestClient.java:73)and the codeis: OMElementresponse = 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,AndrewMartin Gainty[EMAIL PROTECTED] wrote: Andrew- Please post StacktraceThanksM- *This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. -Original Message -From:Andrew BTo:axis-user@ws.apache.orgSent:Monday, July 10, 2006 12:53 PM Subject:[Axis2] MTOM client example Hi,Can anyone point me to an example of an Axis2client that receives a byte array via MTOM? The Axis2 documentation showshow to get an image, not a byte array.Thanks,Andrew __Do YouYahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com Why keep checking for Mail? The all-newYahoo! 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
Good Afternoon Andrew-The way I attempt to debug these situations is to startat the Macro Leveland fine tune from there services.xml check theInflow and Outflow parametersThe Outflow has class definitions (passwordCallbackClass) and properties files (sec.properties) all of which have to be on the classpath axis2.xml Messagesflowing inor 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 confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message - From: Andrew B To: axis-user@ws.apache.org ; Martin Gainty 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.-AndrewMartin Gainty [EMAIL PROTECTED] wrote: I wouldlook atyour 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 confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message - From: Andrew B To: axis-user@ws.apache.org ; Martin Gainty 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,AndrewMartin Gainty [EMAIL PROTECTED] wrote: Andrew- Please post StacktraceThanksM- *This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message - From: Andrew B To: axis-user@ws.apache.org 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
Hi Andrew,Axis2 MTOM should work out of the box without much hassel if you have enabled MTOM on client side as follows.options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); The way you are trying to receive the byte[] is correct. Can u post ur messsage snaphots. You can capture them using TCPMON.~Thilina On 7/11/06, Andrew B [EMAIL PROTECTED] wrote: Martin,The stacktrace is:java.net.UnknownServiceException at javax.mail.internet.MimePartDataSource.getOutputStream(MimePartDataSource.java: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 ThanksM- *This email message and any files transmitted with it contain confidentialinformation intended only for the person(s) to whom this email message isaddressed. If you have received this email message in error, please notifythe sender immediately by telephone or email and destroy the originalmessage without making a copy. Thank you. - Original Message - From:AndrewB To: axis-user@ws.apache.org Sent: Monday, July 10, 2006 12:53 PM Subject: [Axis2] MTOM client example Hi,Can anyone point me to an example of an Axis2 clientthat receives a byte array via MTOM? The Axis2 documentation shows how to getan image, not a byte array.Thanks,Andrew __ Do YouYahoo!?Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com Why keep checking for Mail? The all-new Yahoo! Mail Beta shows you when there are new messages. -- May the SourcE be with uhttp://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ http://www.bloglines.com/blog/Thilina