Axis2 web service error

2008-08-01 Thread Kumar, Lokesh
Hi,

 

I created a service archive using eclipse plug-in for service archiving.
My project uses a lot of classes in the library and so I included all
those libraries when I created my service archive.

 

However, when I load the aar file in the axis2 server, I keep getting
the following deployment fault - Error: java.lang.NoClassDefFoundError:
com/informatica/metadata/common/core/NamedElement at
java.lang.ClassLoader.defineClass1(Native Method)

 

My first thought was that it couldn't locate the jar files. So, I copied
all the jar files in the axis/WEB-INF/services/lib folder. It continued
to give me the same error, so I copied all the jar files to
axis/WEB-INF/lib too. The error message didn't change. Any idea, on what
might be causing this error ?

 

Also, I would appreciate if someone could tell me how to directly
include all these files in the classpath of axis2, instead of me copying
them one by one into the axis2 lib directories.

 

Thanks in advance,

 

-Lokesh

 

 



Re: Axis2 Webservice called from another websiervice

2008-08-01 Thread Jay Chauhan
Hi Axis Team,

I did some looking around and it is claimed to have fixed in jira

http://issues.apache.org/jira/browse/AXIS2-2231

However, the problem still exists, I wonder if someone can give a reply,

Thanks,

-Jay


On Thu, Jul 31, 2008 at 10:12 PM, Jay Chauhan <[EMAIL PROTECTED]>wrote:

> Hi,
>
> I have two Axis2 webservices, A and B. these services use AXIOM
> databinding.
>
> I have a client ServiceBClient.java , when I call the
> SericeBClient.callService() from standalone program it works just fine as it
> should. However, when I try to call the same code from within Service A
> then i get the following error:
>
> =
> [WARN] triggerActionNotSupportedFault: messageContext: [MessageContext:
> logID=urn:uuid:02DD9A9B9453513B981217564336177] problemAction:\
>  urn:anonOutonlyOpResponse
> [ERROR] The [action] cannot be processed at the receiver.
> org.apache.axis2.AxisFault: The [action] cannot be processed at the
> receiver.
> at
> org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(AddressingFaultsHelper.java:373)
> at
> org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(AddressingFaultsHelper.java:336)
> at
> org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAction(AddressingValidationHandler.java:149)
> at
> org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(AddressingValidationHandler.java:55)
> =
>
> I have the services.xml as suggested in  AXIOM service section of Quick
> start guide:   http://ws.apache.org/axis2/1_4/quickstartguide.html
>
> What can I do to call a webservice from another,
>
> Any suggestion is appreciated.
>
> -Jay
>
>
>
>
>


More than one part for message DeleteSoapIn in WSDL

2008-08-01 Thread YuvaKumar

Hi

I am trying generate webservices api for Mscrm CrmService.wsdl version 4.0
using axis2. But am getting exceptions as follows:

"More than one part for message DeleteSoapIn"
"More than one part for message RetrieveSoapIn"

This occurs for the following parts:

Code Snippet

 
 



 
 
 





- 
http://schemas.xmlsoap.org/wsdl/";>Deletes the
instance of the specified entity.wsdlocumentation> 
 
 
wsdlperation>


http://schemas.xmlsoap.org/wsdl/";>Retrieves an
instance of the specified entity.wsdlocumentation> 
 
 
wsdlperation>

I think the error occurred due to the reason message contains multiple
"parts", but I dont know how to fix this.

Could someone please suggest a solution to fix the issue and help generate
webservices api. I was using axis1.4 jar earlier and I had no problems in
generating Webservices API, but now we are trying move towards axis2 and we
are having issues in getting the java api from the wsdl.  

If required I can post complete wsdl but its a huge file.

Thanks,

Yuva 
-- 
View this message in context: 
http://www.nabble.com/More-than-one-part-for-message-DeleteSoapIn-in-WSDL-tp18780743p18780743.html
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 testing Axis2 service with saaj + jsp

2008-08-01 Thread David Ojeda
Yet another update:
I think I found the problem, but I have no idea on the solution. With a TCP 
Monitor I compared the standalone (works ok) version vs. the jsp version. They 
differ in the header:

standalone version xml:
http://schemas.xmlsoap.org/soap/envelope/"; 
standalone="no"?>
http://www.digitel.com.ve/PM_S0004"; 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
   
584122949996 
2  
   


jsp version xml:
http://schemas.xmlsoap.org/soap/envelope/"; 
standalone="no"?>
http://www.digitel.com.ve/PM_S0004"; 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
http://www.w3.org/2005/08/addressing";>
http://localhost:8080/WebServicesATC/services/WSMobileLineStateForRechargeUpdate
urn:uuid:155B7826FDE31FB4991217609391827
urn:anonOutInOpResponse

   
584122949996 
2  
   



I tried removing the header with:
msg.getSOAPHeader().detachNode();
but that didn't work.

Any ideas?

On Friday 01 August 2008 12:08:04 pm David Ojeda wrote:
> Update:
>
> I just checked with a tcp monitor and the request does arrive to the
> server, but responds with an error 500 and the same exception I mentioned
> before.
>
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://www.w3.
>org/2005/08/addressing/faulturn:uuid:47691F51DDE
>89BC4AF1217605891135:Action>urn:anonOutInOpResponseetail> xmlns:wsa="http://www.w3.org/2005/08/addressing";>wsa:ActionNotSu
>pportedThe [action] cannot be processed at the
> receiver.org.apache.axis2.AxisFault: The
> [action] cannot be processed at the receiver.
>   at
> org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(A
>ddressingFaultsHelper.java:373) at
> org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupporte
>dFault(AddressingFaultsHelper.java:336) at
> org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkActio
>n(AddressingValidationHandler.java:149) at
> org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(Add
>ressingValidationHandler.java:55) at
> org.apache.axis2.engine.Phase.invoke(Phase.java:317)
>   at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
>   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
>   at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(H
>TTPTransportUtils.java:275) at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>nFilterChain.java:269) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>hain.java:188) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>ava:213) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>ava:174) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
>7) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11
>7) at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>a:108) at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:544)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.process
>Connection(Http11BaseProtocol.java:665) at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja
>va:528) at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerW
>orkerThread.java:81) at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>va:689) at java.lang.Thread.run(Thread.java:619)
> 
>
> On Friday 01 August 2008 11:15:13 am David Ojeda wrote:
> > Hello,
> >
> > I read the thread "Send direct XML rather than using Java classes" and
> > followed the example at
> > http://users.skynet.be/pascalbotte/rcx-ws-doc/saajpost.htm in order to
> > create a jsp page that tests a webservice deployed with axis2.
> >
> > I am getting this exception:
> > org.apache.axis2.AxisFault: The [action] cannot be processed at the
> > receiver. at
> > org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault
> >(A ddressingFaultsHelper.java:373) at
> > org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSuppor
> >te dFault(AddressingFaultsHelper.java:336) at
> > org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAct
> >io n(AddressingValidationHandler.java:149) at
> > org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(A
> >dd ressingValidationHandler.java:55) at
> > org.apache.axis2.engine.Phase.invoke(Phase.java:317)
> >   

Integrating Axis 1.3 and Spring

2008-08-01 Thread David Land
I have a question about integrating Axis 1.3 with Spring. I want to
implement an AOP logging solution for a set of Axis web services.
Basically, I want to be able to do some logging and the beginning and
end of each web service method. My question is regarding how to get Axis
to use an instance of the Spring AOP proxy class.

 

The only solution I could find for doing it was to create a dummy web
service class that inherits from
org.springframework.remoting.jaxrpc.ServletEndpointSupport and then to
override the onInit() method to set a class variable to the AOP object
returned from the Spring application context. Then in each of the dummy
web service's methods, call the corresponding method on the AOP object.
Here is a typical example:

---
public class DummyService extends ServletEndpointSupport implements
IRealWebService {
   private IRealWebService real;

   protected void onInit() {
  this. real =
(IRealWebService)getWebApplicationContext().getBean("wsBean");
   }

   public String sayHello(String message) {
  return real.sayHello(message);
   }

 

   public String doSomethingElse (String message) {
  return real. doSomethingElse (message);
   }
}
---

I'm not a huge fan of this solution because it requires you to keep
around this dummy class that doesn't do anything but create and call the
Spring generated proxy. Then every time you want add a new method to the
web service you would have to go back and update the dummy class as
well. Isn't there a way to get Axis to instantiate and use the AOP proxy
object from the Spring application context? Maybe some lower level
handler in Axis can be overridden so you can inject the Spring object?

 

It's my understanding that Axis2 has better support for Spring, but
using Axis2 is not an option at this point.

 

Thanks,

Dave



Re: Problem testing Axis2 service with saaj + jsp

2008-08-01 Thread David Ojeda
Update:

I just checked with a tcp monitor and the request does arrive to the server, 
but 
responds with an error 500 and the same exception I mentioned before.

http://schemas.xmlsoap.org/soap/envelope/";>http://www.w3.org/2005/08/addressing";>http://www.w3.org/2005/08/addressing/faulturn:uuid:47691F51DDE89BC4AF1217605891135urn:anonOutInOpResponsehttp://www.w3.org/2005/08/addressing";>wsa:ActionNotSupportedThe
 
[action] cannot be processed at the 
receiver.org.apache.axis2.AxisFault: The 
[action] cannot be processed at the receiver.
at 
org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(AddressingFaultsHelper.java:373)
at 
org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(AddressingFaultsHelper.java:336)
at 
org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAction(AddressingValidationHandler.java:149)
at 
org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(AddressingValidationHandler.java:55)
at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:544)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)



On Friday 01 August 2008 11:15:13 am David Ojeda wrote:
> Hello,
>
> I read the thread "Send direct XML rather than using Java classes" and
> followed the example at
> http://users.skynet.be/pascalbotte/rcx-ws-doc/saajpost.htm in order to
> create a jsp page that tests a webservice deployed with axis2.
>
> I am getting this exception:
> org.apache.axis2.AxisFault: The [action] cannot be processed at the
> receiver. at
> org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(A
>ddressingFaultsHelper.java:373) at
> org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupporte
>dFault(AddressingFaultsHelper.java:336) at
> org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkActio
>n(AddressingValidationHandler.java:149) at
> org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(Add
>ressingValidationHandler.java:55) at
> org.apache.axis2.engine.Phase.invoke(Phase.java:317)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(H
>TTPTransportUtils.java:275) at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>nFilterChain.java:269) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>hain.java:188) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>ava:213) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>ava:174) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
>7) at
> org.apache.catalina.valves.ErrorReportValve.invoke(Erro

Re: Dynamically Set Preemptive Authentication

2008-08-01 Thread Ted Jones




FYI - Found a way to bypass preemptive authentication. Added a servlet
filter in front of the Axis2 servlet to interrogate the http
authorization header. If not present, return a 401 with a dummy realm
in the WWW-Authenticate header. This will allow both preemptive and
non-preemptive modes of Basic authentication to work.

Ted Jones wrote:

  Let me re-phrase my question...

Is it possible to disable preemptive authentication in Axis2?

Thanks,
Ted

On Mon, 2008-07-28 at 14:30 -0500, Ted Jones wrote:
  
  
I have a client that uses HTTP Basic authentication and was coded for a
Systinet web service engine. The HTTP Client code did not use preemptive
authentication with Systinet, but Axis2 does since it uses the
commons-httpclient code base. Is there anyway to set preemptive
authentication to true without modifying all the client code? Perhaps a
setting in axis2.xml or a handler of some sort?

Also, not setting this value to true and also the absence of the
credentials altogether results in a HTTP 500 error, shouldn't this be a
401?


Thanks,
Ted

  
  

-
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]



Problem testing Axis2 service with saaj + jsp

2008-08-01 Thread David Ojeda
Hello,

I read the thread "Send direct XML rather than using Java classes" and followed 
the example at http://users.skynet.be/pascalbotte/rcx-ws-doc/saajpost.htm in 
order to create a jsp page that tests a webservice deployed with axis2.

I am getting this exception:
org.apache.axis2.AxisFault: The [action] cannot be processed at the receiver.
at 
org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(AddressingFaultsHelper.java:373)
at 
org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(AddressingFaultsHelper.java:336)
at 
org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAction(AddressingValidationHandler.java:149)
at 
org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(AddressingValidationHandler.java:55)
at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:544)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)


On the other hand, when testing the same code in a main function instead of the 
jsp, it works fine.

Here is the code:
String str = "http://schemas.xmlsoap.org/soap/envelope/\"; 
xmlns:pm=\"http://www.digitel.com.ve/PM_S0004\";>  
   
584122949996 
2  
   
";
PrintStream out = System.out;
try {
// Create the connection
javax.xml.soap.SOAPConnectionFactory scf = 
javax.xml.soap.SOAPConnectionFactory.newInstance();
javax.xml.soap.SOAPConnection conn = scf.createConnection();

// Create message
javax.xml.soap.MessageFactory mf = 
javax.xml.soap.MessageFactory.newInstance();
javax.xml.soap.SOAPMessage msg = mf.createMessage();

// Object for message parts
javax.xml.soap.SOAPPart sp = msg.getSOAPPart();
javax.xml.transform.stream.StreamSource prepMsg = new 
javax.xml.transform.stream.StreamSource(
new java.io.StringReader(str));
sp.setContent(prepMsg);

//headers
   javax.xml.soap.MimeHeaders hd = msg.getMimeHeaders(); 
hd.addHeader("SOAPAction", 
"http://integra.la/digitel/ws/linestate/WSMobileLineStateForRechargeUpdate/mobileLineStateForRechargeUpdate";);

// Save message
msg.saveChanges();

// View input
out.println("\n Soap request:\n");
msg.writeTo(out);
out.println();

// Send
String urlval 
= 
"http://localhost:8080/WebServicesATC/services/WSMobileLineStateForRechargeUpdate";;
javax.xml.soap.SOAPMessage rp = conn.call(msg, urlval);

// View the output
out.println("\nXML response\n");

// Create transformer
javax.xml.transform.TransformerFactory tff = 
javax.xml.transform.TransformerFactory.newInstance();
javax.xml.transform.Transformer tf = tff.newTransformer();

// Get reply content
javax.xml.transform.Source sc = rp.getSOAPPart().getContent();

// Set output transformation
javax.xml.transform.stream.StreamResult

RE: Axis2 Client side deployment configuration

2008-08-01 Thread Shah, Sumit
Hi Amila,

 

Thanks for the information. If I add parameters to the axis2.xml then
won't it apply globally? Is there a way to restrict it at the service
and the module level on the Axis2 client side?

 

Thanks

Sumit

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 01, 2008 1:17 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 Client side deployment configuration

 

 

On Thu, Jul 31, 2008 at 11:18 PM, Shah, Sumit <[EMAIL PROTECTED]>
wrote:

Hello,

 

I would appreciate if someone could tell me how I can specify
configuration options for invoking 3rd party web services using Axis2
client side APIs. The parameters maybe specified at the global, service
or module level.


you can create a configuration context at the client side as well
pointing out to a repository

ConfigurationContext configurationContext =
 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(
AXIS2_REPOSITORY_LOCATION,
AXIS2_CLIENT_CONFIG_FILE);
ServiceClient serviceClient = new
ServiceClient(configurationContext, null);

and add any parameters to Axis2.xml

thanks,
Amila.

In Axis1.4, I could use the .wsdd file to specify
options/parameters at all levels even for the client (or consumption)
side. I am not sure how to achieve that in Axis2. 

 

Thanks

Sumit

 

 




-- 
Amila Suriarachchi,
WSO2 Inc.



Re: XMLBeans ? is there a better approach

2008-08-01 Thread David Ojeda
Hello Sriram,

Yes, scomp compiles without any OutofMemoryExceptions. However, I had to 
increase the memory to 384mb, -Xmx and -Xms work fine also in case you need to 
increase the memory.


When using wsdl2java I use the following options, it doesn't compile the schema 
at all since it uses the -Edwc option.








   
 
  



  
   



 

Service classes generated with WSDL2Java, erasing classes that 
will 
be replaced by xmlbeans classes














This is my xmlbeans task:








On Friday 01 August 2008 05:04:01 am sri ram wrote:
> Hi David,
>    I just wanted to confirm regarding this.
> Does the scomp compiler doesn't show any Out of Memory Exeptions?
> And Moreover when we use  wsdl2java command we do mention the databinding
> using -d option ,if we mention XMLBeans in that option will it not
> recompile the schema.Or is there a way to eliminate the recompiling of the
> schema .
>
> Would like to know your ideas on this which is of a great help .
> Thanks And Regards
> Sriram P
>
>
>
>
> --- On Fri, 1/8/08, David Ojeda <[EMAIL PROTECTED]> wrote:
> From: David Ojeda <[EMAIL PROTECTED]>
> Subject: Re: XMLBeans ? is there a better approach
> To: axis-user@ws.apache.org
> Date: Friday, 1 August, 2008, 3:50 AM
>
> Hello,
> I had a similar problem with XMLBeans, but regarding file generation.
> The XSDs I used were very big (10k classes), so this caused an
> OutOfMemoryException when doing wsdl2java.
> The solution I found was generating the XMLBeans classes in a separate xml
> with
>
> scomp and using wsdl2java with the -Ewdc option.
>
> Maybe this idea will help you.
>
> On Thursday 31 July 2008 04:31:13 am sri ram wrote:
> > Hi all,
> >  Can anyone give me the better approach of databinding that I have
>
> to
>
> > follow for my project.This project  has almost 396 method and can be more
> > in the upcoming releases, which are exposed as webservices. So while
> > using XMLBeans  as databinding it created many .java and xsb files .
> > These
>
> files
>
> > take ,quite a long time to get compiled and sometimes have
> > OutOfMemoryException and we have to set out heap size to get rid of this
> > exception. Once the aar file is deployed into the server and send a SOAP
> > request ,the Axis Servlet takes more time to get initialized which is one
> > of the main performance drawback. So can any one suggest a better
> > databinding to  have better performance  as a whole A databinding which
>
> can
>
> > give 100% schema support,Quick response and Quick initialization of the
> > servlet.
> >
> > Thanks And Regards
> > Sriram P
> >   
> >
> >
> > .
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >   Unlimited freedom, unlimited storage. Get it now, on
> > http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/



-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



s

2008-08-01 Thread Stefan Funk

Dear Axis list.

I am using WebService faults, which are defined in our WSDL file as follows:


  
  
  



  
  
  


And we are setting the faultstring and cause using ADB binding at server side 
that they appear in the response like



  soapenv:Server
  Failure while accessing TG-auth!!
  

Transport error: 404 Error: Not Found

  


My question now:

How can we get the  from client side using ADB XML binding? I 
just am able to access the  by using


e.getFaultMessage().getIoFault().getCause()

but not the .

Would be nice if anyone could help.
Stefan.

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



RE: Axis2 and JAX-WS/CXF

2008-08-01 Thread Jake Wu
Hi,
 
I have developed a web service using CXF , and now I want to create a
Axis2 client to invoke it. Is it indeed possible? If so, anybody has any
success or can refer me to any good documentation/guidelines about how
to do so?
 
Many thanks,
jake
 
 
 
 
 From: Eric Nygma [mailto:[EMAIL PROTECTED] 
Sent: 06 August 2007 14:51
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: Axis2 and JAX-WS/CXF



Thanks !


On 8/6/07, Davanum Srinivas <[EMAIL PROTECTED]> wrote: 

[1] 1.3 will have support for the JAXWS specification.
[2] Axis2 client can talk any SOAP Service.

thanks,
dims

On 8/6/07, Eric Nygma <[EMAIL PROTECTED] >
wrote:
> Hi,
>
> Maybe these questions have been asked before.
>
> [1] Does Axis2 implement JAX-WS spec ?
> [2] Does Axis2 interoperate with JAX-WS , can a Axis2
client talk with a 
> JAX-WS service and vice versa. Specifically , does
Axis2 interoperate with
> Apache CXF.
>
> Thanks in advance,
> Eric.
>
>


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


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






Re: Soap request issue when a parameter is null

2008-08-01 Thread Luuzz

Thanks a lot for the quick reply.
I am going to try this out as soon as possible and keep you informed !!



keith chapman wrote:
> 
> I believe you are using the RPCMessageReceiver. There is a bug in the
> RPCMessageReceiver and I think this is what your hitting.  As a workaround
> I
> suggest that u save the WSDL generated by axis2 and get rid of minoccurs=0
> attribute that is present in all the types. drop the edited WSDL into the
> service archive and redeploy the service.
> 
> Thanks,
> Keith.
> 
> On Fri, Aug 1, 2008 at 4:10 PM, Luuzz <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hello,
>> I am new using axis2.
>> I have developped some services with it and it works really well.
>> But i have some problems with my last one. The web method has many
>> parameters. Some of them can be null.
>> So when i call the method using a soap message not specifying the
>> nillable
>> parameters, the binding doesn't work well. For example the pi element of
>> the
>> soap message is bound to pj web method parameter.
>> To make the service work, i have to use all the parameters in my soap
>> request even if most of them have an empty value.
>> It is very strange.
>> I don't know if i am clear enough but i hope that you will help me.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Soap-request-issue-when-a-parameter-is-null-tp18771917p18771917.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
> 
> blog: http://www.keith-chapman.org
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Soap-request-issue-when-a-parameter-is-null-tp18771917p18772504.html
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: ServiceLifeCycle and Hot Deployment

2008-08-01 Thread Walker, Carleton
Hi Samisa,

Thanks for your reply.  There was a coding error in the startUp() method
of the class implementing ServiceLifeCycle. Fixing the error allowed the
AAR to deploy correctly.

-Carl

-Original Message-
From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2008 5:39 PM
To: axis-user@ws.apache.org
Subject: Re: ServiceLifeCycle and Hot Deployment

Can you run other samples that comes with Axis2?

Thanks
Samisa...

Walker, Carleton wrote:
>
> Hi,
>
> I'm trying to create an initialization class using ServiceLifeCycle 
> for my web service.  hotdeployment and hotupdate are set to "true".   
> I'm getting the following exception.  I have a class that implements 
> the ServiceLifeCycle in the AAR file (lkp.aar).  The services.xml file

> follows the stack trace.  The application server is WebLogic 9.2 using

> the expanded configuration.
>
> Thanks for your help in advance.
>
> -Carl
>
> [INFO] org.apache.axis2.deployment.DeploymentException: The lkp 
> service group name is not valid.
> org.apache.axis2.deployment.DeploymentException: name
> at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServi
> ceGroup(ArchiveReader.java:151)
>
> at
> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.jav
> a:81)
>
> at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(
> DeploymentFileData.java:136)
>
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine
> .java:597)
>
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoLi
> st.java:144)
>
> at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListen
> er.java:330)
>
> at
> org.apache.axis2.deployment.RepositoryListener.checkServices(Repositor
> yListener.java:227)
>
> at
> org.apache.axis2.deployment.RepositoryListener.startListener(Repositor
> yListener.java:324)
>
> at
> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(Sc
> hedulerTask.java:64)
>
> at
> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.
> java:71)
>
> at
> org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run
> (Scheduler.java:83)
>
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> Caused by: org.apache.axis2.deployment.DeploymentException: name
> at
> org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(S
> erviceGroupBuilder.java:106)
>
> at
> org.apache.axis2.deployment.repository.util.ArchiveReader.buildService
> Group(ArchiveReader.java:110)
>
> at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServi
> ceGroup(ArchiveReader.java:144)
>
> ... 12 more
> Caused by: org.apache.axis2.deployment.DeploymentException: name
> at
> org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuil
> der.java:431)
>
> at
> org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(S
> erviceGroupBuilder.java:101)
>
> ... 14 more
> Caused by: org.apache.axis2.deployment.DeploymentException: name
> at
> org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(S
> erviceBuilder.java:521)
>
> at
> org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuil
> der.java:205)
>
> ... 15 more
> Caused by: java.lang.NullPointerException: name
> at java.util.zip.ZipFile.getEntry(ZipFile.java:247)
> at java.util.jar.JarFile.getEntry(JarFile.java:204)
> at java.util.jar.JarFile.getJarEntry(JarFile.java:187)
> at
> sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:674)
> at
> sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:663)
> at sun.misc.URLClassPath.findResource(URLClassPath.java:142)
> at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
> at java.security.AccessController.doPrivileged(Native Method)
> at
java.net.URLClassLoader.findResource(URLClassLoader.java:359)
> at
> org.apache.axis2.deployment.DeploymentClassLoader.findResource(Deploym
> entClassLoader.java:102)
>
> at
> org.apache.axis2.deployment.DeploymentClassLoader.getResourceAsStream(
> DeploymentClassLoader.java:250)
>
> at dsh.lkp.ws.LkpInit.startUp(LkpInit.java:42)
> at
> org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(S
> erviceBuilder.java:518)
>
> ... 16 more
>
> services.xml
>
> 
>
> 
>
>
> Confidentiality Notice:  This email, including attachments, may 
> include non-public, proprietary, confidential or legally privileged 
> information.  If you are not an intended recipient or an authorized 
> agent of an intended recipient, you are hereby notified that any 
> dissemination, distribution or copying of the information contained in

> or transmitted with this e-mail is 

Re: [AXIS2] Developping a proxy WS

2008-08-01 Thread sumit jindal
hello Amila

thx a lot

it works
i have changed my web.xml and it works

On Fri, Aug 1, 2008 at 2:52 PM, Amila Suriarachchi <
[EMAIL PROTECTED]> wrote:

>
>
> On Fri, Aug 1, 2008 at 1:44 PM, sumit jindal <[EMAIL PROTECTED]
> > wrote:
>
>> hello
>>
>> i am new to axis2
>>
>> i have created a simple dynamic web project
>>
>> when i am using server as tomcat6.0 then it is not working
>>
>> but when i use tomcat5.5 then it works
>>
>> so i want to whether axis2 works with tomcat6.0 or not
>> and if it works then plz explain how it works
>>
> Axis2 should work with tomcat 6.0 unless there is a problem with tomcat or
> your configuration.
>
> Axis2 users the Axis2 servlet to receive the http requests from the tomcat.
> please see the web.xml file.
>
> thanks,
> Amila.
>
>>
>>
>> thanks
>>
>> sumit jindal
>>
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>


Re: Soap request issue when a parameter is null

2008-08-01 Thread keith chapman
I believe you are using the RPCMessageReceiver. There is a bug in the
RPCMessageReceiver and I think this is what your hitting.  As a workaround I
suggest that u save the WSDL generated by axis2 and get rid of minoccurs=0
attribute that is present in all the types. drop the edited WSDL into the
service archive and redeploy the service.

Thanks,
Keith.

On Fri, Aug 1, 2008 at 4:10 PM, Luuzz <[EMAIL PROTECTED]> wrote:

>
> Hello,
> I am new using axis2.
> I have developped some services with it and it works really well.
> But i have some problems with my last one. The web method has many
> parameters. Some of them can be null.
> So when i call the method using a soap message not specifying the nillable
> parameters, the binding doesn't work well. For example the pi element of
> the
> soap message is bound to pj web method parameter.
> To make the service work, i have to use all the parameters in my soap
> request even if most of them have an empty value.
> It is very strange.
> I don't know if i am clear enough but i hope that you will help me.
>
> --
> View this message in context:
> http://www.nabble.com/Soap-request-issue-when-a-parameter-is-null-tp18771917p18771917.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Soap request issue when a parameter is null

2008-08-01 Thread Luuzz

Hello,
I am new using axis2.
I have developped some services with it and it works really well.
But i have some problems with my last one. The web method has many
parameters. Some of them can be null.
So when i call the method using a soap message not specifying the nillable
parameters, the binding doesn't work well. For example the pi element of the
soap message is bound to pj web method parameter.
To make the service work, i have to use all the parameters in my soap
request even if most of them have an empty value.
It is very strange.
I don't know if i am clear enough but i hope that you will help me. 

-- 
View this message in context: 
http://www.nabble.com/Soap-request-issue-when-a-parameter-is-null-tp18771917p18771917.html
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: XMLBeans ? is there a better approach

2008-08-01 Thread sri ram

Hi David,
   I just wanted to confirm regarding this.
Does the scomp compiler doesn't show any Out of Memory Exeptions?
And Moreover when we use  wsdl2java command we do mention the databinding
using -d option ,if we mention XMLBeans in that option will it not recompile 
the schema.Or is there a way to eliminate the recompiling of the schema .

Would like to know your ideas on this which is of a great help .
Thanks And Regards
Sriram P




--- On Fri, 1/8/08, David Ojeda <[EMAIL PROTECTED]> wrote:
From: David Ojeda <[EMAIL PROTECTED]>
Subject: Re: XMLBeans ? is there a better approach
To: axis-user@ws.apache.org
Date: Friday, 1 August, 2008, 3:50 AM

Hello,
I had a similar problem with XMLBeans, but regarding file generation.
The XSDs I used were very big (10k classes), so this caused an 
OutOfMemoryException when doing wsdl2java.
The solution I found was generating the XMLBeans classes in a separate xml with

scomp and using wsdl2java with the -Ewdc option.

Maybe this idea will help you.

On Thursday 31 July 2008 04:31:13 am sri ram wrote:
> Hi all,
>  Can anyone give me the better approach of databinding that I have
to
> follow for my project.This project  has almost 396 method and can be more
> in the upcoming releases, which are exposed as webservices. So while using
> XMLBeans  as databinding it created many .java and xsb files . These
files
> take ,quite a long time to get compiled and sometimes have
> OutOfMemoryException and we have to set out heap size to get rid of this
> exception. Once the aar file is deployed into the server and send a SOAP
> request ,the Axis Servlet takes more time to get initialized which is one
> of the main performance drawback. So can any one suggest a better
> databinding to  have better performance  as a whole A databinding which
can
> give 100% schema support,Quick response and Quick initialization of the
> servlet.
>
> Thanks And Regards
> Sriram P
>   
>
>
> .
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>   Unlimited freedom, unlimited storage. Get it now, on
> http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/



-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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




  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

Re: [AXIS2] Developping a proxy WS

2008-08-01 Thread Amila Suriarachchi
On Fri, Aug 1, 2008 at 1:44 PM, sumit jindal
<[EMAIL PROTECTED]>wrote:

> hello
>
> i am new to axis2
>
> i have created a simple dynamic web project
>
> when i am using server as tomcat6.0 then it is not working
>
> but when i use tomcat5.5 then it works
>
> so i want to whether axis2 works with tomcat6.0 or not
> and if it works then plz explain how it works
>
Axis2 should work with tomcat 6.0 unless there is a problem with tomcat or
your configuration.

Axis2 users the Axis2 servlet to receive the http requests from the tomcat.
please see the web.xml file.

thanks,
Amila.

>
>
> thanks
>
> sumit jindal
>



-- 
Amila Suriarachchi,
WSO2 Inc.


Re: XMLBeans ? is there a better approach

2008-08-01 Thread Amila Suriarachchi
On Fri, Aug 1, 2008 at 1:48 PM, sri ram <[EMAIL PROTECTED]>wrote:

> Hi Amila ,
> The other databindings provided by axis2 are ADB and  JIBX
> However XMLBeans provides 100% schema support which is a great advantage of
> using this databinding which may not be there in other databinding's .
> So can any one please tell the advantages of other databindings.


Axis2 provides jaxb data binding as well (-d jaxbri)

ADB - Does not support Xml schema 100% (but it provides most of the common
schema constructs), but faster than others.
Jaxbri - Provides 100% Xml schema support. this is the java standard.
Jibx - Can bind wsdl to use existing classes.

thanks,
Amila.

>
> Thanks And Regards
> Sriram P
>
> --- On *Fri, 1/8/08, Amila Suriarachchi <[EMAIL PROTECTED]>*wrote:
>
> From: Amila Suriarachchi <[EMAIL PROTECTED]>
> Subject: Re: XMLBeans ? is there a better approach
> To: axis-user@ws.apache.org
> Date: Friday, 1 August, 2008, 10:56 AM
>
>
>
>
> On Thu, Jul 31, 2008 at 2:31 PM, sri ram <[EMAIL PROTECTED]>wrote:
>
>>  Hi all,
>>  Can anyone give me the better approach of databinding that I have to
>> follow for my project.This project  has almost 396 method and can be more in
>> the upcoming releases, which are exposed as webservices.
>>  So while using XMLBeans  as databinding it created many .java and xsb
>> files .
>> These files take ,quite a long time to get compiled and sometimes have
>> OutOfMemoryException and we have to set out heap size to get rid of this
>> exception.
>> Once the aar file is deployed into the server and send a SOAP request ,the
>> Axis Servlet takes more time to get initialized which is one of the main
>> performance drawback.
>>   So can any one suggest a better databinding to  have better
>> performance  as a whole A databinding which can give 100% schema
>> support,Quick response and Quick initialization of the servlet.
>
>
> try to use ADB or jaxbri
>
> thanks
> Amila.
>
>>
>>
>> Thanks And Regards
>> Sriram P
>>
>>
>>
>> .
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> Unlimited freedom, unlimited storage. Get it 
>> now
>
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>
>
> --
> Unlimited freedom, unlimited storage. Get it 
> now
>



-- 
Amila Suriarachchi,
WSO2 Inc.


Re: [AXIS2] Developping a proxy WS

2008-08-01 Thread pierre . casenove
Hi,
Thanks a lot for the answer.
I will dive into synapse (as a .mar as I don't want to modify the current 
web app).

Pierre



"keith chapman" <[EMAIL PROTECTED]> 
01/08/2008 10:08
Veuillez répondre à
axis-user@ws.apache.org


A
axis-user@ws.apache.org
cc

Objet
Re: [AXIS2] Developping a proxy WS






See comments inline.

On Fri, Aug 1, 2008 at 1:03 PM, <[EMAIL PROTECTED]> wrote:

Hello all, 
I have a technical/architectural question around web services and axis2. 
I need to deploy a web service that will be hosted in a web app using 
Axis2 (performing some additional treatments). 
This web service would act almost as a proxy: receiving client request 
checking coherency of the data and resending the request with some more 
information (information that were in the soap header of the client 
request would be in the soap body) to a .Net web service hosted on IIS. 
My first thought was to use Axis2 to generate the web service code and the 
client code and perform the checks and proxying myself. 
But It seems that synapse can perform this kind of service. 
What solution is better? 

Synapse is the way to go for this scenario. You may also wanna look at 
WSO2 ESB [1] which is built on top of Synapse and is available under the 
Apache License. 

Is it possible to embed synapse into axis2? 

Actually synapse embeds Axis2. But the reverse is also possible to deploy 
synapse as a Axis2 module. 


Additionnaly, does synapse perform such proxying (I might ask this on 
synapse mailing list, but we never now, someone might have the answer)? 

Yes it supports proxy services.

Thanks,
Keith. 

 [1] http://wso2.org/projects/esb/java


thanks in advance for your help. 

Pierre

-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: XMLBeans ? is there a better approach

2008-08-01 Thread sri ram
Hi Amila ,
The other databindings provided by axis2 are ADB and  JIBX 
However XMLBeans provides 100% schema support which is a great advantage of 
using this databinding which may not be there in other databinding's .
So can any one please tell the advantages of other databindings.
Thanks And Regards
Sriram P
 
--- On Fri, 1/8/08, Amila Suriarachchi <[EMAIL PROTECTED]> wrote:
From: Amila Suriarachchi <[EMAIL PROTECTED]>
Subject: Re: XMLBeans ? is there a better approach
To: axis-user@ws.apache.org
Date: Friday, 1 August, 2008, 10:56 AM



On Thu, Jul 31, 2008 at 2:31 PM, sri ram <[EMAIL PROTECTED]> wrote:


Hi all,
 Can anyone give me the better approach of databinding that I have to 
follow for my project.This project  has almost 396 method and can be more in 
the upcoming releases, which are exposed as webservices.

 So while using XMLBeans  as databinding it created many .java and xsb 
files .
These files take ,quite a long time to get compiled and sometimes have 
OutOfMemoryException and we have to set out heap size to get rid of this 
exception.

Once the aar file is deployed into the server and send a SOAP request ,the Axis 
Servlet takes more time to get initialized which is one of the main performance 
drawback.
  So can any one suggest a better databinding to  have better performance  
as a whole A databinding which can give 100% schema support,Quick
 response and Quick initialization of the servlet.
try to use ADB or jaxbri

thanks
Amila. 




Thanks And Regards 
Sriram P
   


.
















   Unlimited freedom, unlimited storage. Get it now



-- 
Amila Suriarachchi,
WSO2 Inc.





  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

new to axis2 problem while using with tomcat6.0

2008-08-01 Thread sumit jindal
hello

i am new to axis2

i have created a simple dynamic web project

when i am using server as tomcat6.0 then it is not working

but when i use tomcat5.5 then it works

so i want to whether axis2 works with tomcat6.0 or not
and if it works then plz explain how it works

thanks

sumit jindal


Re: [AXIS2] Developping a proxy WS

2008-08-01 Thread sumit jindal
hello

i am new to axis2

i have created a simple dynamic web project

when i am using server as tomcat6.0 then it is not working

but when i use tomcat5.5 then it works

so i want to whether axis2 works with tomcat6.0 or not
and if it works then plz explain how it works

thanks

sumit jindal


Re: [AXIS2] Developping a proxy WS

2008-08-01 Thread keith chapman
See comments inline.

On Fri, Aug 1, 2008 at 1:03 PM, <[EMAIL PROTECTED]> wrote:

>
> Hello all,
> I have a technical/architectural question around web services and axis2.
> I need to deploy a web service that will be hosted in a web app using Axis2
> (performing some additional treatments).
> This web service would act almost as a proxy: receiving client request
> checking coherency of the data and resending the request with some more
> information (information that were in the soap header of the client request
> would be in the soap body) to a .Net web service hosted on IIS.
> My first thought was to use Axis2 to generate the web service code and the
> client code and perform the checks and proxying myself.
> But It seems that synapse can perform this kind of service.
> What solution is better?


Synapse is the way to go for this scenario. You may also wanna look at WSO2
ESB [1] which is built on top of Synapse and is available under the Apache
License.

Is it possible to embed synapse into axis2?


Actually synapse embeds Axis2. But the reverse is also possible to deploy
synapse as a Axis2 module.

>
>
> Additionnaly, does synapse perform such proxying (I might ask this on
> synapse mailing list, but we never now, someone might have the answer)?


Yes it supports proxy services.

Thanks,
Keith.

 [1] http://wso2.org/projects/esb/java

>
>
> thanks in advance for your help.
>
> Pierre
>

-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: - Axis2 Users -

2008-08-01 Thread Eran Chinthaka
>
>  Is Axis2 in Production?
>
Yes !!

>  If yes, for how long?
>
I guess at least for two years. Depends on the version.

>  Is there a place in Axis2 web site that lists companies that use Axis2 in
> Production?
>
I don't think we wanna do that. We don't wanna "market" Axis2 saying company
X uses it. AFAIK, there are lots of companies using it.

Our aim is to develop a better Web service engine to help the people using
it, but not to look/oversee who is using it.

If you really wanna get an idea, track the email addresses of the users
sending mails to the list and extract company name.


Re: how to get Axiom object from xml string?

2008-08-01 Thread Eran Chinthaka
OMElement documentElement = AXIOMUtil.stringToOM(xmlAsString)

On Thu, Jul 31, 2008 at 11:46 PM, Shehan Simen <[EMAIL PROTECTED]> wrote:

>  Hi,
>
> I have the OMElement saved as a xml string.
>
> I want to get the axiom object from this xml string.
>
> How to do this?
>
> Please send me the code snippet.
>
>
>
> Thx.
>



-- 
With Mettha,
Eran Chinthaka


Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada


[AXIS2] Developping a proxy WS

2008-08-01 Thread pierre . casenove
Hello all,
I have a technical/architectural question around web services and axis2. 
I need to deploy a web service that will be hosted in a web app using 
Axis2 (performing some additional treatments). 
This web service would act almost as a proxy: receiving client request 
checking coherency of the data and resending the request with some more 
information (information that were in the soap header of the client 
request would be in the soap body) to a .Net web service hosted on IIS.
My first thought was to use Axis2 to generate the web service code and the 
client code and perform the checks and proxying myself.
But It seems that synapse can perform this kind of service.
What solution is better?
Is it possible to embed synapse into axis2?

Additionnaly, does synapse perform such proxying (I might ask this on 
synapse mailing list, but we never now, someone might have the answer)?

thanks in advance for your help.

Pierre