I dont have SU but I have an external client. This is the error:
com.sun.xml.internal.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,502]
Message: Attribute "xmlns:wstop" was already specified for element "wstop:TopicSet".
at com.sun.xml.internal.ws.encoding.SOAPBindingCodec.decode(Unknown Source)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(Unknown Source
I modified the method createSOAPBody in the class Marshaller in this package org.ow2.petals.binding.soap.util. Here is the modification:
final XMLStreamReader parser = StaxUtils.createXMLStreamReader(source);
final StAXOMBuilder builder = new StAXOMBuilder(factory, parser);
final OMElement bodyContent = builder.getDocumentElement();
//dealing with duplicate attribute
String newContent = bodyContent.toString().replaceFirst("xmlns:wstop\="....", "");
InputStream toSOAP = new ByteArrayInputStream(newContent.getBytes());
XMLStreamReader parser1 = StAXUtils.getXMLInputFactory().createXMLStreamReader(toSOAP);
final StAXOMBuilder builder1 = new StAXOMBuilder(factory, parser1);
final OMElement bodyContent2 = builder1.getDocumentElement();
//create soapbody and add new body content
body = factory.createSOAPBody(envelope);
body.addChild(bodyContent2);
System.out.println("soap body: "+ body.toString());
Hello
Could you provide me your SU to reproduce the problem and if possible the correction you did so that I integrate it to the BC SOAP 4.1 please ?
Thank you