Hi Stefan,
Please try build your TNonXMLObject using the InputStream. Hope you get the desired output.
Try the following :-
public static String NON_XML =“Greeting by=‘XMLGreetingApplication’:Hello\r\nWorld”;
TNonXMLObject nonXMLObject = TNonXMLObject.newInstance
(new ByteArrayInputStream(NON_XML.getBytes()),null,“ino:nonXML”,“NonXMLGreeting”,text/plain" );
I hope this solves your concern, if not get back,
thanks,
Sonal.
#webMethods#Tamino#API-Management