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.™ 
19 W. 
College Ave. 
Yardley, 
PA  19067 
T: 215.493.8900 x6725 

E-mail: [EMAIL PROTECTED] 
Web site: www.activant.com 
_________________________________ 
 

_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Reply via email to