Re: [axis2] custom configuration context

2008-01-18 Thread Sukma Agung Verdianto
 You should use file:///path/to/axis2.xml instead of //file:/path/to/axis2.xml

Regards,
Sukma

On 1/18/08, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'd like to create a custom configuration context from inside a service
> archive. The parameters (axis2.xml and repository) are contained into
> the aar file (or at least the custom axis2.xml).
> I've tried both the
> ConfigurationContextFactory.createConfigurationContextFromFileSystem and
> ConfigurationContextFactory.createConfigurationContextFromURIs, but they
> don't work as expected.
>
> This is the result when I use the first approach and my custom axis2.xml
> (worker_axis2.xml) is contained into the archive
>
> ERROR 16:30:35,124 (WorkerConfiguration.java:128) -
> org.apache.axis2.AxisFault: System can not find the given axis2.xml
> file:/work/michele/router/work/Catalina/localhost/axis2/axis227495RoutingService.aar!/ncl/qosp/controller/worker_axis2.xml
>
> The other approach fails in a similar way:
> ERROR 16:21:10,971 (WorkerConfiguration.java:127) -
> org.apache.axis2.AxisFault: invalid
> url:
> //file:/work/michele/router/work/Catalina/localhost/axis2/axis226240RoutingService.aar!/repository/
> (java.net.MalformedURLException: no protocol:
> //file:/work/michele/router/work/Catalina/localhost/axis2/axis226240RoutingService.aar)
>
>
> Any idea?
>
> Thanks,
> 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]



Re: Exceptions

2008-01-18 Thread Martin Gainty

Can you display or attach WSDL ?

Bedankt
Martin
  - Original Message - 
  From: [EMAIL PROTECTED] 
  To: axis-user@ws.apache.org 
  Sent: Thursday, January 17, 2008 10:23 AM
  Subject: Exceptions




  Hi,



  I am using WSDL2Java  tool to generate code.

  In the WSDL I am using an  UserDefinedException which I subclassed from 
AxisFault.



  In the  generated a clientcode , the operation in the ClientStub is throwing 
AxisFault and not my specific defined exception.

  The generated service skeleton is throwing the right Exception.



  Anyone knows how to solve this.



  Regards

  Dirk van Gameren

  ---

  Developer Consumer Finance

  ( Phone number: +31 (0)40 233 9586
  Ê Fax number: +31 (0)40 233 8655
  * E-mail: [EMAIL PROTECTED] 

  ---





The information transmitted via this e-mail is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from any computer.



Exceptions

2008-01-18 Thread D . H . T . M . Gameren
 

Hi,

 

I am using WSDL2Java  tool to generate code.

In the WSDL I am using an  UserDefinedException which I subclassed from
AxisFault.

 

In the  generated a clientcode , the operation in the ClientStub is
throwing AxisFault and not my specific defined exception.

The generated service skeleton is throwing the right Exception.

 

Anyone knows how to solve this.

 

Regards

Dirk van Gameren

---

Developer Consumer Finance

* Phone number: +31 (0)40 233 9586
* Fax number: +31 (0)40 233 8655
* E-mail: [EMAIL PROTECTED] 

---

 




The information transmitted via this e-mail is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from any computer.


Re: Resolving an issue of the deployment of wsdd using Axis in Command line

2008-01-18 Thread Subir S
I only suspect that the SPACE in your AXIS_HOME variables might be a
problem.
Why dont you try moving this Tomcat6 folder out of "Program Files". And then
updating your necessary environment variables accordingly.

Subir

On Jan 18, 2008 3:56 PM, Mar <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I've been running through the tutorials and keep hitting similar errors
> regarding accessing classes from within a Jar file.
>
> I'm trying to deploy the AdminService via the AdminClient as described
> in the tutorial.  I can access webservices via regular
> http://localhost:8080/axis/*.jws and access
> http://localhost:8080/axis/happyaxis.jsp which describes all the needed
> components as being installed and detected.
>
> Once I try and run the command to deploy the wsdd I get the following
> error: Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/axis/client/AdminClient
>
> This exception is trigged by the following command inside the folder
> (\axis\WEB-INF\classes\samples\stock):
> java -cp "%AXISCLASSPATH%" org.apache.axis.client.AdminClient
> -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
>
> My setup is as follows:
>
> I'm running Tomcat 6.0 and Axis 1_4 on an Windows XP installation.
>
> I've set my environment variables up in the following manner:
> Variable Name: AXIS_HOME
> Variable Value: C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\Axis1_4\axis-1_4
> Variable Name: AXIS_LIB
> Variable Value: %AXIS_HOME%\lib
> Variable Name: AXISCLASSPATH
> Variable Value:
> %AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar
> ;%AXIS_LIB%\commons-logging-1.0.4.jar
> ;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar
> ;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar
>
>
> NB: (I have changed the .jar files on commons-discovery.jar to
> commons-discovery-0.2.jar and on the commons-logging.jar to
> commons-logging-1.0.4.jar)
>
> The servlet setup on the web.xml file is the same as the defaulted
> web.xml in the Axis distribution.  This setup includes the Axis Admin
> Servlet and the servlet mapping.  servlet-class point to
> "org.apache.axis.transport.http.AdminServlet" and the servlet
> url-pattern in the servlet mapping pointing to "/servlet/AdminServlet".
>
> Once inside the AXIS_LIB folder, I can see all the .jar files that have
> been specified by the AXISCLASSPATH.
>
> In my project in Eclipse when importing
> org.apache.axis.client.AdminClient I can see there are methods for
> undeployment (undeployService() and undeployHandler()) but no specific
> methods listed for deployment.  Is this correct?
>
>
> Regarding the java.lang.NoClassDefFoundError, I understand why its
> happening but troubleshooting the issue is becoming problematic.  I've
> checked the locations of the environment variables and checked the
> commands that i'm running and the location with which i'm running.
>
> Can you help?
>
> Thanks,
> Martin
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [axis2] custom configuration context

2008-01-18 Thread Andreas Veithen

Michele,

How did you construct the URLs passed as arguments to  
createConfigurationContextFromURIs?
Can you also provide the stack trace of the  
java.net.MalformedURLException, or better the instruction in the  
source code that triggers this exception?


Andreas

On 18 Jan 2008, at 17:35, Michele Mazzucco wrote:


Hi all,

I'd like to create a custom configuration context from inside a  
service

archive. The parameters (axis2.xml and repository) are contained into
the aar file (or at least the custom axis2.xml).
I've tried both the
ConfigurationContextFactory.createConfigurationContextFromFileSystem  
and
ConfigurationContextFactory.createConfigurationContextFromURIs, but  
they

don't work as expected.

This is the result when I use the first approach and my custom  
axis2.xml

(worker_axis2.xml) is contained into the archive

ERROR 16:30:35,124 (WorkerConfiguration.java:128) -
org.apache.axis2.AxisFault: System can not find the given axis2.xml
file:/work/michele/router/work/Catalina/localhost/axis2/ 
axis227495RoutingService.aar!/ncl/qosp/controller/worker_axis2.xml


The other approach fails in a similar way:
ERROR 16:21:10,971 (WorkerConfiguration.java:127) -
org.apache.axis2.AxisFault: invalid
url: //file:/work/michele/router/work/Catalina/localhost/axis2/ 
axis226240RoutingService.aar!/repository/  
(java.net.MalformedURLException: no protocol: //file:/work/michele/ 
router/work/Catalina/localhost/axis2/axis226240RoutingService.aar)



Any idea?

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



Re: Urgent Help - disable xsd validation in axis 1.4

2008-01-18 Thread Gaurav Lall
I am not sure there is much  axis framework can help you with this , 
probably you will have to write custom servlet filter(assuming http) and 
modify the request to set the  mandatory fields in xml (just an idea )

Ramkumar Menon wrote:

Resending - Please let me know how to disable schema validation for axis 1.4.

ram

On 1/14/08, Ramkumar Menon <[EMAIL PROTECTED]> wrote:
  

Hi Gurus,

I am struggling with a specific issue described below in brief.

I have a doc/literal Web Service that accepts a Customer element in
its request and response.
The customer element is defined in an XML Schema imported into the
service WSDL.The customer element has a set of child elements,none of
which are defined as optional within the schema. [i.e. all mandatory].
I have the client generated using wsdl2java, and am populating the
Customer object and then invoking the web service at its mentioned
port.
For e.g.

customer.setName("asdsas");
customer.setCity("asdasd").
customer.setCountry("US").

..

invokeService(customer);


The axis layer naturally throws an exception while it tries to
serialize the java objects into XML, complaining that "customerId",
which is a mandatory field is null.
In fact, customerId is populated as a part of the response of the
invocation, and is never available prior to the invocation.

Is there a way to avoid this error altogether - assuming the following
constraints.
a) Calling program cannot do call a set API on all mandatory fields
with a dummy value to work around this error.
b) The Schema cannot be changed to ensure that these elements are optional.

So, the axis layer just needs to ignore the fact that though
customerId is mandatory, it just needs to continue processing even
through the caller did not set the customerId on the customer object.

--
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!

-Ramkumar Menon
 A typical Macroprocessor





  



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



Re: Webservice Client not working from inside Tomcat5

2008-01-18 Thread Martin Gainty
try

Requesting JSP->Servlet (Servlet constructs the AxisService call from supplied 
params which acts as AxisClient) ->AxisService
Response JSP <- Servlet (receives the params and populates response)
 <-AxisService 

M-
  - Original Message - 
  From: Callaway, Pamela 
  To: axis-user@ws.apache.org 
  Sent: Friday, January 18, 2008 3:36 PM
  Subject: Webservice Client not working from inside Tomcat5


  Hi folks,

   

  I am encountering a strange problem with my webservice client that I 
generated using wsdl2java.  It works fine from the command line or as a JUnit 
test, but when I try and use it from a JSP file, it doesn't return a result.  
Exactly the same code, no differences that I can find, except that I want to 
call it from the JSP and not a JUnit test case. 

   

   I am using Tomcat5 and Java 1.5, doing my development work on a windows box. 
 I wrapped the webservice up into a JAR file, which I'm then including in the 
web project, and I made a simple helper class so that I could use exactly the 
same code to call the webservice from the JUnit test cases or from the JSP.

   

  Any thoughts on why this could be?  I am really at my wits end.

   

  Thanks,

   

  Pam

   


Axis 1.2.1 and Weblogic 10

2008-01-18 Thread Scott
I have a web services application that uses Axis (I) with Tomcat 5.5.25. It 
works perfectly.

I've recently installed the application on WebLogic 10, but I am no longer able 
to connect. 

When I attempt my first call, I get a remote exception that says this: 

javax.xml.rpc.ServiceException: (401)Unauthorized


Also note that Axis appears to be installed correctly and is functioning, as I 
can invoke a service via http that returns me a list of deployed services.  
 
What authorization do I need to connect to the Axis servlet?  I'm sure I'm 
using the correct syntax when connecting to the AxisServlet.  Am I running into 
some kind of windows authentication issue that I see in some of the threads?  I 
am using Windows XP.  
 

Here is some of my wsdd:




























http://xml.apache.org/axis/wsdd/






Here is the last part:



















Any ideas?

Webservice Client not working from inside Tomcat5

2008-01-18 Thread Callaway, Pamela
Hi folks,

I am encountering a strange problem with my webservice client that I generated 
using wsdl2java.  It works fine from the command line or as a JUnit test, but 
when I try and use it from a JSP file, it doesn't return a result.  Exactly the 
same code, no differences that I can find, except that I want to call it from 
the JSP and not a JUnit test case.

 I am using Tomcat5 and Java 1.5, doing my development work on a windows box.  
I wrapped the webservice up into a JAR file, which I'm then including in the 
web project, and I made a simple helper class so that I could use exactly the 
same code to call the webservice from the JUnit test cases or from the JSP.

Any thoughts on why this could be?  I am really at my wits end.

Thanks,

Pam



Re: Urgent Help - disable xsd validation in axis 1.4

2008-01-18 Thread Ramkumar Menon
Resending - Please let me know how to disable schema validation for axis 1.4.

ram

On 1/14/08, Ramkumar Menon <[EMAIL PROTECTED]> wrote:
> Hi Gurus,
>
> I am struggling with a specific issue described below in brief.
>
> I have a doc/literal Web Service that accepts a Customer element in
> its request and response.
> The customer element is defined in an XML Schema imported into the
> service WSDL.The customer element has a set of child elements,none of
> which are defined as optional within the schema. [i.e. all mandatory].
> I have the client generated using wsdl2java, and am populating the
> Customer object and then invoking the web service at its mentioned
> port.
> For e.g.
>
> customer.setName("asdsas");
> customer.setCity("asdasd").
> customer.setCountry("US").
>
> ..
>
> invokeService(customer);
>
>
> The axis layer naturally throws an exception while it tries to
> serialize the java objects into XML, complaining that "customerId",
> which is a mandatory field is null.
> In fact, customerId is populated as a part of the response of the
> invocation, and is never available prior to the invocation.
>
> Is there a way to avoid this error altogether - assuming the following
> constraints.
> a) Calling program cannot do call a set API on all mandatory fields
> with a dummy value to work around this error.
> b) The Schema cannot be changed to ensure that these elements are optional.
>
> So, the axis layer just needs to ignore the fact that though
> customerId is mandatory, it just needs to continue processing even
> through the caller did not set the customerId on the customer object.
>
> --
> Shift to the left, shift to the right!
> Pop up, push down, byte, byte, byte!
>
> -Ramkumar Menon
>  A typical Macroprocessor
>


-- 
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!

-Ramkumar Menon
 A typical Macroprocessor

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



[axis2] AxisFault in ClientHandler

2008-01-18 Thread Michele Mazzucco
Hi all,


I'm using the NIO Sender and I've noticed this log on the server side

ERROR 16:59:13,020 (ClientHandler.java:334) - Unable to report back 202
Accepted state to the message receiver
org.apache.axis2.AxisFault: A message was added that is not valid.
However, the operation context was complete.
at
org.apache.axis2.description.InOutAxisOperation.addMessageContext(InOutAxisOperation.java:50)
at
org.apache.axis2.context.OperationContext.addMessageContext(OperationContext.java:210)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
at
org.apache.axis2.transport.nhttp.ClientHandler.responseReceived(ClientHandler.java:331)
at
org.apache.axis2.transport.nhttp.LoggingNHttpClientHandler.responseReceived(LoggingNHttpClientHandler.java:99)
at
org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:101)
at
org.apache.axis2.transport.nhttp.PlainClientIOEventDispatch.inputReady(PlainClientIOEventDispatch.java:71)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:68)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:160)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:145)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:127)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor
$Worker.run(AbstractMultiworkerIOReactor.java:162)
at java.lang.Thread.run(Thread.java:595)



The log states that the message is not valid... however the response is
very simple and it's created by this method:

 /**
 * Creates the result message.
 * 
 * @return  The result message.
 */
static final OMElement getResult(String service) {
OMNamespace omNs = factory.createOMNamespace(URI, service);

OMElement result = factory.createOMElement(RESULT, omNs);
OMElement value = factory.createOMElement(STATUS, omNs);
value.setText(OK);
result.addChild(value);

return result;
}


Any idea?
Michele



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



[axis2] custom configuration context

2008-01-18 Thread Michele Mazzucco
Hi all,

I'd like to create a custom configuration context from inside a service
archive. The parameters (axis2.xml and repository) are contained into
the aar file (or at least the custom axis2.xml).
I've tried both the 
ConfigurationContextFactory.createConfigurationContextFromFileSystem and
ConfigurationContextFactory.createConfigurationContextFromURIs, but they
don't work as expected.

This is the result when I use the first approach and my custom axis2.xml
(worker_axis2.xml) is contained into the archive

ERROR 16:30:35,124 (WorkerConfiguration.java:128) -
org.apache.axis2.AxisFault: System can not find the given axis2.xml
file:/work/michele/router/work/Catalina/localhost/axis2/axis227495RoutingService.aar!/ncl/qosp/controller/worker_axis2.xml

The other approach fails in a similar way:
ERROR 16:21:10,971 (WorkerConfiguration.java:127) -
org.apache.axis2.AxisFault: invalid
url: 
//file:/work/michele/router/work/Catalina/localhost/axis2/axis226240RoutingService.aar!/repository/
 (java.net.MalformedURLException: no protocol: 
//file:/work/michele/router/work/Catalina/localhost/axis2/axis226240RoutingService.aar)


Any idea?

Thanks,
Michele



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



Re: Ws-secureconversation rampart samples

2008-01-18 Thread José Ferreiro
Thank you so much for the interesting links. I appreciate it.


On Jan 18, 2008 1:31 PM, ahurtado <[EMAIL PROTECTED]> wrote:

>
> Precisely I'm trying this at this time, but most links you can get about
> interoperability-work between platforms (.net - java ) is shown using
> windows communication foundation + .net 3.0/3.5 in the .net side. If you
> need a choice in the client side, I think WCF is a better choice. In the
> case of server side, an api that can expose your policies as a mex (like
> https://wsit.dev.java.net/ metro , or axis-2 + some other configuration
> does), is a good candidate.
>
> About interoperability with wse-3.0 in the .net (client side), here is a
> link that can help you (take in mind that this service example does not
> show
> the secure conversation that you can enable with the wse-3.0 wizard:
> http://www.shellysaunders.co.uk/Blog/tabid/65/EntryID/2/Default.aspx
> http://www.shellysaunders.co.uk/Blog/tabid/65/EntryID/2/Default.aspx
> (this does not shown the flag establishSecurityContext enabled as you can,
> as described in the Hands On Labs of wse-3 about security:
>
> http://www.microsoft.com/Downloads/details.aspx?familyid=018A09FD-3A74-43C5-8EC1-8D789091255D&displaylang=en
> )
>
>
>
>
>
>
>
> José Ferreiro wrote:
> >
> > Hello,
> >
> > Do you think this configuration could work?
> >
> > Client  side : .net 2.0 wse 3.0, authentication using: x.509
> > server side : axis2, rampart + rahas, authentication using: x.509,
> >
> > Is there any example or article?
> >
> > Thank you in advance for your answers
> >
> >
> > On Jan 18, 2008 2:08 AM, ahurtado <[EMAIL PROTECTED]> wrote:
> >
> >>
> >> I have seen that for web service secure conversation:
> >>  + for axis1 there are some classes in wss4j and in wss4j-sandbox that
> >> indicates that "once upon a time" was some interest for do that (this
> is,
> >> enable axis 1 for secure conversation), but i have not found a concrete
> >> sample working doing this, specially if you want to integrate the web
> >> service with .net 2.0 + web service enhancements (wse-3.0), mantaining
> >> x.509
> >> security certificates enabled at the same time.
> >>  + for axis2, you can use rampart + rahas for this support, but the
> >> sample
> >> uses x.509, I think that you need to configure the services.xml of the
> >> sample to make it work with usernametoken (  section ). you
> >> can
> >> explore http://www.mssoapinterop.org/ilab/ to find some samples for
> write
> >> this section.
> >>
> >>
> >> Anil Misra wrote:
> >> >
> >> > Hi,
> >> >
> >> >  I have the same requirement and I see no reply to the question
> below,
> >> > if some has a sample please let me know.
> >> >
> >> > Thanks,
> >> > -Anil Misra
> >> >
> >> >
> >> > 
> >> > Hi Ruchith,
> >> >
> >> > Do you have please sample configuration where the base token in RST
> is
> >> > usernametoken instead of x509?
> >> >
> >> > Thank you,
> >> > Elena
> >> >
> >> > - Original Message 
> >> > From: Ruchith Fernando <[EMAIL PROTECTED]>
> >> > To: axis-user@ws.apache.org
> >> > Sent: Tuesday, February 13, 2007 9:25:28 AM
> >> > Subject: Re: Ws-secureconversation rampart samples
> >> >
> >> >
> >> > Hi Elena,
> >> >
> >> > Please have a look at "policy/sample04" in the samples directory of
> >> > the rampart-1.1 release.
> >> >
> >> > Thanks,
> >> > Ruchith
> >> >
> >> > On 2/11/07, Elena Neroslavskaya <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> Hello,
> >> >>
> >> >> I'm looking to implement an axis client establishing and canceling
> >> > security
> >> >> context
> >> >> with ws-secureconversation protocol. Do you have a code sample
> sending
> >> > RST,
> >> >> using context and cancelling it in Rampart?
> >> >>
> >> >>
> >> >> Any tutorial or sample will be very helpful,
> >> >>
> >> >> thank you in advance,
> >> >> Elena
> >> >>
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Ws-secureconversation-rampart-samples-tp14807694p14942019.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]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Ws-secureconversation-rampart-samples-tp14807694p14949166.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]
>
>


Resolving an issue of the deployment of wsdd using Axis in Command line

2008-01-18 Thread Mar

Hi,

I've been running through the tutorials and keep hitting similar errors 
regarding accessing classes from within a Jar file.


I'm trying to deploy the AdminService via the AdminClient as described 
in the tutorial.  I can access webservices via regular 
http://localhost:8080/axis/*.jws and access 
http://localhost:8080/axis/happyaxis.jsp which describes all the needed 
components as being installed and detected.


Once I try and run the command to deploy the wsdd I get the following 
error: Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/axis/client/AdminClient


This exception is trigged by the following command inside the folder 
(\axis\WEB-INF\classes\samples\stock):
java -cp "%AXISCLASSPATH%" org.apache.axis.client.AdminClient 
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd


My setup is as follows:

I'm running Tomcat 6.0 and Axis 1_4 on an Windows XP installation.

I've set my environment variables up in the following manner:
Variable Name: AXIS_HOME
Variable Value: C:\Program Files\Apache Software Foundation\Tomcat 
6.0\webapps\Axis1_4\axis-1_4

Variable Name: AXIS_LIB
Variable Value: %AXIS_HOME%\lib
Variable Name: AXISCLASSPATH
Variable Value: 
%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar 



NB: (I have changed the .jar files on commons-discovery.jar to 
commons-discovery-0.2.jar and on the commons-logging.jar to 
commons-logging-1.0.4.jar)


The servlet setup on the web.xml file is the same as the defaulted 
web.xml in the Axis distribution.  This setup includes the Axis Admin 
Servlet and the servlet mapping.  servlet-class point to 
"org.apache.axis.transport.http.AdminServlet" and the servlet 
url-pattern in the servlet mapping pointing to "/servlet/AdminServlet".


Once inside the AXIS_LIB folder, I can see all the .jar files that have 
been specified by the AXISCLASSPATH.


In my project in Eclipse when importing 
org.apache.axis.client.AdminClient I can see there are methods for 
undeployment (undeployService() and undeployHandler()) but no specific 
methods listed for deployment.  Is this correct?



Regarding the java.lang.NoClassDefFoundError, I understand why its 
happening but troubleshooting the issue is becoming problematic.  I've 
checked the locations of the environment variables and checked the 
commands that i'm running and the location with which i'm running.


Can you help?

Thanks,
Martin

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



WSSecurity using Rampart and EmbeddedKey

2008-01-18 Thread Jose Luis Alba
Hi All,

It's possible to encrypt a message using an embedded key (for symmetric 
encryption) and send that key using the transport key encryption? 

I have tried to do it with Rampart configuration using 
EmbeddedKeyName but the key 
is not sent.

Send and embedded key goes against specification?

Thanks all,

Jose Luis


   
-

Web Revelación Yahoo! 2007:
 Premio Favorita del Público - ¡Vota tu preferida!

Re: Ws-secureconversation rampart samples

2008-01-18 Thread ahurtado

Precisely I'm trying this at this time, but most links you can get about
interoperability-work between platforms (.net - java ) is shown using
windows communication foundation + .net 3.0/3.5 in the .net side. If you
need a choice in the client side, I think WCF is a better choice. In the
case of server side, an api that can expose your policies as a mex (like 
https://wsit.dev.java.net/ metro , or axis-2 + some other configuration
does), is a good candidate. 

About interoperability with wse-3.0 in the .net (client side), here is a
link that can help you (take in mind that this service example does not show
the secure conversation that you can enable with the wse-3.0 wizard: 
http://www.shellysaunders.co.uk/Blog/tabid/65/EntryID/2/Default.aspx
http://www.shellysaunders.co.uk/Blog/tabid/65/EntryID/2/Default.aspx 
(this does not shown the flag establishSecurityContext enabled as you can,
as described in the Hands On Labs of wse-3 about security:
http://www.microsoft.com/Downloads/details.aspx?familyid=018A09FD-3A74-43C5-8EC1-8D789091255D&displaylang=en
 
) 







José Ferreiro wrote:
> 
> Hello,
> 
> Do you think this configuration could work?
> 
> Client  side : .net 2.0 wse 3.0, authentication using: x.509
> server side : axis2, rampart + rahas, authentication using: x.509,
> 
> Is there any example or article?
> 
> Thank you in advance for your answers
> 
> 
> On Jan 18, 2008 2:08 AM, ahurtado <[EMAIL PROTECTED]> wrote:
> 
>>
>> I have seen that for web service secure conversation:
>>  + for axis1 there are some classes in wss4j and in wss4j-sandbox that
>> indicates that "once upon a time" was some interest for do that (this is,
>> enable axis 1 for secure conversation), but i have not found a concrete
>> sample working doing this, specially if you want to integrate the web
>> service with .net 2.0 + web service enhancements (wse-3.0), mantaining
>> x.509
>> security certificates enabled at the same time.
>>  + for axis2, you can use rampart + rahas for this support, but the
>> sample
>> uses x.509, I think that you need to configure the services.xml of the
>> sample to make it work with usernametoken (  section ). you
>> can
>> explore http://www.mssoapinterop.org/ilab/ to find some samples for write
>> this section.
>>
>>
>> Anil Misra wrote:
>> >
>> > Hi,
>> >
>> >  I have the same requirement and I see no reply to the question below,
>> > if some has a sample please let me know.
>> >
>> > Thanks,
>> > -Anil Misra
>> >
>> >
>> > 
>> > Hi Ruchith,
>> >
>> > Do you have please sample configuration where the base token in RST is
>> > usernametoken instead of x509?
>> >
>> > Thank you,
>> > Elena
>> >
>> > - Original Message 
>> > From: Ruchith Fernando <[EMAIL PROTECTED]>
>> > To: axis-user@ws.apache.org
>> > Sent: Tuesday, February 13, 2007 9:25:28 AM
>> > Subject: Re: Ws-secureconversation rampart samples
>> >
>> >
>> > Hi Elena,
>> >
>> > Please have a look at "policy/sample04" in the samples directory of
>> > the rampart-1.1 release.
>> >
>> > Thanks,
>> > Ruchith
>> >
>> > On 2/11/07, Elena Neroslavskaya <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hello,
>> >>
>> >> I'm looking to implement an axis client establishing and canceling
>> > security
>> >> context
>> >> with ws-secureconversation protocol. Do you have a code sample sending
>> > RST,
>> >> using context and cancelling it in Rampart?
>> >>
>> >>
>> >> Any tutorial or sample will be very helpful,
>> >>
>> >> thank you in advance,
>> >> Elena
>> >>
>> >
>> >
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Ws-secureconversation-rampart-samples-tp14807694p14942019.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]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Ws-secureconversation-rampart-samples-tp14807694p14949166.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: AW: Eclipse, wsdl2java and huge warnings

2008-01-18 Thread Mauro Molinari
The presence or absence of warnings may depend on the WSDL. For 
simplicity, Axis2 generator does not take care of ALL the possible cases 
not to write variables that may not be used: so, in certain 
circumstances, those variables may be written even if they won't be 
actually used in the following generated code.


This is my opinion, though. Anyway, as I stated before, warnings by 
themselves are not the source of a problem, they are simply annoying 
when you're developing using Eclipse or some other smart IDE that can 
detect them.


--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]

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



AW: Eclipse, wsdl2java and huge warnings

2008-01-18 Thread Weck, Andreas
I have one wsdl file which references three xsd files. The eclipse wizard 
generates me three java files EvbCallbackHandler.java, EvbStub.java and 
Hinweis.java. In the file EvbStub.java are round about 40 classes where 10 give 
me warnings.

For Example there is a class 'BriefkastenAbruf':
   public static class BriefkastenAbruf implements 
org.apache.axis2.databinding.ADBBean{ ...}
who have a subclass:
   public static class Factory{}
in this class there is the Method:
  public static BriefkastenAbruf parse(javax.xml.stream.XMLStreamReader 
reader) throws java.lang.Exception{
BriefkastenAbruf object = new BriefkastenAbruf();
int event;
java.lang.String nillableValue = null;
java.lang.String prefix ="";
java.lang.String namespaceuri ="";
...
  }
Eclipse show me the following warnings:
- The local variable event is never read
- The local variable nillableValue is never read
- The local variable prefix is never read
- The local variable namespaceuri is never read

the part in the xsd:
  

  

  
  

  

  

Andreas



 

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 18. Januar 2008 10:31
An: axis-user@ws.apache.org
Betreff: RE: Eclipse, wsdl2java and huge warnings

This is strange i don't get warnings.
I only use ADB not XMLBeans.

QName is the Qualifiedname , so the full name of the NameSpace including 
operation or schema,

In which class do you encounter this warnings? 

dirk

-Original Message-
From: Weck, Andreas [mailto:[EMAIL PROTECTED]
Sent: vrijdag 18 januari 2008 9:39
To: axis-user@ws.apache.org
Subject: AW: Eclipse, wsdl2java and huge warnings

I tried the Axis2_CodeGen_wizard_1.3.0, but if have still the same warnings: 

if i use ADB:
- The local variable event is never read
- The local variable handledAttributes is never read
- The local variable namespaceuri is never read
- The local variable nillableValue is never read
- The local variable prefix is never read
- The method writeAttribute(String, String, String, String, XMLStreamWriter) 
from the type [TYPE] is never used locally
- The method writeQName(QName, XMLStreamWriter) from the type [TYPE] is never 
used locally

BTW: What is QName?

if i use XMLBeans:
- The local variable [VARNAME] is never read
- The serializable class [NAME] does not declare a static final 
serialVersionUID field of type long
- The method [NAME] from the type [TYP] is never used locally

Regards,
Andreas

-Ursprüngliche Nachricht-

Maybe , you can use the Eclipse plugin
Axis2_CodeGen_wizard_1.3.0

It does the same. I am using it. It works fine.
You can use it ones and then build an ant-script to Regenerate.

This works without warnings.

Regards

Dirk

 

-Original Message-

Hi all,

i just downloaded the JDK 6 Update 4, axis2 1.3 and Eclipse 3.3. After that 
i've used the wsdl2java command-line tool to create the client classes.

wsdl2java -uri service.wsdl -u

Than i made a new java project in eclipse, with the options (compiler 
compliance level 1.4) and imported all the generated java files into it.
Now it have approximately 500 warnings!!! Mostley like "The local variable 
[VARNAME] is never read" (in can see the first 100 only)

Does anyone have any suggestions around suppressing/fixing these warnings?

Regards,
Andreas


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







The information transmitted via this e-mail is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from any computer.


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







The information transmitted via this e-mail is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from any computer.



Re: [axis2] DeploymentException during module deployment

2008-01-18 Thread Michele Mazzucco


On 18 Jan 2008, at 09:57, David Illsley wrote:

On Jan 18, 2008 9:53 AM, Michele Mazzucco  
<[EMAIL PROTECTED]> wrote:

David,

thanks very much, that did the job.

you're welcome


Michele


p.s. Wouldn't it be better to ignore lower/upper case?


XML in general is case sensitive, so it makes sense for us to stick  
to that.


Ok, but I remember writing that code for axis2 1.0 (probably) and at  
that time it was lower case. Now it's upper case and the error  
message is weird.



Regards,
Michele


Cheers,
David

-
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] DeploymentException during module deployment

2008-01-18 Thread David Illsley
On Jan 18, 2008 9:53 AM, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
> David,
>
> thanks very much, that did the job.
you're welcome
>
> Michele
>
>
> p.s. Wouldn't it be better to ignore lower/upper case?

XML in general is case sensitive, so it makes sense for us to stick to that.

Cheers,
David

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



Re: [axis2] DeploymentException during module deployment

2008-01-18 Thread Michele Mazzucco

David,

thanks very much, that did the job.


Michele


p.s. Wouldn't it be better to ignore lower/upper case?


On 17 Jan 2008, at 18:36, David Illsley wrote:


Michele,
You should use the fist approach, but I believe the inflow element is
actually InFlow
See the addressing module for an example [1].
David

[1] http://svn.apache.org/viewvc/webservices/axis2/trunk/java/ 
modules/addressing/src/META-INF/module.xml?revision=559011&view=markup


On Jan 17, 2008 6:13 PM, Michele Mazzucco  
<[EMAIL PROTECTED]> wrote:

I forgot to mention that the module is globally engaged.


Michele


On Thu, 2008-01-17 at 18:12 +, Michele Mazzucco wrote:

Hi all,

I have a problem with a module, the handler doesn't get called.

This is the module.xml

  
 
class="ncl.qosp.modules.manager.RouterDispatcher">

  
  
  


and this is the portion of axis2.xml

  





If the axis2.xml looks like this:
 
  
  
  
  
  
  


I get the following error, even if the class is indeed included  
into the

mar file
-bash-3.00$ jar tf ../webapps/axis2/WEB-INF/modules/routing.mar |  
grep

RouterDispatcher
ncl/qosp/modules/manager/RouterDispatcher.class



INFO: Initializing Coyote HTTP/1.1 on http-8081
Jan 17, 2008 6:10:27 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 888 ms
Jan 17, 2008 6:10:27 PM org.apache.catalina.core.StandardService  
start

INFO: Starting service Catalina
Jan 17, 2008 6:10:27 PM org.apache.catalina.core.StandardEngine  
start

INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Jan 17, 2008 6:10:27 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 17, 2008 6:10:28 PM org.apache.catalina.startup.HostConfig  
deployWAR

INFO: Deploying web application archive axis2.war
[ERROR] ncl.qosp.modules.manager.RouterDispatcher
org.apache.axis2.deployment.DeploymentException:
ncl.qosp.modules.manager.RouterDispatcher
at
org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:132)
at
org.apache.axis2.deployment.AxisConfigBuilder.processPhaseList 
(AxisConfigBuilder.java:405)

at
org.apache.axis2.deployment.AxisConfigBuilder.processPhaseOrders 
(AxisConfigBuilder.java:433)

at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig 
(AxisConfigBuilder.java:133)

at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfigurati 
on(DeploymentEngine.java:615)

at
org.apache.axis2.deployment.WarBasedAxisConfigurator. 
(WarBasedAxisConfigurator.java:146)

at
org.apache.axis2.transport.http.AxisServlet.initConfigContext 
(AxisServlet.java:500)

at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java: 
420)

at
org.apache.catalina.core.StandardWrapper.loadServlet 
(StandardWrapper.java:1105)

at
org.apache.catalina.core.StandardWrapper.load 
(StandardWrapper.java:932)

at
org.apache.catalina.core.StandardContext.loadOnStartup 
(StandardContext.java:3951)

at
org.apache.catalina.core.StandardContext.start 
(StandardContext.java:4225)

at
org.apache.catalina.core.ContainerBase.addChildInternal 
(ContainerBase.java:759)

at
org.apache.catalina.core.ContainerBase.addChild 
(ContainerBase.java:739)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java: 
524)

at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java: 
809)

at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java: 
698)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java: 
472)

at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent 
(HostConfig.java:310)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent 
(LifecycleSupport.java:119)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 
1021)

at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 
1013)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java: 
442)

at
org.apache.catalina.core.StandardService.start 
(StandardService.java:450)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java: 
709)
at org.apache.catalina.startup.Catalina.start 
(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at
org.apache.catalina.startup.Bootstrap

RE: Eclipse, wsdl2java and huge warnings

2008-01-18 Thread D . H . T . M . Gameren
This is strange i don't get warnings.
I only use ADB not XMLBeans.

QName is the Qualifiedname , so the full name of the NameSpace including 
operation or schema,

In which class do you encounter this warnings? 

dirk

-Original Message-
From: Weck, Andreas [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 18 januari 2008 9:39
To: axis-user@ws.apache.org
Subject: AW: Eclipse, wsdl2java and huge warnings

I tried the Axis2_CodeGen_wizard_1.3.0, but if have still the same warnings: 

if i use ADB:
- The local variable event is never read
- The local variable handledAttributes is never read
- The local variable namespaceuri is never read
- The local variable nillableValue is never read
- The local variable prefix is never read
- The method writeAttribute(String, String, String, String, XMLStreamWriter) 
from the type [TYPE] is never used locally
- The method writeQName(QName, XMLStreamWriter) from the type [TYPE] is never 
used locally

BTW: What is QName?

if i use XMLBeans:
- The local variable [VARNAME] is never read
- The serializable class [NAME] does not declare a static final 
serialVersionUID field of type long
- The method [NAME] from the type [TYP] is never used locally

Regards,
Andreas

-Ursprüngliche Nachricht-

Maybe , you can use the Eclipse plugin
Axis2_CodeGen_wizard_1.3.0

It does the same. I am using it. It works fine.
You can use it ones and then build an ant-script to Regenerate.

This works without warnings.

Regards

Dirk

 

-Original Message-

Hi all,

i just downloaded the JDK 6 Update 4, axis2 1.3 and Eclipse 3.3. After that 
i've used the wsdl2java command-line tool to create the client classes.

wsdl2java -uri service.wsdl -u

Than i made a new java project in eclipse, with the options (compiler 
compliance level 1.4) and imported all the generated java files into it.
Now it have approximately 500 warnings!!! Mostley like "The local variable 
[VARNAME] is never read" (in can see the first 100 only)

Does anyone have any suggestions around suppressing/fixing these warnings?

Regards,
Andreas


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







The information transmitted via this e-mail is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from any computer.


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







The information transmitted via this e-mail is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from any computer.


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



Wierd issue with tomcat - ServiceClient invocation timing out after 15 seconds

2008-01-18 Thread acmclellen

Hi,

I'm trying to call a web method that is expected to take 1min 10sec to
complete, but ServiceClient invoke method is timing out after 15 seconds
when running in a TomCat 5.5 container, but not when running as a junit
test. When running as a junit test, the ServiceClient waits long enough
(1min 10 sec) for the web method to return a result. I thought it may have
been an issue with TomCat 5.5, so I then installed v6, but the app still
timedout after 15 seconds under TomCat v6. The app is a web service using
Axis2 v1.3. I'm using jdk 5.

These are the options I've set on my ServiceClient instance:
options.setTimeOutInMilliSeconds(12);
options.setProperty(HTTPConstants.SO_TIMEOUT, 12);
options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, 12);
options.setCallTransportClieanup(true);

These are the settings in my axis2.xml file:
ConfigContextTimeoutInterval=35000
requestTimeout=45000 (within the transportReceiver element)

These are the settings in my server.xml file under ${TOMCAT_HOME}/conf
connectionTimeout=55000 (within the Connector element)

I've run out of ideas as to what I could try next to get this web method
call from timing out before 2 minutes.
I would really appreciate any help in getting this sorted.
Thanks,
Cheers,
Craig
-- 
View this message in context: 
http://www.nabble.com/Wierd-issue-with-tomcat---ServiceClient-invocation-timing-out-after-15-seconds-tp14948035p14948035.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]



AW: Eclipse, wsdl2java and huge warnings

2008-01-18 Thread Weck, Andreas
I tried the Axis2_CodeGen_wizard_1.3.0, but if have still the same warnings: 

if i use ADB:
- The local variable event is never read
- The local variable handledAttributes is never read
- The local variable namespaceuri is never read
- The local variable nillableValue is never read
- The local variable prefix is never read
- The method writeAttribute(String, String, String, String, XMLStreamWriter) 
from the type [TYPE] is never used locally
- The method writeQName(QName, XMLStreamWriter) from the type [TYPE] is never 
used locally

BTW: What is QName?

if i use XMLBeans:
- The local variable [VARNAME] is never read
- The serializable class [NAME] does not declare a static final 
serialVersionUID field of type long
- The method [NAME] from the type [TYP] is never used locally

Regards,
Andreas

-Ursprüngliche Nachricht-

Maybe , you can use the Eclipse plugin
Axis2_CodeGen_wizard_1.3.0

It does the same. I am using it. It works fine.
You can use it ones and then build an ant-script to Regenerate.

This works without warnings.

Regards

Dirk

 

-Original Message-

Hi all,

i just downloaded the JDK 6 Update 4, axis2 1.3 and Eclipse 3.3. After that 
i've used the wsdl2java command-line tool to create the client classes.

wsdl2java -uri service.wsdl -u

Than i made a new java project in eclipse, with the options (compiler 
compliance level 1.4) and imported all the generated java files into it.
Now it have approximately 500 warnings!!! Mostley like "The local variable 
[VARNAME] is never read" (in can see the first 100 only)

Does anyone have any suggestions around suppressing/fixing these warnings?

Regards,
Andreas


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







The information transmitted via this e-mail is intended only for the person or 
entity to which it is addressed and may contain confidential and/or privileged 
material.  Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon this information by persons or entities other 
than the intended recipient is prohibited. If you received this in error, 
please contact the sender and delete the material from any computer.


-
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: Ws-secureconversation rampart samples

2008-01-18 Thread José Ferreiro
Hello,

Do you think this configuration could work?

Client  side : .net 2.0 wse 3.0, authentication using: x.509
server side : axis2, rampart + rahas, authentication using: x.509,

Is there any example or article?

Thank you in advance for your answers


On Jan 18, 2008 2:08 AM, ahurtado <[EMAIL PROTECTED]> wrote:

>
> I have seen that for web service secure conversation:
>  + for axis1 there are some classes in wss4j and in wss4j-sandbox that
> indicates that "once upon a time" was some interest for do that (this is,
> enable axis 1 for secure conversation), but i have not found a concrete
> sample working doing this, specially if you want to integrate the web
> service with .net 2.0 + web service enhancements (wse-3.0), mantaining
> x.509
> security certificates enabled at the same time.
>  + for axis2, you can use rampart + rahas for this support, but the sample
> uses x.509, I think that you need to configure the services.xml of the
> sample to make it work with usernametoken (  section ). you
> can
> explore http://www.mssoapinterop.org/ilab/ to find some samples for write
> this section.
>
>
> Anil Misra wrote:
> >
> > Hi,
> >
> >  I have the same requirement and I see no reply to the question below,
> > if some has a sample please let me know.
> >
> > Thanks,
> > -Anil Misra
> >
> >
> > 
> > Hi Ruchith,
> >
> > Do you have please sample configuration where the base token in RST is
> > usernametoken instead of x509?
> >
> > Thank you,
> > Elena
> >
> > - Original Message 
> > From: Ruchith Fernando <[EMAIL PROTECTED]>
> > To: axis-user@ws.apache.org
> > Sent: Tuesday, February 13, 2007 9:25:28 AM
> > Subject: Re: Ws-secureconversation rampart samples
> >
> >
> > Hi Elena,
> >
> > Please have a look at "policy/sample04" in the samples directory of
> > the rampart-1.1 release.
> >
> > Thanks,
> > Ruchith
> >
> > On 2/11/07, Elena Neroslavskaya <[EMAIL PROTECTED]> wrote:
> >>
> >> Hello,
> >>
> >> I'm looking to implement an axis client establishing and canceling
> > security
> >> context
> >> with ws-secureconversation protocol. Do you have a code sample sending
> > RST,
> >> using context and cancelling it in Rampart?
> >>
> >>
> >> Any tutorial or sample will be very helpful,
> >>
> >> thank you in advance,
> >> Elena
> >>
> >
> >
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Ws-secureconversation-rampart-samples-tp14807694p14942019.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]
>
>