I"m using Axis 2 1.6.1, we made beans, did java2wsdl, and axis handles everything for us.
We had an error report that occasionally clients are failing because an extra 0 is sent after the response. I looked in our samples, and they show some extra hex codes before and after the XML (though Im not sure if this is due to the capture not being prescise?) Here are my captured requests and responses from the generated Axis client and server. Notice the numbers at the beginning and end. Has anyone ever heard of this and know how to get rid of it? Some clients complain about it sometimes. Content-Type: application/soap+xml; charset=UTF-8; action="urn:stemSave" User-Agent: Axis2 Authorization: Basic xxxxxxxxxxxxxxxxx== Host: localhost:8092 Transfer-Encoding: chunked 2f2 <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Body> <ns1:stemSave xmlns:ns1="http://soap_v2_1.ws.grouper.middleware.internet2.edu/xsd"> <ns1:clientVersion>v2_1_001</ns1:clientVersion> <ns1:wsStemToSaves> <ns1:saveMode></ns1:saveMode> <ns1:wsStem> <ns1:description>the test stem</ns1:description> <ns1:displayExtension>test stem</ns1:displayExtension> <ns1:name>aStem:testStem</ns1:name> <ns1:uuid></ns1:uuid> </ns1:wsStem> <ns1:wsStemLookup> <ns1:stemName>aStem:testStem</ns1:stemName> </ns1:wsStemLookup> </ns1:wsStemToSaves> <ns1:actAsSubjectLookup> <ns1:subjectId>GrouperSystem</ns1:subjectId> </ns1:actAsSubjectLookup> <ns1:txType></ns1:txType> </ns1:stemSave> </soapenv:Body> </soapenv:Envelope> 0 RESPONSE HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Set-Cookie: JSESSIONID=xxxxxxxxxxxxxxxxxxxxxxxx; Path=/grouper-ws X-Grouper-resultCode: SUCCESS X-Grouper-success: T X-Grouper-resultCode2: NONE Content-Type: application/soap+xml; action="urn:stemSaveResponse";charset=UTF-8 Transfer-Encoding: chunked Date: Sun, 01 Jul 2012 14:23:35 GMT 6cd <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> <soapenv:Body> <ns:stemSaveResponse xmlns:ns="http://soap_v2_1.ws.grouper.middleware.internet2.edu/xsd"> <ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns:WsStemSaveResults"> <ns:responseMetadata xsi:type="ns:WsResponseMeta"> <ns:millis xsi:nil="true" /> <ns:resultWarnings xsi:nil="true" /> <ns:serverVersion>2.1.1</ns:serverVersion> </ns:responseMetadata> <ns:resultMetadata xsi:type="ns:WsResultMeta"> <ns:params xsi:nil="true" /> <ns:resultCode>SUCCESS</ns:resultCode> <ns:resultCode2 xsi:nil="true" /> <ns:resultMessage>Success for: clientVersion: 2.1.1, wsStemToSaves: Array size: 1: [0]: WsStemToSave[ wsStemLookup=WsStemLookup[stemName=aStem:testStem], wsStem=WsStem[displayExtension=test stem,description=the test stem,name=aStem:testStem,uuid=],saveMode=] , actAsSubject: WsSubjectLookup[subjectId=GrouperSystem], txType: NONE, paramNames: , params: Empty array</ns:resultMessage> <ns:success>T</ns:success> </ns:resultMetadata> <ns:results xsi:type="ns:WsStemSaveResult"> <ns:resultMetadata xsi:type="ns:WsResultMeta"> <ns:params xsi:nil="true" /> <ns:resultCode>SUCCESS_INSERTED</ns:resultCode> <ns:resultCode2 xsi:nil="true" /> <ns:resultMessage xsi:nil="true" /> <ns:success>T</ns:success> </ns:resultMetadata> <ns:wsStem xsi:type="ns:WsStem"> <ns:description>the test stem</ns:description> <ns:displayExtension>test stem</ns:displayExtension> <ns:displayName>a stem:test stem</ns:displayName> <ns:extension>testStem</ns:extension> <ns:name>aStem:testStem</ns:name> <ns:uuid>2812f05667644368843654e61f9edc9b</ns:uuid> </ns:wsStem> </ns:results> </ns:return> </ns:stemSaveResponse> </soapenv:Body> </soapenv:Envelope> 0