Re: [Axis2] Embedding Axis in your webapp

2006-08-07 Thread Alistair Young
brilliant! thanks very much Jason.AlistairOn 8 Aug 2006, at 01:36, Jason N wrote:Alistair,Here's what I did to get axis2 embedded in my web app.1)  Combine the axis2 specific lines from the axis2.war  web.xml file with the project's web.xml file.2) Copy the conf directory from axis2.war over to web-inf\ of the project 3) Copy the modules directory from axis2.war over to web-inf\ of the project 4) Create a services/{SERVICENAME}/META-INF directory in the web-inf directory and copy services.xml, and the wsdl file, plus the schema file you you have one/META-INF5) Copy most if not all of the lib files from the axis2war into the project web-inf/lib Good luck,jOn 8/7/06, Alistair Young <[EMAIL PROTECTED]> wrote: Is it possible to embed Axis2 in your webapp, as it was possible withAxis1? I couldn't see any info on doing so. Seems it only runs as it's ownwebapp /axis2. I'd like the equivalent of: http://site.org/serviceswithout having to install an Axis specific webapp.thanks,Alistair--Alistair YoungSenior Software Engineer[EMAIL PROTECTED] Mòr OstaigIsle of SkyeScotland -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

Re: [axis2] User credentials in service

2006-08-07 Thread Ruchith Fernando

Hi Dave,

This [1] should solve your problem:

[1] http://www.wso2.net/kb/169

Thanks,
Ruchith

On 8/8/06, Dave Cowing <[EMAIL PROTECTED]> wrote:



I've been getting acquainted with Rampart and understand a bunch of it
(thanks to Ruchith for his great tutorial).

Now I have a question: How can I access user credentials (either the
signature or a username) in my service?

I'm performing a transaction and need to ensure that I use the identity I've
authenticated in that transaction.


Thanks,
Dave



--
www.ruchith.org

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



Re: [Axis2] axis2-1.1?

2006-08-07 Thread Deepal Jayasinghe
Hi Jones;
I think we will be able to release 1.1 after apacheCon Asia.

Thanks
Deepal

Jones, Alan R wrote:

>Just wondering if there was an approximate date for the next release
>incorporating all the nightlies?
>
>
>Thanks,
>
>Alan J
>
>
>
>Alan R Jones
>Boeing S&IS Mission Systems
>Denver Engineering Center (BDEC)
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 



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



Re: [AXIS2] persistence

2006-08-07 Thread Deepal Jayasinghe
Hi Fabien;
Please see my comments below;

Fabien Couble wrote:

> Hi all,
> I have checked that AXIS 2 don't support the persistence by default.

Yes , Axis2 does not support persistence.

> That's why, by surfing on the Web, I have found that to make a service
> persistent, we have to configure the service.xml file with the
> following line:

Thats wrong , there wont be any change even if you add something like
that . In addition to that this is not the way you specify parameter in
Axis2 , it should be smt like
MyParaValue

>
>
>I did that by replacing the word value by "application". Normally, that mean 
>that a service will be 
>
>intanciated for all the requests until the server Tomcat is shutdown. 
>Consequently, the service should be persistent...
>
>However, it doesn't work...
>
If you want to deploy your service in application scope then you need to
do add an attribute called "scope" into your services.xml as follows




>Is it the good way to do this? HOw can I do that??
>
>Thx
>
>fabien
>
> This message contains information that may be privileged or
> confidential and is the property of the Capgemini Group. It is
> intended only for the person to whom it is addressed. If you are not
> the intended recipient, you are not authorized to read, print, retain,
> copy, disseminate, distribute, or use this message or any part
> thereof. If you receive this message in error, please notify the
> sender immediately and delete all copies of this message.
>

-- 
Thanks,
Deepal

~Future is Open~ 




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



Re: [Axis2] Embedding Axis in your webapp

2006-08-07 Thread Jason N
Alistair,Here's what I did to get axis2 embedded in my web app.1)  Combine the axis2 specific lines from the
axis2.war  web.xml file with the project's web.xml file.2) Copy the conf directory from axis2.war over to web-inf\ of the
project 3) Copy the modules directory from axis2.war over to web-inf\ of the project
4) Create a services/{SERVICENAME}/META-INF directory in the web-inf directory and copy services.xml, and the wsdl file, plus the schema file you you have one/META-INF5) Copy most if not all of the lib files from the axis2war into the project web-inf/lib
Good luck,jOn 8/7/06, Alistair Young <[EMAIL PROTECTED]> wrote:
Is it possible to embed Axis2 in your webapp, as it was possible withAxis1? I couldn't see any info on doing so. Seems it only runs as it's ownwebapp /axis2. I'd like the equivalent of:
http://site.org/serviceswithout having to install an Axis specific webapp.thanks,Alistair--Alistair YoungSenior Software Engineer[EMAIL PROTECTED] Mòr OstaigIsle of SkyeScotland
-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]


RE: Contract First approach - Axis2 and REST

2006-08-07 Thread AmburK, Punya
Eran,

Before you pursue this issue any further, I would like to mention what I'm 
really trying to achieve.
I want to make a call in rest style from a browser. Ex: 
http://xyy.nb.com/user?param0=23 
with output in XML format.

Ex: 

Punya
A. K. 

test



To achieve this, I think I can define the XML schema in WSDL and then generate 
the web service from that. Not sure if Axis2 supports complex types. Really 
appreciate any help on this. I'm attaching the wsdl for SampleService for your 
reference. 

Thanks much,
Punya


-Original Message-
From: AmburK, Punya [mailto:[EMAIL PROTECTED]
Sent: Monday, August 07, 2006 11:11 AM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: RE: Contract First approach - Axis2 and REST



Eran,

I tried this with latest nightly build war (axis2.war). Still the same problem.

-Punya
-Original Message-
From: Eran Chinthaka [mailto:[EMAIL PROTECTED]
Sent: Friday, August 04, 2006 6:48 PM
To: axis-user@ws.apache.org
Subject: Re: Contract First approach - Axis2 and REST


Can you test this against the latest nightly build of Axis2?

-- Chinthaka


AmburK, Punya wrote:
> 
> Hi,
>  
> I'm trying to write web service using Axis2 in REST style.
> I created the following service as specified in one of the articles on
> the net and deployed it to Axis2 and everything seems to work fine (code
> first approach).
> 
> 
> 
> /**
>  * The service implementation class
>  */
>  
> import java.util.HashMap;
>  
> public class SimpleService {
>  
>  /**
>   * The echo method which will be exposed as the
>   * echo operation of the web service
>   */
>  public String echo() {
>   System.out.println("Echo test");
>   return "Echo Successful";
>  }
>  
>  public String echoString(String value) {
>   System.out.println("value=" + value);
>   StringBuffer sb = new StringBuffer("");
>   sb.append("" + "\n" + "");
>   return sb.toString();
>  }
> }
>  
> 
> 
> 
> 
> The service works fine when i hit the following urls:
> http://localhost:8080/axis2/rest/SimpleService /echo
> 
> http://localhost:8080/axis2/rest/SimpleService /echoString?param0=test
> 
>  
> Then I tried "Contract first approach" by taking the wsdl that was
> generated for the above code and ran WSDL2Java utility to generate the
> service. I modified the skeleton service generated as shown below:
> 
> /**
>  * SimpleServiceSkeleton.java
>  *
>  * This file was auto-generated from WSDL
>  * by the Apache Axis2 version: SNAPSHOT Aug 03, 2006 (07:21:24
> GMT+00:00)
>  */
> package com.epocrates.webService;
> /**
>  *  SimpleServiceSkeleton java skeleton for the axisService
>  */
> public class SimpleServiceSkeleton{
> 
>   
> /**
>  * Auto generated method signature
> 
>  
>  */
> public  org.apache.ws.axis2.xsd.EchoResponse echo
>   (
>  
>   )
> 
>{
>   org.apache.ws.axis2.xsd.EchoResponse responseSt = new
> org.apache.ws.axis2.xsd.EchoResponse();
> //Todo fill this with the necessary business logic
> //throw new  java.lang.UnsupportedOperationException();
>   responseSt.set_return("echo test successfull");
>   return responseSt;
> 
>  
> }
> 
>   
> /**
>  * Auto generated method signature
> 
>   * @param param2
> 
>  */
> public  org.apache.ws.axis2.xsd.EchoStringResponse echoString
>   (
>   org.apache.ws.axis2.xsd.EchoString param2
>   )
> 
>{
>   org.apache.ws.axis2.xsd.EchoStringResponse re = new
> org.apache.ws.axis2.xsd.EchoStringResponse();
> //Todo fill this with the necessary business logic
> //throw new  java.lang.UnsupportedOperationException();
>   re.set_return("param0" + param2);
>   return re;
> }
> 
> }
>
> 
> 
> 
> 
> Now accessing the URL
> http://localhost:8080/axis2/rest/SimpleService/echo
>   , throws the
> following exception:
> 
> java.lang.NoSuchMethodError:
> 
> com.epocrates.webService.SimpleServiceSkeleton.echo()Lorg/apache/ws/axis2/xsd/EchoResponse;
> 
> com.epocrates.webService.SimpleServiceMessageReceiverInOut.invokeBusinessLogic(Simp

[Axis2] Embedding Axis in your webapp

2006-08-07 Thread Alistair Young
Is it possible to embed Axis2 in your webapp, as it was possible with
Axis1? I couldn't see any info on doing so. Seems it only runs as it's own
webapp /axis2. I'd like the equivalent of:
http://site.org/services
without having to install an Axis specific webapp.

thanks,

Alistair


-- 
Alistair Young
Senior Software Engineer
[EMAIL PROTECTED] Mòr Ostaig
Isle of Skye
Scotland



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



[Axis2] axis2-1.1?

2006-08-07 Thread Jones, Alan R
Just wondering if there was an approximate date for the next release
incorporating all the nightlies?


Thanks,

Alan J



Alan R Jones
Boeing S&IS Mission Systems
Denver Engineering Center (BDEC)

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



Re: [Axis2] broken nightly build?

2006-08-07 Thread Davanum Srinivas

Do you want to try recompiling the code?

-- dims

On 8/7/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

Hi all,

I've tried the latest nightly build (07.08) but I get some problems
(please see the attached file). Is there any reason for that?


Michele



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






--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



[axis2] User credentials in service

2006-08-07 Thread Dave Cowing



I've been getting 
acquainted with Rampart and understand a bunch of it (thanks to Ruchith for 
his great tutorial).
 
Now I have a 
question: How can I access user credentials (either the signature or a username) 
in my service?
 
I'm performing a 
transaction and need to ensure that I use the identity I've authenticated in 
that transaction.
 
 
Thanks,
Dave


Re: [Axis2]hard beginning

2006-08-07 Thread Ignazio Anastasi
ok doctor :-)i use jdk 1.5.0_07do you know the kind of problem? :-/On 8/7/06, Paul Fremantle <[EMAIL PROTECTED]
> wrote:Ok next question which JDK?!PaulOn 8/7/06, Ignazio Anastasi <
[EMAIL PROTECTED]> wrote:> i've used Axis2 1.0 war file into webapps>>> On 8/7/06, Paul Fremantle <
[EMAIL PROTECTED]> wrote:> >>  Seems like the Xalan jar is missing. Which Axis2 install image did you use?>>> On 8/7/06, Ignazio Anastasi <
[EMAIL PROTECTED]> wrote:> > hi all, i'm a new user and i try to learn about axis2> >> > after installation and validation about axis2 i've tryed to launch> examples
> > like 'version' and 'myservice' (from user guide) but these are my error> > reports:> >> >  version> >> >> > type Exception report> >> > message
> >> > description The server encountered an internal error () that prevented it> > from fulfilling this request.> >> > exception> >> > javax.servlet.ServletException
: Servlet execution threw an exception> >> > root cause> >> > javax.xml.transform.TransformerFactoryConfigurationError:> > Provider> org.apache.xalan.processor.TransformerFactoryImpl
> > not found> >> >> >> javax.xml.transform.TransformerFactory.newInstance(Unknown> > Source)> >> >> >> org.apache.ws.commons.schema.XmlSchema.serialize_internal
(XmlSchema.java:214)>  >> >> >> org.apache.ws.commons.schema.XmlSchema.write(XmlSchema.java:200)> >> >> >> org.apache.axis2.description.AxisService2OM.generateOM
(AxisService2OM.java:147)> >> >> > org.apache.axis2.description.AxisService.getWSDL> (AxisService.java:553)> >> >> >> org.apache.axis2.description.AxisService.printWSDL
(AxisService.java:533)> >> >> >> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java> :144)> >> >> >> org.apache.axis2.transport.http.ListingAgent.handle
(ListingAgent.java:89)> >> >> >> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)> >> >> >> javax.servlet.http.HttpServlet.service
(HttpServlet.java:689)> >> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> >> >> >> >> > and this is the error of 'myservice'
> >> > > > Unable to generate WSDL for this service> > -> > > > Either user has not dropped the wsdl into META-INF or operations use
> message> > receivers other than RPC.> > > > > >> >> >> >> > Why this? where i miss? may i install something like new libraries?
> >> > please help me. thanks.>  --> Paul Fremantle> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair>> 
http://bloglines.com/blog/paulfremantle>  [EMAIL PROTECTED]>> "Oxygenating the Web Service Platform", www.wso2.com>
> -> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: 
[EMAIL PROTECTED]>>>--Paul FremantleVP/Technology, WSO2 and OASIS WS-RX TC Co-chair
http://bloglines.com/blog/paulfremantle[EMAIL PROTECTED]"Oxygenating the Web Service Platform", www.wso2.com-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



RE: Contract First approach - Axis2 and REST

2006-08-07 Thread AmburK, Punya

Eran,

I tried this with latest nightly build war (axis2.war). Still the same problem.

-Punya
-Original Message-
From: Eran Chinthaka [mailto:[EMAIL PROTECTED]
Sent: Friday, August 04, 2006 6:48 PM
To: axis-user@ws.apache.org
Subject: Re: Contract First approach - Axis2 and REST


Can you test this against the latest nightly build of Axis2?

-- Chinthaka


AmburK, Punya wrote:
> 
> Hi,
>  
> I'm trying to write web service using Axis2 in REST style.
> I created the following service as specified in one of the articles on
> the net and deployed it to Axis2 and everything seems to work fine (code
> first approach).
> 
> 
> 
> /**
>  * The service implementation class
>  */
>  
> import java.util.HashMap;
>  
> public class SimpleService {
>  
>  /**
>   * The echo method which will be exposed as the
>   * echo operation of the web service
>   */
>  public String echo() {
>   System.out.println("Echo test");
>   return "Echo Successful";
>  }
>  
>  public String echoString(String value) {
>   System.out.println("value=" + value);
>   StringBuffer sb = new StringBuffer("");
>   sb.append("" + "\n" + "");
>   return sb.toString();
>  }
> }
>  
> 
> 
> 
> 
> The service works fine when i hit the following urls:
> http://localhost:8080/axis2/rest/SimpleService /echo
> 
> http://localhost:8080/axis2/rest/SimpleService /echoString?param0=test
> 
>  
> Then I tried "Contract first approach" by taking the wsdl that was
> generated for the above code and ran WSDL2Java utility to generate the
> service. I modified the skeleton service generated as shown below:
> 
> /**
>  * SimpleServiceSkeleton.java
>  *
>  * This file was auto-generated from WSDL
>  * by the Apache Axis2 version: SNAPSHOT Aug 03, 2006 (07:21:24
> GMT+00:00)
>  */
> package com.epocrates.webService;
> /**
>  *  SimpleServiceSkeleton java skeleton for the axisService
>  */
> public class SimpleServiceSkeleton{
> 
>   
> /**
>  * Auto generated method signature
> 
>  
>  */
> public  org.apache.ws.axis2.xsd.EchoResponse echo
>   (
>  
>   )
> 
>{
>   org.apache.ws.axis2.xsd.EchoResponse responseSt = new
> org.apache.ws.axis2.xsd.EchoResponse();
> //Todo fill this with the necessary business logic
> //throw new  java.lang.UnsupportedOperationException();
>   responseSt.set_return("echo test successfull");
>   return responseSt;
> 
>  
> }
> 
>   
> /**
>  * Auto generated method signature
> 
>   * @param param2
> 
>  */
> public  org.apache.ws.axis2.xsd.EchoStringResponse echoString
>   (
>   org.apache.ws.axis2.xsd.EchoString param2
>   )
> 
>{
>   org.apache.ws.axis2.xsd.EchoStringResponse re = new
> org.apache.ws.axis2.xsd.EchoStringResponse();
> //Todo fill this with the necessary business logic
> //throw new  java.lang.UnsupportedOperationException();
>   re.set_return("param0" + param2);
>   return re;
> }
> 
> }
>
> 
> 
> 
> 
> Now accessing the URL
> http://localhost:8080/axis2/rest/SimpleService/echo
>   , throws the
> following exception:
> 
> java.lang.NoSuchMethodError:
> 
> com.epocrates.webService.SimpleServiceSkeleton.echo()Lorg/apache/ws/axis2/xsd/EchoResponse;
> 
> com.epocrates.webService.SimpleServiceMessageReceiverInOut.invokeBusinessLogic(SimpleServiceMessageReceiverInOut.java:50)
> 
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
> 
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:149)
> 
> org.apache.axis2.transport.http.util.RESTUtil.processGetRequest(RESTUtil.java:139)
> 
> . 
> 
> and accessing
> http://localhost:8080/axis2/rest/SimpleService/echoString?param0=test
> 
> , throws the following exception:
> 
> org.apache.axis2.AxisFault: java.lang.UnsupportedOperationException:
> Th

Re: [AXIS2]

2006-08-07 Thread Eran Chinthaka
My Advice is to use ConfigurationContext to store your array, so that
the service can access it irrespective of its life time.

-- Chinthaka

Fabien Couble wrote:
> 
> Hi all,
> I'm implementing a protocol in which I have to manage an array of
> resources. Indeed, I have to add, get or delete resources from that array.
> Actually, when a web service receives a request from a client, depending
> on the request, the web service has to get, add or delete the resource
> in the array.
> I was wondering how I can implement this. In fact, I have checked that
> the AXIS2 web service are not persistent that's why I can't declare and
> instanciate an array in the class
> of the web service because this array will be instanciated each time the
> service is called. So it can't work!!
> I have thought about using an EJB!! Is it a good solution??
>  
> Please, can you advise me?
>  
> Thx Fabien
>  
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient,
> you are not authorized to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you receive this
> message in error, please notify the sender immediately and delete all
> copies of this message.
> 




signature.asc
Description: OpenPGP digital signature


Re: Hiding exposed fields on serialized objects

2006-08-07 Thread Larry Meadors

Could you create an interface (or even super class) that only exposed
the properties you wanted exposed, and use that for the web service?
Just a guess..not terribly familiar with axis.

Larry


On 8/7/06, Bell, Douglas <[EMAIL PROTECTED]> wrote:



I am using iBatis on the back end of my application and need to expose
several fields to it that I would rather not have the client see. Short of
pushing the data into a separate object and sending that back or removing
them directly from the WSDL is there any simple way to limit the exposure of
these fields? I'm using java2wsdl to generate the WSDL and then using the
Admin util to deploy via an ant script and would rather not mess with the
output.


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



Hiding exposed fields on serialized objects

2006-08-07 Thread Bell, Douglas



I am using iBatis on 
the back end of my application and need to expose several fields to it that I 
would rather not have the client see. Short of pushing the data into a separate 
object and sending that back or removing them directly from the WSDL is 
there any simple way to limit the exposure of these fields? I'm using java2wsdl 
to generate the WSDL and then using the Admin util to deploy via an ant 
script and would rather not mess with the output.
 
- 
Doug


Keep Alive Issue

2006-08-07 Thread SUNDARESH, Shankar
Title: Keep Alive Issue






Hi,

 I am a newbie to Axis and this is my first message to the group. Please excuse me if there are any mistakes in my post. My problem is this :

We were using JOnAS 4.6.6 as the application server for one of the projects here. This version of JOnAS has Axis 1.2.1 bundled with it. Our client applications use HTTP 1.1 and as such expect the connection to be persistent unless otherwise specified. But, it so happens that the connection is being closed from the Axis end and hence all our responses are being rejected by the clients. I thought that a newer version of Axis might have solved this problem. Accordingly, we started using JOnAS 4.7.5 ( which has Axis 1.4 bundled with it ). Unfortunately, the problem persists even with this version of Axis.

I tried a search on the user mailing lists but could not find any note which mentions that this issue has been solved. I also tried downloading the source and found the following code snippet in the HttpSender class :

    if (!http10) {

    //Force close for now.

    //TODO HTTP/1.1

    httpConnection = HTTPConstants.HEADER_CONNECTION_CLOSE;

    }



My question is : Has this issue been solved in any later releases of Axis 1.x ? If not, how can I configure the existing Axis installation to make use of the Keep Alive feature ? I tried using the CommonsHttpSender transport instead of the default HttpSender in the "client-config.wsdd" file but it did not help matters much.

Any help or pointers would be much useful to me. Thanks in advance for all the help.


Regards,

Shankar


**This e-mail (including any attachments) is intended for the above-named person(s). It is confidential and may contain legally privileged information. Any opinions expressed are not necessarily those of the company. If you receive it in error please delete it, inform the sender and do not copy, distribute or take any action in reliance upon it. We may monitor all incoming and outgoing emails in line with current legislation. We have taken steps to ensure that this email and attachments are free from any virus, but it remains your responsibility to ensure that viruses do not adversely affect you. Orange Personal Communications Services Limited is an English company (registered no. 2178917) with its address at St James Court, Great Park Road, Almondsbury Park, Bradley Stoke, Bristol BS32 4QJ. Orange Retail Limited is an English company (registered no. 2439104) with its address as above. Orange Home UK plc is an English company (registered no. 3014367) with its address at Verulam Point, Station Way, St Albans, Hertfordshire AL1 5HE. **

***

This e-mail (including any attachments) is intended  for the above-named person(s). It is confidential and may contain legally privileged information. Any  opinions expressed are not necessarily those of the  company. If you receive it in error please delete it, inform the sender and do not copy, distribute or take any action in reliance upon it. 

We may monitor all incoming and outgoing emails in  line with current legislation. We have taken steps to ensure that this email and attachments are free from  any virus, but it remains your responsibility to  ensure that viruses do not adversely affect you. 

Orange Personal Communications Services Limited is an English company (registered no. 2178917) with its  address at St James Court, Great Park Road,  Almondsbury Park, Bradley Stoke, Bristol BS32 4QJ. 
Orange Retail Limited is an English company  (registered no. 2439104) with its address as above. 
Orange Home UK plc is an English company (registered no. 3014367) with its address at Verulam Point, Station Way, St Albans, Hertfordshire AL1 5HE. 

***



Axis limit of parameter stack size

2006-08-07 Thread Yura Tkachenko
Hi, does anybody knows Axis's limit size of the stack parameter?-- Thanks,Yura. 


[Axis2] NullPointerException when loading services (using Rampart)

2006-08-07 Thread Brecht Yperman








Hi,

 

I use the following bit of code to call a webservice. I am
now trying to engage the rampart module.

 

String axis2xml =
"com/invenso/xb/isp/xbconnect/wscall/axis2.xml";

String repository =
"com/invenso/xb/isp/xbconnect/wscall/";

URL configFileUrl = ClassLoader.getSystemClassLoader().getResource(axis2xml);

URL repositoryUrl =
ClassLoader.getSystemClassLoader().getResource(repository);

URLBasedAxisConfigurator configurator = new
URLBasedAxisConfigurator(configFileUrl, repositoryUrl);

ConfigurationContext cc =
ConfigurationContextFactory.createConfigurationContext(configurator);

 

Definition serviceDefinition = getWsdlDefinition(wsdl);

ServiceClient client = new ServiceClient(cc,  serviceDefinition,
serviceName, port);

client.getOptions().setProperty(MessageContextConstants.CHUNKED,
new Boolean(true));

 

The call to ConfigurationContextFactory throws an exception:

 

getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)

loadBundle: Ignoring MissingResourceException: Can't find bundle for base name
org.apache.axis2.resource, locale en_US

Created org.apache.axis2.i18n.resource, linked to
parent null

getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)

org.apache.axis2.i18n.resource::handleGetObject(addingnewmodule)

adding new module

[ERROR] Something went wrong

java.lang.NullPointerException

  at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:91)

  at
org.apache.axis2.deployment.URLBasedAxisConfigurator.loadServices(URLBasedAxisConfigurator.java:102)

  at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:42)

  at
com.invenso.xb.isp.xbconnect.wscall.WebserviceCallWorker.run(WebserviceCallWorker.java:113)

  [...]

  at
java.lang.Thread.run(Unknown Source)

 

repoListener is null, because it is only initialized in loadRepository(String
repoDir), not in loadRepostoryFromURL, which is used when using the URLBasedAxisConfigurator.

 

The repository directory contains one directory, modules,
containing a file modules.list (with in that file only “rampart-1.0.mar”)
and a file rampart-1.0.mar.

 

My axis2.xml file contains the following bit:



    

 

I guess this is a bug, but I can’t find a way around
it...

 

Any help is very much appreciated,

Thanks,

Brecht

Invenso - The “Integration
Software” specialists.
_

Brecht Yperman
Development team

Direct: +32 (0)3 780
30 05
Email: [EMAIL PROTECTED]

INVENSO bvba
Industriepark-West 75
9100 Sint-Niklaas
Belgium
- Europe

Phone: +32 (0)3 780 30 02
Fax: +32 (0)3 780 30 03
Email: [EMAIL PROTECTED]

Website: www.invenso.com


"E-mail disclaimer: This e-mail, and any attachments thereto,
is intended only for use by the addressee(s) named herein and may contain
legally privileged and/or confidential information. If you are not the intended
recipient, please note that any review, dissemination, disclosure, alteration,
printing, copying or transmission of this e-mail and/or any file transmitted
with it, is strictly prohibited and may be unlawful. If you have received this
e-mail by mistake, please immediately notify the sender and permanently delete the
original as well as any copy of any e-mail and any printout thereof."

 








Re: User Guide: Code generation for client

2006-08-07 Thread Marcel Frehner

Hey Deepak
By now I used to run the wsdl2java from Eclipse. Desperate as I am I tried 
the command line version and got correct stub and skeleton code with the 
following command:

wsdl2java -uri Axis2SampleDocLitService.wsdl -ss -sd -d xmlbeans
wsdl2java -uri Axis2SampleDocLitService.wsdl -d xmlbeans

This will also generate a TypeSystemHolder.class which needs to be copied 
to the IDE project manually 
(http://ws.apache.org/axis2/tools/1_0/CodegenToolReference.html).


The next error I get is the following:
org.apache.axis2.AxisFault: Data binding error
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
at 
org.apache.axis2.Axis2SampleDocLitServiceStub.echoString(Axis2SampleDocLitServiceStub.java:481)

at org.Client.main(Client.java:25)

No idea where that comes from:-( Maybe it's just the AXIS_HOME

Good luck!
Marcel



My client looks like this:

package org;

import org.apache.axis2.Axis2SampleDocLitServiceStub;
import org.apache.axis2.userguide.xsd.EchoStringParamDocument;
import org.apache.axis2.userguide.xsd.EchoStringReturnDocument;

public class Client {
public static void main(String[] args){
try {
 //Create the stub by passing the AXIS_HOME and target EPR.
 //We pass null to the AXIS_HOME and hence the stub will use 
the current directory as the AXIS_HOME
 Axis2SampleDocLitServiceStub stub= new 
Axis2SampleDocLitServiceStub(null,


"http://localhost:8080/axis2/services/Axis2SampleDocLitService";);
 //Create the request document to be sent.
 EchoStringParamDocument  reqDoc= 
EchoStringParamDocument.Factory.newInstance();

 reqDoc.setEchoStringParam("Axis2 Echo");
 //invokes the Web service.
 EchoStringReturnDocument resDoc=stub.echoString(reqDoc);
 System.out.println(resDoc.getEchoStringReturn());

} catch (Exception e) {
e.printStackTrace();
}
}
}



At 11:28 07.08.2006 +0530, you wrote:
I would really appreciate if Deepal, Derek or any active member can shed 
some light on this problem.


Thanks,
Deepak

On 8/4/06, Marcel Frehner 
<[EMAIL PROTECTED]> wrote:

I gave it another try. But I could not get any further this time. I've
still  got the following client, where stub.echoString() expects an
EchoStringParam, which I don't have...

package org;

import org.apache.axis2.userguide.*;
import org.apache.axis2.userguide.xsd.EchoStringParamDocument;
import org.apache.axis2.userguide.xsd.EchoStringReturnDocument ;

public class Client {
public static void main(String[] args) {
try {
Axis2SampleDocLitServiceStub stub = new Axis2SampleDocLitServiceStub(
null,
" http://localhost:8080/axis2/services/Axis2SampleDocLitService";);

EchoStringParamDocument reqDoc = EchoStringParamDocument.Factory
.newInstance();

reqDoc.setEchoStringParam("Axis2 Echo");
EchoStringReturnDocument resDoc = stub.echoString(reqDoc);
System.out.println(resDoc.getEchoStringReturn());
} catch (Exception e) {
e.printStackTrace();
}
}
}

I would very much appreciate some help!
Marcel



At 22:21 03.08.2006 +0530, you wrote:
>Thanks Marcel for the inputs. As I am new to this Axis, so would not be
>able to comment.
>
>I would really appreciate if anyone give us the right direction to resolve
>this problem.
>
>Thanks,
>Deepak
>
>On 8/3/06, Marcel Frehner
>< 
[EMAIL PROTECTED]> wrote:

>Hi Deepak
>I've got the same problem and can't find a solution. Following up your
>thread about the EchoStringParam I would suggest something like the code
>below. But what ist the XMLStreamReader supposed to be? I mean, how can I
>create an EchoStringParam?
>Marcel
>
>
>***
>import org.apache.axis2.userguide.Axis2SampleDocLitServiceStub;
>import
>org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.EchoStringParam ;
>import
>org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.EchoStringReturn;
>import javax.xml.stream.XMLStreamReader;
>
>public class Client {
>
>public static void main(String[] args) {
>try {
>Axis2SampleDocLitServiceStub stub = new Axis2SampleDocLitServiceStub(
>null,
>"<http:// 
localhost:8080/axis2/services/Axis2SampleDocLitPortType >http://localhost: 
8080/axis2/services/Axis2SampleDocLitPortType

>");
>XMLStreamReader r=null; //of course this must not be null!!!
>EchoStringParam p=EchoStringParam.Factory.parse(r);
>p.setEchoStringParam("Axis2 Echo");
>EchoStringReturn resDoc = stub.echoString (p);
>System.out.println(resDoc.getEchoStringReturn());
>} catch (Exception e) {
>e.printStackTrace();
>}
>}
>}
>***
>
>
>
>At 17:53 03.08.2006 +0530, you wrote:
> >Hi Guys,
> >
> >This question has already been asked in the forum and I suppose I am the
> >third person to ask this question. But no response has come so far to
> >rectify this problem. Following i

Re: Cannot work with Axis2 - URGENT

2006-08-07 Thread Davanum Srinivas

Please don't use the Eclipse code generator. It will not work with
nightly. Please use the command line wsdl2java.

thanks,
dims

On 8/7/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:



Dims
I am now using the jars from nightly build of 7th August. I took all the jars that are inside the 
zip file of "min" and not the "std".

Can you tell me what is this issue? Is it a mere classpath issue because of 
incorrect jar files or is it something else.

Here is my wsdl file I write by m own



 ___
 Debasish Dutta Roy
 NITAS
 Ph: 617-871-3033





"Davanum Srinivas" <[EMAIL PROTECTED]>

08/07/2006 10:33 AM
Please respond to axis-user

To:axis-user@ws.apache.org
cc:(bcc: Debasish DuttaRoy/X/PH/Novartis)
Subject:Re: Cannot work with Axis2 - URGENT



Debashish,

 - Make sure you are using the nightly build.
 - Make sure you run the wsdl2java again (don't mix and match old
 generated code with new jars or vice versa)
 - Make sure you thoroughly check all the jars that are in your
 environment. It's very easy to mix jars and not know about it.


 -- dims

 On 8/7/06, [EMAIL PROTECTED]
 <[EMAIL PROTECTED]> wrote:
 >
 > Hi all
 > I am now really frustrated with Axis2. I have spend enormous amount of time
 > but cannot get my application going anywhere.
 > I am getting into a stage where I have to quit Axis2 to save my job and go
 > for some other option.
 > I am wondering is anyone actually using Axis2 for some real application or
 > is it only for writing hello world etc. Because I can do that too. If anyone
 > have anything more, please help.
 >
 > Here is the scenario...
 >
 > I have downloaded the nightly version for Axis2 of 7th August.
 >
 > I have a java project in MyEclipse which is called PhoenixWebServices. Just
 > one project.
 > I have more than one packages inside it.
 >
 > 1. I have a package for business delegates, which contains delegate classes
 > that call dao classes in dao package.
 > This package also contains a folder called "xml" that contains, iBATIS
 > related xml files. These xmls are loaded by a static block.
 >
 > 2. I have a package for DAO classes. These implement dao operations.  I use
 > iBATIS for database operations.
 >
 > 3. I have a package for webservices. This has all META-INF/wsdl and
 > services.xml files. Also the WSDL2Java generated server and client codes.
 > Client code is modified to call the business delegate mentioned in point 1.
 >
 > All are packaged in a .aar file and deployed to Axis2. I am attaching the
 > .aar file.
 >
 > I have a webapp and a simple servlet. I have taken the WSDL file and
 > generated client code here and the servlet calls the service.
 > Simple. There is no rocket science here. But I have not been able to do
 > this. Am I doing anything strange. I should be able to do this.
 >
 > Please advise. Else can anyone suggest an alternative for Axis2. I opened my
 > big mouth and praised about Axis2 to management and now I am screwed up.
 >
 > SEVERE: java.lang.NoSuchMethodError:
 > 
org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
 > org.apache.axis2.AxisFault: java.lang.NoSuchMethodError:
 > 
org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
 > at
 > 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
 > at
 > 
com.debasish.remote.axis2.client.request.RequestWSStub.getRequestDetails(RequestWSStub.java:119)
 > at
 > com.debasish.remote.test.RemoteAxis2Servlet.doGet(RemoteAxis2Servlet.java:49)
 > at
 > javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 > at
 > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 > at
 > 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 > at
 > 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 > at
 > 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 > at
 > 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 > at
 > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 > at
 > 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 > at
 > 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 > at
 > 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 > at


> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 > at
 > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 > at
 > 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 > at
 > org.apache.catalina.valves.ErrorReportValve.invok

Re: Cannot work with Axis2 - URGENT

2006-08-07 Thread debasish . duttaroy

Dims
I am now using the jars from nightly build of 7th August. I took all the jars that are inside the zip file of "min" and not the "std".

Can you tell me what is this issue? Is it a mere classpath issue because of incorrect jar files or is it something else.

Here is my wsdl file I write by m own


___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Davanum Srinivas" <[EMAIL PROTECTED]>
08/07/2006 10:33 AM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        Re: Cannot work with Axis2 - URGENT


Debashish,

- Make sure you are using the nightly build.
- Make sure you run the wsdl2java again (don't mix and match old
generated code with new jars or vice versa)
- Make sure you thoroughly check all the jars that are in your
environment. It's very easy to mix jars and not know about it.

-- dims

On 8/7/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi all
> I am now really frustrated with Axis2. I have spend enormous amount of time
> but cannot get my application going anywhere.
> I am getting into a stage where I have to quit Axis2 to save my job and go
> for some other option.
> I am wondering is anyone actually using Axis2 for some real application or
> is it only for writing hello world etc. Because I can do that too. If anyone
> have anything more, please help.
>
> Here is the scenario...
>
> I have downloaded the nightly version for Axis2 of 7th August.
>
> I have a java project in MyEclipse which is called PhoenixWebServices. Just
> one project.
> I have more than one packages inside it.
>
> 1. I have a package for business delegates, which contains delegate classes
> that call dao classes in dao package.
> This package also contains a folder called "xml" that contains, iBATIS
> related xml files. These xmls are loaded by a static block.
>
> 2. I have a package for DAO classes. These implement dao operations.  I use
> iBATIS for database operations.
>
> 3. I have a package for webservices. This has all META-INF/wsdl and
> services.xml files. Also the WSDL2Java generated server and client codes.
> Client code is modified to call the business delegate mentioned in point 1.
>
> All are packaged in a .aar file and deployed to Axis2. I am attaching the
> .aar file.
>
> I have a webapp and a simple servlet. I have taken the WSDL file and
> generated client code here and the servlet calls the service.
> Simple. There is no rocket science here. But I have not been able to do
> this. Am I doing anything strange. I should be able to do this.
>
> Please advise. Else can anyone suggest an alternative for Axis2. I opened my
> big mouth and praised about Axis2 to management and now I am screwed up.
>
> SEVERE: java.lang.NoSuchMethodError:
> org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
> org.apache.axis2.AxisFault: java.lang.NoSuchMethodError:
> org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
>         at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
>         at
> com.debasish.remote.axis2.client.request.RequestWSStub.getRequestDetails(RequestWSStub.java:119)
>         at
> com.debasish.remote.test.RemoteAxis2Servlet.doGet(RemoteAxis2Servlet.java:49)
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke

Re: Cannot work with Axis2 - URGENT

2006-08-07 Thread Davanum Srinivas

Debashish,

- Make sure you are using the nightly build.
- Make sure you run the wsdl2java again (don't mix and match old
generated code with new jars or vice versa)
- Make sure you thoroughly check all the jars that are in your
environment. It's very easy to mix jars and not know about it.

-- dims

On 8/7/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:


Hi all
I am now really frustrated with Axis2. I have spend enormous amount of time
but cannot get my application going anywhere.
I am getting into a stage where I have to quit Axis2 to save my job and go
for some other option.
I am wondering is anyone actually using Axis2 for some real application or
is it only for writing hello world etc. Because I can do that too. If anyone
have anything more, please help.

Here is the scenario...

I have downloaded the nightly version for Axis2 of 7th August.

I have a java project in MyEclipse which is called PhoenixWebServices. Just
one project.
I have more than one packages inside it.

1. I have a package for business delegates, which contains delegate classes
that call dao classes in dao package.
This package also contains a folder called "xml" that contains, iBATIS
related xml files. These xmls are loaded by a static block.

2. I have a package for DAO classes. These implement dao operations.  I use
iBATIS for database operations.

3. I have a package for webservices. This has all META-INF/wsdl and
services.xml files. Also the WSDL2Java generated server and client codes.
Client code is modified to call the business delegate mentioned in point 1.

All are packaged in a .aar file and deployed to Axis2. I am attaching the
.aar file.

I have a webapp and a simple servlet. I have taken the WSDL file and
generated client code here and the servlet calls the service.
Simple. There is no rocket science here. But I have not been able to do
this. Am I doing anything strange. I should be able to do this.

Please advise. Else can anyone suggest an alternative for Axis2. I opened my
big mouth and praised about Axis2 to management and now I am screwed up.

SEVERE: java.lang.NoSuchMethodError:
org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
org.apache.axis2.AxisFault: java.lang.NoSuchMethodError:
org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
at
com.debasish.remote.axis2.client.request.RequestWSStub.getRequestDetails(RequestWSStub.java:119)
at
com.debasish.remote.test.RemoteAxis2Servlet.doGet(RemoteAxis2Servlet.java:49)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused 

Cannot work with Axis2 - URGENT

2006-08-07 Thread debasish . duttaroy

Hi all
I am now really frustrated with Axis2. I have spend enormous amount of time but cannot get my application going anywhere.
I am getting into a stage where I have to quit Axis2 to save my job and go for some other option.
I am wondering is anyone actually using Axis2 for some real application or is it only for writing hello world etc. Because I can do that too. If anyone have anything more, please help.

Here is the scenario...

I have downloaded the nightly version for Axis2 of 7th August.

I have a java project in MyEclipse which is called PhoenixWebServices. Just one project.
I have more than one packages inside it. 

1. I have a package for business delegates, which contains delegate classes that call dao classes in dao package.
This package also contains a folder called "xml" that contains, iBATIS related xml files. These xmls are loaded by a static block.

2. I have a package for DAO classes. These implement dao operations.  I use iBATIS for database operations.

3. I have a package for webservices. This has all META-INF/wsdl and services.xml files. Also the WSDL2Java generated server and client codes.
Client code is modified to call the business delegate mentioned in point 1.

All are packaged in a .aar file and deployed to Axis2. I am attaching the .aar file.

I have a webapp and a simple servlet. I have taken the WSDL file and generated client code here and the servlet calls the service.
Simple. There is no rocket science here. But I have not been able to do this. Am I doing anything strange. I should be able to do this.

Please advise. Else can anyone suggest an alternative for Axis2. I opened my big mouth and praised about Axis2 to management and now I am screwed up.

SEVERE: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
        at com.debasish.remote.axis2.client.request.RequestWSStub.getRequestDetails(RequestWSStub.java:119)
        at com.debasish.remote.test.RemoteAxis2Servlet.doGet(RemoteAxis2Servlet.java:49)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J; nested exception is: 
        java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
        at org.apache.axis2.transport.http.AxisSe

RE: [Axis2] HttpServeltRequest

2006-08-07 Thread Sanjesh Pathak








Hi Dims,

 

I am sorry, I was wrong. It is working now.
I can get the object using:

 

HttpServletRequest httpServletRequest = (HttpServletRequest) msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);

 

I had Axis2 1.0 jar in the deployable directory
which Eclipse had not to cleared.

 

Sorry for the trouble.

 

Sanjesh

 









From: Sanjesh Pathak
[mailto:[EMAIL PROTECTED] 
Sent: Monday, August 07, 2006 8:39
AM
To: axis-user@ws.apache.org
Subject: [Axis2]
HttpServeltRequest



 

Hi Dims, I am still unable to get HttpServletRequest object. I am downloaded the nightly snapshot from here: 

http://people.apache.org/dist/axis2/nightly/axis2-std-SNAPSHOT-bin.zip

 I tried both ways and I am getting null value: HttpServletRequest httpServletRequest = (HttpServletRequest) msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); HttpServletRequest httpServletRequest = (HttpServletRequest) msgContext. getOperationContext().getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); Thanks,Sanjesh -- ok deprecated Constants.HTTP_SERVLET_REQUEST and made sure thatHTTPConstants.MC_HTTP_SERVLETREQUEST works. -- dims On 7/30/06, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:> On Mon, 2006-07-17 at 10:00 +0200, heikki wrote:> > Hi Deepal,> >> > yes it works now ! I'm using the nighlty build fom July 16th.> >> > To summarize -- the way that you indicated is the *only* way that> > works, that is to say :> >> > - you must use Constants.HTTP_SERVLET_REQUEST (and not> > HTTPConstants.MC_HTTP_SERVLETREQUEST) ;> > Why do we have both these constants? It seems like a bug to me!> > > - you must use msgCtx.getProperty() (and not> > msgCtx.getOperationContext().getProperty() )> >> > Otherwise the HttpServletRequest won't be found.> > The transport details for a given message context are only available> from that message context. So if you're processing the incoming message> then you can look up the transport info from that message context. If> you're processing the outgoing message (of an IN-OUT MEP) and want the> servlet context associated with the incoming message, then you need to> get the incoming MC from the operation context and then ask it for the> transport info.> > Sanjiva.> > > -> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]> >   -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

 








Re: [Axis2]hard beginning

2006-08-07 Thread Paul Fremantle

Ok next question which JDK?!

Paul

On 8/7/06, Ignazio Anastasi <[EMAIL PROTECTED]> wrote:

i've used Axis2 1.0 war file into webapps


On 8/7/06, Paul Fremantle <[EMAIL PROTECTED]> wrote:
>
 Seems like the Xalan jar is missing. Which Axis2 install image did you use?


On 8/7/06, Ignazio Anastasi <[EMAIL PROTECTED]> wrote:
> hi all, i'm a new user and i try to learn about axis2
>
> after installation and validation about axis2 i've tryed to launch
examples
> like 'version' and 'myservice' (from user guide) but these are my error
> reports:
>
>  version
>
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Servlet execution threw an exception
>
> root cause
>
> javax.xml.transform.TransformerFactoryConfigurationError:
> Provider
org.apache.xalan.processor.TransformerFactoryImpl
> not found
>
>
>
javax.xml.transform.TransformerFactory.newInstance(Unknown
> Source)
>
>
>
org.apache.ws.commons.schema.XmlSchema.serialize_internal(XmlSchema.java:214)
 >
>
>
org.apache.ws.commons.schema.XmlSchema.write(XmlSchema.java:200)
>
>
>
org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:147)
>
>
> org.apache.axis2.description.AxisService.getWSDL
(AxisService.java:553)
>
>
>
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)
>
>
>
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java
:144)
>
>
>
org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)
>
>
>
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)
>
>
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>
> and this is the error of 'myservice'
>
> 
> Unable to generate WSDL for this service
> -
> 
> Either user has not dropped the wsdl into META-INF or operations use
message
> receivers other than RPC.
> 
> 
>
>
>
>
> Why this? where i miss? may i install something like new libraries?
>
> please help me. thanks.
>


--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
 [EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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






--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: [Axis2] Testing advice

2006-08-07 Thread Davanum Srinivas

i think content-type and soapaction at least.

-- dims

On 8/7/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

Hi dims,

thanks for the quick reply. Which http header should I add?

Thanks,
Michele

Davanum Srinivas wrote:
> Hmm...No. Use the SOAP/XML-RPC thingy. you can cut and paste a xml and
> send it by post. You will have to add a http header thingy with
> SOAPAction though. Please make sure u picked up latest JMeter.
>
> -- dims
>
> On 8/7/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I need to test what I've built and I need to control some parameters
>> (i.e. requests rate). I've started working with JMeter, but
>> unfortunately I realized it wants the WSDL in order to test web services
>> (while I use XML message receivers). Does anybody could suggest me a
>> tool to use?
>>
>> Thanks in advance,
>> Michele
>>
>> -
>> 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]





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



[Axis2] HttpServeltRequest

2006-08-07 Thread Sanjesh Pathak






Hi Dims, I am still unable to get HttpServletRequest object. I am downloaded the nightly snapshot from here: 

http://people.apache.org/dist/axis2/nightly/axis2-std-SNAPSHOT-bin.zip

 I tried both ways and I am getting null value: HttpServletRequest httpServletRequest = (HttpServletRequest) msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); HttpServletRequest httpServletRequest = (HttpServletRequest) msgContext. getOperationContext().getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); Thanks,Sanjesh -- ok deprecated Constants.HTTP_SERVLET_REQUEST and made sure thatHTTPConstants.MC_HTTP_SERVLETREQUEST works. -- dims On 7/30/06, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:> On Mon, 2006-07-17 at 10:00 +0200, heikki wrote:> > Hi Deepal,> >> > yes it works now ! I'm using the nighlty build fom July 16th.> >> > To summarize -- the way that you indicated is the *only* way that> > works, that is to say :> >> > - you must use Constants.HTTP_SERVLET_REQUEST (and not> > HTTPConstants.MC_HTTP_SERVLETREQUEST) ;> > Why do we have both these constants? It seems like a bug to me!> > > - you must use msgCtx.getProperty() (and not> > msgCtx.getOperationContext().getProperty() )> >> > Otherwise the HttpServletRequest won't be found.> > The transport details for a given message context are only available> from that message context. So if you're processing the incoming message> then you can look up the transport info from that message context. If> you're processing the outgoing message (of an IN-OUT MEP) and want the> servlet context associated with the incoming message, then you need to> get the incoming MC from the operation context and then ask it for the> transport info.> > Sanjiva.> > > -> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]> >   -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

 








Class not found HTTPService

2006-08-07 Thread Mancinelli Elodie

Hi all,

I check out the axis2 last version and I build it.
When I launch my client code, I have an error which is the class 
HTTPService is never found.


This class should be in a axis2-kernel-SNAPSHOT.jar but it 's not 
present in the last version. I search in the repository 
"modules/core/src/org/apache/axis2/transport/http/server" and no class.


This error appear when I want to execute this:
String acksTo = 
serviceClient.getMyEPR(Constants.TRANSPORT_HTTP).getAddress();

clientOptions.setProperty(SandeshaClientConstants.AcksTo,acksTo);


Why this class is not here? where is it? Or have you an other solution 
to do the same thing?


Regards
Elodie

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



Re: [Axis2] Testing advice

2006-08-07 Thread Michele Mazzucco
Hi dims,

thanks for the quick reply. Which http header should I add?

Thanks,
Michele

Davanum Srinivas wrote:
> Hmm...No. Use the SOAP/XML-RPC thingy. you can cut and paste a xml and
> send it by post. You will have to add a http header thingy with
> SOAPAction though. Please make sure u picked up latest JMeter.
> 
> -- dims
> 
> On 8/7/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I need to test what I've built and I need to control some parameters
>> (i.e. requests rate). I've started working with JMeter, but
>> unfortunately I realized it wants the WSDL in order to test web services
>> (while I use XML message receivers). Does anybody could suggest me a
>> tool to use?
>>
>> Thanks in advance,
>> Michele
>>
>> -
>> 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]



[AXIS2]

2006-08-07 Thread Fabien Couble



Hi all,
I'm implementing a protocol in which I have to 
manage an array of resources. Indeed, I have to add, get or delete resources 
from that array.
Actually, when a web service receives a request 
from a client, depending on the request, the web service has to get, add or 
delete the resource in the array.
I was wondering how I can implement this. In fact, 
I have checked that the AXIS2 web service are not persistent that's why I can't 
declare and instanciate an array in the class 
of the web service because this array will be 
instanciated each time the service is called. So it can't work!!
I have thought about using an EJB!! Is it a good 
solution??
 
Please, can you advise me?
 
Thx Fabien
 

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



[AXIS2] Web service initialisation

2006-08-07 Thread Fabien Couble



Hi all,
 
I have to manage an array of resources in my web 
service (add, get, delete resources). That's why, I have to init my web service 
with an array the first time it is used...
That's why, I'm wondering how I can do that... Is 
it possible?
 
Moreover, is an AXIS2 web service 
persistent??
 
Thanks for your responses...
Regards 
Fabien

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re: [Axis2] Testing advice

2006-08-07 Thread Davanum Srinivas

Hmm...No. Use the SOAP/XML-RPC thingy. you can cut and paste a xml and
send it by post. You will have to add a http header thingy with
SOAPAction though. Please make sure u picked up latest JMeter.

-- dims

On 8/7/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

Hi all,

I need to test what I've built and I need to control some parameters
(i.e. requests rate). I've started working with JMeter, but
unfortunately I realized it wants the WSDL in order to test web services
(while I use XML message receivers). Does anybody could suggest me a
tool to use?

Thanks in advance,
Michele

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





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: [Axis2]hard beginning

2006-08-07 Thread Ignazio Anastasi
i've used Axis2 1.0 war file into webappsOn 8/7/06, Paul Fremantle <[EMAIL PROTECTED]> wrote:
Seems like the Xalan jar is missing. Which Axis2 install image did you use?On 8/7/06, Ignazio Anastasi <[EMAIL PROTECTED]> wrote:> hi all, i'm a new user and i try to learn about axis2
>> after installation and validation about axis2 i've tryed to launch examples> like 'version' and 'myservice' (from user guide) but these are my error> reports:>>  version>
>> type Exception report>> message>> description The server encountered an internal error () that prevented it> from fulfilling this request.>> exception>
> javax.servlet.ServletException: Servlet execution threw an exception>> root cause>> javax.xml.transform.TransformerFactoryConfigurationError:> Provider org.apache.xalan.processor.TransformerFactoryImpl
> not found>>> javax.xml.transform.TransformerFactory.newInstance(Unknown> Source)>>> org.apache.ws.commons.schema.XmlSchema.serialize_internal(XmlSchema.java:214)
>>> org.apache.ws.commons.schema.XmlSchema.write(XmlSchema.java:200)>>> org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:147)>>> org.apache.axis2.description.AxisService.getWSDL
(AxisService.java:553)>>> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)>>> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java
:144)>>> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)>>> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)>>> 
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)> and this is the error of 'myservice'>
> > Unable to generate WSDL for this service> -> > Either user has not dropped the wsdl into META-INF or operations use message
> receivers other than RPC.> > > Why this? where i miss? may i install something like new libraries?>> please help me. thanks.
>--Paul FremantleVP/Technology, WSO2 and OASIS WS-RX TC Co-chairhttp://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]"Oxygenating the Web Service Platform", www.wso2.com-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] Testing advice

2006-08-07 Thread Michele Mazzucco
Hi all,

I need to test what I've built and I need to control some parameters
(i.e. requests rate). I've started working with JMeter, but
unfortunately I realized it wants the WSDL in order to test web services
(while I use XML message receivers). Does anybody could suggest me a
tool to use?

Thanks in advance,
Michele

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



Re: [Axis2] WS-Policy in WSDL for WSDL2Java

2006-08-07 Thread Anne Thomas Manes

1) WSDL2Java does not support WS-Policy.
2) You should use these versions of WS-Policy and WS-SecurityPolicy:
  xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";
  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";
3) Code for enforcing policy should be implemented as modules in
Axis2, not as code in your client.
4) Use Rampart

Anne

On 8/7/06, Viktor Zeltser <[EMAIL PROTECTED]> wrote:

Hello,

Where could I find example of wsdl document with ws-policy attached, that makes 
wsdl2java to produce proper stub.
I've tried to make some, but wsdl2java seems to ignore my policies and produces 
the code that is not different from same wsdl without policies.
Both wsdls attached. I've used command like that:
WSDL2Java.bat -o ./result -s -r 
C:\TUTS\geronimo-1.1\repository\default\axis2\1153686468506\axis2-1153686468506.war\WEB-INF
 -uri CMSService-Pol.wsdl

If somebody colud tell me what I'm doing wrong or point me to some working 
example I would be most gratefull.

Thank you very much,

Viktor [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: [Axis2]hard beginning

2006-08-07 Thread Paul Fremantle

Seems like the Xalan jar is missing. Which Axis2 install image did you use?


On 8/7/06, Ignazio Anastasi <[EMAIL PROTECTED]> wrote:

hi all, i'm a new user and i try to learn about axis2

after installation and validation about axis2 i've tryed to launch examples
like 'version' and 'myservice' (from user guide) but these are my error
reports:

 version


type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception

root cause

javax.xml.transform.TransformerFactoryConfigurationError:
Provider org.apache.xalan.processor.TransformerFactoryImpl
not found


javax.xml.transform.TransformerFactory.newInstance(Unknown
Source)


org.apache.ws.commons.schema.XmlSchema.serialize_internal(XmlSchema.java:214)


org.apache.ws.commons.schema.XmlSchema.write(XmlSchema.java:200)


org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:147)


org.apache.axis2.description.AxisService.getWSDL(AxisService.java:553)


org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)


org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)


org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)


org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)


javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




and this is the error of 'myservice'


Unable to generate WSDL for this service
-

Either user has not dropped the wsdl into META-INF or operations use message
receivers other than RPC.






Why this? where i miss? may i install something like new libraries?

please help me. thanks.




--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

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



Re: [axis2] First 3 and last byte in messages

2006-08-07 Thread Saminda Abeyruwan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Default, Axis2 uses Http 1.1 with Chunking support on. That's why you
see control characters. You can disable chunking in you client setting
the following option.


options.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED,Boolean.FALSE);


Saminda

zolv wrote:
> Hi.
> 
> I created a simple service (implementation is trivial) and 2 clients for them.
> One client uses axis2 classes to manage messages exchange and the second one 
> using HttpURLConnection to do it (hardcoded) without any axis classes.
> I use TCPMon (from axis (not axis2)) to wathing what is happening.
> 
> And.
> 
> First client (with axis2 classes) works great. But when I send the same 
> message using second client I got an errors:
> on client side:
> IOException Server returned HTTP response code: 500 for URL(...)
> on server side (main/first error):
> "SOAPEnvelope must contain a body element which is either first or second 
> child element of the SOAPEnvelope."
> 
> And now
> 
> I noticed, that client that use axis2 classes sends additional bytes in 
> message:
> 
> fb
> 
> (...message content...)
> 0
> 
> and when I put this chars ("fb\n" on beginning and "0" in the end) to the 
> emessage in second client, everything works fine.
> 
> Surprisingly, when I change "fb" to f.e. "aa" it works too, but if I put 
> "xx"/"00" it's not (is it hex or sth?).
> And my question is:
> 
> What are this bytes?
> (I can send an clients/server implementation if needed)
> 
> Greetings
> zolv
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

iD8DBQFE1xTnYmklbLuW6wYRAoW7AJ9PeqJ2kLa2fOQgRKHRQ3X+Do8fCwCgy4B6
oDU6d3b8HiKDYg3Rl7m9kIw=
=Pup8
-END PGP SIGNATURE-

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



[Axis2]hard beginning

2006-08-07 Thread Ignazio Anastasi
hi all, i'm a new user and i try to learn about axis2after installation and validation about axis2 i've tryed to launch examples like 'version' and 'myservice' (from user guide) but these are my error reports:
version

type
Exception reportmessage



description
The server encountered an internal error () that prevented it from fulfilling
this request.



exception





javax.servlet.ServletException:
Servlet execution threw an exception 

root
causejavax.xml.transform.TransformerFactoryConfigurationError:
Provider org.apache.xalan.processor.TransformerFactoryImpl not found

  javax.xml.transform.TransformerFactory.newInstance(Unknown
Source)

  org.apache.ws.commons.schema.XmlSchema.serialize_internal(XmlSchema.java:214)

  org.apache.ws.commons.schema.XmlSchema.write(XmlSchema.java:200)

  org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:147)

  org.apache.axis2.description.AxisService.getWSDL(AxisService.java:553)

  org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533)

  org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144)

  org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89)

  org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109)

  javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)and this is the error of 
'myservice'Unable to generate WSDL for this service-    Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC.
Why this? where i miss? may i install something like new libraries?please help me. thanks.


[AXIS2] persistence

2006-08-07 Thread Fabien Couble



Hi all,
I have checked that AXIS 2 don't support the 
persistence by default.
That's why, by surfing on the Web, I have found 
that to make a service persistent, we have to configure the service.xml file 
with the following line:
I did that by replacing the word value by "application". Normally, that mean that a service will be intanciated for all the requests until the server Tomcat is shutdown. Consequently, the service should be persistent...However, it doesn't work...Is it the good way to do this? HOw can I do that??Thxfabien

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re: User Guide: Code generation for client

2006-08-07 Thread Marcel Frehner
I'm still working on the Axis2SampleDocLitService service from the 
tutorial. Using wsdl2java for the server side I get 
Axis2SampleDocLitServiceSkeleton which has a Method
echoString(org.apache.axis2.userguide.xsd.EchoStringParamDocument 
param4).


When generating the client I get Axis2SampleDocLitServiceStub which has a 
method
echoString(org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.EchoStringParam 
param10).


Aren't those two methods supposed to ask for the same parameter types? When 
I execute the client, I get the following exception:


java.lang.RuntimeException: java.lang.NullPointerException
at 
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:2196)
at 
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoString(Axis2SampleDocLitServiceStub.java:489)

at org.Client.main(Client.java:21)
Caused by: java.lang.NullPointerException
at 
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:2180)

... 2 more

Thanks for your help
Marcel


At 11:28 07.08.2006 +0530, you wrote:
I would really appreciate if Deepal, Derek or any active member can shed 
some light on this problem.


Thanks,
Deepak

On 8/4/06, Marcel Frehner 
<[EMAIL PROTECTED]> wrote:

I gave it another try. But I could not get any further this time. I've
still  got the following client, where stub.echoString() expects an
EchoStringParam, which I don't have...

package org;

import org.apache.axis2.userguide.*;
import org.apache.axis2.userguide.xsd.EchoStringParamDocument;
import org.apache.axis2.userguide.xsd.EchoStringReturnDocument ;

public class Client {
public static void main(String[] args) {
try {
Axis2SampleDocLitServiceStub stub = new Axis2SampleDocLitServiceStub(
null,
" http://localhost:8080/axis2/services/Axis2SampleDocLitService";);

EchoStringParamDocument reqDoc = EchoStringParamDocument.Factory
.newInstance();

reqDoc.setEchoStringParam("Axis2 Echo");
EchoStringReturnDocument resDoc = stub.echoString(reqDoc);
System.out.println(resDoc.getEchoStringReturn());
} catch (Exception e) {
e.printStackTrace();
}
}
}

I would very much appreciate some help!
Marcel



At 22:21 03.08.2006 +0530, you wrote:
>Thanks Marcel for the inputs. As I am new to this Axis, so would not be
>able to comment.
>
>I would really appreciate if anyone give us the right direction to resolve
>this problem.
>
>Thanks,
>Deepak
>
>On 8/3/06, Marcel Frehner
>< 
[EMAIL PROTECTED]> wrote:

>Hi Deepak
>I've got the same problem and can't find a solution. Following up your
>thread about the EchoStringParam I would suggest something like the code
>below. But what ist the XMLStreamReader supposed to be? I mean, how can I
>create an EchoStringParam?
>Marcel
>
>
>***
>import org.apache.axis2.userguide.Axis2SampleDocLitServiceStub;
>import
>org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.EchoStringParam ;
>import
>org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.EchoStringReturn;
>import javax.xml.stream.XMLStreamReader;
>
>public class Client {
>
>public static void main(String[] args) {
>try {
>Axis2SampleDocLitServiceStub stub = new Axis2SampleDocLitServiceStub(
>null,
>"<http:// 
localhost:8080/axis2/services/Axis2SampleDocLitPortType >http://localhost: 
8080/axis2/services/Axis2SampleDocLitPortType

>");
>XMLStreamReader r=null; //of course this must not be null!!!
>EchoStringParam p=EchoStringParam.Factory.parse(r);
>p.setEchoStringParam("Axis2 Echo");
>EchoStringReturn resDoc = stub.echoString (p);
>System.out.println(resDoc.getEchoStringReturn());
>} catch (Exception e) {
>e.printStackTrace();
>}
>}
>}
>***
>
>
>
>At 17:53 03.08.2006 +0530, you wrote:
> >Hi Guys,
> >
> >This question has already been asked in the forum and I suppose I am the
> >third person to ask this question. But no response has come so far to
> >rectify this problem. Following is the problem:
> >
> >I am facing some problem creating client for the example mentioned in the
> >user guide.
> ><<http://ws.apache.org/ 
axis2/1_0/userguide3.html>http://ws.apache.org/axi

> s2/1_0/userguide3.html>
> 
http://ws.apache.org/axis2/1_0/userguide3.html#Writing_Web_Service_Clients_using_Code_Generation_with_Data_Binding_Support 


> >
> >
> >WSDL2Java is not generating "Axis2SampleDocLitPortTypeStub.java" instead
> >it is generating "Axis2SampleDocLitServiceStub.java" and it's Callback
> Handler.
> >
> >Following is the client which I have written but it is not getting
> >compiled as echoString method expects EchoStringParam not
> >EchoStringParamDocument.
> >
> >
> >
> >EchoStringReturnDocument resDoc = stub.echoString(reqDoc);
> >
> >
> >
> >public
> >clas

[Axis2] WS-Policy in WSDL for WSDL2Java

2006-08-07 Thread Viktor Zeltser
Hello,

Where could I find example of wsdl document with ws-policy attached, that makes 
wsdl2java to produce proper stub.
I've tried to make some, but wsdl2java seems to ignore my policies and produces 
the code that is not different from same wsdl without policies.
Both wsdls attached. I've used command like that:
WSDL2Java.bat -o ./result -s -r 
C:\TUTS\geronimo-1.1\repository\default\axis2\1153686468506\axis2-1153686468506.war\WEB-INF
 -uri CMSService-Pol.wsdl

If somebody colud tell me what I'm doing wrong or point me to some working 
example I would be most gratefull.

Thank you very much,
 
Viktor [EMAIL PROTECTED]




CMSService-Pol.wsdl
Description: Binary data


CMSService.wsdl
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]