axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deborah Wus <deborah....@activant.com>
Subject RE: Axis 2 manage session not working - Cookies and axis not working
Date Thu, 04 Sep 2008 18:51:45 GMT
it is too big for me to send it.  Can I put it up some other way?

________________________________

From: Martin Gainty [mailto:mgainty@hotmail.com] 
Sent: Thursday, September 04, 2008 12:03 PM
To: axis-user@ws.apache.org
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: deborah.wus@activant.com
To: axis-user@ws.apache.org


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: deborah.wus@activant.com <mailto:your.email@activant.com>  
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!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_getmore_092008>  

Mime
View raw message