Hi All. Until now , we service API for our own service using jboss WS ( based on axis1.2 ). Sometimes raise a memory issue , these day we try to change soap engine as axis2. We did it refer below article and it seems that all of them work fine. http://www.eclipse.org/webtools/community/tutorials/TopDownAxis2WebService/td_tutorial.html
But if I test it using .net client , NullReferenceException is occurred. I try to find a reason using TCP/IP Monitor in eclipse, and response message is illegal. Below is message captured by TCP/IP Monitor when I use .net for client ( Message with blue font is return message of our application. ) <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result><?xml version='1.0'?>
 <AdXML>
 
 <Response>
 <Product>Request OK. Found 1 records.</Product>
 <List numberOfRows='1' pageIndex='1' pageSize='1000' totalNumberOfEntries='1'>
 <Product>
 <Id>default-product</Id>
 </Product>
 </List>
 </Response>
 </AdXML></result></ns1:OasXmlRequestResponse> 22 </soapenv:Body></soapenv:Envelope> 0 You can see that "22" and "0" is in soap message. I think parse on .net can't be parse soap message because it isn't valid xml. Below is soap message if I use axis or axis2 for client. <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:OasXmlRequestResponse xmlns:ns1="http://api.oas.tfsm.com/"><result><?xml version='1.0'?>
 <AdXML>
 
 <Response>
 <Product>Request OK. Found 1 records.</Product>
 <List numberOfRows='1' pageIndex='1' pageSize='1000' totalNumberOfEntries='1'>
 <Product>
 <Id>default-product</Id>
 </Product>
 </List>
 </Response>
 </AdXML></result></ns1:OasXmlRequestResponse></soapenv:Body></soapenv:Envelope> Is it bug on axis2 ? DUCHEOL.KIM/ SENIOR SOFTWARE ENGINEER T:02.3459.2318/C.P:018.233.7939/F:568.8432 [email protected] 24/7 Real Media, Inc. A WPP Company 4F Poongsung Building 51-12 Banpo-4-Dong,Seocho-Gu Seoul 137-802, South Korea WWW.247REALMEDIA.COM >THE SCIENCE OF DIGITAL MARKETING
