Hi,

i am not sure if axis2 allows for the multiple handling of mtom objects in
one send request, but i just tried doing this by way of this code snippet:

        fileName = fac.createOMElement("fileName", omNs);
                file = fac.createOMElement("file", omNs);
                
                inputFile = new File("c:\\phpconfiguration.txt");
                fileName.setText(inputFile.getName());
                expectedDH = new DataHandler(new FileDataSource(inputFile));
                textData = fac.createOMText(expectedDH, true);
                file.addChild(textData);
                
                method.addChild(fileName);
                method.addChild(file);
                
                fileName1 = fac.createOMElement("fileName1", omNs);
                file1 = fac.createOMElement("file1", omNs);
                
                inputFile = new File("c:\\ul4record.txt");
                fileName1.setText(inputFile.getName());
                expectedDH = new DataHandler(new FileDataSource(inputFile));
                textData = fac.createOMText(expectedDH, true);
                file1.addChild(textData);
                
                method.addChild(fileName1);
                method.addChild(file1);

i displayed the xml file before going out on the wire and i was able to see
both binary objects.  however, the mtom service only picked up the first
object.  it looks like axis2 does not handle two or mtom objects in one send
or am i missing something?   thanks in advance for any reply.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to