Changing the web service end point

2007-09-06 Thread Subra A Narayanan
Hello everyone,

Endpoint for Web services written using Axis2c are generally of the format

= http://www.foo.com/axis2c/services/servicename


By modifying the httpd.conf (or apache2.conf) file, I was able to change the
above to

= http://www.foo.com/subra/services/servicename


Now I would like to get rid of the word services from the uri. How do I do
that. Is that even possible?


Thanks for any help!


Subra


Re: Axis client in Spring

2007-09-06 Thread jazevedo

Hi,

Thanks for the hint,but I already searched the spring forum the last 2  
days and had also a look at the AXIS2 built in support, but this built  
in support is used if you want to expose a webservice through Spring  
or am I mistaken that?


My problem is when I do the axis config in spring where i set all my  
parameters like


bean id=apcWebService  
class=org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean

property name=serviceInterface value=apc.ApcRemote/
property name=serviceName value=ApcRemoteService/
property name=lookupServiceOnStartup value=true/
	property name=wsdlDocumentUrl  
value=http://192.168.1.5:8080/soap/services/ApcRemotePort?wsdl; /

property name=namespaceUri value=uri://ept.com/apc/2.0/
property name=portName value=ApcRemotePort/
property name=username value=jam/
property name=password value=jam/
	property name=endpointAddress  
value=http://192.168.1.5:8080/soap/services/ApcRemotePort/2.1//
	property name=serviceFactoryClass  
value=org.apache.axis.client.ServiceFactory /

/bean

I always receive an authentication problem when spring starts up and  
checks the wsdl file. Mybe I need to choose another webservice tool  
like xFire.


Cheers,

J

Quoting robert lazarski [EMAIL PROTECTED]:


Axis2 has built in spring support - see the docs. For spring in Axis
1.x , IIRC you need to use some spring classes themselves that rely on
some jax-rpc standard stuff. See the spring docs for Axis 1.x - or
search the spring forums.

HTH,
Robert

On 9/5/07, Jeronimo AZEVEDO [EMAIL PROTECTED] wrote:

Hi,

I am trying to get a Axis client with basic http authentication as a
bean in the Spring Framework configuration using the
applicationContext.xml. I have been looking around in forums and
searching the web, but I don't get it. Does anyone has a working axis
client in Spring Framework? If so, is it possible to get the config an
code on howto to do it?

Thanks,

J

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



axis + bpel + async callback = headache

2007-09-06 Thread noomerikal
Has anyone been able to asynchronously invoke an axis web service from a
bpel process and successfully receive the callback?

Thanks.


Re: Problem with client side exceptions

2007-09-06 Thread Deepal jayasinghe
Hi John,
Could you please create a JIRA and attach whatever necessary to recreate
the issue.

Thanks
Deepal
 Hi  all,

 I'm a newbie to Axis2, though have used Axis1 before, and am
 having trouble with exceptions on the client end.

 I've deployed a POJO as a service under Tomcat. I generated
 the service and client using Eclipse WTP, so to be as brief as
 possible, the service has a method:

 public CounterLight getCounter(Long nsuk)
 throws CounterNotFoundException
 {
 :
 throw new CounterNotFoundException(Exception) ;
 }

 CounterNotFoundException is simply an extension of
 java.lang.Exception (it implements Serializable as well, though I
 don't think this makes any difference)

 Wsdl2java generates a class called
 CounterNotFoundExceptionException2 alongside the stub for the service

 On the client side I have:

try {
 stub.getCounter(params) ; // Params initialised properly etc
}
catch(CounterNotFoundExceptionException2 e) {
 e.printStackTrace() ;
 }
 catch (AxisFault e) {
 e.printStackTrace() ;
 }

 The AxisFault is ALWAYS the one that is received, never the
 generated exception (though the compiler insists that I check for it).

 On the server side, I also get a
 java.lang.reflect.InvocationTargetException...Caused by CounterException

 Can anybody point me in the right direction here, am I missing
 something? I've googled extensively, searched the list archives etc,
 but couldn't find much of help.

 Thanks for any help!

 John




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wrong namespace in response?

2007-09-06 Thread Deepal jayasinghe

 Hi folks.

 I've written an Axis2 service which returns the correct data, but the
 namespace in the response seems to be incorrect.

 Now, I know very little (nothing) about SOAP, so I may be wrong about this.
 But if the class that implements the service is foo.bar.GroupService,
 shouldn't the namespace in the response be
 http://foo.bar.GroupService/xsd;?
   
Thats the default behaviors but you can change that by changing
services.xml as describe in
http://wso2.org/library/2060
 Below is the request and the response. Thanks for any feedback you can
 provide!



   
Thanks
Deepal



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What new in Axis2?

2007-09-06 Thread Deepal Jayasinghe
When comparing Axis1 and Axis2 , in Axis2 we have a number of new features

- Asynchronous  web service invocation support
- Hot deployment and hotupdate
- Archive based deployment
- Service isolation (one class loader per service)
- Pluggable module (You can plug a new WS-Specification very easily )
- Improved XML processing with pull parser technique
- A number of transports  such as HTTP , TCP , NIO , SMTP , JMS and more
- support for both WSDL 1.1. and WSDL 2.0
- REST support
- MTOM support
- Improved code generation and data binding
- Session management support
- Very convenient context hierarchy
- You can expose data base as a service (WSO2 WSAS)
- You can use Axis2 to deploy Axis1 service (WSO2 WSAS)
-And many more


Believe me or not , Axis2 has features more that expected , if you have
any problem please ask in the list , then we will help you.

Thanks
Deepal

P.S : Those are the features came in to my mind , I know we have more
than those


Ashish Jain wrote:
 Hi All!

 I am new to apache Axis. Can someone tell me what is new in AXIS2 as
 compared to the previous version?


 Thanks in advance

 regards
 Ashish



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [AXIS2] ClassLoading and duplicate JARs

2007-09-06 Thread Deepal jayasinghe
[EMAIL PROTECTED] wrote:

 Hi all Axis2 users,
 I have a question about classloading in Axis2:
 If I have a JAR in WEB-INF/lib folder of the WAR and in the lib folder
 of my .aar service archive, which one will be loaded by Axis2 when a
 WebService calls a class in this JAR?
 If Axis2 loads the one in the war archive, will the files in the aar
 still be loadable by the JAR in the WAR?
Well, that is one of the bug in Axis2 class loader and there is a JIRA
as well . We wanted to fix that for 1.3 , somehow we didnt do that. I
will fix that soon and make the feature available in nightly build

Thanks
Deepal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What new in Axis2?

2007-09-06 Thread Ashish Jain
Hi!!
 Thanks a lot for the quick response. I also want to know how these
changes leads to improvement in the performance of AXIS2 over AXIS.

Thanks and regards
Ashish

On 9/6/07, Deepal Jayasinghe [EMAIL PROTECTED] wrote:

 When comparing Axis1 and Axis2 , in Axis2 we have a number of new features

 - Asynchronous  web service invocation support
 - Hot deployment and hotupdate
 - Archive based deployment
 - Service isolation (one class loader per service)
 - Pluggable module (You can plug a new WS-Specification very easily )
 - Improved XML processing with pull parser technique
 - A number of transports  such as HTTP , TCP , NIO , SMTP , JMS and more
 - support for both WSDL 1.1. and WSDL 2.0
 - REST support
 - MTOM support
 - Improved code generation and data binding
 - Session management support
 - Very convenient context hierarchy
 - You can expose data base as a service (WSO2 WSAS)
 - You can use Axis2 to deploy Axis1 service (WSO2 WSAS)
 -And many more


 Believe me or not , Axis2 has features more that expected , if you have
 any problem please ask in the list , then we will help you.

 Thanks
 Deepal

 P.S : Those are the features came in to my mind , I know we have more
 than those


 Ashish Jain wrote:
  Hi All!
 
  I am new to apache Axis. Can someone tell me what is new in AXIS2 as
  compared to the previous version?
 
 
  Thanks in advance
 
  regards
  Ashish



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: get hotupdate not to work (Windows)

2007-09-06 Thread Deepal jayasinghe


Eichler, Wolfgang wrote:
 Hello Charitha,

 I could verify the update of service.xml as you described.

 I tried to get an update of some *.class file inside the *.aar,
 realizing the service:
 ...\build\classes\samples\quickstart\service\pojo\StockQuoteService.clas
 s
 This is probably beyond the Hotupdate feature?
   
no it is not , if you do any changes to services archive file that can
be consider as hotupdate.

Thanks
Deepal
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: get hotupdate not to work (Windows)

2007-09-06 Thread Deepal Jayasinghe
What is the application sever you are using ?

Thanks
Deepal

Eichler, Wolfgang wrote:
 Hi Charitha,

 I could also see such changes in effect as you describe. 

 What I did more precisely:

 1. Change in StockQuoteService.java:

 public class StockQuoteService {
 private HashMap map = new HashMap();

 public double getPrice(String symbol) {
 Double price = (Double) map.get(symbol);
 if(price != null){
 return price.doubleValue();
 }
 return 42.00;
 }

   to 

 ...
 return 43.00;
 }

 2. Compile to *.class

 3. modify *.aar (using 7-zip) : replace the StockQuoteService.class

 So I don't change the name of some method but only the code. This does
 not work in my environment, unless restart of axis2.

 Thanks and regards
 Wolfgang

 -Original Message-
 From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 05, 2007 09:34
 To: axis-user@ws.apache.org
 Subject: Re: get hotupdate not to work (Windows)

 Hi Eicher,
 You should be able to add an updated *.class in to *.aar and see the 
 update through Axis2 administration page. I updated a method name in a 
 service implementation class, added the updated class in to service 
 archive, and observed the updated method name through Axis2 admin page 
 without restarting tomcat. Hence, Hotupdate feature suppots these 
 modifications.

 regards
 Charitha

 Eichler, Wolfgang wrote:

   
 Hello Charitha,

 I could verify the update of service.xml as you described.

 I tried to get an update of some *.class file inside the *.aar,
 realizing the service:
 ...\build\classes\samples\quickstart\service\pojo\StockQuoteService.cla
 
 s
   
 s
 This is probably beyond the Hotupdate feature?

 Thanks and regards
 Wolfgang


 -Original Message-
 From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 05, 2007 03:40
 To: axis-user@ws.apache.org
 Subject: Re: get hotupdate not to work (Windows)

 Hello Eicher,
 Hotupdate works properly with axis2-1.3. I just tried with axis2-1.3 
 installed on tomcat 6.0.10/Windows XP. Please go through the following 
 steps to identify your problem and let us know if you experience the 
 same issue again.

 - Edit /conf/axis2.xml by setting parameter name=hotupdate 
 
 true/parameter
   
 - Restart tomcat
 - Deploy a service
 - Go to http://localhost:8080/axis2/axis2-admin/listService page. You 
 can see the deployed service there
 - Now update some property in services.xml in your service archive. 
 (Update a service level parameter in the services.xml, if you are using
 

   
 winrar, you can update the files inside *.aar without extracting the 
 archive)
 - Go to http://localhost:8080/axis2/axis2-admin/selectServiceParaEdit 
 page, select your service from the drop down
 - You should be able to see the updated parameters

 Thanks and regards
 Charitha

 Eichler, Wolfgang wrote:

  

 
 I set in config/axis2.xml:
 parameter name=hotupdate true/parameter

 http://localhost:8080/axis2/axis2-admin/upload shows:
 Hot update of existing service archives is enabled

 But if I copy a new *.aar file, the service is not updated
 automatically. I have to use
 http://localhost:8080/manager/html/reload?path=/axis2
 to reload.

 This is on Windows using Tomcat 6.0.14,  Axis2-1.3
 Any hints?

 Thanks and apologize for the newbee question ...

 Wolfgang Eichler

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







   

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



  

 

   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: axis + bpel + async callback = headache

2007-09-06 Thread Paul Fremantle
What software are you using?

Paul

On 9/6/07, noomerikal [EMAIL PROTECTED] wrote:
 Has anyone been able to asynchronously invoke an axis web service from a
 bpel process and successfully receive the callback?

 Thanks.



-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RPCServiceClient and ArrayList

2007-09-06 Thread Mathias P.W Nilsson

Hi!

I can't get my service to work with sending arraylist. It works fine sending
just one object but not the list
here is my client code
=
package samples.demo;

import java.util.ArrayList;
import java.util.List;

import javax.xml.namespace.QName;

import org.apache.axis2.AxisFault;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.rpc.client.RPCServiceClient;


public class WeatherRPCClient {

public static void main(String[] args1) throws AxisFault {

RPCServiceClient serviceClient = new RPCServiceClient();

Options options = serviceClient.getOptions();

   EndpointReference targetEPR = new
EndpointReference(http://localhost:8080/axis2-book-1.1/services/WeatherService;);
   options.setTo(targetEPR);

// Setting the weather
QName opSetWeather = new QName(http://demo.samples;, setWeather);

Weather w = new Weather();

w.setTemperature((float)39.6);
w.setForecast(Cloudy with showers);
w.setRain(true);
w.setHowMuchRain((float)4.5);

Weather w1 = new Weather();

w1.setTemperature((float)4.6);
w1.setForecast(sunny day with showers);
w1.setRain(true);
w1.setHowMuchRain((float)2.5);

ArrayListWeather l = new ArrayListWeather();
l.add(w);
l.add( w1 );

Object[] opSetWeatherArgs = new Object[] { l  };

//serviceClient.invokeBlocking(opSetWeather, opSetWeatherArgs);
serviceClient.invokeRobust(opSetWeather, opSetWeatherArgs);


// Getting the weather
QName opGetWeather = new QName(http://demo.samples;, getWeather);

Object[] opGetWeatherArgs = new Object[] { };
Class[] returnTypes = new Class[] { Weather.class };


Object[] response = serviceClient.invokeBlocking(opGetWeather,
opGetWeatherArgs, returnTypes);


Weather result = (Weather) response[0];

if (result == null) {
System.out.println(Weather didn't initialize!);
return;
}

// Displaying the result
System.out.println(Id   :  +
result.getId());
System.out.println(Temperature   :  +
   result.getTemperature());
System.out.println(Forecast  :  +
   result.getForecast());
System.out.println(Rain  :  +
   result.getRain());
System.out.println(How much rain (in inches) :  +
   result.getHowMuchRain());


result.setForecast( hehehe );
opSetWeatherArgs = new Object[] { result };

//serviceClient.invokeBlocking(opSetWeather, opSetWeatherArgs);
serviceClient.invokeRobust(opSetWeather, opSetWeatherArgs);


}
}
=


And here is my service

=
package samples.demo;

import java.util.ArrayList;

import org.hibernate.Session;

public class WeatherService{
   
public void setWeather(ArrayListWeather weathers){

Session session = HibernateUtil.getSession();
HibernateUtil.beginTransaction();

for( Weather weather : weathers ){

if( weather.getId() != null ){
session.update(weather);
}else{
session.persist(weather);
}
}

HibernateUtil.commitTransaction();

HibernateUtil.closeSession();


}

public Weather getWeather(){

Session session = HibernateUtil.getSession();
Weather w = ( Weather ) session.get(Weather.class, new Long( 1 ));
HibernateUtil.closeSession();



return w;
}
}
=

When I'm calling setWeather I get this except

ijava.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl
cannot be cast to samples.demo.Weather
at samples.demo.WeatherService.setWeather(WeatherService.java:14)


seems like when I put Weather class In arraylist it gets cast?

-- 
View this message in context: 
http://www.nabble.com/RPCServiceClient-and-ArrayList-tf4390198.html#a12517244
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] How to embed Axis2 into standalone Java Application?

2007-09-06 Thread cat ting99
Hello all,

Here I would like to know how to integrate Axis2 into standard Java
application.

My scenario is a typical asynchronous web service scenario:

My Java client application needs to send a soap-based subscription request
to a remote web service, and then wait for the soap-based notifications
using a local web service.

However, rather than have these two logic running as separate entities (one
as java app and the other runs in a servlet container), I would like to
integrate them into one standalone java app which these two logic runs in
two threads but can communicate with each other within the application
rather than using other channels such as TCP socket.

So I would like to know how could the above requirements be met by embedding
Axis2 into standard Java application and still be able to communication
between the standard Java thread and the Axis2 application?

Any comments are welcome!

Thanks in advance

/ M.L


Re: RPCServiceClient and ArrayList

2007-09-06 Thread Mathias P.W Nilsson

I got it to work by sending an array an not a list.

Why can't I send ArrayList?
-- 
View this message in context: 
http://www.nabble.com/RPCServiceClient-and-ArrayList-tf4390198.html#a12517424
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [AXIS2] ClassLoading and duplicate JARs

2007-09-06 Thread p . casenove
Thanks for the answer.
I'll wait for this nightly build so.
What JIRA covers this point (so that I can observe it and get noticed when 
corrected)?

Thanks ,

Pierre




Deepal jayasinghe [EMAIL PROTECTED] 
06/09/2007 09:12
Veuillez répondre à
axis-user@ws.apache.org


A
axis-user@ws.apache.org
cc

Objet
Re: [AXIS2] ClassLoading and duplicate JARs






[EMAIL PROTECTED] wrote:

 Hi all Axis2 users,
 I have a question about classloading in Axis2:
 If I have a JAR in WEB-INF/lib folder of the WAR and in the lib folder
 of my .aar service archive, which one will be loaded by Axis2 when a
 WebService calls a class in this JAR?
 If Axis2 loads the one in the war archive, will the files in the aar
 still be loadable by the JAR in the WAR?
Well, that is one of the bug in Axis2 class loader and there is a JIRA
as well . We wanted to fix that for 1.3 , somehow we didnt do that. I
will fix that soon and make the feature available in nightly build

Thanks
Deepal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: On ADB Binding

2007-09-06 Thread Amila Suriarachchi
On 9/5/07, Gudla, Natraj (GE Money, consultant) [EMAIL PROTECTED] wrote:

  The code generated from AXIS2 1.3 looks to be good. But Amila, we have
 almost started the development work and it not a feasible thing to swtich
 version at this moment. Is there a work around?


The only work around is getting the source code and changing the
ADBBeanTemple.

Anyway going to axis2 1.3 should not change your development work. as I
guess you should have developed only the Skelton and client classes which
uses ADB generated classes.

The interface of these classes has not changed. So the generated code with
Axis2 1.3 should comple and work with the what ever code you have developed.

Amila.

and with parsing the double value, i see that my IDE XML editor shows up the
 value in red saying it is not a valid double. where as 0.00 i feel is the
 correct one.

 Thanks
 Natraj


 -Original Message-
 *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED]
 *Sent:* 05 September 2007 11:48
 *To:* axis-user@ws.apache.org
 *Subject:* Re: On ADB Binding



 On 9/5/07, Gudla, Natraj (GE Money, consultant) [EMAIL PROTECTED]
 wrote:
 
   The IDE ( eclipse ) does not recognize 0.00 as a valid value for the
  schema element earlier decalared as double with minInclusive value of
  0.00. I have seen few articles on the net which talk about the
  conversion problems with 0, 0.00, 0. etc all are not considered to
  be zeros.
 

 you mean Double.parseDouble(0.00);
 does not work in your IDE?

  Another problem as i had earlier stated is AXIS does not genereted the
  conditions properly to check for the minInclusive value stated in the
  schema. It puts a condition to check for something greater.
 

 Please check with axis2 1.3. this should be fixed.

 here is the generated code for me
 if (org.apache.axis2.databinding.utils.ConverterUtil.compare (param, 0.00)
 = 0){

 this.localGEM_PostvDbl_Type=param;
 }
 else {
 throw new
 java.lang.RuntimeException();
 }

   -Original Message-
  *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED]
  *Sent:* 05 September 2007 05:36
  *To:* axis-user@ws.apache.org
  *Subject:* Re: On ADB Binding
 
  what is the exception you are getting?
  here is the setter method generated
 
   public void setGEM_PostvDbl_Type(double param) {
  if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param,
  0.00 )  0) {
  this.localGEM_PostvDbl_Type = param;
  } else {
  throw new java.lang.RuntimeException();
  }
  }
 
  and this calls ConverterUtil.compare method.
 
  public static double compare(double doubleValue, String value) {
  return doubleValue - Double.parseDouble(value);
  }
 
  so it basically use the parseDouble method of the Double class.
 
  Amila.
 
  On 9/4/07, Gudla, Natraj (GE Money, consultant) [EMAIL PROTECTED]
  wrote:
  
I am just running through another problem with min inclusive values
   on double types. For declaration,
  
  
   xsd:simpleType name= GEM_PostvDbl_Type 
  
   xsd:restriction base= xsd:double 
  
   xsd:minExclusive value= 0.00/
  
   /xsd:restriction
  
   /xsd:simpleType
   An xml schema instance value of 0.00 throws an error, saying it not a
   valid value. 0.00 is a double value, and what could be the problem?
  
   Thanks
   Natraj
  
  
  
   -Original Message-
   *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED]
   *Sent:* 04 September 2007 13:07
   *To:* axis-user@ws.apache.org
   *Subject:* Re: On ADB Binding
  
  
  
   On 9/4/07, Gudla, Natraj (GE Money, consultant) [EMAIL PROTECTED]
   wrote:
   
 Hi,
   
I am using AXIS2 1.2, Generated the data binding classes using
WSDL2Java utility and i am trying to parse instance of an xml against 
the
generated binding classes. I see a problem in which the xml 
restrictions are
converted into code by AXIS utility.
   
My XML schema condition :
   
   
!-- Positive Integer simple type --
   
xsd:simpleType name=GEM_PostvInt_Type 
   
xsd:restriction base=xsd:integer 
   
xsd:minExclusive value=0 /
   
/xsd:restriction
   
/xsd:simpleType
   
*The corresponding code generated in a class* :
   
/**
   
* Auto generated setter method
   
*
   
* [EMAIL PROTECTED] param
   
* GEM_PostvInt_Type
   
*/
   
*public* *void* setGEM_PostvInt_Type(java.math.BigInteger param) {
   
*if* (org.apache.axis2.databinding.utils.ConverterUtil.*compare*(param,
0)  0) {
   
*this*.localGEM_PostvInt_Type = param;
   
} *else* {
   
*throw* *new* java.lang.RuntimeException();
   
}
   
}
   
   
   
I check the api docs for ConverterUtil, which says this particular
method returns a zero when values are equal, +ve when greater, -ve when

Re: WSDLException : OTHER_ERROR: Unable to locate with a locator the schema referenced at ...

2007-09-06 Thread Amila Suriarachchi
On 9/5/07, Linus Kamb [EMAIL PROTECTED] wrote:

 So, am I doing something wrong?  Or is this a bug?


Axis2 supports xsd file if they are directly under the META-INF. as I saw
you xsd file are in different directories.
So I am not saying the thing you do is wrong. But I think this a an axis2
limitation. So please log a jira.

Amila.

Thanks,
 Linus


 Linus Kamb wrote:
  Thanks a lot for looking.
 
  wsdl2java seems to run successfully:
 
  ant target is:
 
 target name=w2j depends=clean  
 java classname=org.apache.axis2.wsdl.WSDL2Java fork=true
 failonerror=true
 classpath
 path refid=axis-classpath/
 path refid=jibx-classpath/
 /classpath
 arg value=-o/
 arg value=w2j/
 arg value=-p/
 arg value=${package-name}/
 arg value=-d/
 arg value=jibx/
 arg value=-Ebindingfile/
 arg value=${binding-file}/
 arg value=-uw/
 !-- -ss parameter says generate server code --
 arg value=-ss/
 !-- -sd parameter says generate server deployment files --
 arg value=-sd/
 !-- -ssi parameter says generate Java interface
  definition. --
 arg value=-ssi/
 arg value=-uri/
 arg value=${wsdl-path}/
 /java
 /target
 
  output:
  $ ant w2j
  Buildfile: build.xml
 
  clean:
[delete] Deleting directory
  /Users/linus/workspace/ESPortalCDI/server/gen
 
  w2j:
  [java] Retrieving schema at
  'http://www.iris.edu/schema/esdp/esdp-0.1.xsd', relative to
  'file:/Users/linus/workspace/ESPortalCDI/resources/META-INF/'.
  [java] Retrieving schema at
  'http://schemas.opengis.net/filter/1.1.0/filter.xsd', relative to
  'http://www.iris.edu/schema/esdp/esdp-0.1.xsd'.
  [java] Retrieving schema at
  '../../gml/3.1.1/base/geometryAggregates.xsd', relative to
  'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
  [java] Retrieving schema at 'geometryPrimitives.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd'.
  [java] Retrieving schema at 'geometryBasic2d.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/geometryPrimitives.xsd'.
  [java] Retrieving schema at 'geometryBasic0d1d.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/geometryBasic2d.xsd'.
  [java] Retrieving schema at 'measures.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/geometryBasic0d1d.xsd'.
  [java] Retrieving schema at 'units.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/measures.xsd'.
  [java] Retrieving schema at 'dictionary.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/units.xsd'.
  [java] Retrieving schema at 'gmlBase.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/dictionary.xsd'.
  [java] Retrieving schema at '../../../xlink/1.0.0/xlinks.xsd',
  relative to 'http://schemas.opengis.net/gml/3.1.1/base/gmlBase.xsd'.
  [java] Retrieving schema at 'basicTypes.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/gmlBase.xsd'.
  [java] Retrieving schema at 'expr.xsd', relative to
  'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
  [java] Retrieving schema at 'sort.xsd', relative to
  'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
  [java] Retrieving schema at 'expr.xsd', relative to
  'http://schemas.opengis.net/filter/1.1.0/sort.xsd'.
  [java] Retrieving schema at 'filterCapabilities.xsd', relative to
  'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
  [java] Retrieving schema at
  'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd', relative to
  'http://www.iris.edu/schema/esdp/esdp-0.1.xsd'.
  [java] Retrieving schema at 'geometryBasic2d.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd'.
  [java] Retrieving schema at 'temporal.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd'.
  [java] Retrieving schema at 'gmlBase.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/temporal.xsd'.
  [java] log4j:WARN No appenders could be found for logger
  (org.apache.axis2.description.AxisService).
  [java] log4j:WARN Please initialize the log4j system properly.
 
  BUILD SUCCESSFUL
  Total time: 15 seconds
 
  generated classes:
  $ find w2j/
  w2j/
  w2j//build.xml
  w2j//resources
  w2j//resources/ESPortalCDI.wsdl
  w2j//resources/services.xml
  w2j//resources/xsd0.xsd
  w2j//resources/xsd1.xsd
  w2j//resources/xsd10.xsd
  w2j//resources/xsd11.xsd
  w2j//resources/xsd12.xsd
  w2j//resources/xsd13.xsd
  w2j//resources/xsd14.xsd
  w2j//resources/xsd15.xsd
  w2j//resources/xsd16.xsd
  w2j//resources/xsd2.xsd
  w2j//resources/xsd3.xsd
  w2j//resources/xsd4.xsd
  w2j//resources/xsd5.xsd
  w2j//resources/xsd6.xsd
  w2j//resources/xsd7.xsd
  w2j//resources/xsd8.xsd
  w2j//resources/xsd9.xsd
  

Null MessageContext returned

2007-09-06 Thread p . casenove
Hi all,
I don't know if it is a bug or not but here is what I noticed:
I've defined my own MessageReceiver in order to perform access control to 
the WebServices.
The class extends AbstractInOutMessageReceiver. It overrides void 
receive(MessageContext) method.
in this method here is the algorithm:
getthe implementationobject
retrieve parameter of the Webservice by calling getTypeService
perform access controls
call super.receive

The issue appear in getTypeService() method: in it, if I'm using 
MessageContext.getCurrentMessageContext(), null is returned.
If I modify getTypeService to getTypeService(MessageContext) and pass the 
MessageContext given as parameter of receive method, it is not null.

Am I misunderstanding a concept?

Thanks 
Pierre

Simple Java Client

2007-09-06 Thread sneha jain
 Hi,

I am trying to create a Java Client to talk to a C Calculator web service ..

I am totally new to webservices. I have seen many methods to create clients
on the site..
I tried many methods too but was not successful.
Can you please suggest me how do i go about it?

Cheers,
Sneha


Multiple services in embedded axis2 application

2007-09-06 Thread Mathias P.W Nilsson

Hi!

I have embedded axis2 servlet in my webapplication and managed to get a
webservices working.
How can I have multiple services in a webapplication without creating an
.aar file and without specifying mutliple services.xml?

My structure in my webapp is as follows.
axis2-book-1.1\WEB-INF\services\WeatherService\META-INF\services.xml

I can get the wsdl by requesting
http://localhost:8080/axis2-book-1.1/services/WeatherService?wsdl

How can I create another webservice by just using one services.xml?
-- 
View this message in context: 
http://www.nabble.com/Multiple-services-in-embedded-axis2-application-tf4391127.html#a12519530
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[AXIS2] JAX-WS Support

2007-09-06 Thread p . casenove
Hi all,
After unsuccessful web research, I still have some question about jax-ws 
implementation in Axis2 1.3:
- What are the advantages and drawbacks to implement JAX-WS in the 
deployed AXIS2 WebService
- How to I generate JAX-WS compatible WS (Like for the JAX-WS calculator 
example)?
- Are JAX-WS compatible WS still packaged as .aar files?
- Are there any tutorials I missed (I couldn't find anything on wso2.org) 
explaining all this?

Thanks in advance

Pierre

Re: Simple Java Client

2007-09-06 Thread Charitha Kankanamge

Hi Sneha,
Did you try [1], [2] in Apache Axis2 web page? It includes a lot of 
information on creating web service clients.


[1]http://ws.apache.org/axis2/1_3/quickstartguide.html#clientadb
[2]http://ws.apache.org/axis2/1_3/userguide-creatingclients.html#choosingclient

regards
Charitha

sneha jain wrote:


Hi,

I am trying to create a Java Client to talk to a C Calculator web 
service ..
I am totally new to webservices. I have seen many methods to create 
clients on the site..

I tried many methods too but was not successful.
Can you please suggest me how do i go about it?

Cheers,
Sneha 





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



newline in Axis and Axis2

2007-09-06 Thread P�r Malmqvist

Hello!

When I transport a string including \r\n over SOAP and Axis 1.2 from a 
server to a client the client receives a string including \n only.


When I transport a string including \r\n over SOAP and Axis2 1.3 from a 
server to a client the client receives a string including \r\n.


What can I do about it? Any configurations needed for Axis2?

/Pär

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Web Service Proliferation

2007-09-06 Thread Deepal jayasinghe
To avoid number of services increasing , please use the same service
client instance.

To find the problem please send me the full stack trace.

Thanks
deepal
 Hi all,

 I'm running JBoss 4.0.5. I've a ws that must request a service to
 another.


 I use the following code:


 System.out.println(*** Requesting for a functional role);

 ServiceClient client = new ServiceClient();
 OperationClient operationClient =
 client.createClient(ServiceClient.ANON_OUT_IN_OP);
 MessageContext outMsgCtx = new MessageContext();
 Options opts = outMsgCtx.getOptions();
 opts.setTo(targetEPR);
 opts.setAction(AttributeQuery);



 SOAPFactory fac = OMAbstractFactory.getSOAP12Factory();
 SOAPEnvelope envelope = fac.getDefaultEnvelope();



 envelope.getBody().addChild(attributeRequestSigned);
 System.err.println(envelope.toString());


 outMsgCtx.setEnvelope(envelope);
 operationClient.addMessageContext(outMsgCtx);
 operationClient.execute(true);

 // pass message label as method argument
 MessageContext inMsgtCtx =
 operationClient.getMessageContext(In);

 SOAPEnvelope response = inMsgtCtx.getEnvelope();


 And I get the following error:

 [AxisServlet] java.lang.NullPointerException




 16:46:10,944 INFO  [STDOUT] 238335 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.header  -  POST
 /axis2/services/SpiritAuthenticationAuthority HTTP/1.1[\r][\n]
 16:46:11,018 INFO  [STDOUT] 238408 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.header  -  Content-Type: application/soap+xml;
 charset=UTF-8; action=AttributeQuery[\r][\n]
 16:46:11,019 INFO  [STDOUT] 238410 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.header  -  User-Agent: Axis2[\r][\n]
 16:46:11,020 INFO  [STDOUT] 238411 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.header  -  Host: localhost:8080[\r][\n]
 16:46:11,021 INFO  [STDOUT] 238412 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.header  -  Transfer-Encoding: chunked[\r][\n]
 16:46:11,023 INFO  [STDOUT] 238414 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.header  -  [\r][\n]
 16:46:11,117 INFO  [STDOUT] 238507 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.content  -  cd0[\r][\n]
 16:46:11,147 ERROR [AxisServlet] java.lang.NullPointerException
 16:46:11,149 INFO  [STDOUT] 238538 [http-0.0.0.0-8080-2] ERROR
 org.apache.axis2.transport.http.AxisServlet  -
 java.lang.NullPointerException
 16:46:11,194 INFO  [STDOUT] 238585 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.content  -  ?xml version='1.0'
 encoding='UTF-8'?soapenv:Envelope
 xmlns:wsa=http://www.w3.org/2005/08/addressing;
 xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;soapenv:Headerwsa:Tohttp://localhost:8080/axis2/services/SpiritAuthenticationAuthority/wsa:Towsa:MessageIDurn:uuid:CA7A64DB85574468BC1188917168200/wsa:MessageIDwsa:ActionAttributeQuery/wsa:Action/soapenv:Headersoapenv:Bodysamlp:AttributeQuery
 xmlns:samlp=urn:oasis:names:tc:SAML:2.0:protocol
 Destination=http://www.tiani-spirit.com/XDSb;
 ID=_6f029d7955496c88da0467f33e8e1cb4
 IssueInstant=2007-09-04T14:46:07.144Z Version=2.0saml:Issuer
 xmlns:saml=urn:oasis:names:tc:SAML:2.0:assertion
 Format=urn:oasis:names:SAML:2.0:nameid-format:entity
 NameQualifier=http://www.tiani-spirit.com/XDS/NAMEQUALIFIER;
 SPNameQualifier=http://www.tiani-spirit.com/XDS/SPNameQualifier;
 SPProvidedID=spirit-xds-document-registryhttp://www.tiani-spirit.com/XDSbDR/saml:Issuerds:Signature
 xmlns:ds=http://www.w3.org/2000/09/xmldsig#;[\n]
 16:46:11,196 INFO  [STDOUT] 238587 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.content  -  ds:SignedInfo[\n]
 16:46:11,197 INFO  [STDOUT] 238588 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.content  -  ds:CanonicalizationMethod
 Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#; /[\n]
 16:46:11,198 INFO  [STDOUT] 238589 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.content  -  ds:SignatureMethod
 Algorithm=http://www.w3.org/2000/09/xmldsig#rsa-sha1; /[\n]
 16:46:11,199 INFO  [STDOUT] 238590 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.content  -  ds:Reference
 URI=#_6f029d7955496c88da0467f33e8e1cb4[\n]
 16:46:11,199 INFO  [STDOUT] 238590 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.content  -  ds:Transforms[\n]
 16:46:11,200 INFO  [STDOUT] 238591 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.content  -  ds:Transform
 Algorithm=http://www.w3.org/2000/09/xmldsig#enveloped-signature; /[\n]
 16:46:11,201 INFO  [STDOUT] 238592 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.content  -  ds:Transform
 Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#WithComments;ec:InclusiveNamespaces
 xmlns:ec=http://www.w3.org/2001/10/xml-exc-c14n#; PrefixList=ds saml
 samlp //ds:Transform[\n]
 16:46:11,202 INFO  [STDOUT] 238593 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.content  -  /ds:Transforms[\n]
 16:46:11,203 INFO  [STDOUT] 238594 [http-0.0.0.0-8080-3] DEBUG
 httpclient.wire.content  -  ds:DigestMethod
 Algorithm=http://www.w3.org/2001/04/xmlenc#sha256; /[\n]
 16:46:11,204 INFO  

Re: Client within the same Web Services War

2007-09-06 Thread Deepal jayasinghe
Punnoose, Roshan wrote:

 I am trying to create a HTML Form for someone to access our web
 services easily and effectively. I want to be able to have the
 underlying logic for the HTML Form create a SOAP request and forward
 the request to the AxisServlet without having to create a separate
 HTTP Client. Basically, I want to perform the Web Services call within
 the same session because the HTML form will be located in the same war
 as the web services I will be calling. Does anybody have any ideas on
 how to use the ServiceClient to send data within the same session to a
 Web Service within the same war?

 If that doesn’t seem like the right solution, I was also thinking of
 creating a POST request that will go straight to the Axis Servlet, but
 then I have to generate all the WS-Addressing information myself
 without the aid of the AxisEngine and its handlers.

 **Roshan Punnoose**

 Phone: 301-497-6039

Is this Axis2 question or Axis1 ?

Thanks
Deepal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: axis + bpel + async callback = headache

2007-09-06 Thread alejandro
 Has anyone been able to asynchronously invoke an axis web service from a
 bpel process and successfully receive the callback?

 Thanks.


What BPEL product are you using?  I've been trying to get this to work w/
Oracle BPEL.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Runtime best practices for Axis2

2007-09-06 Thread Deepal jayasinghe
Glenn Williams wrote:

 What are the best practices for passing runtime parameters (such as DB
 login, pooling parameters)  to the Axis2 container?

  

  

You can add them as parameters in axis2.xml or you can have a module to
initialize them and add those to container. In the case of module
approach you have to write a module with a Module class and inside the
module init method you need to do the processing.

Thanks
Deepal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newline in Axis and Axis2

2007-09-06 Thread Deepal jayasinghe
Hmm , as I can see this should be an Axiom issue , anyway please create
a JIRA.

Thanks
Deepal
 Hello!

 When I transport a string including \r\n over SOAP and Axis 1.2 from
 a server to a client the client receives a string including \n only.

 When I transport a string including \r\n over SOAP and Axis2 1.3
 from a server to a client the client receives a string including \r\n.

 What can I do about it? Any configurations needed for Axis2?

 /Pär

 _
 Express yourself instantly with MSN Messenger! Download today it's
 FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple services in embedded axis2 application

2007-09-06 Thread Deepal jayasinghe
Mathias P.W Nilsson wrote:
 Hi!

 I have embedded axis2 servlet in my webapplication and managed to get a
 webservices working.
 How can I have multiple services in a webapplication without creating an
 .aar file and without specifying mutliple services.xml?

 My structure in my webapp is as follows.
 axis2-book-1.1\WEB-INF\services\WeatherService\META-INF\services.xml

 I can get the wsdl by requesting
 http://localhost:8080/axis2-book-1.1/services/WeatherService?wsdl

 How can I create another webservice by just using one services.xml?
   
You can have multiple service element inside one services.xml as
described in
http://wso2.org/library/2060

Thanks
Deepal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Simple Java Client

2007-09-06 Thread sneha jain
Hi Charitha,

I did try those methods but me being new to webservices and java as well
messed up the whole thing..
Right now m tryin to build a simple client which doesnt use stubs -

the client code is -

package samples.userguide.example1;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;

import javax.xml.namespace.QName;
import java.lang.*;

public class Calculator
{
   public static void main(String [] args) {
   try {
   String endpoint =
http://localhost:8080/axis/Calculator;;

   Integer i1 = new Integer(2);
   Integer i2 = new Integer(3);

   Service  service = new Service();
   Call call= (Call) service.createCall();

   call.setTargetEndpointAddress( new java.net.URL(endpoint) );
   call.setOperationName(add);
   call.addParameter( in0,org.apache.axis.Constants.XSD_INT,
javax.xml.rpc.ParameterMode.IN );
   call.addParameter( in1,org.apache.axis.Constants.XSD_INT,
javax.xml.rpc.ParameterMode.IN );
   call.setReturnType( org.apache.axis.Constants.XSD_INT );
   // Call to addParameter/setReturnType as described in
user-guide.html
   //call.addParameter(testParam,
   //  org.apache.axis.Constants.XSD_STRING,
   //  javax.xml.rpc.ParameterMode.IN);
   //call.setReturnType(org.apache.axis.Constants.XSD_STRING);

   Integer ret = (Integer) call.invoke( new Object[] { i1, i2 } );

   System.out.println(Result: + ret);
   } catch (Exception e) {
   System.err.println(e.toString());
   e.printStackTrace();
   }
   }
}

m getting error - Exception in thread main java.lang.NoClassDefFoundError:
Calculator

m not able to resolve this!!
On 9/6/07, Charitha Kankanamge [EMAIL PROTECTED] wrote:

 Hi Sneha,
 Did you try [1], [2] in Apache Axis2 web page? It includes a lot of
 information on creating web service clients.

 [1]http://ws.apache.org/axis2/1_3/quickstartguide.html#clientadb
 [2]http://ws.apache.org/axis2/1_3/userguide-
 creatingclients.html#choosingclient

 regards
 Charitha

 sneha jain wrote:

  Hi,
 
  I am trying to create a Java Client to talk to a C Calculator web
  service ..
  I am totally new to webservices. I have seen many methods to create
  clients on the site..
  I tried many methods too but was not successful.
  Can you please suggest me how do i go about it?
 
  Cheers,
  Sneha




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Null MessageContext returned

2007-09-06 Thread Deepal jayasinghe
[EMAIL PROTECTED] wrote:

 Hi all,
 I don't know if it is a bug or not but here is what I noticed:
 I've defined my own MessageReceiver in order to perform access control
 to the WebServices.
 The class extends AbstractInOutMessageReceiver. It overrides void
 receive(MessageContext) method.
 in this method here is the algorithm:
 getthe implementationobject
 retrieve parameter of the Webservice by calling getTypeService
 perform access controls
 call super.receive

 The issue appear in getTypeService() method: in it, if I'm using
 MessageContext.getCurrentMessageContext(), null is returned.
 If I modify getTypeService to getTypeService(MessageContext) and pass
 the MessageContext given as parameter of receive method, it is not null.
Setting of CurrentMessageContext is done by AbstractMessageReceiver  ,
that is the issue you have faced . What you have to do is do what
AbstractMessageReceiver has done in your code.

Thanks
Deepal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with request time out

2007-09-06 Thread Ashish Arya
Hi Roshan,

 

You suggestion has worked!

 

Thanks a lot for your help!

 

Regards,

 

Ashish Arya,

 



From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 5:15 PM
To: axis-user@ws.apache.org
Subject: RE: Problem with request time out

 

Thought I would contribute again to the mailing list :-).

 

Basically, the client itself has a timeout in the ServiceClient that you
need to set as well. In the Options of the ServiceClient, set this
property:

options.setTimeOutInMilliSeconds(6);

 

(Or whichever value is applicable to you)

 

Roshan Punnoose

Phone: 301-497-6039



From: Ashish Arya [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 6:49 AM
To: axis-user@ws.apache.org
Subject: Problem with request time out

 

Hi All,

 

I am facing problem related with 'AxisFault: Read Time out' in my web
service application.

 

In the application, I am doing some calculation on server side which may
take longer time. To accomplish this, I made following changes in
axis2.xml conf file.

 

parameter name=requestTimeout/parameter

 

But still noticed that the client is getting timed out exception.

 

Do I need to make any other change to avoid request time out?

 

Thanks and Regards,

 

Ashish

 



Re: get hotupdate not to work (Windows)]

2007-09-06 Thread Deepal jayasinghe
Charitha ,

I did the following and it worked fine

Step 1 : Created a service class as below and deploy it to tomcat (5)
public class EchoService {

public String sayHello() {
return Hello World!!!;
}
}

Type the following in the browser
http://localhost:8080/axis2/services/EchoService/sayHello got the result
ns:sayHelloResponse
ns:returnHello World!!!/ns:return
/ns:sayHelloResponse

Step 2 : Do the changes as shown below and redeploy
public class EchoService {

public String sayHello() {
return Hello Axis2!!!;
}
}

And got the following

 ns:sayHelloResponse
 ns:returnHello Axis2!!!/ns:return
 /ns:sayHelloResponse
FYI I have hosted  in [http://people.apache.org/~deepal/axis2/hotupdatebug/]  
both the service aar files , you may try and see
whether it works

Thanks
Deepal
 Hi Eicher,
 Yes. I observed the same issue with the scenario you mentioned.
 However, I'm not sure about the scope of Hotupdate. Anyway it will
 be great if you can report an issue in Axis2 bugs tracking system [1],
 so that the developers will resolve if there is a bug in hotupdate
 feature.

 [1]http://issues.apache.org/jira/browse/AXIS2

 regards
 Charitha

 Eichler, Wolfgang wrote:

 Hi Charitha,

 I could also see such changes in effect as you describe.
 What I did more precisely:

 1. Change in StockQuoteService.java:

 public class StockQuoteService {
private HashMap map = new HashMap();

public double getPrice(String symbol) {
Double price = (Double) map.get(symbol);
if(price != null){
return price.doubleValue();
}
return 42.00;
}

  to
 ...
return 43.00;
}

 2. Compile to *.class

 3. modify *.aar (using 7-zip) : replace the StockQuoteService.class

 So I don't change the name of some method but only the code. This does
 not work in my environment, unless restart of axis2.

 Thanks and regards
 Wolfgang

 -Original Message-
 From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] Sent: Wednesday,
 September 05, 2007 09:34
 To: axis-user@ws.apache.org
 Subject: Re: get hotupdate not to work (Windows)

 Hi Eicher,
 You should be able to add an updated *.class in to *.aar and see the
 update through Axis2 administration page. I updated a method name in
 a service implementation class, added the updated class in to service
 archive, and observed the updated method name through Axis2 admin
 page without restarting tomcat. Hence, Hotupdate feature suppots
 these modifications.

 regards
 Charitha

 Eichler, Wolfgang wrote:

  

 Hello Charitha,

 I could verify the update of service.xml as you described.

 I tried to get an update of some *.class file inside the *.aar,
 realizing the service:
 ...\build\classes\samples\quickstart\service\pojo\StockQuoteService.cla
   
 s
  





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Simple Java Client

2007-09-06 Thread Charitha Kankanamge

Sneha,
What is the axis version you are using? If you are new to java web 
services, I would recommend you to use Axis2. Please have a look at 
Axis2 user documentation (http://ws.apache.org/axis2/1_3/toc.html) and 
the following references to have a basic understanding on Axis2 web 
services.


[1] http://wso2.org/library/95
[2] 
http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-apache-axis2.html
[3] If you are using Eclipse IDE for Java development, have a look at 
http://wso2.org/library/1719


Let us know if you cannot get it working with the help of the above 
documents.


regards
Charitha

sneha jain wrote:


Hi Charitha,

I did try those methods but me being new to webservices and java as 
well messed up the whole thing..

Right now m tryin to build a simple client which doesnt use stubs -

the client code is -

package samples.userguide.example1;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;

import javax.xml.namespace.QName;
import java.lang.*;

public class Calculator
{
   public static void main(String [] args) {
   try {
   String endpoint =
http://localhost:8080/axis/Calculator;;
  
   Integer i1 = new Integer(2);

   Integer i2 = new Integer(3);
  
   Service  service = new Service();

   Call call= (Call) service.createCall ();

   call.setTargetEndpointAddress( new java.net.URL(endpoint) );
   call.setOperationName(add);
   call.addParameter( in0,org.apache.axis.Constants.XSD_INT, 
javax.xml.rpc.ParameterMode.IN http://javax.xml.rpc.ParameterMode.IN );
   call.addParameter( 
in1,org.apache.axis.Constants.XSD_INT,javax.xml.rpc.ParameterMode.IN 
http://javax.xml.rpc.ParameterMode.IN );

   call.setReturnType( org.apache.axis.Constants.XSD_INT );
   // Call to addParameter/setReturnType as described in 
user-guide.html

   //call.addParameter(testParam,
   //  org.apache.axis.Constants.XSD_STRING,
   //  javax.xml.rpc.ParameterMode.IN 
http://javax.xml.rpc.ParameterMode.IN);

   //call.setReturnType(org.apache.axis.Constants.XSD_STRING );

   Integer ret = (Integer) call.invoke( new Object[] { i1, i2 } );

   System.out.println(Result: + ret);
   } catch (Exception e) {
   System.err.println(e.toString ());
   e.printStackTrace();
   }
   }
}

m getting error - Exception in thread main 
java.lang.NoClassDefFoundError: Calculator


m not able to resolve this!!
On 9/6/07, *Charitha Kankanamge* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Hi Sneha,
Did you try [1], [2] in Apache Axis2 web page? It includes a lot of
information on creating web service clients.

[1]http://ws.apache.org/axis2/1_3/quickstartguide.html#clientadb
[2]http://ws.apache.org/axis2/1_3/userguide-
creatingclients.html#choosingclient

regards
Charitha

sneha jain wrote:

 Hi,

 I am trying to create a Java Client to talk to a C Calculator web
 service ..
 I am totally new to webservices. I have seen many methods to create
 clients on the site..
 I tried many methods too but was not successful.
 Can you please suggest me how do i go about it?

 Cheers,
 Sneha




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What new in Axis2?

2007-09-06 Thread Deepal jayasinghe
Ashish Jain wrote:
 Hi!!
  Thanks a lot for the quick response. I also want to know how
 these changes leads to improvement in the performance of AXIS2 over AXIS.
The most important feature which leads to performance improvements is
our XML processing framework. We have pull parser based on demand  XML
processing model called Axiom, that helped us to improve both the
performance and memory usage compare to Axis1.

Thanks
Deepal

 Thanks and regards
 Ashish

 On 9/6/07, *Deepal Jayasinghe* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 When comparing Axis1 and Axis2 , in Axis2 we have a number of new
 features

 - Asynchronous  web service invocation support
 - Hot deployment and hotupdate
 - Archive based deployment
 - Service isolation (one class loader per service)
 - Pluggable module (You can plug a new WS-Specification very easily )
 - Improved XML processing with pull parser technique
 - A number of transports  such as HTTP , TCP , NIO , SMTP , JMS
 and more
 - support for both WSDL 1.1. and WSDL 2.0
 - REST support
 - MTOM support
 - Improved code generation and data binding
 - Session management support
 - Very convenient context hierarchy
 - You can expose data base as a service (WSO2 WSAS)
 - You can use Axis2 to deploy Axis1 service (WSO2 WSAS)
 -And many more


 Believe me or not , Axis2 has features more that expected , if you
 have
 any problem please ask in the list , then we will help you.

 Thanks
 Deepal

 P.S : Those are the features came in to my mind , I know we have more
 than those


 Ashish Jain wrote:
  Hi All!
 
  I am new to apache Axis. Can someone tell me what is new in
 AXIS2 as
  compared to the previous version?
 
 
  Thanks in advance
 
  regards
  Ashish



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2-1.3] wsdl2java modifies / reformats my sources files

2007-09-06 Thread Rainer Menzner

Hi,

I have a web service up and running under axis2-1.1.1. In order to 
create the stubs and skeleton from the WSDL/Schema I use:


   call wsdl2java -uri %WSDLFILE% --package mydomain.queue --language 
java --server-side --service-description --databinding-method adb 
--generate-all --output .


from a shell script / WinXP. This worked fine with Axis2-1.1.1 and a 
number of older versions.



After updating to Axis2-1.3, the new wsdl2java suddenly starts to edit 
my sources files located in the package
mydomain.queue.implementation, that is below the stubs / skeleton. I 
also did not believe it at first, but it *really is* wsdl2java (or a 
part of it) that modifies the source files, at least this happens while 
wsdl2java is running. Now I have two problem. Firstly the editing 
operation that wsdl2java perfroms introduces some errors, and secondly I 
would like to use my own formatting for argument list etc.


Can some give a hint to problem here?

Thanks in advance,
-Rainer



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wrong namespace in response?

2007-09-06 Thread feh


Yeah, that's how I handled this situation - I added the schema tag to
services.xml. I was just a little surprised I had to specify it.

Thanks!



Deepal Jayasinghe-2 wrote:
 
 
 Hi folks.

 I've written an Axis2 service which returns the correct data, but the
 namespace in the response seems to be incorrect.

 Now, I know very little (nothing) about SOAP, so I may be wrong about
 this.
 But if the class that implements the service is foo.bar.GroupService,
 shouldn't the namespace in the response be
 http://foo.bar.GroupService/xsd;?
   
 Thats the default behaviors but you can change that by changing
 services.xml as describe in
 http://wso2.org/library/2060
 Below is the request and the response. Thanks for any feedback you can
 provide!



   
 Thanks
 Deepal
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/wrong-namespace-in-response--tf4384479.html#a12521553
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple services in embedded axis2 application

2007-09-06 Thread Mathias P.W Nilsson

Thanks! It works now. I didn't get that the name in the services.xml was the
actual url path.

I can name the directory whatever I want but is the servicename that decides
that name
-- 
View this message in context: 
http://www.nabble.com/Multiple-services-in-embedded-axis2-application-tf4391127.html#a12521556
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



can't serialize arraylist

2007-09-06 Thread Mathias P.W Nilsson

I have two classes. A Weather class and a Book class. ( Don't pay any
attention to why a Weather can have books :) )

Anyway. The Weather class has an ArrayList of Books and the book has a
Weather.

See code below.

===
package samples.demo;

import java.io.Serializable;
import java.util.ArrayList;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;



@Entity()
@Table( name = Weather , schema = Hello )
@SuppressWarnings( serial )
public class Weather implements Serializable{

@Id()
@GeneratedValue()
@Column( name = WeatherId )
Long id;

@Column( name = Temperature  )
float temperature;
@Column( name = Forecast  )
String forecast;
@Column( name = Rain  )
boolean rain;
@Column( name = HowMuchRain  )
float howMuchRain;

@OneToMany( mappedBy = weather,  fetch = FetchType.EAGER )
@JoinColumn( name = WeatherId )
ArrayListBook books = new ArrayListBook();

public Weather(){

}

public void setTemperature(float temp){
temperature = temp;
}

public float getTemperature(){
return temperature;
}

public void setForecast(String fore){
forecast = fore;
}

public String getForecast(){
return forecast;
}

public void setRain(boolean r){
rain = r;
}

public boolean getRain(){
return rain;
}

public void setId( Long id ){
  this.id = id;
}

public void setHowMuchRain(float howMuch){
howMuchRain = howMuch;
}

public float getHowMuchRain(){
return howMuchRain;
}

public Long getId() {
return id;
}

public boolean equals(Object obj) {

if( obj == null ){
return false;
}
if( obj instanceof Weather ) {
return ((Weather)obj).getId().equals( getId() );
}
return false;
}

public int hashCode() {
return id.hashCode();
}

public ArrayListBook getBooks() {
return books;
}


public void addBook( Book b ){
books.add(b);
//b.setWeather(this);
}

}
==

Book
==
package samples.demo;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity()
@Table( name = Book , schema = Hello )
@SuppressWarnings( serial )
public class Book implements Serializable{

@Id()
@GeneratedValue()
@Column( name = BookId )
Long id;

@Column( name = Title )
String title;
@Column( name = ISBN )
String isbn;
@Column( name = Author )
String author;
@ManyToOne( cascade = CascadeType.REFRESH )
@JoinColumn( name = WeatherId )
private Weather weather;

public Weather getWeather() {
return weather;
}

public void setWeather(Weather weather) {
this.weather = weather;
}

public Book(){

}

public String getIsbn() {
return isbn;
}

public void setIsbn(String isbn) {
this.isbn = isbn;
}

public String getTitle() {
return title;
}

public void setTitle(String title) {
this.title = title;
}

public String getAuthor() {
return author;
}

public void setAuthor(String author) {
this.author = author;
}

public Long getId(){
return id;
}
}

===

When I try to send this I can send the Weather class to a client.
RPCServiceClient, but when I 
Do addBook it hangs?

This Works

Weather w = new Weather();
w.setForecast( Cloud );
w.setHowMuchRain(45.5f);
w.setRain(false);
w.setTemperature(45.23f);

return w;

This does not work

Weather w = new Weather();
w.setForecast( Cloud );
w.setHowMuchRain(45.5f);
w.setRain(false);
w.setTemperature(45.23f);
Book b = new Book();
b.setAuthor(Mathias Nilsson);
b.setIsbn(787812);
b.setTitle( Java for ultra dummies 2);
b.setWeather(w);
w.addBook(b);

return w;



Any ideas? I really hope that I can send a object that has a collection of
objects?
-- 

[AXIS2] Request validation

2007-09-06 Thread p . casenove
Hi,
I am using Axis2 1.3 and JAXB databinding.
My WS is using doc/lit style and I have a problem with the incoming 
request:
Axis2 rejects the requests if the xml is malformed (missing tags for 
example) but it forwards the request to the WS even if the value in the 
tag are incorrect.
For example, in my xsd, I define a tag as a positive Integer 
(xs:positiveInteger) and if I send a request with a negative integer, the 
request is forwarded to the WS.
Is this normal?
Is it up to the WS to check the value inside the body tags?

Thanks in advance,

Pierre

Re: Invalid element/Deserialisation

2007-09-06 Thread Wendy Bao

Hi Deepal,

That site has axis2. I was looking for axis.  I got one from WSAD 5.1 now.

Thanks.

Wendy


Deepal Jayasinghe-2 wrote:
 
 Wendy Bao wrote:
 Hi John,

 Could you let me know where I can get the axis-1.2 or axis-1.2.1? I
 visited
 a couple of Aparch web site,  axis-1.2 is no longer available.  
   
 Try this
 http://ws.apache.org/axis2/download/1_2/download.cgi
 
 Thanks
 Deepal
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Invalid-element-Deserialisation-tf121531.html#a12522632
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RPCServiceClient and ArrayList

2007-09-06 Thread Bhojraj, Santosh
You can. You will need to set the object type of an array.

QName opFindAllEntries = new
QName(http://service.addressbook.sample/xsd;, findAllEntries);


Object[] opFindAllEntriesArgs = new Object[0] ;
Class[] returnTypesList = new Class[] { Entry[].class };
   
Object[] allEntriesResponse =
serviceClient.invokeBlocking(opFindAllEntries,
 
opFindAllEntriesArgs,
 
returnTypesList);

//  System.out.println(Num RESPONSE Entries :  + (null !=
allEntriesResponse ? allEntriesResponse.length : 0 ) );
System.out.println(RESPONSE Entry class:  +
allEntriesResponse[0].getClass()  );
Object[] allEntriesRsltArray = (Object[])
allEntriesResponse[0];
System.out.println(Num Entries in Result Array: +
allEntriesRsltArray.length );
for(int i=0, n= allEntriesRsltArray.length; i  n;i++)
{
System.out.println(Entry #  + (i+1) + :  +
(null != allEntriesRsltArray[i]
? ((Entry)allEntriesRsltArray[i]).getName() : NULL) );
}



Or use JIBX.


 
 
 




-Original Message-
From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 06, 2007 3:57 AM
To: axis-user@ws.apache.org
Subject: Re: RPCServiceClient and ArrayList


I got it to work by sending an array an not a list.

Why can't I send ArrayList?
--
View this message in context:
http://www.nabble.com/RPCServiceClient-and-ArrayList-tf4390198.html#a125
17424
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Re: MTOM and Rampart problem (Out Of Memory)

2007-09-06 Thread Thilina Gunarathne
Please log a JIRA with Rampart
(https://issues.apache.org/jira/browse/RAMPART).. Looks like a bug in
Rampart to me..

thanks,
Thilina

On 9/6/07, Grégoire Rolland [EMAIL PROTECTED] wrote:




 Hi All,



 I have a file download Service (I use this tutorial
 http://www.wso2.org/library/1675), which have a memory
 problem.

 It works with file not larger than 10mb, without tuning JVM memory.

 When I disengage Rampart module (both client and server), all works fine
 with larger file !! But when Rampart is engaged I get an OutOfMemoryError on
 the client side for file larger than 10mb.



 For a file of 74MB, I have to set client JVM Memory to 728MB !!!



 The version I use : Axis2 1.2, Rampart 1.2, Tomcat/5.5, jsdk_1.5_10



 I upgrade Axis and Rampart to version 1.3, there is the same behavior.



 Here is the stack trace for more precision :



 Thread [main] (Suspended (exception OutOfMemoryError))

   String.init(char[], int, int) line: not available

   StringBuffer.toString() line: not available

   TextHelper.toString(InputStream) line: 36

   TextImpl.getText() line: 316

   DOMStAXWrapper.getText() line: 356


 StAXSOAPModelBuilder(StAXBuilder).createOMText(OMContainer,
 int) line: 245

   StAXSOAPModelBuilder(StAXBuilder).createOMText(int)
 line: 216

   StAXSOAPModelBuilder(StAXOMBuilder).next() line: 179

   SOAPEnvelopeImpl(OMNodeImpl).build() line: 318

   SOAPEnvelopeImpl(OMElementImpl).build() line: 614

   Axis2Util.getSOAPEnvelopeFromDOMDocument(Document,
 boolean) line: 200

   RampartEngine.process(MessageContext) line: 174

   RampartReceiver.invoke(MessageContext) line: 85

   Phase.invoke(MessageContext) line: 292

   AxisEngine.invoke(MessageContext, boolean) line: 212

   AxisEngine.receive(MessageContext) line: 132


 OutInAxisOperationClient.handleResponse(MessageContext)
 line: 336

   OutInAxisOperationClient.send(MessageContext) line: 389

   OutInAxisOperationClient.executeImpl(boolean) line:
 211


 OutInAxisOperationClient(OperationClient).execute(boolean)
 line: 163


 DatabaseUpdaterClient(AbstractUpdaterClient).retrieveFile(String)
 line: 221

   DataBaseUpdater.update(boolean) line: 42

   TCXUpdater.main(String[]) line: 116



 This is the service code (method getFile) :



 public abstract class Updater implements IUpdater {

   private static final String FILE_ELEMENT_NAME = file;



   private static final String OM_NAMESPACE_NAME = update;



   private static final String OM_NAMESPACE =
 http://updater.webservices.hussoninfo.fr;;



   private String directory;



   private String fileName;



   public void setFileName(final String in_fileName) {

 fileName = in_fileName;

   }



   protected abstract String getRootPath();



   private String getUpdatePath() {

 return getRootPath() + File.separator + directory;

   }



   public OMElement getFile(final OMElement in_e)

   {

 OMFactory factory = OMAbstractFactory.getOMFactory();

 OMNamespace ns = factory.createOMNamespace(OM_NAMESPACE,
 OM_NAMESPACE_NAME);

 OMElement fileElement =
 OMAbstractFactory.getOMFactory().createOMElement(FILE_ELEMENT_NAME,
 ns);

 DataHandler dataHandler = new DataHandler(new
 FileDataSource(getUpdatePath() + File.separator + fileName));

 OMText textData = factory.createOMText(dataHandler, true);

 fileElement.addChild(textData);

 return fileElement;

   }

 }



 This is the service.xml (see service DatabaseUptader)



 serviceGroup



   service name=InitService
 class=fr.hussoninfo.webservices.lifecycle.InitService

   descriptionService d'initialisation/description

   parameter
 name=ServiceClassfr.hussoninfo.webservices.lifecycle.InitService/parameter

   parameter
 name=ServiceTCCLcomposite/parameter

   parameter
 name=load-on-startuptrue/parameter

   /service



   service name=DatabaseUpdater

 descriptionService de mise a jour de base de
 donnees/description

 messageReceivers

   messageReceiver
 mep=http://www.w3.org/2004/08/wsdl/in-only;
 class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver
 /

   messageReceiver
 mep=http://www.w3.org/2004/08/wsdl/in-out;
 class=org.apache.axis2.rpc.receivers.RPCMessageReceiver
 /

 /messageReceivers

 parameter name=ServiceClass
 locked=falsefr.hussoninfo.webservices.updater.IUpdater/parameter

 parameter
 name=ServiceObjectSupplierorg.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier/parameter

 parameter
 name=SpringBeanNamedatabaseUpdater/parameter

 parameter name=enableMTOM locked=falsetrue/parameter



 module ref=rampart /



 operation name=getFile

   

RE: RPCServiceClient and ArrayList

2007-09-06 Thread Mathias P.W Nilsson

Thanks but this I have done. It's still an array and not an ArrayList
-- 
View this message in context: 
http://www.nabble.com/RPCServiceClient-and-ArrayList-tf4390198.html#a12523540
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: MTOM and Rampart problem (Out Of Memory)

2007-09-06 Thread Grégoire Rolland

The bug was already open (RAMPART-77).

Thank you for your response.

Grégoire

-Message d'origine-
De : Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 6 septembre 2007 16:31
À : axis-user@ws.apache.org
Objet : Re: MTOM and Rampart problem (Out Of Memory)

Please log a JIRA with Rampart
(https://issues.apache.org/jira/browse/RAMPART).. Looks like a bug in
Rampart to me..

thanks,
Thilina

On 9/6/07, Grégoire Rolland [EMAIL PROTECTED] wrote:




 Hi All,



 I have a file download Service (I use this tutorial
 http://www.wso2.org/library/1675), which have a memory
 problem.

 It works with file not larger than 10mb, without tuning JVM memory.

 When I disengage Rampart module (both client and server), all works fine
 with larger file !! But when Rampart is engaged I get an OutOfMemoryError on
 the client side for file larger than 10mb.



 For a file of 74MB, I have to set client JVM Memory to 728MB !!!



 The version I use : Axis2 1.2, Rampart 1.2, Tomcat/5.5, jsdk_1.5_10



 I upgrade Axis and Rampart to version 1.3, there is the same behavior.



 Here is the stack trace for more precision :



 Thread [main] (Suspended (exception OutOfMemoryError))

   String.init(char[], int, int) line: not available

   StringBuffer.toString() line: not available

   TextHelper.toString(InputStream) line: 36

   TextImpl.getText() line: 316

   DOMStAXWrapper.getText() line: 356


 StAXSOAPModelBuilder(StAXBuilder).createOMText(OMContainer,
 int) line: 245

   StAXSOAPModelBuilder(StAXBuilder).createOMText(int)
 line: 216

   StAXSOAPModelBuilder(StAXOMBuilder).next() line: 179

   SOAPEnvelopeImpl(OMNodeImpl).build() line: 318

   SOAPEnvelopeImpl(OMElementImpl).build() line: 614

   Axis2Util.getSOAPEnvelopeFromDOMDocument(Document,
 boolean) line: 200

   RampartEngine.process(MessageContext) line: 174

   RampartReceiver.invoke(MessageContext) line: 85

   Phase.invoke(MessageContext) line: 292

   AxisEngine.invoke(MessageContext, boolean) line: 212

   AxisEngine.receive(MessageContext) line: 132


 OutInAxisOperationClient.handleResponse(MessageContext)
 line: 336

   OutInAxisOperationClient.send(MessageContext) line: 389

   OutInAxisOperationClient.executeImpl(boolean) line:
 211


 OutInAxisOperationClient(OperationClient).execute(boolean)
 line: 163


 DatabaseUpdaterClient(AbstractUpdaterClient).retrieveFile(String)
 line: 221

   DataBaseUpdater.update(boolean) line: 42

   TCXUpdater.main(String[]) line: 116



 This is the service code (method getFile) :



 public abstract class Updater implements IUpdater {

   private static final String FILE_ELEMENT_NAME = file;



   private static final String OM_NAMESPACE_NAME = update;



   private static final String OM_NAMESPACE =
 http://updater.webservices.hussoninfo.fr;;



   private String directory;



   private String fileName;



   public void setFileName(final String in_fileName) {

 fileName = in_fileName;

   }



   protected abstract String getRootPath();



   private String getUpdatePath() {

 return getRootPath() + File.separator + directory;

   }



   public OMElement getFile(final OMElement in_e)

   {

 OMFactory factory = OMAbstractFactory.getOMFactory();

 OMNamespace ns = factory.createOMNamespace(OM_NAMESPACE,
 OM_NAMESPACE_NAME);

 OMElement fileElement =
 OMAbstractFactory.getOMFactory().createOMElement(FILE_ELEMENT_NAME,
 ns);

 DataHandler dataHandler = new DataHandler(new
 FileDataSource(getUpdatePath() + File.separator + fileName));

 OMText textData = factory.createOMText(dataHandler, true);

 fileElement.addChild(textData);

 return fileElement;

   }

 }



 This is the service.xml (see service DatabaseUptader)



 serviceGroup



   service name=InitService
 class=fr.hussoninfo.webservices.lifecycle.InitService

   descriptionService d'initialisation/description

   parameter
 name=ServiceClassfr.hussoninfo.webservices.lifecycle.InitService/parameter

   parameter
 name=ServiceTCCLcomposite/parameter

   parameter
 name=load-on-startuptrue/parameter

   /service



   service name=DatabaseUpdater

 descriptionService de mise a jour de base de
 donnees/description

 messageReceivers

   messageReceiver
 mep=http://www.w3.org/2004/08/wsdl/in-only;
 class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver
 /

   messageReceiver
 mep=http://www.w3.org/2004/08/wsdl/in-out;
 class=org.apache.axis2.rpc.receivers.RPCMessageReceiver
 /

 /messageReceivers

 parameter name=ServiceClass
 locked=falsefr.hussoninfo.webservices.updater.IUpdater/parameter

 parameter
 

RE: Simple Java Client

2007-09-06 Thread Stephen James
From the error it appears that the main is not even getting invoked.
How are you invoking this from the command line?

You have to invoke the 

java samples.userguide.example1.Calculator

Not simply 

java Calculator


Stephen James

-Original Message-
From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 06, 2007 6:30 AM
To: axis-user@ws.apache.org
Subject: Re: Simple Java Client

Sneha,
What is the axis version you are using? If you are new to java web
services, I would recommend you to use Axis2. Please have a look at
Axis2 user documentation (http://ws.apache.org/axis2/1_3/toc.html) and
the following references to have a basic understanding on Axis2 web
services.

[1] http://wso2.org/library/95
[2]
http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using
-apache-axis2.html
[3] If you are using Eclipse IDE for Java development, have a look at
http://wso2.org/library/1719

Let us know if you cannot get it working with the help of the above
documents.

regards
Charitha

sneha jain wrote:

 Hi Charitha,

 I did try those methods but me being new to webservices and java as 
 well messed up the whole thing..
 Right now m tryin to build a simple client which doesnt use stubs -

 the client code is -

 package samples.userguide.example1;

 import org.apache.axis.client.Call;
 import org.apache.axis.client.Service;

 import javax.xml.namespace.QName;
 import java.lang.*;

 public class Calculator
 {
public static void main(String [] args) {
try {
String endpoint =
 http://localhost:8080/axis/Calculator;;
   
Integer i1 = new Integer(2);
Integer i2 = new Integer(3);
   
Service  service = new Service();
Call call= (Call) service.createCall ();

call.setTargetEndpointAddress( new java.net.URL(endpoint)
);
call.setOperationName(add);
call.addParameter( in0,org.apache.axis.Constants.XSD_INT,
 javax.xml.rpc.ParameterMode.IN http://javax.xml.rpc.ParameterMode.IN
);
call.addParameter(
 in1,org.apache.axis.Constants.XSD_INT,javax.xml.rpc.ParameterMode.IN
 http://javax.xml.rpc.ParameterMode.IN );
call.setReturnType( org.apache.axis.Constants.XSD_INT );
// Call to addParameter/setReturnType as described in 
 user-guide.html
//call.addParameter(testParam,
//  org.apache.axis.Constants.XSD_STRING,
//  javax.xml.rpc.ParameterMode.IN 
 http://javax.xml.rpc.ParameterMode.IN);
//call.setReturnType(org.apache.axis.Constants.XSD_STRING 
 );

Integer ret = (Integer) call.invoke( new Object[] { i1, i2 
 } );

System.out.println(Result: + ret);
} catch (Exception e) {
System.err.println(e.toString ());
e.printStackTrace();
}
}
 }

 m getting error - Exception in thread main 
 java.lang.NoClassDefFoundError: Calculator

 m not able to resolve this!!
 On 9/6/07, *Charitha Kankanamge* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi Sneha,
 Did you try [1], [2] in Apache Axis2 web page? It includes a lot
of
 information on creating web service clients.

 [1]http://ws.apache.org/axis2/1_3/quickstartguide.html#clientadb
 [2]http://ws.apache.org/axis2/1_3/userguide-
 creatingclients.html#choosingclient

 regards
 Charitha

 sneha jain wrote:

  Hi,
 
  I am trying to create a Java Client to talk to a C Calculator
web
  service ..
  I am totally new to webservices. I have seen many methods to
create
  clients on the site..
  I tried many methods too but was not successful.
  Can you please suggest me how do i go about it?
 
  Cheers,
  Sneha





-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Invalid element/Deserialisation

2007-09-06 Thread Davanum Srinivas
http://archive.apache.org/ has the old releases.

-- dims

On 9/6/07, Wendy Bao [EMAIL PROTECTED] wrote:

 Hi Deepal,

 That site has axis2. I was looking for axis.  I got one from WSAD 5.1 now.

 Thanks.

 Wendy


 Deepal Jayasinghe-2 wrote:
 
  Wendy Bao wrote:
  Hi John,
 
  Could you let me know where I can get the axis-1.2 or axis-1.2.1? I
  visited
  a couple of Aparch web site,  axis-1.2 is no longer available.
 
  Try this
  http://ws.apache.org/axis2/download/1_2/download.cgi
 
  Thanks
  Deepal
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Invalid-element-Deserialisation-tf121531.html#a12522632
 Sent from the Axis - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Davanum Srinivas :: http://davanum.wordpress.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2-1.3] wsdl2java modifies / reformats my sources files

2007-09-06 Thread Davanum Srinivas
please remove jalopy jar from axis2 lib directory to avoid reformats.

-- dims

On 9/6/07, Rainer Menzner [EMAIL PROTECTED] wrote:
 Hi,

 I have a web service up and running under axis2-1.1.1. In order to
 create the stubs and skeleton from the WSDL/Schema I use:

 call wsdl2java -uri %WSDLFILE% --package mydomain.queue --language
 java --server-side --service-description --databinding-method adb
 --generate-all --output .

 from a shell script / WinXP. This worked fine with Axis2-1.1.1 and a
 number of older versions.


 After updating to Axis2-1.3, the new wsdl2java suddenly starts to edit
 my sources files located in the package
 mydomain.queue.implementation, that is below the stubs / skeleton. I
 also did not believe it at first, but it *really is* wsdl2java (or a
 part of it) that modifies the source files, at least this happens while
 wsdl2java is running. Now I have two problem. Firstly the editing
 operation that wsdl2java perfroms introduces some errors, and secondly I
 would like to use my own formatting for argument list etc.

 Can some give a hint to problem here?

 Thanks in advance,
 -Rainer



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Davanum Srinivas :: http://davanum.wordpress.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to set configuration parameters for web service not in aar

2007-09-06 Thread Tony Li
We built and released web services as aar files in ..\axis2\WEB-INF\services.

We want to manually change the configuration parameters in web service
without needing to restart the servers.

Is it possible to put configuration parameters at config.xml in
...\axis2\WEB-INF\conf or ...\axis2\WEB-INF\classes and read them into
web services when the web services are running?
So that we can manually change the configuration file content and call
some functions in web services to refresh the configuration parameters
in the services without restart the servers?


Thanks a lot

Tony

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: axis + bpel + async callback = headache

2007-09-06 Thread noomerikal
axis2 1.3 and Oracle BPM 10.1.3.1

I just saw that Oracle BPM only supports the really old '03 WS-Addressing
spec while Axis only supports the '04 and final specs.



On 9/6/07, Paul Fremantle [EMAIL PROTECTED] wrote:

 What software are you using?

 Paul

 On 9/6/07, noomerikal [EMAIL PROTECTED] wrote:
  Has anyone been able to asynchronously invoke an axis web service from a
  bpel process and successfully receive the callback?
 
  Thanks.
 


 --
 Paul Fremantle
 Co-Founder and VP of Technical Sales, WSO2
 OASIS WS-RX TC Co-chair

 blog: http://pzf.fremantle.org
 [EMAIL PROTECTED]

 Oxygenating the Web Service Platform, www.wso2.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: newline in Axis and Axis2

2007-09-06 Thread P�r Malmqvist

I dont know how to create a JIRA. Sorry.
/Pär





From:Deepal jayasinghe [EMAIL PROTECTED]Reply-To:axis-user@ws.apache.orgTo:axis-user@ws.apache.orgSubject:Re: newline in Axis and Axis2Date:Thu, 06 Sep 2007 16:32:12 +0530Hmm , as I can see this should be an Axiom issue , anyway please createa JIRA.ThanksDeepal  Hello!   When I transport a string including "\r\n" over SOAP and Axis 1.2 from  a server to a client the client receives a string including "\n" only.   When I transport a string including "\r\n" over SOAP and Axis2 1.3  from a server to a client the client receives a string including "\r\n".   What can I do about it? Any configurations needed for 
Axis2?   /Pär   _  Express yourself instantly with MSN Messenger! Download today it's  FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/-  To unsubscribe, e-mail: [EMAIL PROTECTED]  For additional commands, e-mail: [EMAIL PROTECTED] -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]Express yourself instantly with MSN Messenger! MSN Messenger Download today it's FREE!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDLException : OTHER_ERROR: Unable to locate with a locator the schema referenced at ...

2007-09-06 Thread Linus Kamb

Thanks so much for responding.

I will enter a Jira issue.

thanks,
Linus


Amila Suriarachchi wrote:



On 9/5/07, *Linus Kamb* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


So, am I doing something wrong?  Or is this a bug?


Axis2 supports xsd file if they are directly under the META-INF. as I 
saw you xsd file are in different directories.
So I am not saying the thing you do is wrong. But I think this a an 
axis2 limitation. So please log a jira.


Amila.

Thanks,
Linus


Linus Kamb wrote:
  Thanks a lot for looking.
 
  wsdl2java seems to run successfully:
 
  ant target is:
 
 target name=w2j depends=clean  
 java classname=org.apache.axis2.wsdl.WSDL2Java  fork=true
 failonerror=true
 classpath
 path refid=axis-classpath/
 path refid=jibx-classpath/
 /classpath
 arg value=-o/
 arg value=w2j/
 arg value=-p/
 arg value=${package-name}/
 arg value=-d/
 arg value=jibx/
 arg value=-Ebindingfile/
 arg value=${binding-file}/
 arg value=-uw/
 !-- -ss parameter says generate server code --
 arg value=-ss/
 !-- -sd parameter says generate server deployment
files --
 arg value=-sd/
 !-- -ssi parameter says generate Java interface
  definition. --
 arg value=-ssi/
 arg value=-uri/
 arg value=${wsdl-path}/
 /java
 /target
 
  output:
  $ ant w2j
  Buildfile: build.xml
 
  clean:
[delete] Deleting directory
  /Users/linus/workspace/ESPortalCDI/server/gen
 
  w2j:
  [java] Retrieving schema at
  'http://www.iris.edu/schema/esdp/esdp-0.1.xsd
http://www.iris.edu/schema/esdp/esdp-0.1.xsd', relative to
  'file:/Users/linus/workspace/ESPortalCDI/resources/META-INF/'.
  [java] Retrieving schema at
  'http://schemas.opengis.net/filter/1.1.0/filter.xsd
http://schemas.opengis.net/filter/1.1.0/filter.xsd', relative to
  'http://www.iris.edu/schema/esdp/esdp-0.1.xsd'.
  [java] Retrieving schema at
  '../../gml/3.1.1/base/geometryAggregates.xsd', relative to
  'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
  [java] Retrieving schema at 'geometryPrimitives.xsd',
relative to
  'http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd'.
  [java] Retrieving schema at 'geometryBasic2d.xsd ', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/geometryPrimitives.xsd'.
  [java] Retrieving schema at ' geometryBasic0d1d.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/geometryBasic2d.xsd'.
  [java] Retrieving schema at ' measures.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/geometryBasic0d1d.xsd'.
  [java] Retrieving schema at ' units.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/measures.xsd'.
  [java] Retrieving schema at 'dictionary.xsd ', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/units.xsd'.
  [java] Retrieving schema at 'gmlBase.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/dictionary.xsd'.
  [java] Retrieving schema at '../../../xlink/1.0.0/xlinks.xsd',
  relative to 'http://schemas.opengis.net/gml/3.1.1/base/gmlBase.xsd'.
  [java] Retrieving schema at 'basicTypes.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/gmlBase.xsd'.
  [java] Retrieving schema at 'expr.xsd', relative to
  ' http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
  [java] Retrieving schema at 'sort.xsd', relative to
  ' http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
  [java] Retrieving schema at 'expr.xsd', relative to
  'http://schemas.opengis.net/filter/1.1.0/sort.xsd
http://schemas.opengis.net/filter/1.1.0/sort.xsd'.
  [java] Retrieving schema at 'filterCapabilities.xsd', relative to
  'http://schemas.opengis.net/filter/1.1.0/filter.xsd
http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
  [java] Retrieving schema at
  'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd', relative to
  ' http://www.iris.edu/schema/esdp/esdp-0.1.xsd'.
  [java] Retrieving schema at 'geometryBasic2d.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd
http://schemas.opengis.net/gml/3.1.1/base/feature.xsd'.
  [java] Retrieving schema at 'temporal.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd '.
  [java] Retrieving schema at 'gmlBase.xsd', relative to
  'http://schemas.opengis.net/gml/3.1.1/base/temporal.xsd'.
  [java] log4j:WARN No 

Help webservice with hibernate

2007-09-06 Thread Mathias P.W Nilsson

How do you use hibernate with webservice?

I want to use pojos but It's a pain. How do you do it? a simple hibernate
with webservice tutorial. 

Please!
-- 
View this message in context: 
http://www.nabble.com/Help-webservice-with-hibernate-tf4393962.html#a12528772
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with client side exceptions

2007-09-06 Thread John McLaughlin
Will do Deepal. I'm away for the next couple of days, but will do it as soon
as I get back.

Thanks,

John

On 9/6/07, Deepal jayasinghe [EMAIL PROTECTED] wrote:

 Hi John,
 Could you please create a JIRA and attach whatever necessary to recreate
 the issue.

 Thanks
 Deepal
  Hi  all,
 
  I'm a newbie to Axis2, though have used Axis1 before, and am
  having trouble with exceptions on the client end.
 
  I've deployed a POJO as a service under Tomcat. I generated
  the service and client using Eclipse WTP, so to be as brief as
  possible, the service has a method:
 
  public CounterLight getCounter(Long nsuk)
  throws CounterNotFoundException
  {
  :
  throw new CounterNotFoundException(Exception) ;
  }
 
  CounterNotFoundException is simply an extension of
  java.lang.Exception (it implements Serializable as well, though I
  don't think this makes any difference)
 
  Wsdl2java generates a class called
  CounterNotFoundExceptionException2 alongside the stub for the service
 
  On the client side I have:
 
 try {
  stub.getCounter(params) ; // Params initialised properly etc
 }
 catch(CounterNotFoundExceptionException2 e) {
  e.printStackTrace() ;
  }
  catch (AxisFault e) {
  e.printStackTrace() ;
  }
 
  The AxisFault is ALWAYS the one that is received, never the
  generated exception (though the compiler insists that I check for it).
 
  On the server side, I also get a
  java.lang.reflect.InvocationTargetException...Caused by
 CounterException
 
  Can anybody point me in the right direction here, am I missing
  something? I've googled extensively, searched the list archives etc,
  but couldn't find much of help.
 
  Thanks for any help!
 
  John
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: [axis2] BindException from Axis client

2007-09-06 Thread Jake Goulding
This is just a bump. I'm sure that anyone else out there using Axis in
an high-performance environment can easily run into this problem. Should
I log a JIRA issue? Comment on one of the existing JIRAs?

Thanks!

-Jake

Jake Goulding wrote:
 Hey all:
 
 I wrote in with this problem quite a while back, and a few people tried
 to help. The basic problem is that a stub, when making many requests
 quickly, will eventually fail with a BindException:
 
 There are a few references to this issue in JIRA:
 
 https://issues.apache.org/jira/browse/AXIS2-2593 (Fixed)
 https://issues.apache.org/jira/browse/AXIS2-2441 (Fixed)
 https://issues.apache.org/jira/browse/AXIS2-2883 (Open)
 
 This is a fairly common case in our usage of webservices, and
 particularly hits hard on Windows, which seems to default to only
 allowing ~4000 open sockets at once.
 
 This is very easy to reproduce, all you need is a webservice that
 returns quickly (a hello world service works well) and a loop in the
 client that calls the service over and over.
 
 I have tried the following code with Axis 1.1.1 (our current production
 version) as well as Axis 1.3. This code accesses a service on another
 computer, so no sharing of resources should come into play. Perhaps I am
 using Axis incorrectly, and would be glad to be corrected if that is the
 case. I added a call to Stub.cleanup() inside the loop, but it did not
 seem to help.
 
 Thanks for all your help in advance!
 
 -Jake
 
 
 My sample code:
 
 Service1Stub s = new Service1Stub();
 for (int i = 0; i  5000; i++) {
   Service1Stub.HelloWorldResponse r = null;
   Service1Stub.HelloWorld h = new Service1Stub.HelloWorld();
   r = s.HelloWorld(h);
 }
 
 My exception:
 
 Exception in thread main org.apache.axis2.AxisFault: Address already
 in use: connect
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
 at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
 at
 org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
 at test.Service1Stub.HelloWorld(Service1Stub.java:145)
 at Loop.main(Loop.java:12)
 Caused by: java.net.BindException: Address already in use: connect
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(Unknown Source)
 at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
 at java.net.PlainSocketImpl.connect(Unknown Source)
 at java.net.SocksSocketImpl.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
 at
 org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
 at
 org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
 at
 org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
 at
 org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
 at
 org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
 at
 org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
 at
 org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
 at
 org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)
 at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
 ... 9 more
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [axis2] BindException from Axis client

2007-09-06 Thread Walker, Jeff
Just a dumb idea,
but in such a high performance environment, wouldn't a thread pool work
better?, where each thread has a Stub and when it has done its work for
that open request it is returned to the pool.
If you initialize the pool to about 700 threads, then at least you have
some control over the situation (varying the pool size to accommodate
your available memory etc.) and you should never see the BindException
because any Stub blocked waiting on a timeout (or general io wait) will
not be returned to the pool yet.

The idea needs further work. It won't increase your throughput, but it
might stop the exceptions and still be worth looking into?
-jeff



-Original Message-
From: Jake Goulding [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 06, 2007 3:43 PM
To: axis-user@ws.apache.org
Subject: Re: [axis2] BindException from Axis client

This is just a bump. I'm sure that anyone else out there using Axis in
an high-performance environment can easily run into this problem. Should
I log a JIRA issue? Comment on one of the existing JIRAs?

Thanks!

-Jake

Jake Goulding wrote:
 Hey all:
 
 I wrote in with this problem quite a while back, and a few people
tried
 to help. The basic problem is that a stub, when making many requests
 quickly, will eventually fail with a BindException:
 
 There are a few references to this issue in JIRA:
 
 https://issues.apache.org/jira/browse/AXIS2-2593 (Fixed)
 https://issues.apache.org/jira/browse/AXIS2-2441 (Fixed)
 https://issues.apache.org/jira/browse/AXIS2-2883 (Open)
 
 This is a fairly common case in our usage of webservices, and
 particularly hits hard on Windows, which seems to default to only
 allowing ~4000 open sockets at once.
 
 This is very easy to reproduce, all you need is a webservice that
 returns quickly (a hello world service works well) and a loop in the
 client that calls the service over and over.
 
 I have tried the following code with Axis 1.1.1 (our current
production
 version) as well as Axis 1.3. This code accesses a service on another
 computer, so no sharing of resources should come into play. Perhaps I
am
 using Axis incorrectly, and would be glad to be corrected if that is
the
 case. I added a call to Stub.cleanup() inside the loop, but it did not
 seem to help.
 
 Thanks for all your help in advance!
 
 -Jake
 
 
 My sample code:
 
 Service1Stub s = new Service1Stub();
 for (int i = 0; i  5000; i++) {
   Service1Stub.HelloWorldResponse r = null;
   Service1Stub.HelloWorld h = new Service1Stub.HelloWorld();
   r = s.HelloWorld(h);
 }
 
 My exception:
 
 Exception in thread main org.apache.axis2.AxisFault: Address already
 in use: connect
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
 at

org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
95)
 at
 org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
 at

org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:327)
 at

org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:206)
 at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
 at

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:374)
 at

org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
 at

org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
 at test.Service1Stub.HelloWorld(Service1Stub.java:145)
 at Loop.main(Loop.java:12)
 Caused by: java.net.BindException: Address already in use: connect
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(Unknown Source)
 at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
 at java.net.PlainSocketImpl.connect(Unknown Source)
 at java.net.SocksSocketImpl.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at

org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSoc
ket(ReflectionSocketFactory.java:139)
 at

org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.crea
teSocket(DefaultProtocolSocketFactory.java:124)
 at

org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:70
6)
 at

org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpCon
nectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
 at

org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
thodDirector.java:386)
 at

org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
dDirector.java:170)
 at


Problem with Adding Namespace Declaration and Attribute

2007-09-06 Thread Ghaznavi, Syed

Hi,
I have been trying to resolve this problem for some time but have not
been able to get my code to work!! 

I a sample WSClient application that adds digital signatures to the
message.

Basically I am trying to add a namespace declaration in the SOAPBody
element using addNamespaceDeclaration method on the body element and
then add a new
Attribute associated with that namespace in the SOAPBody element.

I am using Axis 1.1 API for this.

SOAPBody body = sEnvelope.getBody();
Body.addNamespaceDeclaration(wsu,
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-util
ity-1.0.xsd);
body.addAttribute(sEnvelope.createName(Id,wsu 
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-util
ity-1.0.xsd), Body);

But this above code doesn't add anything in the body, except,
soapenv:Body Id=Body

I was wondering if there is a Bug in Axis1.1 API that results in this
above behavior ?? 

When I tried using Axis 1.4 and my code seems to work, that is I get a
body element as follows...
soapenv:Body wsu:Id=Body
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssec
urity-utility-1.0.xsd/soapenv:Body

What if any is the workaround this, using Axis1.1, because we are
restricted with using Axis1.1 API.

Thanks!

Frustrated Axis1.1 User



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How do I persist parameters from one operation for use by other operations?

2007-09-06 Thread Lindsey Hess
Hi,
   
  I have an Axis web service that has five operations.  The first operation 
that must be called contains a request object with a number of parameters 
(e.g., max results, timeout, etc.).  The other operations need these parameters 
since their respective request objects only take an ID and a date.  
   
  Due to design requirements, I can't persist these parameters to a database or 
even to an XML file on disk.  So, I'm not quite sure how to persist them so 
that the other operations can access them.  
   
  Can someone please help me?
   
  Thank you.
   
  Lindsey Hess

   
-
Got a little couch potato? 
Check out fun summer activities for kids.

RE: How do I persist parameters from one operation for use by other operations?

2007-09-06 Thread Walker, Jeff
Ok, I have another dumb idea (at least this one I have tried and got
working in my far past).
 
Have your service implement javax.xml.rpc.server.ServiceLifecycle. You
need to implement two methods, init() and destroy(), I think. Declare a
new static hashtable. Add it as a new attribute on the context passed
into the init(). That context is really the servlet context of the web
service, but it's not obvious. (You may need to cast it as a
ServletContext and store that reference as a static variable). In
destroy(), obviously remove the attribute and destroy the hashtable.
 
Now, your implementation needs to get the servlet context. I think it
can be done by retrieving a property from the MessageContext. (Exact
string to use escapes me). The servlet context will be around as long as
the web service is up and running. You can add things into the context's
own hashtable of attributes and get them from any implementation method.
 
Did this make sense? I may have missed a minor step here and there.
-jeff
  _  

From: Lindsey Hess [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 06, 2007 4:31 PM
To: axis-user@ws.apache.org
Subject: How do I persist parameters from one operation for use by other
operations?



Hi,
 
I have an Axis web service that has five operations.  The first
operation that must be called contains a request object with a number of
parameters (e.g., max results, timeout, etc.).  The other operations
need these parameters since their respective request objects only take
an ID and a date.  
 
Due to design requirements, I can't persist these parameters to
a database or even to an XML file on disk.  So, I'm not quite sure how
to persist them so that the other operations can access them.  
 
Can someone please help me?
 
Thank you.
 
Lindsey Hess


  _  

Got a little couch potato? 
Check out fun summer activities for kids.
http://us.rd.yahoo.com/evt=48248/*http://search.yahoo.com/search?fr=oni
_on_mailp=summer+activities+for+kidscs=bz 



RE: Client within the same Web Services War

2007-09-06 Thread Punnoose, Roshan
This is for Axis2.

Roshan Punnoose
Phone: 301-497-6039
-Original Message-
From: Deepal jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 06, 2007 6:52 AM
To: axis-user@ws.apache.org
Subject: Re: Client within the same Web Services War

Punnoose, Roshan wrote:

 I am trying to create a HTML Form for someone to access our web
 services easily and effectively. I want to be able to have the
 underlying logic for the HTML Form create a SOAP request and forward
 the request to the AxisServlet without having to create a separate
 HTTP Client. Basically, I want to perform the Web Services call within
 the same session because the HTML form will be located in the same war
 as the web services I will be calling. Does anybody have any ideas on
 how to use the ServiceClient to send data within the same session to a
 Web Service within the same war?

 If that doesn't seem like the right solution, I was also thinking of
 creating a POST request that will go straight to the Axis Servlet, but
 then I have to generate all the WS-Addressing information myself
 without the aid of the AxisEngine and its handlers.

 **Roshan Punnoose**

 Phone: 301-497-6039

Is this Axis2 question or Axis1 ?

Thanks
Deepal

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: can't serialize arraylist

2007-09-06 Thread Simon Gibbs
Mathias P.W Nilsson wrote:

 Any ideas? I really hope that I can send a object that has a collection of
 objects?
   
Just an idea, sorry, but I am an Axis newbie mself.  When I set up
similar a service my tool of choice (an Eclipse wizard) gave me warnings
saying something along the lines of JAXB can't do CollectionType 
where the type was simply List or Set.

I solved this by changing my DTOs to use arrays externally and to have
the getter convert an internal typed set or list to a typed array and
return a new instance of an array each time it was called. Each DTO then
simply required an add(Entity a) method for use by some type converter code.

Unfortunately it is early days for me still and I can promise this
approach is without issues. I imagine the first issue is that you are
using domain objects directly whereas my entities were not persistent at
all so their API was not really important to me.

By the way, you may like to check if this bug applies to your set up:

https://issues.apache.org/jira/browse/AXIS-2095

If it does you can email me off-list for a copy of a fixed axis.jar, or
check the comments.

Simon



signature.asc
Description: OpenPGP digital signature


Re: [AXIS2] Request validation

2007-09-06 Thread Anne Thomas Manes
That's normal. You could also set up a module to validate incoming messages.

Anne

On 9/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hi,
 I am using Axis2 1.3 and JAXB databinding.
 My WS is using doc/lit style and I have a problem with the incoming request:
 Axis2 rejects the requests if the xml is malformed (missing tags for
 example) but it forwards the request to the WS even if the value in the tag
 are incorrect.
 For example, in my xsd, I define a tag as a positive Integer
 (xs:positiveInteger) and if I send a request with a negative integer, the
 request is forwarded to the WS.
 Is this normal?
 Is it up to the WS to check the value inside the body tags?

 Thanks in advance,

 Pierre

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [axis2] BindException from Axis client

2007-09-06 Thread Andrew McGhee
Hi Jake,
I'm not an expert in Axis at all, but I am wondering if you are
encountering an exhaustion of available ports for socket connections on
your machine.
 
This is a wild stab in the dark, but I did have similar problems in a
Linux environment a long time ago, with socket based client / service
architecture.
 
Have you tried netstat -na on the machine in question, and checked
the number of TIME_WAIT entries?


 [EMAIL PROTECTED] 09/07/07 5:43 am 
This is just a bump. I'm sure that anyone else out there using Axis in
an high-performance environment can easily run into this problem.
Should
I log a JIRA issue? Comment on one of the existing JIRAs?

Thanks!

-Jake

Jake Goulding wrote:
 Hey all:
 
 I wrote in with this problem quite a while back, and a few people
tried
 to help. The basic problem is that a stub, when making many requests
 quickly, will eventually fail with a BindException:
 
 There are a few references to this issue in JIRA:
 
 https://issues.apache.org/jira/browse/AXIS2-2593 (Fixed)
 https://issues.apache.org/jira/browse/AXIS2-2441 (Fixed)
 https://issues.apache.org/jira/browse/AXIS2-2883 (Open)
 
 This is a fairly common case in our usage of webservices, and
 particularly hits hard on Windows, which seems to default to only
 allowing ~4000 open sockets at once.
 
 This is very easy to reproduce, all you need is a webservice that
 returns quickly (a hello world service works well) and a loop in the
 client that calls the service over and over.
 
 I have tried the following code with Axis 1.1.1 (our current
production
 version) as well as Axis 1.3. This code accesses a service on
another
 computer, so no sharing of resources should come into play. Perhaps I
am
 using Axis incorrectly, and would be glad to be corrected if that is
the
 case. I added a call to Stub.cleanup() inside the loop, but it did
not
 seem to help.
 
 Thanks for all your help in advance!
 
 -Jake
 
 
 My sample code:
 
 Service1Stub s = new Service1Stub();
 for (int i = 0; i  5000; i++) {
   Service1Stub.HelloWorldResponse r = null;
   Service1Stub.HelloWorld h = new Service1Stub.HelloWorld();
   r = s.HelloWorld(h);
 }
 
 My exception:
 
 Exception in thread main org.apache.axis2.AxisFault: Address
already
 in use: connect
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
 at

org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
 at
 org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
 at

org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
 at

org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
 at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
 at

org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
 at

org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
 at

org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
 at test.Service1Stub.HelloWorld(Service1Stub.java:145)
 at Loop.main(Loop.java:12)
 Caused by: java.net.BindException: Address already in use: connect
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(Unknown Source)
 at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
 at java.net.PlainSocketImpl.connect(Unknown Source)
 at java.net.SocksSocketImpl.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at

org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
 at

org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
 at

org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
 at

org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
 at

org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
 at

org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
 at

org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
 at

org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
 at

org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520)
 at

org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191)
 ... 9 more
 
 


Re: Axis 1.4 and WTK 2.5.1 Invalid Element in Response

2007-09-06 Thread Anne Thomas Manes
Sounds like a problem with the WTK. I suggest you ask your question on
a WTK discussion list.

Anne

On 9/5/07, John Cartwright [EMAIL PROTECTED] wrote:
 Hello,

 I'm trying to get a j2me web service up and running but am getting the
 following error message:

 java.rmi.MarshalException: Invalid Element in Response: sellerStatus
at com.sun.j2mews.xml.rpc.SOAPDecoder.decode(SOAPDecoder.java:192)
at com.sun.j2mews.xml.rpc.OperationImpl.invoke(OperationImpl.java:240)
...

 I've attached the wsdl axis is exposing, the deploy.wsdd, and sample
 request, and a sample response.  In the response you can see that
 there is a valid string value for the sellerStatus element.  I'm not
 sure why the wtk generated stub code is failing.  Any help would be
 greatly appreciated.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SOAP Implementation

2007-09-06 Thread Anne Thomas Manes
If you need to support SOAP Encoding, then you will need to use Axis
rather than Axis2.

Anne

On 9/5/07, Paul Fremantle [EMAIL PROTECTED] wrote:
 Sure you can use Axis2. The latest Eclipse Webtools project has Axis2 built 
 in.
 You can also use Axis2 simply following the UserGuide or samples.

 Paul

 On 9/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Hi,
  I have to make SOAP implementation.
  I am not sure if I can use AXIS2 to do so
  or I have to do with normal AXIS?
  I guess I have to do with normal AXIS, Is there any usefull resource on the 
  Net about how to do such implementation, possibly with Eclipse IDE?
 
  Thanks
  Nenad
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Paul Fremantle
 Co-Founder and VP of Technical Sales, WSO2
 OASIS WS-RX TC Co-chair

 blog: http://pzf.fremantle.org
 [EMAIL PROTECTED]

 Oxygenating the Web Service Platform, www.wso2.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [axis2] BindException from Axis client

2007-09-06 Thread Davanum Srinivas
Please see [1]. This test case was added to illustrate how to set up
all the options to make sure all the sockets get cleaned up.

-- dims

[1] 
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/async/AsyncService2Test.java?view=markup

On 9/6/07, Jake Goulding [EMAIL PROTECTED] wrote:
 Andrew:

 This is exactly what is happening. I get many things stuck in the TCP
 TIME_WAIT state. Running my test, I see many sockets move into the
 TIME_WAIT state. I am doing my testing on Windows, which imposes a limit
 of about 4000 [1] ports by default. It also defaults to a 4 minute period.

 In order for a socket to get out of the TIME_WAIT state, the socket has
 to be closed cleanly from both sides during the 3- or 4- way closing
 handshake [3]. If the handshake is not done completely, it stays in the
 TIME_WAIT state for the timeout length, in order to allow lost packets
 to arrive.

 I assume that the Axis client must initiate the shutdown, as the server
 could not know when the communication is complete.

 I guess this boils down to two questions:

 1/ Why does Axis not make use of the HTTP 1.1 spec wherein it would
 establish one connection and keep it open?

 2/ Why does Axis not close the socket when it is done with it?

 Thanks for the feedback, I hope you can expand on some of my questions!

 -Jake

 [1] http://support.microsoft.com/support/kb/articles/q196/2/71.asp
 [2] http://www.windowsitpro.com/Articles/ArticleID/23276/23276.html
 [3]
 http://en.wikipedia.org/wiki/Transmission_Control_Protocol#Connection_termination

 Andrew McGhee wrote:
  Hi Jake,
  I'm not an expert in Axis at all, but I am wondering if you are
  encountering an exhaustion of available ports for socket connections on
  your machine.
 
  This is a wild stab in the dark, but I did have similar problems in a
  Linux environment a long time ago, with socket based client / service
  architecture.
 
  Have you tried netstat -na on the machine in question, and checked the
  number of TIME_WAIT entries?
 
 
  [EMAIL PROTECTED] 09/07/07 5:43 am 
  This is just a bump. I'm sure that anyone else out there using Axis in
  an high-performance environment can easily run into this problem. Should
  I log a JIRA issue? Comment on one of the existing JIRAs?
 
  Thanks!
 
  -Jake
 
  Jake Goulding wrote:
  Hey all:
 
  I wrote in with this problem quite a while back, and a few people tried
  to help. The basic problem is that a stub, when making many requests
  quickly, will eventually fail with a BindException:
 
  There are a few references to this issue in JIRA:
 
  https://issues.apache.org/jira/browse/AXIS2-2593 (Fixed)
  https://issues.apache.org/jira/browse/AXIS2-2441 (Fixed)
  https://issues.apache.org/jira/browse/AXIS2-2883 (Open)
 
  This is a fairly common case in our usage of webservices, and
  particularly hits hard on Windows, which seems to default to only
  allowing ~4000 open sockets at once.
 
  This is very easy to reproduce, all you need is a webservice that
  returns quickly (a hello world service works well) and a loop in the
  client that calls the service over and over.
 
  I have tried the following code with Axis 1.1.1 (our current production
  version) as well as Axis 1.3. This code accesses a service on another
  computer, so no sharing of resources should come into play. Perhaps I am
  using Axis incorrectly, and would be glad to be corrected if that is the
  case. I added a call to Stub.cleanup() inside the loop, but it did not
  seem to help.
 
  Thanks for all your help in advance!
 
  -Jake
 
 
  My sample code:
 
  Service1Stub s = new Service1Stub();
  for (int i = 0; i  5000; i++) {
Service1Stub.HelloWorldResponse r = null;
Service1Stub.HelloWorld h = new Service1Stub.HelloWorld();
r = s.HelloWorld(h);
  }
 
  My exception:
 
  Exception in thread main org.apache.axis2.AxisFault: Address already
  in use: connect
  at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
  at
 
  org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
  at
  org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
  at
 
  org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
  at
 
  org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
  at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
  at
 
  org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
  at
 
  org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
  at
  org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
  at test.Service1Stub.HelloWorld(Service1Stub.java:145)
  at Loop.main(Loop.java:12)
  Caused by: java.net.BindException: Address already in use: connect
 

Re: How to set configuration parameters for web service not in aar

2007-09-06 Thread Deepal Jayasinghe

 We built and released web services as aar files in ..\axis2\WEB-INF\services.

 We want to manually change the configuration parameters in web service
 without needing to restart the servers.
   
you are talking about Axis2 hotupdate.
 Is it possible to put configuration parameters at config.xml in
 ...\axis2\WEB-INF\conf or ...\axis2\WEB-INF\classes and read them into
 web services when the web services are running?
   
default implementation does not support that , but there are ways of
doing it. One way to do it is to add a custom deployer who listen to a
your file and make the changes . or you could write a thread and
implement that in a such a way that it update the service when some
changes happen to the config.xml

Thanks
Deepal
 So that we can manually change the configuration file content and call
 some functions in web services to refresh the configuration parameters
 in the services without restart the servers?


 Thanks a lot

 Tony

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANN] Apache Rampart 1.3 Released

2007-09-06 Thread Ruchith Fernando
This is the 1.3 release of Apache Rampart.

Apache Rampart 1.3 is a toolkit that provides implementations of the
WS-Sec* specifications for Apache Axis2 1.3, based on Apache WSS4J 1.5.3
and the Apache AXIOM-DOOM 1.2.5 implementations.

You can download the releases from:
http://www.apache.org/dyn/closer.cgi/ws/rampart/1_3

There are two main Apache Axis2 modules provided with this release.

* rampart-1.3.mar
  This provides support for WS-Security and WS-SecureConversation
features.
* rahas-1.3.mar
  This module provides the necessary components to enable
SecurityTokenService functionality on a service.

Apache Rampart 1.3 uses a configuration model based on WS-Policy and
WS-Security Policy. It is important to note that the Apache Rampart 1.0
style configuration is also available even though being marked as
deprecated.

Apache Rampart 1.3 can be successfully used with the next Apache
Sandesha2 release targeted towards Apache Axis2 1.3 to configure
WS-SecureConversation + WS-ReliableMessaging scenarios.

The rampart module was successfully tested for interoperability with
other WS-Security implementations.

WS - Sec* specifications supported by Apache Rampart are as follows:

* WS - Security 1.0
* WS - Secure Conversation - February 2005
* WS - Security Policy - 1.1 - July 2005
* WS - Trust - February 2005
* WS - Trust - WS-SX spec - EXPERIMENTAL

Thank you for using Apache Rampart.

Apache Rampart team





signature.asc
Description: OpenPGP digital signature


Re: [Axis2] How to embed Axis2 into standalone Java Application?

2007-09-06 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

1. Please do not cross-post mails
2. post these types of questions ONLY to users list.

Thanks.

cat ting99 wrote:
 Hello all,
 
 Here I would like to know how to integrate Axis2 into standard Java
 application.
 
 My scenario is a typical asynchronous web service scenario:
 
 My Java client application needs to send a soap-based subscription
 request to a remote web service, and then wait for the soap-based
 notifications using a local web service.
 
 However, rather than have these two logic running as separate entities
 (one as java app and the other runs in a servlet container), I would
 like to integrate them into one standalone java app which these two
 logic runs in two threads but can communicate with each other within the
 application rather than using other channels such as TCP socket.
 
 So I would like to know how could the above requirements be met by
 embedding Axis2 into standard Java application and still be able to
 communication between the standard Java thread and the Axis2 application?
 
 Any comments are welcome!
 
 Thanks in advance
 
 / M.L

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG4MsijON2uBzUhh8RAnyyAKCvX+VoinCQwiWxl+Mh7gyzbnvXJwCfTVvu
JSdNcLVE553ebkBABNe2gug=
=lGeB
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newline in Axis and Axis2

2007-09-06 Thread Sanka Samaranayke
First you need to signup[1] for an account. 
Then you need to log on select the project (WS-Commons)

and component(Axiom)
After that you can goto 'CREATE NEW ISSUE' and
follow the steps to create the JIRA.

Cheers,
Sanka


[1]https://issues.apache.org/jira/secure/Signup!default.jspa



Pär Malmqvist wrote:


I dont know how to create a JIRA. Sorry.

/Pär



 



From:  /Deepal jayasinghe [EMAIL PROTECTED]/
Reply-To:  /axis-user@ws.apache.org/
To:  /axis-user@ws.apache.org/
Subject:  /Re: newline in Axis and Axis2/
Date:  /Thu, 06 Sep 2007 16:32:12 +0530/
Hmm , as I can see this should be an Axiom issue , anyway please
create
a JIRA.

Thanks
Deepal
  Hello!
 
  When I transport a string including \r\n over SOAP and Axis
1.2 from
  a server to a client the client receives a string including
\n only.
 
  When I transport a string including \r\n over SOAP and Axis2 1.3
  from a server to a client the client receives a string
including \r\n.
 
  What can I do about it? Any configurations needed for Axis2?
 
  /Pär
 
  _
  Express yourself instantly with MSN Messenger! Download today it's
  FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Express yourself instantly with MSN Messenger! MSN Messenger 
http://g.msn.com/8HMAEN/2734??PS=47575 Download today it's 
FREE!- 
To unsubscribe, e-mail: [EMAIL PROTECTED] For 
additional commands, e-mail: [EMAIL PROTECTED] 



--
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newline in Axis and Axis2

2007-09-06 Thread Sanka Samaranayke

Hi Malmqvist,

First you need to signup[1] for an account. 
Then you need to log on select the project (WS-Commons)

and component(Axiom)
After that you can goto 'CREATE NEW ISSUE' and
follow the steps to create the JIRA.

Cheers,
Sanka


[1]https://issues.apache.org/jira/secure/Signup!default.jspa



Pär Malmqvist wrote:


I dont know how to create a JIRA. Sorry.

/Pär



 



From:  /Deepal jayasinghe [EMAIL PROTECTED]/
Reply-To:  /axis-user@ws.apache.org/
To:  /axis-user@ws.apache.org/
Subject:  /Re: newline in Axis and Axis2/
Date:  /Thu, 06 Sep 2007 16:32:12 +0530/
Hmm , as I can see this should be an Axiom issue , anyway please
create
a JIRA.

Thanks
Deepal
  Hello!
 
  When I transport a string including \r\n over SOAP and Axis
1.2 from
  a server to a client the client receives a string including
\n only.
 
  When I transport a string including \r\n over SOAP and Axis2 1.3
  from a server to a client the client receives a string
including \r\n.
 
  What can I do about it? Any configurations needed for Axis2?
 
  /Pär
 
  _
  Express yourself instantly with MSN Messenger! Download today it's
  FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Express yourself instantly with MSN Messenger! MSN Messenger 
http://g.msn.com/8HMAEN/2734??PS=47575 Download today it's 
FREE!- 
To unsubscribe, e-mail: [EMAIL PROTECTED] For 
additional commands, e-mail: [EMAIL PROTECTED] 



--
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: axis2 bad header for soap calls

2007-09-06 Thread Eran Chinthaka
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Content type for SOAP 1.1 and 1.2 are clearly defined in respective
specifications. application/xml is not defined in them. So when Axis2
engine receives a message with the content type not defined in either of
SOAP specs, it treats that as a REST call.

In that case, Axis2 engine tries to find the operation and service the
message is targeted to (this is called dispatching) using the request
url. Your request url doesn't contain enough information to identify the
service and operation and that is why you were getting that fault.

When you change the content type to text/xml, that is the content type
defined for SOAP 1.1. Then Axis2 engine treats that as a SOAP call and
uses the other means of dispatching, in addition to request URI based
dispatching. I assume the message you sent must have got some clues
for that. And that should be why it was successful.

You can not change Axis2 to accept custom content types as SOAP calls.
Let's see whether SOAP 1.3 helps us in that ;)

HTH.
Chinthaka

axelspin wrote:
 POST /axis2/services/resources HTTP/1.1
 
 Host: bsfso1:9080
 
 this is the http header of the ajax client I am using, it worked fine with
 axis1
 
 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.8.1.6)
 Gecko/20070725 Firefox/2.0.0.6
 
 Accept:
 text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
 
 Accept-Language: en-gb,en;q=0.5
 
 Accept-Encoding: gzip,deflate
 
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 
 Keep-Alive: 300
 
 Connection: close
 
 X-Requested-With: XMLHttpRequest
 
 X-Prototype-Version: 1.3.1
 
 Content-Type: application/xml
 
 SOAPAction: 
 
 Referer: http://localhost:9080/axis2/ajaxclient.html
 
 Content-Length: 154
 
 Cookie: JSESSIONID=529D0FE433A10635D62CAEB7082256C5
 
 Pragma: no-cache
 
 Cache-Control: no-cache
 
 
 Leaving it like this makes axis2 1.2 to reply in this way
 faultstringThe endpoint reference (EPR) for the Operation not found is
 /axis2/services/resources and the WSA Action = null/faultstring
 
 if I change the Content-Type form application/xml to text/xml all works
 fine..
 
 Is it a regular behaviour? would it be possible to accept as soapcalls also
 calls with Content-Type: application/xml and empty SOAPAction: ? or such a
 client header has to be deprecated and not used at all? 
 
 thanks

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG4M8+jON2uBzUhh8RArL8AJwKF2nsrGzrHPeIa4sOaYYFcU45xwCfQwKC
fiw2biE+Whtxc8cba7YTmBA=
=6jJL
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can't serialize arraylist

2007-09-06 Thread Deepal Jayasinghe
I think something to do with the cyclic dependency .

Weather keeps Books and Book keep Weather.

Thanks
Deepal

Mathias P.W Nilsson wrote:
 I have two classes. A Weather class and a Book class. ( Don't pay any
 attention to why a Weather can have books :) )

 Anyway. The Weather class has an ArrayList of Books and the book has a
 Weather.

 See code below.

 ===
 package samples.demo;

 import java.io.Serializable;
 import java.util.ArrayList;

 import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.FetchType;
 import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
 import javax.persistence.JoinColumn;
 import javax.persistence.OneToMany;
 import javax.persistence.Table;



 @Entity()
 @Table( name = Weather , schema = Hello )
 @SuppressWarnings( serial )
 public class Weather implements Serializable{
   
   @Id()
   @GeneratedValue()
   @Column( name = WeatherId )
   Long id;
   
   @Column( name = Temperature  )
 float temperature;
   @Column( name = Forecast  )
 String forecast;
   @Column( name = Rain  )
 boolean rain;
   @Column( name = HowMuchRain  )
 float howMuchRain;
   
   @OneToMany( mappedBy = weather,  fetch = FetchType.EAGER )
   @JoinColumn( name = WeatherId )
   ArrayListBook books = new ArrayListBook();
   
   public Weather(){
   
   }
 
 public void setTemperature(float temp){
 temperature = temp;
 }

 public float getTemperature(){
 return temperature;
 }
 
 public void setForecast(String fore){
 forecast = fore;
 }

 public String getForecast(){
 return forecast;
 }
 
 public void setRain(boolean r){
 rain = r;
 }

 public boolean getRain(){
 return rain;
 }
 
 public void setId( Long id ){
 this.id = id;
 }
 
 public void setHowMuchRain(float howMuch){
 howMuchRain = howMuch;
 }

 public float getHowMuchRain(){
 return howMuchRain;
 }

   public Long getId() {
   return id;
   }
   
   public boolean equals(Object obj) {
   
   if( obj == null ){
   return false;
   }
   if( obj instanceof Weather ) {
   return ((Weather)obj).getId().equals( getId() );
   }
   return false;
   }
   
   public int hashCode() {
   return id.hashCode();
   }

   public ArrayListBook getBooks() {
   return books;
   }

   
   public void addBook( Book b ){
   books.add(b);
   //b.setWeather(this);
   }

 }
 ==

 Book
 ==
 package samples.demo;

 import java.io.Serializable;

 import javax.persistence.CascadeType;
 import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
 import javax.persistence.JoinColumn;
 import javax.persistence.ManyToOne;
 import javax.persistence.Table;


 @Entity()
 @Table( name = Book , schema = Hello )
 @SuppressWarnings( serial )
 public class Book implements Serializable{
   
   @Id()
   @GeneratedValue()
   @Column( name = BookId )
   Long id;
   
   @Column( name = Title )
 String title;
   @Column( name = ISBN )
 String isbn;
   @Column( name = Author )
 String author;
   @ManyToOne( cascade = CascadeType.REFRESH )
   @JoinColumn( name = WeatherId )
   private Weather weather;

   public Weather getWeather() {
   return weather;
   }

   public void setWeather(Weather weather) {
   this.weather = weather;
   }

   public Book(){
   
   }
   
 public String getIsbn() {
 return isbn;
 }

 public void setIsbn(String isbn) {
 this.isbn = isbn;
 }

 public String getTitle() {
 return title;
 }

 public void setTitle(String title) {
 this.title = title;
 }

 public String getAuthor() {
 return author;
 }

 public void setAuthor(String author) {
 this.author = author;
 }
 
 public Long getId(){
   return id;
 }
 }

 ===

 When I try to send this I can send the Weather class to a client.
 RPCServiceClient, but when I 
 Do addBook it hangs?

 This Works

 Weather w = new Weather();
 w.setForecast( Cloud );
 w.setHowMuchRain(45.5f);
 w.setRain(false);
 w.setTemperature(45.23f);

 return w;

 This does not work

 Weather w = new Weather();
 w.setForecast( Cloud );
 w.setHowMuchRain(45.5f);
 w.setRain(false);
 w.setTemperature(45.23f);
 Book b = new Book();
 b.setAuthor(Mathias Nilsson);
 

Re: [axis2] BindException from Axis client

2007-09-06 Thread Jake Goulding
Andrew:

This is exactly what is happening. I get many things stuck in the TCP
TIME_WAIT state. Running my test, I see many sockets move into the
TIME_WAIT state. I am doing my testing on Windows, which imposes a limit
of about 4000 [1] ports by default. It also defaults to a 4 minute period.

In order for a socket to get out of the TIME_WAIT state, the socket has
to be closed cleanly from both sides during the 3- or 4- way closing
handshake [3]. If the handshake is not done completely, it stays in the
TIME_WAIT state for the timeout length, in order to allow lost packets
to arrive.

I assume that the Axis client must initiate the shutdown, as the server
could not know when the communication is complete.

I guess this boils down to two questions:

1/ Why does Axis not make use of the HTTP 1.1 spec wherein it would
establish one connection and keep it open?

2/ Why does Axis not close the socket when it is done with it?

Thanks for the feedback, I hope you can expand on some of my questions!

-Jake

[1] http://support.microsoft.com/support/kb/articles/q196/2/71.asp
[2] http://www.windowsitpro.com/Articles/ArticleID/23276/23276.html
[3]
http://en.wikipedia.org/wiki/Transmission_Control_Protocol#Connection_termination

Andrew McGhee wrote:
 Hi Jake,
 I'm not an expert in Axis at all, but I am wondering if you are
 encountering an exhaustion of available ports for socket connections on
 your machine.
  
 This is a wild stab in the dark, but I did have similar problems in a
 Linux environment a long time ago, with socket based client / service
 architecture.
  
 Have you tried netstat -na on the machine in question, and checked the
 number of TIME_WAIT entries?
 
 
 [EMAIL PROTECTED] 09/07/07 5:43 am 
 This is just a bump. I'm sure that anyone else out there using Axis in
 an high-performance environment can easily run into this problem. Should
 I log a JIRA issue? Comment on one of the existing JIRAs?
 
 Thanks!
 
 -Jake
 
 Jake Goulding wrote:
 Hey all:

 I wrote in with this problem quite a while back, and a few people tried
 to help. The basic problem is that a stub, when making many requests
 quickly, will eventually fail with a BindException:

 There are a few references to this issue in JIRA:

 https://issues.apache.org/jira/browse/AXIS2-2593 (Fixed)
 https://issues.apache.org/jira/browse/AXIS2-2441 (Fixed)
 https://issues.apache.org/jira/browse/AXIS2-2883 (Open)

 This is a fairly common case in our usage of webservices, and
 particularly hits hard on Windows, which seems to default to only
 allowing ~4000 open sockets at once.

 This is very easy to reproduce, all you need is a webservice that
 returns quickly (a hello world service works well) and a loop in the
 client that calls the service over and over.

 I have tried the following code with Axis 1.1.1 (our current production
 version) as well as Axis 1.3. This code accesses a service on another
 computer, so no sharing of resources should come into play. Perhaps I am
 using Axis incorrectly, and would be glad to be corrected if that is the
 case. I added a call to Stub.cleanup() inside the loop, but it did not
 seem to help.

 Thanks for all your help in advance!

 -Jake


 My sample code:

 Service1Stub s = new Service1Stub();
 for (int i = 0; i  5000; i++) {
   Service1Stub.HelloWorldResponse r = null;
   Service1Stub.HelloWorld h = new Service1Stub.HelloWorld();
   r = s.HelloWorld(h);
 }

 My exception:

 Exception in thread main org.apache.axis2.AxisFault: Address already
 in use: connect
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
 at

 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
 at
 org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
 at

 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
 at

 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
 at

 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
 at

 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
 at test.Service1Stub.HelloWorld(Service1Stub.java:145)
 at Loop.main(Loop.java:12)
 Caused by: java.net.BindException: Address already in use: connect
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(Unknown Source)
 at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
 at java.net.PlainSocketImpl.connect(Unknown Source)
 at java.net.SocksSocketImpl.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)