[Axis2] Using AndroMDA for Design and Development of Web-Services

2007-03-29 Thread Philipp Perner

Hi there,

Does anyone use AndroMDA for designing Web-Services?
Perhaps someone could provide some useful information or links, where i 
can start to gather knowledge for using AndroMDA and Web-Services!


just write everything that comes to your mind.
I would very much appreciate it...

cheers,

Philipp

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



AXIS2: Design of WSDL - Contract First?

2007-02-15 Thread Philipp Perner
After some searching in the internet about powerful design of wsdl 
files, I've been trying to download an eclipse plugin named jWSCF [0]
Unfortunately I didn't find a working link to download this zip file. 
Does anyone know something about wsdl-creation? I'd like to make use of 
an external xml scheme for the simple and complex types to create a 
wsdl-file...


any hints will be helpful

kind regards,

Philipp

[0] http://www.topxml.com/WSCF/WCF/re-12321_jWSCF_0_1.aspx

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



Re: Where is WSDL2Java

2006-12-14 Thread Philipp Perner

Try org.apache.axis.wsdl.WSDL2Java in axis.jar


Helen Stephanopoulos schrieb:

I have downloaded Axis 1.4, however, I cannot find where wsdl2java resides.

Thanks



Check out the all-new Yahoo! Mail beta 
http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta 
- Fire up a more powerful email and get things done faster. 



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



Re: MTOM Benchmarks

2006-12-13 Thread Philipp Perner

Hi Rodrigo,

Thanks for your quick and very useful reply. I would appreciate, if 
somebody else could join the discussion too.

Now I would like to comment on your comments. :)

Rodrigo Ruiz wrote:
* I think the benchmark is basically OK. I suppose you are measuring 
total round-trip times, aren't you?
I think so. What I understand as total round-trip time is from executing 
the stub until getting the response.
* You don't mention anything about mean times. Although a single 
execution may be enough for large attachments, for small ones it would 
be useful to repeat the invocation several times, and obtain means and 
deviations.
I tried every file size with 4 different file types: executable, jpeg, 
zip, xml
From these roundtrips I calculated the mean time - this is the one 
displayed

The deviation of the roundtrips can be neglected.
* Personally, my opinion is that having both, client and server, on 
the same host is not the most typical scenario, but I think it still 
must be included in any benchmark, as it has its own particularities. 
I will come back to this later.
For development purposes I don't have the possibilities to test in a 
distributed area. But in near future I can provide data of real remote 
invocation.
* In order to ensure that the results can be compared, sooner or later 
a common source code should be used. This one smells to a project ;-)
You are absolutely right. I can provide my wsdl file, to give other 
people the chance to test it.
* You have not included information about your disk in your 
configuration. As you are writing the attachment to disk, its 
characteristics are relevant (IDE / SATA, rpm, and the like). 
Depending on the OS, the filesystem should be also specified.

Ok, you are right. Here is some data:

Chipset  Intel 945G
CPU Name  Intel Pentium 4
CPU MHz 3200
No. of processors  1
System Bus  533 MHz FSB
Memory  1024 MB DDR2 SD-RAM
HDD SATA-II 80GB 7200 rpm
Filesystem NTFS
LAN  Broadcom BCM5751, 1000 Mbit/s
OS Windows2000 SP4

* TCP/IP stack implementations are totally different between OSs, and 
the same can be said about disk I/O. It also influence the default JVM 
settings.

TCP/IP Stack implementations?
Concerning disc I/O:
write speed average: 22,37 MB/s
read speed average: 1342,09 MB/s
* The JVM version is another important field to include in the 
configuration. And also its configuration flags (GC policies, etc.)
The axis server runs on j2sdk1.4.2 whereas my client application , i.e. 
a second tomcat web application for upload, runs on jdk1.5.0_08
Due to Java Heap Space errors, I started the axis2 client with the java 
option -Xms128M -Xmx1024M



* Just for curiosity, do you really have 1028MB, or is it an errata? :-D

of course not ;) 1024
* The file sizes look a bit arbitrary. Maybe it would be better to use 
nicer sizes ;-)
I took sizes of files I found on my computer in the types I mentioned 
above. And so these sizes occurred
* The times you have obtained show a rather poor performance. I am 
just guessing now but, does your client get the attachment data from a 
file?

You are right i'm reading and writing from the same hard disc.
Reading and writing on the same disk may be the cause for these long 
times. If this is the case, you could try to generate the data on the 
fly and see how the figures change. You are using rather small sizes, 
so you could use in-memory byte arrays with random data.

That's a good idea
Hey, this seems to me a very good subject to work on, specially now 
that SPEC has cancelled its web service benchmark project (AppPlatform).

That was my intention. Do you have some benchmarks I can compare to mine?
What do you mean with publishing in a wiki? Is there already existing a 
wiki we can publish our results?


thanks for your very useful comments,

cheers Philipp


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



Re: MTOM Benchmarks

2006-12-13 Thread Philipp Perner

you are right.

I missed this significant property.
I'm just working on benchmarks concerning outflow security of the client 
including:

-) optimizeParts
-) encryptionSymAlgorithm
-) encryptionKeyTransportAlgorithm

like provided here [0]

cheers, 
Philipp


[0] http://ws.apache.org/axis2/modules/rampart/1_0/security-module.html



Paul Fremantle schrieb:

Philipp

One more question. Are you using the ability of Axis2 to stream the
file directly to disk?

parameter name=cacheAttachments locked=falsetrue/parameter
parameter name=attachmentDIR locked=false/temp/parameter
parameter name=sizeThreshold locked=false4000/parameter

Paul

On 12/13/06, Philipp Perner [EMAIL PROTECTED] wrote:

Hi Rodrigo,

Thanks for your quick and very useful reply. I would appreciate, if
somebody else could join the discussion too.
Now I would like to comment on your comments. :)

Rodrigo Ruiz wrote:
 * I think the benchmark is basically OK. I suppose you are measuring
 total round-trip times, aren't you?
I think so. What I understand as total round-trip time is from executing
the stub until getting the response.
 * You don't mention anything about mean times. Although a single
 execution may be enough for large attachments, for small ones it would
 be useful to repeat the invocation several times, and obtain means and
 deviations.
I tried every file size with 4 different file types: executable, jpeg,
zip, xml
 From these roundtrips I calculated the mean time - this is the one
displayed
The deviation of the roundtrips can be neglected.
 * Personally, my opinion is that having both, client and server, on
 the same host is not the most typical scenario, but I think it still
 must be included in any benchmark, as it has its own particularities.
 I will come back to this later.
For development purposes I don't have the possibilities to test in a
distributed area. But in near future I can provide data of real remote
invocation.
 * In order to ensure that the results can be compared, sooner or later
 a common source code should be used. This one smells to a project ;-)
You are absolutely right. I can provide my wsdl file, to give other
people the chance to test it.
 * You have not included information about your disk in your
 configuration. As you are writing the attachment to disk, its
 characteristics are relevant (IDE / SATA, rpm, and the like).
 Depending on the OS, the filesystem should be also specified.
Ok, you are right. Here is some data:

Chipset  Intel 945G
CPU Name  Intel Pentium 4
CPU MHz 3200
No. of processors  1
System Bus  533 MHz FSB
Memory  1024 MB DDR2 SD-RAM
HDD SATA-II 80GB 7200 rpm
Filesystem NTFS
LAN  Broadcom BCM5751, 1000 Mbit/s
OS Windows2000 SP4

 * TCP/IP stack implementations are totally different between OSs, and
 the same can be said about disk I/O. It also influence the default JVM
 settings.
TCP/IP Stack implementations?
Concerning disc I/O:
write speed average: 22,37 MB/s
read speed average: 1342,09 MB/s
 * The JVM version is another important field to include in the
 configuration. And also its configuration flags (GC policies, etc.)
The axis server runs on j2sdk1.4.2 whereas my client application , i.e.
a second tomcat web application for upload, runs on jdk1.5.0_08
Due to Java Heap Space errors, I started the axis2 client with the java
option -Xms128M -Xmx1024M

 * Just for curiosity, do you really have 1028MB, or is it an 
errata? :-D

of course not ;) 1024
 * The file sizes look a bit arbitrary. Maybe it would be better to use
 nicer sizes ;-)
I took sizes of files I found on my computer in the types I mentioned
above. And so these sizes occurred
 * The times you have obtained show a rather poor performance. I am
 just guessing now but, does your client get the attachment data from a
 file?
You are right i'm reading and writing from the same hard disc.
 Reading and writing on the same disk may be the cause for these long
 times. If this is the case, you could try to generate the data on the
 fly and see how the figures change. You are using rather small sizes,
 so you could use in-memory byte arrays with random data.
That's a good idea
 Hey, this seems to me a very good subject to work on, specially now
 that SPEC has cancelled its web service benchmark project 
(AppPlatform).
That was my intention. Do you have some benchmarks I can compare to 
mine?

What do you mean with publishing in a wiki? Is there already existing a
wiki we can publish our results?

thanks for your very useful comments,

cheers Philipp


-
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: MTOM Benchmarks

2006-12-13 Thread Philipp Perner

and i use caching

Philipp Perner schrieb:

you are right.

I missed this significant property.
I'm just working on benchmarks concerning outflow security of the 
client including:


-) optimizeParts
-) encryptionSymAlgorithm
-) encryptionKeyTransportAlgorithm

like provided here [0]

cheers, Philipp

[0] http://ws.apache.org/axis2/modules/rampart/1_0/security-module.html



Paul Fremantle schrieb:

Philipp

One more question. Are you using the ability of Axis2 to stream the
file directly to disk?

parameter name=cacheAttachments locked=falsetrue/parameter
parameter name=attachmentDIR locked=false/temp/parameter
parameter name=sizeThreshold locked=false4000/parameter

Paul

On 12/13/06, Philipp Perner [EMAIL PROTECTED] wrote:

Hi Rodrigo,

Thanks for your quick and very useful reply. I would appreciate, if
somebody else could join the discussion too.
Now I would like to comment on your comments. :)

Rodrigo Ruiz wrote:
 * I think the benchmark is basically OK. I suppose you are measuring
 total round-trip times, aren't you?
I think so. What I understand as total round-trip time is from 
executing

the stub until getting the response.
 * You don't mention anything about mean times. Although a single
 execution may be enough for large attachments, for small ones it 
would
 be useful to repeat the invocation several times, and obtain means 
and

 deviations.
I tried every file size with 4 different file types: executable, jpeg,
zip, xml
 From these roundtrips I calculated the mean time - this is the one
displayed
The deviation of the roundtrips can be neglected.
 * Personally, my opinion is that having both, client and server, on
 the same host is not the most typical scenario, but I think it still
 must be included in any benchmark, as it has its own particularities.
 I will come back to this later.
For development purposes I don't have the possibilities to test in a
distributed area. But in near future I can provide data of real 
remote

invocation.
 * In order to ensure that the results can be compared, sooner or 
later

 a common source code should be used. This one smells to a project ;-)
You are absolutely right. I can provide my wsdl file, to give other
people the chance to test it.
 * You have not included information about your disk in your
 configuration. As you are writing the attachment to disk, its
 characteristics are relevant (IDE / SATA, rpm, and the like).
 Depending on the OS, the filesystem should be also specified.
Ok, you are right. Here is some data:

Chipset  Intel 945G
CPU Name  Intel Pentium 4
CPU MHz 3200
No. of processors  1
System Bus  533 MHz FSB
Memory  1024 MB DDR2 SD-RAM
HDD SATA-II 80GB 7200 rpm
Filesystem NTFS
LAN  Broadcom BCM5751, 1000 Mbit/s
OS Windows2000 SP4

 * TCP/IP stack implementations are totally different between OSs, and
 the same can be said about disk I/O. It also influence the default 
JVM

 settings.
TCP/IP Stack implementations?
Concerning disc I/O:
write speed average: 22,37 MB/s
read speed average: 1342,09 MB/s
 * The JVM version is another important field to include in the
 configuration. And also its configuration flags (GC policies, etc.)
The axis server runs on j2sdk1.4.2 whereas my client application , i.e.
a second tomcat web application for upload, runs on jdk1.5.0_08
Due to Java Heap Space errors, I started the axis2 client with the java
option -Xms128M -Xmx1024M

 * Just for curiosity, do you really have 1028MB, or is it an 
errata? :-D

of course not ;) 1024
 * The file sizes look a bit arbitrary. Maybe it would be better to 
use

 nicer sizes ;-)
I took sizes of files I found on my computer in the types I mentioned
above. And so these sizes occurred
 * The times you have obtained show a rather poor performance. I am
 just guessing now but, does your client get the attachment data 
from a

 file?
You are right i'm reading and writing from the same hard disc.
 Reading and writing on the same disk may be the cause for these long
 times. If this is the case, you could try to generate the data on the
 fly and see how the figures change. You are using rather small sizes,
 so you could use in-memory byte arrays with random data.
That's a good idea
 Hey, this seems to me a very good subject to work on, specially now
 that SPEC has cancelled its web service benchmark project 
(AppPlatform).
That was my intention. Do you have some benchmarks I can compare to 
mine?

What do you mean with publishing in a wiki? Is there already existing a
wiki we can publish our results?

thanks for your very useful comments,

cheers Philipp


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








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





-
To unsubscribe, e-mail

MTOM Benchmarks

2006-12-12 Thread Philipp Perner

Hi,

Does anyone have benchmarks of the current releases, when trying to use 
SwA with MTOM?

Many people wrote, that they transfer files with up to 100MB.
But what are the performances of these web-services? And what 
configuration, web-server and hardware do they use?


To start this topic, I would like to post some figures I came up using 
my webService:
My Web-Service receives a datahandler which is written to harddisc. 
After successfull writing it sends a string success back to the client.

Both, client and server, are localhost.

Web-Server: Apache Tomcat 5.0.28
Version of Axis: Apache Axis2 1.1
Used Modules: Apache Rampart 1.1
Databinding: ADB
Attachment Type: Base64Binary
Hardware: Intel P4 3.2 GHz with 1028MB Ram
Java Key Stores: service.jks and client.jks from rampart samples

Here are the benchmarks:
no rampart items:
size 10 kb: 188ms
size 2753kb: 15.183 sec
size 14214 kb: 81.001 sec

rampart items: timestamp signature
size 10 kb: 242ms
size 2753kb: 13.594 sec
size 14214 kb: 108.829 sec

rampart items: timestamp signature encrypt
size 10 kb: 297 ms
size 2753kb: 19,484 sec
size 14214 kb: 173,579 sec

I would appreciate if someone could send some benchmarks, or at least 
comment on my figures.
Are these usual transaction times? Which times occur when sending files 
up to 100MB?


cheers,

Philipp


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



Re: out of memory issues. Can MTOM help ?

2006-12-11 Thread Philipp Perner

Hi,

Do you have already a solution for this problem?
I'm facing the same problem, that I get the following error transferring 
files greater than 2,5 Mb:


2006-12-11 15:17:18 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception

java.lang.OutOfMemoryError: Java heap space

Can someone comment, on the issue how to transfer files greater than 
mentioned above? Is the memory allocation for example in JAVA_OPTS the 
only clue?


kr,

Philipp

Marcel Casado schrieb:

Hi,

I have a service that extracts data from a sql table and builds 
objects from the results and then sends them back to the client. I use 
ADB but I'm running out of memory for large query results.  I'm 
running the service onTomcat and I setup setenv JAVA_OPTS -Xmx1024m 
-Xms1024m .What  I can do for large soap body messages ? Should the 
use of  MTOM help me whit memory problems? Does any body an example of 
using MTOM to handle big XML objects ?


I already took a look to the MTOM tutorial but is still not clear to 
me if this will solve the problem.


Thanks, 
Marcel


-
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: Serialize objects

2006-12-07 Thread Philipp Perner

When you use axis 1.4 You should insert typemapping in your wsdd file.
For java bean classes you could use the the element beanmapping instead 
of the element typemapping. The difference is, that beanmapping uses 
fixed (De-)Serializers (i.e. 
org.apache.axis.encoding.ser.BeanSerializerFactory, 
org.apache.axis.encoding.ser.BeanDeserializerFactory)


For example:

service ...
   parameter name=classname value=.../
   parameter name=allowedmethods value=getTitle getDetails/

   beanMapping xmlns:ns=yournamespace
  qname=ns:Classname
  type=java:fullClasspath /

hth,

Philipp


Espen Falkevik schrieb:

Hi.
Just a newbie question.

I'm using Weblogic and Axis 1.4. I have a webservice which will take a Custom 
class object as an input and another Custom class object as output.

I use Java2WSDL to generate the WSDL file, and then i use this WSDL file with 
WSDL2Java to generate stubs and wsdd files.

Where do I set the mapping so that I can use the objects? (I get the following 
exception: java.io.IOException: No serializer found for class 
com.edb.om.dto.order.CustomerDetailDTO in registry [EMAIL PROTECTED])

-Espen







_
Alt i én. Få Yahoo! Mail med adressekartotek, kalender og
notisblokk. http://no.mail.yahoo.com

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


  


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



parts of attachments are missing

2006-12-07 Thread Philipp Perner

Hi,

When I try to upload a file with a webService using MTOM I always 
encounter the problem, that the file is incomplete. For example: A text 
file like catalina.policy (with 7kb) is transferred, and saved by the 
webservice to catalina2.policy - But due to unknown reasons the 
beginning of the file is missing (see attached)


I even tried to cache the files with the following options, but the 
result is the same:


_stub._getServiceClient().getOptions().setProperty(Constants.Configuration.ENABLE_MTOM, 
Constants.VALUE_TRUE);

_stub._getServiceClient().getOptions().setProperty(Constants.Configuration.CACHE_ATTACHMENTS,Constants.VALUE_TRUE);
_stub._getServiceClient().getOptions().setProperty(Constants.Configuration.ATTACHMENT_TEMP_DIR, 
c:/temp/);
_stub._getServiceClient().getOptions().setProperty(Constants.Configuration.FILE_SIZE_THRESHOLD, 
0);


if this is important: I am using base64Binary data type for the file and 
adb for databinding.


Does anyone know, why this happens?
I would appreciate every hint...

cheers, Philipp



// 
// catalina.corepolicy - Security Policy Permissions for Tomcat 5
//
// This file contains a default set of security policies to be enforced (by the
// JVM) when Catalina is executed with the -security option.  In addition
// to the permissions granted here, the following additional permissions are
// granted to the codebase specific to each web application:
//
// * Read access to the document root directory
//
// $Id: catalina.policy,v 1.11 2004/03/02 12:36:22 remm Exp $
// 


// == SYSTEM CODE PERMISSIONS =


// These permissions apply to javac
grant codeBase file:${java.home}/lib/- {
permission java.security.AllPermission;
};

// These permissions apply to all shared system extensions
grant codeBase file:${java.home}/jre/lib/ext/- {
permission java.security.AllPermission;
};

// These permissions apply to javac when ${java.home] points at $JAVA_HOME/jre
grant codeBase file:${java.home}/../lib/- {
permission java.security.AllPermission;
};

// These permissions apply to all shared system extensions when
// ${java.home} points at $JAVA_HOME/jre
grant codeBase file:${java.home}/lib/ext/- {
permission java.security.AllPermission;
};


// == CATALINA CODE PERMISSIONS ===


// These permissions apply to the launcher code
grant codeBase file:${catalina.home}/bin/commons-launcher.jar {
permission java.security.AllPermission;
};

// These permissions apply to the daemon code
grant codeBase file:${catalina.home}/bin/commons-daemon.jar {
permission java.security.AllPermission;
};

// These permissions apply to the commons-logging API
grant codeBase file:${catalina.home}/bin/commons-logging-api.jar {
permission java.security.AllPermission;
};

// These permissions apply to the server startup code
grant codeBase file:${catalina.home}/bin/bootstrap.jar {
permission java.security.AllPermission;
};

// These permissions apply to the JMX server
grant codeBase file:${catalina.home}/bin/jmx.jar {
permission java.security.AllPermission;
};

// These permissions apply to the servlet API classes
// and those that are shared across all class loaders
// located in the common directory
grant codeBase file:${catalina.home}/common/- {
permission java.security.AllPermission;
};

// These permissions apply to the container's core code, plus any additional
// libraries installed in the server directory
grant codeBase file:${catalina.home}/server/- {
permission java.security.AllPermission;
};

// == WEB APPLICATION PERMISSIONS =


// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
// and JndiPermission for all files and directories in its document root.
grant { 
// Required for JNDI lookup of named JDBC DataSource's and
// javamail named MimePart DataSource used to send mail
permission java.util.PropertyPermission java.home, read;
permission java.util.PropertyPermission java.naming.*, read;
permission java.util.PropertyPermission javax.sql.*, read;

// OS Specific properties to allow read access
permission java.util.PropertyPermission os.name, read;
permission java.util.PropertyPermission os.version, read;
permission java.util.PropertyPermission os.arch, read;
permission java.util.PropertyPermission file.separator, read;
permission java.util.PropertyPermission path.separator, read;
permission java.util.PropertyPermission line.separator, read;

// JVM properties to allow read access
permission java.util.PropertyPermission java.version, read;
permission java.util.PropertyPermission 

Re: java.lang.ClassCastException

2006-12-07 Thread Philipp Perner

What came first to my mind is:

Try
OrderAttributeTO ob = 
(OrderAttributeTO)iOrderPresentation.findOrderDetails(2);
instead of
OrderAttributeTO ob = iOrderPresentation.findOrderDetails(2); //GET THE ERROR 
HERE

I didn't try, but perhaps that's the problem. Which databinding and version of axis2 do you use? 


Espen Falkevik schrieb:


Hi.
I have a webservice with that takes a string in and returns a object. When I 
use my client I get the followin exception:
When I use my client (which uses the stub files generated by WSDL2Java) I get 
the following exception:

Exception in thread main java.lang.ClassCastException: ws.OrderAttributeTO

at 
ws.PresentSoapBindingStub.findOrderDetails(PresentSoapBindingStub.java:165)

at webservice.PresentationClient.main(PresentationClient.java:31)

Any help would be appreciated



I use the Java2WSDL to generate the wsdl file (attached below):
?xml version=1.0 encoding=UTF-8?

!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)--
 wsdl:types
  
   http://schemas.xmlsoap.org/soap/encoding//

   complexType name=OrderAttributeTO
sequence
 element name=name nillable=true type=soapenc:string/
 element name=value nillable=true type=soapenc:string/
/sequence
   /complexType
  /schema
 /wsdl:types

   wsdl:message name=findOrderDetailsResponse

  wsdl:part name=findOrderDetailsReturn type=tns2:OrderAttributeTO/

   /wsdl:message

   wsdl:message name=findOrderDetailsRequest

  wsdl:part name=in0 type=soapenc:string/

   /wsdl:message

   wsdl:portType name=IOrderPresentation

  wsdl:operation name=findOrderDetails parameterOrder=in0

 wsdl:input message=impl:findOrderDetailsRequest 
name=findOrderDetailsRequest/

 wsdl:output message=impl:findOrderDetailsResponse 
name=findOrderDetailsResponse/

  /wsdl:operation

   /wsdl:portType

   wsdl:binding name=presentSoapBinding type=impl:IOrderPresentation

  http://schemas.xmlsoap.org/soap/http/

  wsdl:operation name=findOrderDetails

 wsdlsoap:operation soapAction=/

 wsdl:input name=findOrderDetailsRequest




 /wsdl:input

 wsdl:output name=findOrderDetailsResponse




 /wsdl:output

  /wsdl:operation

   /wsdl:binding

   wsdl:service name=IOrderPresentationService

  wsdl:port binding=impl:presentSoapBinding name=present

 http://localhost:7001/axis/services/present/

  /wsdl:port

   /wsdl:service

/wsdl:definitions




My presentation client:
ws.IOrderPresentationService service = new 
ws.IOrderPresentationServiceLocator();


// Now use the service to get a stub which implements the SDI.
ws.IOrderPresentation iOrderPresentation = service.getpresent();

// Make the actual call   
OrderAttributeTO ob = iOrderPresentation.findOrderDetails(2); //GET THE ERROR HERE



The PresentSoapBindingStub.java: (the exception happens when returning the 
object (in the catch at the bottom of the code)

/**
 * PresentSoapBindingStub.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package presentation;

public class PresentSoapBindingStub extends org.apache.axis.client.Stub 
implements presentation.IOrderPresentation {
private java.util.Vector cachedSerClasses = new java.util.Vector();
private java.util.Vector cachedSerQNames = new java.util.Vector();
private java.util.Vector cachedSerFactories = new java.util.Vector();
private java.util.Vector cachedDeserFactories = new java.util.Vector();

static org.apache.axis.description.OperationDesc [] _operations;

static {
_operations = new org.apache.axis.description.OperationDesc[1];
_initOperationDesc1();
}

private static void _initOperationDesc1(){
org.apache.axis.description.OperationDesc oper;
org.apache.axis.description.ParameterDesc param;
oper = new org.apache.axis.description.OperationDesc();
oper.setName(findOrderDetails);
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName(, 
in0), org.apache.axis.description.ParameterDesc.IN, new 
javax.xml.namespace.QName(http://schemas.xmlsoap.org/soap/encoding/;, string), 
java.lang.String.class, false, false);
oper.addParameter(param);
oper.setReturnType(new javax.xml.namespace.QName(http://order.dto.om.edb.com;, 
OrderAttributeTO));
oper.setReturnClass(com.edb.om.dto.order.OrderAttributeTO.class);
oper.setReturnQName(new javax.xml.namespace.QName(, 
findOrderDetailsReturn));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[0] = oper;

}

public PresentSoapBindingStub() throws org.apache.axis.AxisFault {
 this(null);
}

public PresentSoapBindingStub(java.net.URL endpointURL, 

Re: parts of attachments are missing

2006-12-07 Thread Philipp Perner

Got it!
If anyone encounters the same problem, here's the solution:

I'm using a Struts FormFile for uploading a file. To get the FormFile as 
DataHandler the following steps are necessary:


byte[] bytes = uploadForm.getTheFile().getFileData();
ByteArrayDataSource dataSource = new ByteArrayDataSource(bytes, 
uploadForm.getTheFile().getContentType());

DataHandler dataHandler = new DataHandler(dataSource);

Looks easy, but it was a little bit tricky, because 
org.apache.struts.upload.FormFile is different to java.io.File and I had 
to work with byte[]


The problem was that I used generated the dataHandler like this in my 
first attempt:


InputStream is = (uploadForm.getTheFile().getInputStream());
MimeBodyPart mbP = new MimeBodyPart(is);
uploadFile.setBinaryData(mbP.getDataHandler());

That's simply wrong...

hth,

Philipp


Philipp Perner schrieb:

Hi,

When I try to upload a file with a webService using MTOM I always 
encounter the problem, that the file is incomplete. For example: A 
text file like catalina.policy (with 7kb) is transferred, and saved by 
the webservice to catalina2.policy - But due to unknown reasons the 
beginning of the file is missing (see attached)


I even tried to cache the files with the following options, but the 
result is the same:


_stub._getServiceClient().getOptions().setProperty(Constants.Configuration.ENABLE_MTOM, 
Constants.VALUE_TRUE);
_stub._getServiceClient().getOptions().setProperty(Constants.Configuration.CACHE_ATTACHMENTS,Constants.VALUE_TRUE); 

_stub._getServiceClient().getOptions().setProperty(Constants.Configuration.ATTACHMENT_TEMP_DIR, 
c:/temp/);
_stub._getServiceClient().getOptions().setProperty(Constants.Configuration.FILE_SIZE_THRESHOLD, 
0);


if this is important: I am using base64Binary data type for the file 
and adb for databinding.


Does anyone know, why this happens?
I would appreciate every hint...

cheers, Philipp





// 
// catalina.corepolicy - Security Policy Permissions for Tomcat 5
//
// This file contains a default set of security policies to be enforced (by the
// JVM) when Catalina is executed with the -security option.  In addition
// to the permissions granted here, the following additional permissions are
// granted to the codebase specific to each web application:
//
// * Read access to the document root directory
//
// $Id: catalina.policy,v 1.11 2004/03/02 12:36:22 remm Exp $
// 


// == SYSTEM CODE PERMISSIONS =


// These permissions apply to javac
grant codeBase file:${java.home}/lib/- {
permission java.security.AllPermission;
};

// These permissions apply to all shared system extensions
grant codeBase file:${java.home}/jre/lib/ext/- {
permission java.security.AllPermission;
};

// These permissions apply to javac when ${java.home] points at $JAVA_HOME/jre
grant codeBase file:${java.home}/../lib/- {
permission java.security.AllPermission;
};

// These permissions apply to all shared system extensions when
// ${java.home} points at $JAVA_HOME/jre
grant codeBase file:${java.home}/lib/ext/- {
permission java.security.AllPermission;
};


// == CATALINA CODE PERMISSIONS ===


// These permissions apply to the launcher code
grant codeBase file:${catalina.home}/bin/commons-launcher.jar {
permission java.security.AllPermission;
};

// These permissions apply to the daemon code
grant codeBase file:${catalina.home}/bin/commons-daemon.jar {
permission java.security.AllPermission;
};

// These permissions apply to the commons-logging API
grant codeBase file:${catalina.home}/bin/commons-logging-api.jar {
permission java.security.AllPermission;
};

// These permissions apply to the server startup code
grant codeBase file:${catalina.home}/bin/bootstrap.jar {
permission java.security.AllPermission;
};

// These permissions apply to the JMX server
grant codeBase file:${catalina.home}/bin/jmx.jar {
permission java.security.AllPermission;
};

// These permissions apply to the servlet API classes
// and those that are shared across all class loaders
// located in the common directory
grant codeBase file:${catalina.home}/common/- {
permission java.security.AllPermission;
};

// These permissions apply to the container's core code, plus any additional
// libraries installed in the server directory
grant codeBase file:${catalina.home}/server/- {
permission java.security.AllPermission;
};

// == WEB APPLICATION PERMISSIONS =


// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
// and JndiPermission for all files

Re: Encrypting Message Failure

2006-12-04 Thread Philipp Perner

does anyone know anything about the filestructure?

Philipp Perner schrieb:

I think you are right.
The problem is, that my client doesn't uses/find? the rampart module 
engaged in axis2.xml.
But the file structure of the client's builds is similar to the 
samples of rampart.


Do you know, how the file structure has to be, that the my client's 
uses the rampart module and the axis2.xml?
Due to the fact, I am temporarily using the ant file of the rampart 
sample my file structure looks like this:


build/temp_client -- path to classes, client.jks and client.properties
build/client_repositories/conf -- path to axis2.xml
build/client_repositories/modules -- path to rampart1.1

my ant task to run the client looks like this:

java classname=sample.soapwithattachments.SWAClient fork=true
   arg value=${test.services.url}/[EMAIL PROTECTED] /
   arg value=${client.repos.dir}/ /
   classpath
   fileset dir=${lib.dir}
   include name=**/*.jar /
   /fileset
   dirset dir=${temp.client.dir} /
   /classpath
/java

Do you know, what's going wrong?

philipp

Mary Thompson schrieb:
I haven't tried encryption, but have signature verification working 
with Axis2-1.1.(1) and Rampart 1.1.


Do you have the rampart module findable by your client? ie, engaged 
in axis2.xml and available at run time. I copied the following 
command line from an example somewhere.


#!/bin/sh
. setclasspath.sh
java -Daxis2.xml=repo/axis2.xml QueryReservationClient repo 
https://domain.name/axis2-1.1.1/services/OSCARS


where the repo/modules contains the rampart.mar, and repo contains 
the sec.properties and jks files.


Mary Thompson

-
Mary R. Thompson[EMAIL PROTECTED]
Secure Grid Technologies Group  (510) 486-7408
Lawrence Berkeley National Lab  http://dsd.lbl.gov/~mrt
-

Philipp Perner wrote:

I have a service to transfer files.
I am using SwA with ADB as data binding. But in my opinion, the 
client doesn't even take the client's axis2.xml when running, so 
outflow configuration from client doesn't even make timestamp, 
signature or encryption. It doesn't matter which items i have in the 
outflow configuration of the client, the soap message is generated 
everytime without these items.


The server does everything correct - Timestamp, Signature, 
Encryption...
This doesn't matter as long as I want to encrypt from service to 
client, and client's axis2.xml has to be taken to decrypt.


swaramp.client:
   [copy] Copying 1 file to 
D:\Development\eclipse3.2\WebClient\WEB-INF\build\client_repositories\test01\conf 

   [copy] Copying 1 file to 
D:\Development\eclipse3.2\WebClient\WEB-INF\build\client_repositories\test01\modules 

   [copy] Copying 1 file to 
D:\Development\eclipse3.2\WebClient\WEB-INF\build\temp_client
   [java] java.lang.RuntimeException: java.lang.RuntimeException: 
Unexpected subelement EncryptionMethod
   [java] at 
sample.soapwithattachments.SWASampleServiceStub.fromOM(Unknown Source)
   [java] at 
sample.soapwithattachments.SWASampleServiceStub.uploadFile(Unknown 
Source)
   [java] at 
sample.soapwithattachments.SWAClient.transferFile(Unknown Source)

   [java] at sample.soapwithattachments.SWAClient.main(Unknown Source)
   [java] Caused by: java.lang.RuntimeException: Unexpected 
subelement EncryptionMethod
   [java] at 
sample.soapwithattachments.service.xsd.UploadFileResponse$Factory.parse(Unknown 
Source)

   [java] ... 4 more
   [java] Exception in thread main
   [java] Java Result: 1
BUILD SUCCESSFUL

Is there any further configuration I have to do? Or is it just an 
incompatibility from axis2 1.1 to rampart1.1 ?
I don't understand why the samples of rampart1.1 are working with 
axis2-1.1

I'm using the client and service keys from the rampart tutorials.
Has anyone else encountered this error?

philipp


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


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



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





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





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



Re: Encrypting Message Failure

2006-12-01 Thread Philipp Perner

I think you are right.
The problem is, that my client doesn't uses/find? the rampart module 
engaged in axis2.xml.
But the file structure of the client's builds is similar to the samples 
of rampart.


Do you know, how the file structure has to be, that the my client's uses 
the rampart module and the axis2.xml?
Due to the fact, I am temporarily using the ant file of the rampart 
sample my file structure looks like this:


build/temp_client -- path to classes, client.jks and client.properties
build/client_repositories/conf -- path to axis2.xml
build/client_repositories/modules -- path to rampart1.1

my ant task to run the client looks like this:

java classname=sample.soapwithattachments.SWAClient fork=true
   arg value=${test.services.url}/[EMAIL PROTECTED] /
   arg value=${client.repos.dir}/ /
   classpath
   fileset dir=${lib.dir}
   include name=**/*.jar /
   /fileset
   dirset dir=${temp.client.dir} /
   /classpath
/java

Do you know, what's going wrong?

philipp

Mary Thompson schrieb:
I haven't tried encryption, but have signature verification working 
with Axis2-1.1.(1) and Rampart 1.1.


Do you have the rampart module findable by your client? ie, engaged in 
axis2.xml and available at run time. I copied the following command 
line from an example somewhere.


#!/bin/sh
. setclasspath.sh
java -Daxis2.xml=repo/axis2.xml QueryReservationClient repo 
https://domain.name/axis2-1.1.1/services/OSCARS


where the repo/modules contains the rampart.mar, and repo contains the 
sec.properties and jks files.


Mary Thompson

-
Mary R. Thompson[EMAIL PROTECTED]
Secure Grid Technologies Group  (510) 486-7408
Lawrence Berkeley National Lab  http://dsd.lbl.gov/~mrt
-

Philipp Perner wrote:

I have a service to transfer files.
I am using SwA with ADB as data binding. But in my opinion, the 
client doesn't even take the client's axis2.xml when running, so 
outflow configuration from client doesn't even make timestamp, 
signature or encryption. It doesn't matter which items i have in the 
outflow configuration of the client, the soap message is generated 
everytime without these items.


The server does everything correct - Timestamp, Signature, Encryption...
This doesn't matter as long as I want to encrypt from service to 
client, and client's axis2.xml has to be taken to decrypt.


swaramp.client:
   [copy] Copying 1 file to 
D:\Development\eclipse3.2\WebClient\WEB-INF\build\client_repositories\test01\conf 

   [copy] Copying 1 file to 
D:\Development\eclipse3.2\WebClient\WEB-INF\build\client_repositories\test01\modules 

   [copy] Copying 1 file to 
D:\Development\eclipse3.2\WebClient\WEB-INF\build\temp_client
   [java] java.lang.RuntimeException: java.lang.RuntimeException: 
Unexpected subelement EncryptionMethod
   [java] at 
sample.soapwithattachments.SWASampleServiceStub.fromOM(Unknown Source)
   [java] at 
sample.soapwithattachments.SWASampleServiceStub.uploadFile(Unknown 
Source)
   [java] at 
sample.soapwithattachments.SWAClient.transferFile(Unknown Source)

   [java] at sample.soapwithattachments.SWAClient.main(Unknown Source)
   [java] Caused by: java.lang.RuntimeException: Unexpected 
subelement EncryptionMethod
   [java] at 
sample.soapwithattachments.service.xsd.UploadFileResponse$Factory.parse(Unknown 
Source)

   [java] ... 4 more
   [java] Exception in thread main
   [java] Java Result: 1
BUILD SUCCESSFUL

Is there any further configuration I have to do? Or is it just an 
incompatibility from axis2 1.1 to rampart1.1 ?
I don't understand why the samples of rampart1.1 are working with 
axis2-1.1

I'm using the client and service keys from the rampart tutorials.
Has anyone else encountered this error?

philipp


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


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



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





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



Re: Rampart problem with encryption

2006-12-01 Thread Philipp Perner

Hi marcel,

I'm just working on this.
I have a new post called Encrypting Message Failure from 11/30/06 
where Mary Thompson perhaps provides some help.

You can participate posting there...

It seems that rampart module is not applicable at runtime for the client.

BTW: I am using rampart1.1-RC1 from 27.11.2006
But you should try the nightly builds of rampart with axis2-1.1 latest 
builds.


philipp


Marcel Casado schrieb:

Hi Philipp,

I filed a jira http://issues.apache.org/jira/browse/AXIS2-1646 but it 
has not been taken care for anybody so I gave up until is fixed. Which 
version of Rampart are you using I stop updating Rampart nigthlies on 
11/05/06 so I did not try the nightlies recently neither  the Apache 
Rampart-1.1-RC1.


Please let me know if you get some progress in the near future.

-Marcel


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


Philipp Perner wrote:

Hi,

have you got this problem fixed, and how?
I am having the same problem now - encryption doesn't work, although 
i have similar configuration like the rampart sample5.




Marcel Casado schrieb:

Hi,

I'm trying to secure services with Rampart encrypting the body of 
the soap message. When the load on the body are pure xml elements 
with no attributes works fine but when the load has elements with 
attributes when they are decrypted the value is null. The service 
was working fine with out encryption.


I sent this before but I was not able to get much help. I'm stuck 
with this and I need to get it working in a production system soon. 
Help please, I'm kind of desperate. I told my boss that with axis2 
and Rampart will get secure services quite easily and I been stuck 
almost for one month on this.



Example of load :

AllowedValuesSet isStatic=true
 NestedMap
   MapEntry entryValue=Model Output entryKey=model_output/
   MapEntry entryValue=Observation entryKey=observation/
   NestedMap parentKey=observation
 MapEntry entryValue=Station entryKey=observationstation/
 NestedMap parentKey=observationstation
   MapEntry entryValue=Lightning 
entryKey=observationstationlightning/
   MapEntry entryValue=Mesowest/WMO 
entryKey=observationstationwmo/
   MapEntry entryValue=Profiler 
entryKey=observationstationprofiler/
   MapEntry entryValue=SAMS 
entryKey=observationstationsams/
   MapEntry entryValue=Sounding 
entryKey=observationstationsounding/

 /NestedMap
   /NestedMap
   NestedMap parentKey=model_output
 MapEntry entryValue=MM5 entryKey=model_outputmm5/
 NestedMap parentKey=model_outputmm5
   MapEntry entryValue=Forecast 
entryKey=model_outputmm5forecast/

 /NestedMap
   /NestedMap
 /NestedMap
/AllowedValuesSet


services.xml :

!-- This file was auto-generated from WSDL --
 !-- by the Apache Axis2 version: #axisVersion# #today# --
serviceGroup
 service name=MetvaultMetadataService
   messageReceivers
 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out;
  
class=edu.ucar.rap.metvault.metvaultservice.version1_0.metadataservice.MetvaultMetadataServiceMessageReceiverInOut/ 


   /messageReceivers
   parameter name=ServiceClass locked=false
 
edu.ucar.rap.metvault.metvaultservice.version1_0.metadataservice.MetvaultMetadataServiceSkeleton/parameter 

   operation name=getAllowedValuesSet 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappinggetAllowedValuesSet/actionMapping
   /operation
   operation name=getMetadata 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappinggetMetadata/actionMapping
   /operation
   operation name=retrieveMetadata 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingretrieveMetadata/actionMapping
   /operation
   operation name=executeService 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingexecuteService/actionMapping
   /operation
   operation name=requestServiceSummary 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingrequestServiceSummary/actionMapping
   /operation
   operation name=requestServiceResponse 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingrequestServiceResponse/actionMapping
   /operation
   operation name=requestCrawlerStart 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingrequestCrawlerStart/actionMapping
   /operation
   operation name=requestCrawlerStop 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingrequestCrawlerStop/actionMapping
   /operation
  operation name=requestLogin 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingrequestLogin/actionMapping
   /operation
   module ref=rampart/

  parameter name=OutflowSecurity
action
  itemsTimestamp Encrypt/items
  
passwordCallbackClassedu.ucar.rap.metvault.metvaultservice.version1_0.metadataservice.PWCBHandler/passwordCallbackClass 


  encryptionPropFileservice.properties/encryptionPropFile
  encryptionKeyIdentifierIssuerSerial/encryptionKeyIdentifier
  encryptionUserclient/encryptionUser
/action

Re: Rampart problem with encryption

2006-11-30 Thread Philipp Perner

Hi,

have you got this problem fixed, and how?
I am having the same problem now - encryption doesn't work, although i 
have similar configuration like the rampart sample5.




Marcel Casado schrieb:

Hi,

I'm trying to secure services with Rampart encrypting the body of the 
soap message. When the load on the body are pure xml elements with no 
attributes works fine but when the load has elements with attributes 
when they are decrypted the value is null. The service was working 
fine with out encryption.


I sent this before but I was not able to get much help. I'm stuck with 
this and I need to get it working in a production system soon. Help 
please, I'm kind of desperate. I told my boss that with axis2 and 
Rampart will get secure services quite easily and I been stuck almost 
for one month on this.



Example of load :

AllowedValuesSet isStatic=true
 NestedMap
   MapEntry entryValue=Model Output entryKey=model_output/
   MapEntry entryValue=Observation entryKey=observation/
   NestedMap parentKey=observation
 MapEntry entryValue=Station entryKey=observationstation/
 NestedMap parentKey=observationstation
   MapEntry entryValue=Lightning 
entryKey=observationstationlightning/
   MapEntry entryValue=Mesowest/WMO 
entryKey=observationstationwmo/
   MapEntry entryValue=Profiler 
entryKey=observationstationprofiler/

   MapEntry entryValue=SAMS entryKey=observationstationsams/
   MapEntry entryValue=Sounding 
entryKey=observationstationsounding/

 /NestedMap
   /NestedMap
   NestedMap parentKey=model_output
 MapEntry entryValue=MM5 entryKey=model_outputmm5/
 NestedMap parentKey=model_outputmm5
   MapEntry entryValue=Forecast 
entryKey=model_outputmm5forecast/

 /NestedMap
   /NestedMap
 /NestedMap
/AllowedValuesSet


services.xml :

!-- This file was auto-generated from WSDL --
 !-- by the Apache Axis2 version: #axisVersion# #today# --
serviceGroup
 service name=MetvaultMetadataService
   messageReceivers
 messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out;
  
class=edu.ucar.rap.metvault.metvaultservice.version1_0.metadataservice.MetvaultMetadataServiceMessageReceiverInOut/ 


   /messageReceivers
   parameter name=ServiceClass locked=false
 
edu.ucar.rap.metvault.metvaultservice.version1_0.metadataservice.MetvaultMetadataServiceSkeleton/parameter 

   operation name=getAllowedValuesSet 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappinggetAllowedValuesSet/actionMapping
   /operation
   operation name=getMetadata 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappinggetMetadata/actionMapping
   /operation
   operation name=retrieveMetadata 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingretrieveMetadata/actionMapping
   /operation
   operation name=executeService 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingexecuteService/actionMapping
   /operation
   operation name=requestServiceSummary 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingrequestServiceSummary/actionMapping
   /operation
   operation name=requestServiceResponse 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingrequestServiceResponse/actionMapping
   /operation
   operation name=requestCrawlerStart 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingrequestCrawlerStart/actionMapping
   /operation
   operation name=requestCrawlerStop 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingrequestCrawlerStop/actionMapping
   /operation
  operation name=requestLogin 
mep=http://www.w3.org/2004/08/wsdl/in-out;

 actionMappingrequestLogin/actionMapping
   /operation
   module ref=rampart/

  parameter name=OutflowSecurity
action
  itemsTimestamp Encrypt/items
  
passwordCallbackClassedu.ucar.rap.metvault.metvaultservice.version1_0.metadataservice.PWCBHandler/passwordCallbackClass 


  encryptionPropFileservice.properties/encryptionPropFile
  encryptionKeyIdentifierIssuerSerial/encryptionKeyIdentifier
  encryptionUserclient/encryptionUser
/action
  /parameter

   parameter name=InflowSecurity
 action
   itemsUsernameToken Timestamp Encrypt/items
   
passwordCallbackClassedu.ucar.rap.metvault.metvaultservice.version1_0.metadataservice.PWCBHandler/passwordCallbackClass 


   decryptionPropFileservice.properties/decryptionPropFile
 /action
   /parameter

 /service
/serviceGroup


client axis2.xml excerpt :

 module ref=rampart/


 parameter name=InflowSecurity
   action
 itemsTimestamp Encrypt/items
 
passwordCallbackClassedu.ucar.rap.metvault.metvaultservice.version1_0.metadataservice.PWCBHandler/passwordCallbackClass 


 decryptionPropFileclient.properties/decryptionPropFile
   /action
 /parameter


 parameter name=OutflowSecurity
   action
 itemsUsernameToken Timestamp Encrypt/items
 passwordTypePasswordText/passwordType
 signaturePropFileclient.properties/signaturePropFile
 

Encrypting Message Failure

2006-11-30 Thread Philipp Perner

I have a service to transfer files.
I am using SwA with ADB as data binding. But in my opinion, the client 
doesn't even take the client's axis2.xml when running, so outflow 
configuration from client doesn't even make timestamp, signature or 
encryption. It doesn't matter which items i have in the outflow 
configuration of the client, the soap message is generated everytime 
without these items.


The server does everything correct - Timestamp, Signature, Encryption...
This doesn't matter as long as I want to encrypt from service to client, 
and client's axis2.xml has to be taken to decrypt.


swaramp.client:
   [copy] Copying 1 file to 
D:\Development\eclipse3.2\WebClient\WEB-INF\build\client_repositories\test01\conf 

   [copy] Copying 1 file to 
D:\Development\eclipse3.2\WebClient\WEB-INF\build\client_repositories\test01\modules 

   [copy] Copying 1 file to 
D:\Development\eclipse3.2\WebClient\WEB-INF\build\temp_client
   [java] java.lang.RuntimeException: java.lang.RuntimeException: 
Unexpected subelement EncryptionMethod
   [java] at 
sample.soapwithattachments.SWASampleServiceStub.fromOM(Unknown Source)
   [java] at 
sample.soapwithattachments.SWASampleServiceStub.uploadFile(Unknown Source)
   [java] at sample.soapwithattachments.SWAClient.transferFile(Unknown 
Source)

   [java] at sample.soapwithattachments.SWAClient.main(Unknown Source)
   [java] Caused by: java.lang.RuntimeException: Unexpected subelement 
EncryptionMethod
   [java] at 
sample.soapwithattachments.service.xsd.UploadFileResponse$Factory.parse(Unknown 
Source)

   [java] ... 4 more
   [java] Exception in thread main
   [java] Java Result: 1
BUILD SUCCESSFUL

Is there any further configuration I have to do? Or is it just an 
incompatibility from axis2 1.1 to rampart1.1 ?

I don't understand why the samples of rampart1.1 are working with axis2-1.1
I'm using the client and service keys from the rampart tutorials.
Has anyone else encountered this error?

philipp


-
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: where should i put my jar files in the .aar file???

2006-11-29 Thread Philipp Perner

try the lib/ folder

If you want more options there is a list here:
http://www.wso2.net/articles/axis2/java/2006/08/01/client-api-parameters

Mehar SVLN schrieb:

Hai all,

where should i put my jar files in the .aar file???

Thanks in advance



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



Re: Did Anyone tried Axis2 attachments with XMlBeans as databinding???

2006-11-28 Thread Philipp Perner
No, because I'm just trying to do it with adb - and it's harder than i 
thought

Are there any significant reasons why to use xmlbeans?
Did you try SwA with other bindings than xmlbeans?

kr

Mehar SVLN schrieb:

Did Anyone tried Axis2 attachments with XMlBeans as databinding???




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



dumb question about stubs

2006-11-28 Thread Philipp Perner

hi,

I have a question. I created a file upload service, to transfer data. I 
used adb for databinding.
But neither my client stub nor my (generated) *.service.xsd.UploadFile 
require input data in their methods the way i want.


Now my question:
Client stubs or the classes in service.xsd are meant to be altered, 
aren't they?


philipp


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



Re: pb with String parameter: org.xml.sax.SAXParseException: Premature end of file.

2006-11-27 Thread Philipp Perner

Hi,

Do you route your soap messages over the soap monitor?
This error message occured when I tried to transfer SwA Messages (with 
attachments greater than ~20kB)

Turn off your soap monitor and try to send again.

BTW: Does anyone have a workaround for using soap monitor for higher 
attachments?


kr,

philipp


Melanie Courtot schrieb:

Hi,

I found several messages with the same issues but no clear answer...
(eg
http://mail-archives.apache.org/mod_mbox/ws-axis-user/200509.mbox/[EMAIL 
PROTECTED]
)

I am trying to send back my own objects using Axis (castor objects)

I have a method Term getTermById().

- This method, called from the client as getTermById() works fine, using
axis or castor serializer. (I need to use castor because some of my terms
have an additional xml field, and axis doesn't know how to serialize it,
but for simple terms no problem)

- This method, called from the client as getTermById(int in0) works fine
again.(with axis and castor)

- This method called from the client as getTermById(String str) doesn't
work (I didn't change the body of the method from the one called with int,
I don't use the argument to do anything)
used with the axis serializer I get:
org.xml.sax.SAXParseException: Premature end of file.
used with castor I get:
Trace/BPT trap

I use axis 1.4, document/wrapped style. I really have no clue what is
going wrong, and I would really appreciate any help.
Thanks,
Melanie


-
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: AW: Axis2: Problems with running MTOM Sample

2006-11-23 Thread Philipp Perner

it depends on the commandline environment you are using.
For example:

When you use cmd.exe (in windows) you have to type:
ant run.client -Dfile c:\out.txt -Ddest c:\in.txt

Or in linux command line environments like cygwin:
ant[.sh] run.client -Dfile c:/out.txt -Ddest c:/in.txt

Don't use quotes or hyphens!!!

cheers,
Philipp




Peter Neu schrieb:
Hi, 


I used that as well. Didn't work out. Any ideas what I could try beside
that?

Cheers,
Pete 

  

-Ursprüngliche Nachricht-
Von: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 21. November 2006 18:14
An: axis-user@ws.apache.org
Betreff: Re: Axis2: Problems with running MTOM Sample

Hmm... Strange...

Please try using inverted commas to the file names as follows.
ant run.client -Dfile C:\out.txt -Ddest C:\in.txt

Thanx,
~Thilina

On 11/21/06, Peter Neu [EMAIL PROTECTED] wrote:


Hello,

I'm trying to get the MTOM example from the sample directory to work.
When I trying to run the client I get this exception:

Exception in thread main org.apache.axis2.AxisFault: org.apache.ax
iom.om.OMException: Referenced Attachment not found in the MIME Message.
Content
ID:1.urn:uuid:[EMAIL PROTECTED]
at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAxisOperation.java:308)
at sample.mtom.service.MTOMSampleStub.attachment(Unknown Source)

at sample.mtom.client.Client.transferFile(Unknown Source)
at sample.mtom.client.Client.main(Unknown Source)
Java Result: 1

I start the ant script with these parameters (tried parameters also in
hyphens):

ant run.client -Dfile C:/out.txt -Ddest C:\in.txt

Don't see what I did wrong. Any idea what to check?

Cheers,
Pete



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


  

--
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

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





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


  



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



Re: Rampart 1.1 nightly with Axis2 1.1

2006-11-15 Thread Philipp Perner
But when I copy the sample02.aar to my servlet container which has the 
latest axis2.war included, I always get the error message when I try to run:

$ ant client.02

-
Buildfile: build.xml

check.dependency:

client.02:
[copy] Copying 1 file to 
D:\downloads\rampart-1.1-SNAPSHOT\samples\basic\build\client_repositories\sample02\conf
[copy] Copying 1 file to 
D:\downloads\rampart-1.1-SNAPSHOT\samples\basic\build\client_repositories\sample02\modules
[copy] Copying 1 file to 
D:\downloads\rampart-1.1-SNAPSHOT\samples\basic\build\client_repositories\sample02\modules
[copy] Copying 1 file to 
D:\downloads\rampart-1.1-SNAPSHOT\samples\basic\build\temp_client
[copy] Copying 1 file to 
D:\downloads\rampart-1.1-SNAPSHOT\samples\basic\build\temp_client
[java] 15.11.2006 13:24:31 
org.apache.axis2.deployment.DeploymentEngine prepareRepository
[java] INFO: no services directory found under 
D:\downloads\rampart-1.1-SNAPSHOT\samples\basic\build\client_repositories\sample02
[java] 15.11.2006 13:24:32 
org.apache.axis2.deployment.DeploymentEngine doDeploy

[java] INFO: Deploying module : addressing-1.1
[java] 15.11.2006 13:24:34 
org.apache.axis2.deployment.DeploymentEngine doDeploy

[java] INFO: Deploying module : rampart-1.1
[java] java.lang.NoClassDefFoundError: 
org/apache/ws/security/WSPasswordCallback
[java] at 
org.apache.rampart.samples.sample02.PWCBHandler.handle(Unknown Source)
[java] at 
org.apache.ws.security.handler.WSHandler.performCallback(WSHandler.java:707)
[java] at 
org.apache.ws.security.handler.WSHandler.readPwViaCallbackClass(WSHandler.java:670)
[java] at 
org.apache.ws.security.handler.WSHandler.getPassword(WSHandler.java:625)
[java] at 
org.apache.ws.security.action.UsernameTokenAction.execute(UsernameTokenAction.java:31)
[java] at 
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:192)
[java] at 
org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:267)
[java] at 
org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:92)
[java] at 
org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:74)

[java] at org.apache.axis2.engine.Phase.invoke(Phase.java:381)
[java] at 
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:518)
[java] at 
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:651)
[java] at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:365)
[java] at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)
[java] at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
[java] at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
[java] at 
org.apache.rampart.samples.sample02.Client.main(Unknown Source)

[java] Exception in thread main
[java] Java Result: 1

BUILD SUCCESSFUL
Total time: 5 seconds
-

I downloaded rampart1.1-snapshot from your link posted below and changed
the module needed in samples/basic/build.xml, due to the filename:

   property name=rampart.mar value=rampart-1.1-SNAPSHOT.mar/   


Can anyone help me?
BTW, error message occurs in every sample, except sample01, which just 
engages rampart.


kr,

philipp

Ruchith Fernando schrieb:

Yes it is [1].

Thanks,
Ruchith

[1] 
http://ws.zones.apache.org/dist/rampart/nightly/rampart-1.1-SNAPSHOT.zip


On 11/14/06, Sriram Vaidyanathan [EMAIL PROTECTED] wrote:





Hi

   Will the Rampart 1.1 SNAPSHOT be compatible on with the Axis21.1 
release?

 Pls advice.



Thanks

Sriram





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



Re: axis2-1.1 + rampart

2006-11-14 Thread Philipp Perner

Thanks for the quick reply.
BTW you're doing a good job - keep on working...

kr,

philipp

Ruchith Fernando schrieb:

Hi Philipp,

Rampart 1.0 is not compatible with Axis2-1.1. We will be releasing
Rampart 1.1 soon.

Thanks,
Ruchith

On 11/14/06, Philipp Perner [EMAIL PROTECTED] wrote:

Is rampart1.0 or rampart 1.1 not available for axis2-1.1 at the moment?
Or why has it been removed from
http://ws.apache.org/axis2/modules/index.html ?

Are there any known bugs?

kr,

Philipp


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








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



axis2-1.1 + rampart

2006-11-14 Thread Philipp Perner

Is rampart1.0 or rampart 1.1 not available for axis2-1.1 at the moment?
Or why has it been removed from 
http://ws.apache.org/axis2/modules/index.html ?


Are there any known bugs?

kr,

Philipp


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



problem w. axis2-1.1\samples\soapwithattachments

2006-11-14 Thread Philipp Perner

I'm trying to run the soapwithattachments example from the axis2 1.1 release
I'm deploying the aar in my existing servlet container.
After ant run.client there's an error message:

D:\development\axis2-1.1\samples\soapwithattachmentsant run.client 
-Dfile class10.pdf -Ddest test.pdf

Buildfile: build.xml

compile:
   [mkdir] Created dir: 
D:\downloads\axis2-1.1\samples\soapwithattachments\build\classes
   [javac] Compiling 2 source files to 
D:\downloads\axis2-1.1\samples\soapwithattachments\build\classes


check-parameters:

print-usage:

run.client:
 [jar] Building jar: 
D:\downloads\axis2-1.1\samples\soapwithattachments\build\swaSampleClient.jar
[java] 14.11.2006 13:30:22 
org.apache.axis2.deployment.DeploymentEngine doDeploy

[java] INFO: Deploying module : addressing-1.1
[java] 14.11.2006 13:30:22 
org.apache.axis2.deployment.DeploymentEngine doDeploy

[java] INFO: Deploying module : soapmonitor-1.1
[java] [JAM] Warning: You are running under a pre-1.5 JDK.  
JSR175-style source annotations will not be available
[java] 14.11.2006 13:30:22 
org.apache.axis2.deployment.DeploymentEngine doDeploy

[java] INFO: Deploying Web service  sample-swa.aar
[java] 14.11.2006 13:30:22 
org.apache.axis2.deployment.DeploymentEngine doDeploy

[java] INFO: Deploying Web service  version.aar
[java] org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: 
org.apache.axis2.databinding.utils.BeanUtil.deserialize(Lorg/apache/axiom/om/OMElement

;[Ljava/lang/Object;Lorg/apache/axis2/engine/ObjectSupplier;)[Ljava/lang/Object;
[java] at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
[java] at 
sample.soapwithattachments.client.SWAClient.transferFile(SWAClient.java:133)
[java] at 
sample.soapwithattachments.client.SWAClient.main(SWAClient.java:81)

[java] Exception in thread main
[java] Java Result: 1

BUILD SUCCESSFUL
Total time: 5 seconds

kr,

philipp


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



Re: 2nd POST - HELP! Problems with WSDL2Java

2006-11-13 Thread Philipp Perner

Because, you didn't get an answer, here's what came to my mind at first:

I replaced the schemaLocation with v.3.1.1 and after validation, there's no 
error

***
Look:
***

?xml version=1.0 ? 
definitions name=BoundingRegionService

targetNamespace=http://boundingregion.xxx.com/service/;
xmlns:tns=http://boundingregion.xxx.com/service/;
xmlns:gml=http://www.opengis.net/gml;
xmlns=http://schemas.xmlsoap.org/wsdl/;
  types
 schema xmlns=http://www.w3.org/2001/XMLSchema;
import namespace=http://www.opengis.net/gml; 
schemaLocation=http://schemas.opengis.net/gml/3.1.1/base/gml.xsd; /
 /schema
  /types
  message name=ComputeBoundingRegionInput
 part name=body element=gml:location / 
  /message

  message name=ComputeBoundingRegionOutput
 part name=body element=gml:boundingBox / 
  /message

  portType name=BoundingRegionServicePortType
 operation name=ComputeBoundingRegion
input message=tns:ComputeBoundingRegionInput / 
output message=tns:ComputeBoundingRegionOutput / 
 /operation

  /portType
/definitions

***

let me know if it works

regards,

Philipp


Brown, Jeff (C2MS) schrieb:

Never got anything on this and I really need some help on this . . .

I'm using Axis 1.4Final. Here is my WSDL file:

--

?xml version=1.0 ? 
definitions name=BoundingRegionService

targetNamespace=http://boundingregion.xxx.com/service/;
xmlns:tns=http://boundingregion.xxx.com/service/;
xmlns:gml=http://www.opengis.net/gml;
xmlns=http://schemas.xmlsoap.org/wsdl/;
   types
  schema xmlns=http://www.w3.org/2001/XMLSchema;
 import namespace=http://www.opengis.net/gml;
schemaLocation=GML-3.1.0/base/gml.xsd /
  /schema
   /types
   message name=ComputeBoundingRegionInput
  part name=body element=gml:location / 
   /message

   message name=ComputeBoundingRegionOutput
  part name=body element=gml:boundingBox / 
   /message

   portType name=BoundingRegionServicePortType
  operation name=ComputeBoundingRegion
 input message=tns:ComputeBoundingRegionInput / 
 output message=tns:ComputeBoundingRegionOutput / 
  /operation

   /portType
/definitions

--

Here is the error I'm receiving:

--

BUILD FAILED
C:\TEST_AREA\build.xml:47: WSDL processing error for
C:\TEST_AREA\BoundingRegionService.wsdl :
 Duplicate file name:
C:\TEST_AREA\src\net\opengis\www\gml\CodeOrNullListType.java.
Hint: you may have mapped two namespaces with elements of the same name
to the same package name.

--

As you can see I'm simply trying to refer to something that is defined
in the GML schema from the Open Geospatial Consortium located online at
http://www.opengis.net/gml/. I don't know how I can do anything more
simple as an example using the GML schema.

To replicate what I have, place the above WSDL in a directory and unzip
the downloadable schema bundle from the URL given above. I think they
call it 03-105r1_GML_3.1.zip. I can provide what I have as an attachment
if needed.

In addition, I'm using the following Ant build file:

--

project name=BoundingRegionService
 default=compileJava
 basedir=.

target name=environment

property environment=env /
fail unless=env.BOUNDING_REGION_TEST_HOMEPlease set
BOUNDING_REGION_TEST_HOME/fail
fail unless=env.BOUNDING_REGION_ENDPTPlease set
BOUNDING_REGION_ENDPT/fail

property name=project.COTS
  value=COTS /
property name=project.boundingRegionServiceWsdl
  value=BoundingRegionService.wsdl /

/target

target name=classpath depends=environment
path id=project.classpath
pathelement path=. /
pathelement path=classes /
fileset dir=${project.COTS}/Axis/1.4Final
include name=*.jar /
/fileset
fileset dir=${project.COTS}/J2EE/1.4
include name=j2ee.jar /
/fileset
/path

taskdef resource=axis-tasks.properties
 classpathref=project.classpath /
/target

target name=clean
delete dir=classes failonerror=false /
delete dir=lib failonerror=false /
delete dir=src/com/xxx/boundingregion/service
failonerror=false /
/target

target name=axisWSDL2Java depends=classpath
axis-wsdl2java output=src

axis2 - rampart1.1 problems

2006-11-10 Thread Philipp Perner

Hi,

I'm using axis2 1.0 with 1.1 rc2 release libs on a tomcat 5.x servlet 
container.
When I run the tomcat with j2sdk1.4.2 everything is working properly and 
i can do everything the axis2.war file provides.

When I want to load the rampart 1.1 snapshot I always get an error message:

org.apache.jasper.JasperException

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:73)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*root cause*

java.lang.NullPointerException

org.apache.jsp.axis2_002dweb.include.httpbase_jsp.jspInit(httpbase_jsp.java:22)
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:75)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:73)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


If i use jre1.5.0 I get the following error message when I type 
http://localhost:8080/axis2 (including rampart 1.1):


org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
D:\Jakarta\Tomcat 
5.0\work\Catalina\localhost\axis2\org\apache\jsp\axis2_002dweb\index_jsp.java:7:
 cannot access java.lang.Object


Generated servlet error:
bad class file: C:\Programme\Java\jre1.5.0_06\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the 
classpath.
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
^
1 error




org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


Has anyone had this error already? what can I do?

kind regards

Philipp




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



Re: problems generating wsdl

2006-11-09 Thread Philipp Perner

Yeah,

You are brilliant!!!

Is there any reason why datahandler doesn't work? In Axis1 v.1.4 it 
worked perfectly

Which datatypes are supported for input/output parameters?

regards, Philipp

Davanum Srinivas schrieb:

replace the DataHandler with a byte[] and see if that helps.

-- dims

On 11/9/06, Philipp Perner [EMAIL PROTECTED] wrote:

How do you generate wsdl file?

I have a service class, which has some methods. For example a
datahandler should be returned and a beanclass i designed.
When i generate wsdl file with java2wsdl from command line the generated
wsdl file is invalid and cannot be transformed to service classes by
WSDL2Java.bat:

Command to generate WSDL from Java Code:
java -cp {required libs} org.apache.ws.java2wsdl.Java2WSDL -tn
http://Pseudonymisierung.pseudo.service.axis.healthgate -tp ns -stn
http://Pseudonymisierung.pseudo.service.axis.healthgate/types -stp types
-o ../ -l http://localhost:8081/axis2/services/; -sn
Pseudonymisierung -cn healthgate.axis.service.pseudo.Pseudonymisierung
-of pseudo.wsdl

-- No error

Command to generate Java Code from WSDL:
D:\Development\eclipse3.2\WebService\WEB-INFD:\downloads\axis2-1.1-SNAPSHOT\bin\WSDL2Java.bat 


-uri pseudo.wsdl -ss -sd -d xmlbeans -o \generated -p
healthgate.axis.service.pseudo.Pseudonymisierung

Using AXIS2_HOME:   D:\downloads\axis2-std-1.0-bin
Using JAVA_HOME:D:\Java\j2sdk1.4.2_12
Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing 
WSDL

at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:94) 


at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.AxisFault: Schema for namespace
'http://net.java/xsd' already contains type 'URLStreamHandlerFactory;
nested exception is:
java.lang.RuntimeException: Schema for namespace
'http://net.java/xsd' already contains type 'URLStreamHandlerFactory
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243) 


at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:87) 


... 2 more
Caused by: java.lang.RuntimeException: Schema for namespace
'http://net.java/xsd' already contains type 'URLStreamHandlerFactory
at
org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:244)
at
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:110) 


at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:250) 


at
org.apache.axis2.description.WSDL2AxisServiceBuilder.getXMLSchema(WSDL2AxisServiceBuilder.java:959) 


at
org.apache.axis2.description.WSDL2AxisServiceBuilder.copyExtensibleElements(WSDL2AxisServiceBuilder.java:1067) 


at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:221) 


... 3 more


any clues to fix this problem?
Please help, because I'm stuck in there since monday...

regards, philipp


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








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



Axis2 Book?

2006-11-09 Thread Philipp Perner

Hi guys,

Does anyone know a really good book, which explains the usage of axis2 
with java?
Furthermore it could be useful if the book is written in connection with 
the usage of eclipse, tomcat, ...


Another Book I'm trying to find should be about Web-Service Security 
and/or rampart.


Is there any literal resource available?
I'm looking forward to any response which proposes a rather new book on 
axis2, wss4j, rampart,...


Please write everything you can think of!!!

Kind regards, Philipp


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



empty service.xml

2006-11-07 Thread Philipp Perner

Hi guys,

I am using the eclipse plugin Axis2 Service Archiver, for deploying my 
web service.
I have a generated wsdl file from my service class - generated from 
Axis2 Code Generator eclipse plugin.
But every time i am making the archive (btw it's a jar archive) the 
created service.xml file is empty.

and axis2 recognizes the service as a faulty service.

I am using Eclipse3.2, Tomcat 5.5, axis2 1.0 and jdk1.4.2 on win2k

Any proposals?

kind regards,

philipp


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



Re: empty service.xml

2006-11-07 Thread Philipp Perner

hi VF,

When i use wsdl2java in the shell (path=axis2-std-1.0-bin\test) with the 
command:
..\bin\WSDL2Java.bat -uri Pseudonymisierung.wsdl -ss -sd -d xmlbeans -o 
\generated -p healthgate.axis.service.Pseudonymisierung


i always get the following fault:
Using AXIS2_HOME:   D:\downloads\axis2-std-1.0-bin
Using JAVA_HOME:D:\Java\j2sdk1.4.2_12
log4j:WARN No appenders could be found for logger 
(org.apache.axis2.i18n.ProjectResourceBundle).

log4j:WARN Please initialize the log4j system properly.
Exception in thread main 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
   at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:94)

   at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
   at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.AxisFault: Schema for namespace 
'http://net.java/xsd' already contains type 'URLStreamHandlerFactory; 
nested exception is:
   java.lang.RuntimeException: Schema for namespace 
'http://net.java/xsd' already contains type 'URLStreamHandlerFactory
   at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243)
   at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:87)

   ... 2 more
Caused by: java.lang.RuntimeException: Schema for namespace 
'http://net.java/xsd' already contains type 'URLStreamHandlerFactory
   at 
org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:244)
   at 
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:110)
   at 
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:250)
   at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.getXMLSchema(WSDL2AxisServiceBuilder.java:959)
   at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.copyExtensibleElements(WSDL2AxisServiceBuilder.java:1067)
   at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:221)

   ... 3 more

Next post is my wsdl file

kind regards,

Philipp


VF schrieb:

I noticed it too. I use services.xml which I generated with wsdl2java task.
Also button finish is in this plugin disabled till checkbox generate
services.xml is checked und unchecked.

   Vladi

-Original Message-
From: Philipp Perner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 11:41 AM

To: axis-user@ws.apache.org
Subject: empty service.xml

Hi guys,

I am using the eclipse plugin Axis2 Service Archiver, for deploying my 
web service.
I have a generated wsdl file from my service class - generated from 
Axis2 Code Generator eclipse plugin.
But every time i am making the archive (btw it's a jar archive) the 
created service.xml file is empty.

and axis2 recognizes the service as a faulty service.

I am using Eclipse3.2, Tomcat 5.5, axis2 1.0 and jdk1.4.2 on win2k

Any proposals?

kind regards,

philipp


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


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


  



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



Re: empty service.xml

2006-11-07 Thread Philipp Perner

you are right - but that's what Axis2 Code Generator has done for me!
Am I doing anything wrong?

the way i want do produce my web service:

1) write web service
2) generate wsdl from WebService (Axis2 Code Generator)
3) generate web service archive (Axis2 Service Archiver) using web 
service class and generated wsdl-file

4) deploy webservice.jar in axis2 administrator

is this the correct procedure?

philipp

VF schrieb:

But this wsdl is not valid when i check it in Eclipse.
  



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



wsdl schema prefix

2006-11-07 Thread Philipp Perner

me again!

I didnt use the Axis2 Code Generator, because in my posting above the 
wsdl was not valid, whatever the reasons were.

So I manually generated my wsdl file with Java2WSDL

No i have a wsdl file which has after validation one single error:

error in line 229: The prefix xs for element xs:schema is not bound.

can anyone help me?
the command I generated wsdl with is:

java -cp {required librarypaths} org.apache.ws.java2wsdl.Java2WSDL -o 
../wsdl -l http://localhost:8081/axis2/services/Pseudonymisierung; -sn 
Pseudonymisierung -cn healthgate.axis.service.Pseudonymisierung -of 
Pseudonymisierung.wsdl


Is there anything wrong with the command? do I have to add anything that 
binds the prefix?


kind regards,

Philipp



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