Hi. Thank you for your help.
At the moment I'm very hurry with my project, so I'll use my workaround for some time. As soon as I'll be a little bit less hurry, I'll surely try to switch to a better solution. Thank you, Massimiliano On Fri, May 22, 2009 at 6:33 AM, Sanjay Gupta <[email protected]>wrote: > I tried the 1.2.9 snapshot on both server and client but still have issues. > This particular service i implemented is inside grails and exposed using > axis2 plugin. I need to figure out how to enable soapmonitor in > grails/axis2. > > Massimiliano, I did generate my clients from my autogenerated wsdl. I have > not tried the solution provided by martin but I would do so soon. If you > want you can try the solution provided by martin. Just compare the source > the that I provided to him and his version to see the changes that he made > and make those changes in yours. > > > -----Original Message----- > From: Andreas Veithen [mailto:[email protected]] > Sent: Thursday, May 21, 2009 10:33 AM > To: [email protected] > Subject: Re: Problem with MTOM > > In 1.2.9-SNAPSHOT, the class > org.apache.axiom.om.impl.llom.OMStAXWrapper (part of axiom-impl.jar) > extends org.apache.axiom.om.impl.OMStAXWrapper (part of > axiom-api.jar). If you get this error, this would mean that you didn't > replace axiom-api.jar. Can you check that? > > Andreas > > On Thu, May 21, 2009 at 11:31, Massimiliano Ziccardi > <[email protected]> wrote: > > TO Andreas: I tried with the latest snapshot, but even after replacing > both > > axis and axiom, I always get: > > > > The type org.apache.axiom.om.impl.OMStAXWrapper cannot be resolved. It is > > indirectly referenced from required .class files WStestImplStub.java > > TEST_CLIENT/src/it/test/ws/impl > > > > I've searched through the jars, and I found OMStAXWrapper inside another > > package... > > > > Did I make something wrong? > > > > TO Sanjay: I read the topic you talk about. I've autogenerated the client > > starting from the wsdl: should I rewrite the stub using the logic > described > > there? > > > > At the moment, I simply call the getFile(GetFile).get_return methods of > my > > stub to get the DataHandler > > > > Thanks, > > Massimiliano > > > > On Wed, May 20, 2009 at 6:26 PM, Sanjay Gupta < > [email protected]> > > wrote: > >> > >> I had the exact same issue few weeks back and martin gainty helped me. I > >> haven't tried his solution yet. I have been so busy with other things. > See > >> the thread "Sending binary data(not using MTOM) using DataHandler". > >> Thanks > >> Sanjay > >> > >> -----Original Message----- > >> From: Andreas Veithen [mailto:[email protected]] > >> Sent: Wednesday, May 20, 2009 8:46 AM > >> To: [email protected] > >> Subject: Re: Problem with MTOM > >> > >> Massimiliano, > >> > >> Can you check whether replacing the Axiom JARs with version > >> 1.2.9-SNAPSHOT fixes this issue? You can download them from [1]. If > >> that doesn't help, can you try to use tcpmon or Wireshark to determine > >> whether the content is truncated on the server or client side? > >> > >> Andreas > >> > >> [1] > >> > http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/ > >> > >> On Wed, May 20, 2009 at 17:25, Massimiliano Ziccardi > >> <[email protected]> wrote: > >> >>Which version of Axis2 > >> > > >> > I'm using AXIS2 1.4.1. > >> > > >> >>and Axiom do you use? > >> > > >> > All the jars I use are from the AXIS2 1.4.1 package. > >> > > >> >>Is the client also Axis2 based? > >> > > >> > Both client and server are AXIS2 1.4.1 > >> > > >> > Thank you very much for you prompt help! > >> > > >> > Massimiliano > >> > > >> > > >> > On Wed, May 20, 2009 at 5:22 PM, Andreas Veithen > >> > <[email protected]> > >> > wrote: > >> >> > >> >> Massimiliano, > >> >> > >> >> Which version of Axis2 and Axiom do you use? > >> >> Is the client also Axis2 based? > >> >> > >> >> Andreas > >> >> > >> >> On Wed, May 20, 2009 at 17:17, Massimiliano Ziccardi > >> >> <[email protected]> wrote: > >> >> > Hi all. > >> >> > > >> >> > I've a simlpe pojo class: > >> >> > > >> >> > public class MyClass > >> >> > { > >> >> > public DataHandler getFile() > >> >> > { > >> >> > return new DataHandler(new FileDataSource(new > >> >> > File("/tmp/myfile"))); > >> >> > } > >> >> > } > >> >> > > >> >> > I've published that pojo as a WebService. > >> >> > > >> >> > The problem is that, on the client side, the file is always > truncated > >> >> > at > >> >> > 12123 bytes. > >> >> > > >> >> > How can I solve this issue? > >> >> > > >> >> > Thanks, > >> >> > Massimiliano > >> >> > > >> > > >> > > > > > >
