Problem returning xml

I have a partner that is wanting to POST their xml to our Integration Server.
There is no problem as far as them sending the request through a sample html page
and getting back the xml.But when they try to use a custom built java stuff the out put is wrapped in another xml and the original xml is modified.

1)When the request comes through the html page the xml generated looks like this

<?xml version="1.0"?> 10.90.3.69 08192003 1608

2)When the request comes through the custom java the xml generated looks like this

<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0"?> 10.90.3.69 08192003 1608

Is there any way to get rid of the wrapper xml?
I have tried to use the xml template, other built in services in pub.reports folder
but with no success.

Looking forward for your reply.
Thanks