[Axis2 1.1.1] Security policy not enforced

2008-01-06 Thread Niu
Hi,

 

I am using axis2 version 1.1.1 and rampart version 1.1.1. 

 

I have a web services configured to require all incoming messages to include
a Timestamp and a Signature. The implementation has been working fine for
months. However, lately, I just discovered that the configuration did not
actually enforce the security policy as I could just invoke the web services
by sending a SOAP message with an empty Security tag in the SOAP header
(like the attached SOAP message). Is this a bug or wrong configuration??
Appreciate if somebody can offer a solution.

   

 



http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-secext-1.0.xsd">

  



  

  

http://example.org/partnerapi/";>

  ${NAME}

  ${PASSWORD}



  



 

 

 

The following is a snapshot of my Services.xml file:

 







http://www.w3.org/2004/08/wsdl/in-out";
class="org.example.partnerapi.PartnerapiMessageReceiverInOut"/>



org.example.partnerapi.PartnerapiSkeleton





   Signature Timestamp

   PWCallback

   security.properties





http://www.w3.org/2004/08/wsdl/in-out";>

urn:validateCredential

http://example.org/partnerapi/partnerapiPortType/valida
teCredentialResponse







 

 

 

 

Thanks & Best Rgds,

Niu

 

/---\

Confidential and/ or privileged information may be contained in this
e-mail and any attachments transmitted with it ('Message'). If you are
not the addressee indicated in this Message (or responsible for 
delivery of this Message to such person),you are hereby notified that
any dissemination, distribution, printing or copying of this Message or
any part thereof is prohibited. Please delete this Message if received 
in  error and advise the sender by return e-mail. Opinions, conclusions
and other information in this Message that do not relate to the 
official business of this company shall be understood as neither given
nor endorsed by this company.

This mail is certified Virus Free by *ProtectNow! (InternetNow Sdn Bhd) 
*Scanner Engine powered by Norman Virus Control

\--/

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

package javax.xml.rpc does not exist

2008-01-06 Thread msg2ajay

hello friends,
 I am trying to run a client program with Axis1_4. I have
set the CLASSPATH as below
CLASSPATH:


.;%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;
%AXIS_LIB%\saaj.jar;%AXIS_LIB%\axis-ant.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\log4j-1.2.8.jar;
%AXIS_LIB%\xml-apis-1.3.03.jar;%AXIS_LIB%\xercesImpl-2.8.1.jar;%AXIS_LIB%\wsdl4j-1.5.1.jar;
%AXIS_LIB%\activation.jar


I have given jaxrpc.jar as well. but when i run the client i am getting the
following error.

ERROR CODE:
-

AddFunctionClient.java:2: package javax.xml.rpc does not exist
import javax.xml.rpc.Call;
 ^
AddFunctionClient.java:3: package javax.xml.rpc does not exist
import javax.xml.rpc.Service;
 ^
AddFunctionClient.java:9: cannot find symbol
symbol  : class Service
location: class AddFunctionClient
Service service = new Service();
^
AddFunctionClient.java:9: cannot find symbol
symbol  : class Service
location: class AddFunctionClient
Service service = new Service();
  ^
AddFunctionClient.java:10: cannot find symbol
symbol  : class Call
location: class AddFunctionClient
Call call = (Call) service.createCall();
^
AddFunctionClient.java:10: cannot find symbol
symbol  : class Call
location: class AddFunctionClient
Call call = (Call) service.createCall();
.
.
.

do i need to configure or include any other .jar file or do i need to
configure in server ?


thanQ .
Ajay

-- 
View this message in context: 
http://www.nabble.com/package-javax.xml.rpc-does-not-exist-tp14659525p14659525.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: Java2WSDL Exception Handling

2008-01-06 Thread Belal Juma
Yes it is, is this issue would be solved in the next release? When the
next release will come?

 

Thanks,

Belal



From: Lahiru Sandakith [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 07, 2008 5:09 AM
To: axis-user@ws.apache.org
Subject: Re: Java2WSDL Exception Handling

 

Hi,

Does this adresses your requirement
https://issues.apache.org/jira/browse/AXIS2-3412 
else please create a JIRA of your requirement. 

Thanks 
Lahiru Sandakith

On Jan 6, 2008 12:52 PM, Belal Juma <[EMAIL PROTECTED]>
wrote:

Hi All,

We are using Java2WSDL in our implementation. We identified one
customized exception to be thrown by the webservices and declared in the
throws clause of the signature (assume the name OurException).  When
generating the stubs, this exception is part of them (OurException0).

 

The problem is, whenever the webservice throw this exception the client
cannot catch it because it is thrown by the server as
InvocationTargetException with the cause of our customized exception
(OurException).

 

I noticed that the client stubs "throws" clause is having
RemoteException and ourException0. And ourException0 cannot be caught at
all.!!!

 

Please advice what is the right way of doing exception handling in
Axis2?

 

Regards,

 


***
THIS E-MAIL AND ANY FILES TRANSMITTED WITH IT ARE CONFIDENTIAL AND
INTENDED SOLELY FOR THE USE
OF THE INDIVIDUAL OR ENTITY TO WHOM THEY ARE ADDRESSED. IF YOU HAVE
RECEIVED THIS E-MAIL IN ERROR
PLEASE DELETE THE E-MAIL AND ANY ATTACHMENT(S) AND NOTIFY THE SENDER
IMMEDIATELY. 

***




-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F


***
THIS E-MAIL AND ANY FILES TRANSMITTED WITH IT ARE CONFIDENTIAL AND INTENDED 
SOLELY FOR THE USE
OF THE INDIVIDUAL OR ENTITY TO WHOM THEY ARE ADDRESSED. IF YOU HAVE RECEIVED 
THIS E-MAIL IN ERROR
PLEASE DELETE THE E-MAIL AND ANY ATTACHMENT(S) AND NOTIFY THE SENDER 
IMMEDIATELY. 
***


Re: [axis2] wsdl with policy

2008-01-06 Thread Amila Suriarachchi
On Jan 7, 2008 5:31 AM, Stephen Souness <[EMAIL PROTECTED]> wrote:

> Do I need to provide a policy file, and if so how do I tell WSDL2Java
> where to look for it?


see the test java file I have given. you have to give the rampart specific
policy file to the stub.
normally in a wsdl file you get only the security policies.

in this example it is give as an Policy object
CryptoConfig signcriptoInfo = new CryptoConfig();
signcriptoInfo.setProvider(Merlin.class.getName());
Properties properties = new Properties();
properties.setProperty("
org.apache.ws.security.crypto.merlin.keystore.type", "JKS");
properties.setProperty("org.apache.ws.security.crypto.merlin.file",
"security_client_wcf/conf/sec.jks");
properties.setProperty("
org.apache.ws.security.crypto.merlin.keystore.password", "password");
signcriptoInfo.setProp(properties);

CryptoConfig encriptcriptoInfo = new CryptoConfig();
encriptcriptoInfo.setProp(properties);
encriptcriptoInfo.setProvider(Merlin.class.getName());

RampartConfig config = new RampartConfig();
config.setUser("alice");
config.setEncryptionUser("bob");
config.setPwCbClass("util.PasswordCallbackHandler");
config.setSigCryptoConfig(signcriptoInfo);
config.setEncrCryptoConfig(encriptcriptoInfo);

ramapConfigPolicy = new Policy();
ramapConfigPolicy.addAssertion(config);

but you may do the following as well using a policy file.

  StAXOMBuilder builder = new StAXOMBuilder(SECURITY_POLICY_FILE);
Policy securityPolicy = PolicyEngine.getPolicy(
builder.getDocumentElement());

serviceClient.getServiceContext
().getConfigurationContext().setProperty(
RampartMessageData.KEY_RAMPART_POLICY, securityPolicy);


thanks,
Amila.


>
>
> Amila Suriarachchi wrote:
> > When you generate the code it adds the security policies to input and
> > output messages.
> > Here codegen tool normalize the policy and attached it as a string so
> > that runtime
> > it builds the policy from that.
> >
> > See the attached test case.
> >
> > Amila.
> >
> >
> >
> > On Dec 21, 2007 2:59 AM, Stephen Souness <[EMAIL PROTECTED]
> > > wrote:
> >
> > Thanks for that Amila.
> >
> > I've tried the following:
> >
> > wsdl2java -pn A12Binding -o generated -uri C:\interop.wsdl
> >
> >
> > I haven't noticed anything in the generated EchoServiceStub.javathat
> > deals with the X509 or other security aspects specified in the
> > A12Binding_policy policy.
> >
> > Is their some additional axis2 setup required?
> >
> >
> > --
> > Stephen
> >
> >
> >
> > Amila Suriarachchi wrote:
> >  > see some security samples here
> >  > http://131.107.72.15/ilab/
> >  >
> >  > Amila
> >  >
> >  > On Dec 20, 2007 1:49 AM, Stephen Souness < [EMAIL PROTECTED]
> > 
> >  > mailto:[EMAIL PROTECTED]>>> wrote:
> >  >
> >  > Hi all,
> >  >
> >  > Can anyone direct me to an example of a WSDL which includes
> valid
> >  > policy
> >  > references, which wsdl2java can interpret and generate an
> > appropriate
> >  > client stub from?
> >  >
> >  > Alternatively, is there a better way to generate the client
> code?
> >  >
> >  > --
> >  > Stephen
> >  >
> >  >
> >  >
> >
> -
> >  > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > 
> >  >  > >
> >  > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >  >  > >
> >  >
> >  >
> >  >
> >  >
> >  > --
> >  > Amila Suriarachchi,
> >  > WSO2 Inc.
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > 
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >
> >
> >
> >
> > --
> > Amila Suriarachchi,
> > WSO2 Inc.
> >
> >
> > 
> >
> > -
> > 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]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


RE: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart)

2008-01-06 Thread Chen, Lizhao
Hi, Ajay,

It seems has nothing to do with the warning of "Unable to find required
classes", maybe you should check whether your wsdl file is valid or not?

Best Regards!

 

Lizhao Chen

 

86-021-50800850-8395

-Original Message-
From: msg2ajay [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 07, 2008 09:48 AM
To: axis-user@ws.apache.org
Subject: Unable to find required classes (javax.activation.DataHandler
and javax.mail.internet.MimeMultipart)


hello,
i am using axis1.4 lib to generate stub and wrapper class files
for
webService. i have set classpath in Environment Variables as 

[CODE]
%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\comm
ons-logging-1.0.4.jar;
%AXIS_LIB%\saaj.jar;%AXIS_LIB%\axis-ant.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_
LIB%\log4j-1.2.8.jar;
%AXIS_LIB%\xml-apis-1.3.03.jar;%AXIS_LIB%\xercesImpl-2.8.1.jar;%AXIS_LIB
%\wsdl4j-1.5.1.jar;
%AXIS_LIB%\activation.jar
[/CODE]

but whin i try to run with java as below

[CODE]
java -cp %AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java
http://10.1.3.90/wbds/service.asmx
[/CODE]

 ERROR:

>java -cp %AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java
http://10.1.3.90/wbds/service.asmx
nable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment suppo
is disabled.
.xml.sax.SAXException: Fatal Error:
URI=http://10.1.3.90/wbds/service.asmx
Line=61: The element type "br" must be ter
ated by the matching end-tag "".
 at
org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.ja
va:740)
 at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
 at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
Source)
 at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown
Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn
Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
 at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
 at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
 at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
 at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4
82)
 at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
 at java.lang.Thread.run(Thread.java:595)


Can any bady show some way out here.

ThanQ,
Ajay



-- 
View this message in context:
http://www.nabble.com/Unable-to-find-required-classes-%28javax.activatio
n.DataHandler-and-javax.mail.internet.MimeMultipart%29-tp14657183p146571
83.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]

The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs


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



Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart)

2008-01-06 Thread msg2ajay

hello,
i am using axis1.4 lib to generate stub and wrapper class files for
webService. i have set classpath in Environment Variables as 

[CODE]
%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;
%AXIS_LIB%\saaj.jar;%AXIS_LIB%\axis-ant.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\log4j-1.2.8.jar;
%AXIS_LIB%\xml-apis-1.3.03.jar;%AXIS_LIB%\xercesImpl-2.8.1.jar;%AXIS_LIB%\wsdl4j-1.5.1.jar;
%AXIS_LIB%\activation.jar
[/CODE]

but whin i try to run with java as below

[CODE]
java -cp %AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java
http://10.1.3.90/wbds/service.asmx
[/CODE]

 ERROR:

>java -cp %AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java
http://10.1.3.90/wbds/service.asmx
nable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment suppo
is disabled.
.xml.sax.SAXException: Fatal Error: URI=http://10.1.3.90/wbds/service.asmx
Line=61: The element type "br" must be ter
ated by the matching end-tag "".
 at
org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:740)
 at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
Source)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
 at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
 at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
 at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
 at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
 at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
 at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:482)
 at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
 at java.lang.Thread.run(Thread.java:595)


Can any bady show some way out here.

ThanQ,
Ajay



-- 
View this message in context: 
http://www.nabble.com/Unable-to-find-required-classes-%28javax.activation.DataHandler-and-javax.mail.internet.MimeMultipart%29-tp14657183p14657183.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: [General] Advantages of Axis2 over Axis1

2008-01-06 Thread gaurav lall
What I like about Axis2 is the

Simplicity of API in terms of invoking the service and writing the service
code
Support for different data binding technologies

Thanks
Gaurav
On Jan 6, 2008 9:15 AM, Martin Gainty <[EMAIL PROTECTED]> wrote:

>  Good Point
>
> The main feature of Axis2 is an architectural re-design to truly implement
> AOP
> features which would be shared by multiple services are refactored to
> modules
> The modules then are engaged to the implemented service
>
> another improvement is asynchronous method invocation
> http://ws.apache.org/axis2/1_3/migration.html
>
> Included are transport independence so converting from HTTP to FTP
> is achieved declaratively instead of programmatic
>
> The Axis1 engine was essentially a SAX parser ..AXIS2 is essentially a
> Stax parser
>
> Anyone else?
> Martin
>
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
>
>
>  --
> Date: Sun, 6 Jan 2008 11:39:06 +0200
> From: [EMAIL PROTECTED]
> To: axis-user@ws.apache.org
> Subject: [General] Advantages of Axis2 over Axis1
>
>
> Hi All,
>
> Any help or advise is appreciated.
>
> I want to convince our project to move from Axis1 rpc-enc WS to Axis2
> (either rpc-lit / doc-lit).
> Also i am preparing a document to highlight them.
> My initial study from various internet resources have told me about these
> a.) more performance for Axis2. (Benchmark results between Apache Axis1
> and Apache Axis2 http://wso2.org/library/91 )
> b.) considerable performance over other WS applications (Benchmark results
> between Apache Axis2 and Codehaus XFire http://wso2.org/library/588 )
>  c.) Another stuff we use rpc-encoded services. But this I can change in
> Axis1 also to doc-lit or rpc-lit to make it inline with WS-I basic profile.
>
> I also saw various WS-* specification support that Axis2 has. But is there
> some thing much more significant in Axis2 which has a cutting edge over
> Axis1. Some reference to such comparisons over the web would be higly
> helpful.
> Thanks in advance.
>
> Regards
> Subir
>
>
> --
> Get the power of Windows + Web with the new Windows Live. Get it 
> now!
>


Re: Java2WSDL Exception Handling

2008-01-06 Thread Lahiru Sandakith
Hi,

Does this adresses your requirement
https://issues.apache.org/jira/browse/AXIS2-3412
else please create a JIRA of your requirement.

Thanks
Lahiru Sandakith

On Jan 6, 2008 12:52 PM, Belal Juma <[EMAIL PROTECTED]>
wrote:

>  Hi All,
>
> We are using Java2WSDL in our implementation. We identified one customized
> exception to be thrown by the webservices and declared in the throws clause
> of the signature (assume the name OurException).  When generating the stubs,
> this exception is part of them (OurException0).
>
>
>
> The problem is, whenever the webservice throw this exception the client
> cannot catch it because it is thrown by the server as
> InvocationTargetException with the cause of our customized exception
> (OurException).
>
>
>
> I noticed that the client stubs "throws" clause is having RemoteException
> and ourException0. And ourException0 cannot be caught at all.!!!
>
>
>
> Please advice what is the right way of doing exception handling in Axis2?
>
>
>
> Regards,
>
>
>
> ***
> THIS E-MAIL AND ANY FILES TRANSMITTED WITH IT ARE CONFIDENTIAL AND INTENDED 
> SOLELY FOR THE USE
> OF THE INDIVIDUAL OR ENTITY TO WHOM THEY ARE ADDRESSED. IF YOU HAVE RECEIVED 
> THIS E-MAIL IN ERROR
> PLEASE DELETE THE E-MAIL AND ANY ATTACHMENT(S) AND NOTIFY THE SENDER 
> IMMEDIATELY.
> ***
>
>


-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F


Re: [axis2] wsdl with policy

2008-01-06 Thread Stephen Souness

The code that my setup has generated doesn't look much like that.

I suspect that I need something more configured, so that the details for:
 AXIS2_XML
 AXIS2_REPOSITORY

and
  stub._getServiceClient().engageModule("rampart");

will be available to the wsdl2java tool.



PS - the "WSDL for endpoints" link for the "WS-Policy" section on 
http://131.107.72.15/ilab/ is broken (404 error).




--
Stephen


Amila Suriarachchi wrote:
When you generate the code it adds the security policies to input and 
output messages.
Here codegen tool normalize the policy and attached it as a string so 
that runtime

it builds the policy from that.

See the attached test case.

Amila.



On Dec 21, 2007 2:59 AM, Stephen Souness <[EMAIL PROTECTED] 
> wrote:


Thanks for that Amila.

I've tried the following:

wsdl2java -pn A12Binding -o generated -uri C:\interop.wsdl


I haven't noticed anything in the generated EchoServiceStub.java that
deals with the X509 or other security aspects specified in the
A12Binding_policy policy.

Is their some additional axis2 setup required?


--
Stephen



Amila Suriarachchi wrote:
 > see some security samples here
 > http://131.107.72.15/ilab/
 >
 > Amila
 >
 > On Dec 20, 2007 1:49 AM, Stephen Souness < [EMAIL PROTECTED]

 > mailto:[EMAIL PROTECTED]>>> wrote:
 >
 > Hi all,
 >
 > Can anyone direct me to an example of a WSDL which includes valid
 > policy
 > references, which wsdl2java can interpret and generate an
appropriate
 > client stub from?
 >
 > Alternatively, is there a better way to generate the client code?
 >
 > --
 > Stephen
 >
 >
 >
-

 > To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 > mailto:[EMAIL PROTECTED]>>
 >
 >
 >
 >
 > --
 > Amila Suriarachchi,
 > WSO2 Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]

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





--
Amila Suriarachchi,
WSO2 Inc.




-
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] wsdl with policy

2008-01-06 Thread Stephen Souness
Do I need to provide a policy file, and if so how do I tell WSDL2Java 
where to look for it?



Amila Suriarachchi wrote:
When you generate the code it adds the security policies to input and 
output messages.
Here codegen tool normalize the policy and attached it as a string so 
that runtime

it builds the policy from that.

See the attached test case.

Amila.



On Dec 21, 2007 2:59 AM, Stephen Souness <[EMAIL PROTECTED] 
> wrote:


Thanks for that Amila.

I've tried the following:

wsdl2java -pn A12Binding -o generated -uri C:\interop.wsdl


I haven't noticed anything in the generated EchoServiceStub.java that
deals with the X509 or other security aspects specified in the
A12Binding_policy policy.

Is their some additional axis2 setup required?


--
Stephen



Amila Suriarachchi wrote:
 > see some security samples here
 > http://131.107.72.15/ilab/
 >
 > Amila
 >
 > On Dec 20, 2007 1:49 AM, Stephen Souness < [EMAIL PROTECTED]

 > mailto:[EMAIL PROTECTED]>>> wrote:
 >
 > Hi all,
 >
 > Can anyone direct me to an example of a WSDL which includes valid
 > policy
 > references, which wsdl2java can interpret and generate an
appropriate
 > client stub from?
 >
 > Alternatively, is there a better way to generate the client code?
 >
 > --
 > Stephen
 >
 >
 >
-

 > To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 > mailto:[EMAIL PROTECTED]>>
 >
 >
 >
 >
 > --
 > Amila Suriarachchi,
 > WSO2 Inc.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]

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





--
Amila Suriarachchi,
WSO2 Inc.




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



ADBException: Unexpected subelement - Inheritance

2008-01-06 Thread Corsin Capol
I have a problem with inheritance in my axis2 project. I have two
classes, employee and person. If I call the service getEmployee i get
the following error message.

Does somebody have an idea? It's possible to have inheritance in axis2?

--axisfault--
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException:
Unexpected subelement firstname
--

--person--
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Entity;

@Entity
@Table(name = "\"tbl_Person\"")
@Inheritance(strategy = InheritanceType.JOINED)
public class Person
{
@Id
@GeneratedValue
@Column(name = "fld_perId")
private Long personId;

@Column(name = "fld_perFirstname")
private String   firstname;

@Column(name = "fld_perLastname")
private String   lastname;

@Column(name = "fld_perEmail")
private String   mail;

//@Column(name = "fld_perUserId")
//private User   userId;

public String getFirstname()
{
return firstname;
}
public void setFirstname(String firstname)
{
this.firstname = firstname;
}
public String getLastname()
{
return lastname;
}
public void setLastname(String lastname)
{
this.lastname = lastname;
}
public String getMail()
{
return mail;
}
public void setMail(String email)
{
this.mail = email;
}
public Long getPersonId()
{
return personId;
}
public void setPersonId(Long personId)
{
this.personId = personId;
}
}

--

--employee--
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.AnnotationConfiguration;

@Entity
@Table(name = "\"tbl_Employee\"")
@PrimaryKeyJoinColumn(name = "fld_empId")
public class Employee extends Person
{

@Column(name = "fld_empDepartment")
private String department;

@Column(name = "fld_empJob")
private String job;

private static SessionFactory sessionFactory;

public static Employee[] getEmployee()
{

Transaction tx = null;
sessionFactory = new
AnnotationConfiguration().configure().buildSessionFactory();
Session session = sessionFactory.getCurrentSession();

tx = session.beginTransaction();
Query query = session.createQuery("SELECT emp " +
  "FROM Employee emp ");

List empList =  query.list();   

Employee[] emp = (Employee[]) empList.toArray(new 
Employee[empList.size()]);

tx.commit();
sessionFactory.close();

return emp;
}

public String getDepartment()
{
return department;
}

public void setDepartment(String department)
{
this.department = department;
}

public String getJob()
{
return job;
}

public void setJob(String job)
{
this.job = job;
}

}

--

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



RE: [General] Advantages of Axis2 over Axis1

2008-01-06 Thread Martin Gainty

Good Point
 
The main feature of Axis2 is an architectural re-design to truly implement AOP
features which would be shared by multiple services are refactored to 
modulesThe modules then are engaged to the implemented serviceanother 
improvement is asynchronous method 
invocationhttp://ws.apache.org/axis2/1_3/migration.htmlIncluded are transport 
independence so converting from HTTP to FTP is achieved declaratively instead 
of programmatic
 
The Axis1 engine was essentially a SAX parser ..AXIS2 is essentially a Stax 
parser
Anyone else?Martin __Disclaimer and 
confidentiality noteEverything in this e-mail and any attachments relates to 
the official business of Sender. This transmission is of a confidential nature 
and Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within this 
transmission.


Date: Sun, 6 Jan 2008 11:39:06 +0200From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: 
[General] Advantages of Axis2 over Axis1
Hi All,
 
Any help or advise is appreciated.
 
I want to convince our project to move from Axis1 rpc-enc WS to Axis2 (either 
rpc-lit / doc-lit).
Also i am preparing a document to highlight them. 
My initial study from various internet resources have told me about these
a.) more performance for Axis2. (Benchmark results between Apache Axis1 and 
Apache Axis2 http://wso2.org/library/91 )
b.) considerable performance over other WS applications (Benchmark results 
between Apache Axis2 and Codehaus XFire http://wso2.org/library/588 ) 

c.) Another stuff we use rpc-encoded services. But this I can change in Axis1 
also to doc-lit or rpc-lit to make it inline with WS-I basic profile. 
 
I also saw various WS-* specification support that Axis2 has. But is there some 
thing much more significant in Axis2 which has a cutting edge over Axis1. Some 
reference to such comparisons over the web would be higly helpful. 
Thanks in advance.
 
Regards
Subir
_
Get the power of Windows + Web with the new Windows Live.
http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_012008

Re: Question regarding deploying Axis Services

2008-01-06 Thread Narayan S Dhillon
Hi Tushar,

You might want to have a look at below article, this addresses how to embed
axis2 webservice inside a war.
http://wso2.org/library/90

Regards, Narayan

On 04/01/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>  Hi all,
>
>  Is there any consequence of not bundling Service classes in .aar instead
> putting them in WEB-INF/lib where all other axis jars are located.
>
>  I am getting ClassDefNotFound :
> org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl error* only
> when I am calling another webservice (on different host) from within our
> axis service.*
>
> *Please share your thoughts.*
>
> *Thanks,*
> *Tushar*
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mails are not encrypted and cannot be guaranteed to be secure or
> error-free as information could be intercepted, corrupted, lost,
> destroyed, arrive late or incomplete, or contain viruses.  The sender
> therefore does not accept liability for any errors or omissions in the
> contents of this message which arise as a result of e-mail transmission.
> If verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities
> or related financial instruments.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


[General] Advantages of Axis2 over Axis1

2008-01-06 Thread Subir S
Hi All,

Any help or advise is appreciated.

I want to convince our project to move from Axis1 rpc-enc WS to Axis2
(either rpc-lit / doc-lit).
Also i am preparing a document to highlight them.
My initial study from various internet resources have told me about these
a.) more performance for Axis2. (Benchmark results between Apache Axis1 and
Apache Axis2 http://wso2.org/library/91 )
b.) considerable performance over other WS applications (Benchmark results
between Apache Axis2 and Codehaus XFire http://wso2.org/library/588 )

c.) Another stuff we use rpc-encoded services. But this I can change in
Axis1 also to doc-lit or rpc-lit to make it inline with WS-I basic profile.



I also saw various WS-* specification support that Axis2 has. But is there
some thing much more significant in Axis2 which has a cutting edge over
Axis1. Some reference to such comparisons over the web would be higly
helpful.

Thanks in advance.



Regards

Subir