Hello xedus, I wonder how do you deploy axis2 in websphere. I've tried to deploy the war file of axis2 1.3, 1.4 and 1.41 on Websphere 5.1 and failed every time.
I only got such exceptions: javax.servlet.ServletException: javax.xml.namespace.QName: method <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V not found at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:99) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147) at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113) at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189) at javax.servlet.GenericServlet.init(GenericServlet.java:258) .... I set parent last setting on the axis2.war file in the server. But it doesn't work. Any information is appreciated, thanks a lot. Regards Jeffty ----- Original Message ----- From: "xedus" <some2...@gmail.com> To: <axis-user@ws.apache.org> Sent: Sunday, June 21, 2009 4:29 PM Subject: axis2 on webshpere response != axis2 on glassfish response........ why? > > i have a web service deployed to axis2 on websphere and the same web service > deployed to axis2 on glassfish v2. > > the client is a desktop application generated and written in C# using > VS2003. > > the client works well with the service on websphere which it was originally > designed for. but not with the service on glassfish. > the WSDL generated for both services is exactly the same. > > i noticed that the response generated from the service on web sphere has the > xmlns on every attribute > this is not true for the same service on axis2 on glassfish. > > this is the response message from the service on axis2 on websphere: > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > <soapenv:Body> > <ns:getPrintJobResponse xmlns:ns="http://myService/xsd"> > <ns:return> > <bookingRef xmlns="http://myService/xsd">XXXXXX7730000010001</bookingRef> > <jobID xmlns="http://myService/xsd">209572</jobID> > <printerName xmlns="http://myService/xsd">NAME</printerName> > <qty xmlns="http://myService/xsd">3</qty> > </ns:return> > </ns:getPrintJobResponse> > </soapenv:Body> > </soapenv:Envelope> > > > > notice that xmlns value appears in all the properties (bookingRef, jobID, > printerName, qty). > > and here is the same response from axis2 on glassfish > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > <soapenv:Body> > <ns:getPrintJobResponse xmlns:ns="http://myService/xsd"> > <ns:return> > <bookingRef xmlns="http://myService/xsd">XXXXXX7730000010001</bookingRef> > <jobID>209552</jobID> > <printerName>NAME</printerName> > <qty>15</qty> > </ns:return> > </ns:getPrintJobResponse> > </soapenv:Body> > </soapenv:Envelope> > > > notice that only the bookingRef has the xmlns > > > my service is a POJO without any annotations. it is wrapped as .aar > > > my questions... > > A. why is this happening although i'm deploying to a common denominator on > both app. servers which is the axis2.war ? > B. how do i make the response from glassfish matches the one from webshpere? > where do i have to change and what? > > please note that i can't change he client code so my only bid is to make > it work on glassfish as it was working on websphere. > -- > View this message in context: > http://www.nabble.com/axis2-on-webshpere-response-%21%3D-axis2-on-glassfish-response........-why--tp24132443p24132443.html > Sent from the Axis - User mailing list archive at Nabble.com. >