RE: MTOM test
by Heiko Braun
It tests StreamSource contents.
But this particular example more less demo's a simple MTOM scenario and
is
Not really a unit test. Does it have to?
-----Original Message-----
From: Thomas Diesler [mailto:thomas.diesler@redhat.com]
Sent: Tuesday, November 14, 2006 2:54 PM
To: Heiko Braun; jbossws-dev(a)lists.jboss.org
Subject: MTOM test
Heiko,
what is this actually testing? AFICS, the content of getLegacyData() can
be anything.
public void testQuery() throws Exception
{
Query query = new Query("Peter", "Pan");
Employee employee = port.queryEmployee(query);
assertNotNull(employee);
assertNotNull(employee.getLegacyData());
StreamSource xmlStream =
(StreamSource)employee.getLegacyData().getContent();
IOUtils.copyStream(System.out, xmlStream.getInputStream());
}
cheers
-thomas
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
Web Service Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
18 years, 2 months
MTOM test
by Thomas Diesler
Heiko,
what is this actually testing? AFICS, the content of getLegacyData() can
be anything.
public void testQuery() throws Exception
{
Query query = new Query("Peter", "Pan");
Employee employee = port.queryEmployee(query);
assertNotNull(employee);
assertNotNull(employee.getLegacyData());
StreamSource xmlStream =
(StreamSource)employee.getLegacyData().getContent();
IOUtils.copyStream(System.out, xmlStream.getInputStream());
}
cheers
-thomas
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
Web Service Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
18 years, 2 months
Handling of unpacked wars
by Darran Lofthouse
The changes this weekend to AbstractWarDeployer to expand all wars
stopped web services from being deployed.
The JBossWS deployer is called first and creates an exploded war so that
the web.xml can be modified. The recent changes the AbstractWarDeployer
created a new exploded war and it was this that was used for deploying
the web application without the modified web.xml.
I understand the unpacking in AbstractWarDeployer is only temporary
until Tomcat can use the VFS so I have added a check to see if JBossWS
has already unpacked the war and if so use that instead of creating a
new one.
Regards,
Darran Lofthouse.
18 years, 2 months