http://www.hankandsonsauto.com/ProjectDataStub.java
________________________________ From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 4:51 PM To: [email protected] Subject: RE: Axis 2 manage session not working - Cookies and axis not working either cut and paste inline into the body of the email or publish a text view java class onto your webserver and let us know what the url is if you have a ftp server put it up to your ftp server and let us know what the url is thanks Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. ________________________________ Subject: RE: Axis 2 manage session not working - Cookies and axis not working Date: Thu, 4 Sep 2008 14:51:45 -0400 From: [EMAIL PROTECTED] To: [email protected] it is too big for me to send it. Can I put it up some other way? ________________________________ From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 12:03 PM To: [email protected] Subject: RE: Axis 2 manage session not working - Cookies and axis not working the wsdl you published is messy can you publish the plain class that the service implements e.g. class Fu { int bar; Fu() }; thanks Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. ________________________________ Subject: Axis 2 manage session not working - Cookies and axis not working Date: Thu, 4 Sep 2008 11:41:54 -0400 From: [EMAIL PROTECTED] To: [email protected] I attempted to do this in Axis 2 to see if solved the problem I was having, but I am still receiving an invalid access, meaning that the session cookies are not being handled. Any calls which require a login are failing although the login itself is succeeding. Ping does not required a login. GetProfileList does required a login. Ping receives an ACK, Login succeeds. GetProfileList returns an Invalid Access error. Support from the third party who created the service said if I am using .NET I should set the CookieContainer. They have no input so far for Axis or Axis 2. Any help would be appreciated. package com.p21.test.web; import java.rmi.RemoteException; import org.apache.axis2.AxisFault; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import junit.framework.TestCase; import com.perseus.www.pdc_ws.ProjectDataStub; public class WSTest extends TestCase { public void testLogin() { try { Options options = new Options(); options.setManageSession(true); ProjectDataStub _stub = new ProjectDataStub("http://efm.activant.com/ws/projectdata.asmx"); ServiceClient sender = _stub._getServiceClient(); sender.setOverrideOptions(options); ProjectDataStub.Ping ping = new ProjectDataStub.Ping(); ProjectDataStub.PingResponse res; ProjectDataStub.LoginResponse loginResponse; ProjectDataStub.Login login = new ProjectDataStub.Login(); ProjectDataStub.GetProfileListResponse gres; ProjectDataStub.GetProfileList glist = new ProjectDataStub.GetProfileList(); login.setUserName("username"); login.setPassword("password"); try { res = _stub.Ping(ping); System.out.println(res.getPingResult()); loginResponse = _stub.Login(login); System.out.println(loginResponse.getLoginResult()); gres = _stub.GetProfileList(glist); System.out.println(gres.getGetProfileListResult()); } catch (RemoteException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } catch (AxisFault e) { // TODO Auto-generated catch block e.printStackTrace(); } } _________________________________ Deborah Wus Senior Development Engineer Wholesale Distribution Group Activant Solutions Inc.(tm) 19 W. College Ave. Yardley, PA 19067 T: 215.493.8900 x6725 E-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Web site: www.activant.com <http://www.activant.com/> _________________________________ ________________________________ Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn Now <http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-c ns%21550F681DAD532637%215295.entry?ocid=TXT_TAGLM_WL_getmore_092008> ________________________________ See how Windows connects the people, information, and fun that are part of your life. See Now <http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/>
