Core dumps in Axis libraries

2008-03-05 Thread Raghavendra SM
All,

For a particular scenario, our module core dumps in some axis library 
functions consistently but with different back traces. I'm attaching the 
dumps.log file that has as many as 4 different back-traces produced for 
the same scenario.
Also, please find attached the log that has axis generated log for both 
successful and erroneous times, axis.log.

To give you all a brief background,
+ we are using axis2c-1.0.0
+ the core dump appears during a particular scenario only. Eg: while 
trying to add a list of already existing users to my database. For each 
user there is a SOAP request generated and the requests are sequential, 
i.e the second request is sent only after the response for previous 
request is received.
+ if I increase the log level of my own module that uses axis2c, there 
is no dump. On increasing the log level, my module writes quite a bit of 
information to my log file.

Since the back trace is pointing to the libraries(for which there is no 
source code given), how can this be debugged and fixed? 

Any inputs will be of great help. Please reply.
 

Regards,
~raghav
 




dumps.log
Description: Binary data


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

Re: Core dumps in Axis libraries

2008-03-05 Thread Manjula Peiris
Hi raghav,

Axis2/C 1.3 was recently released. There are lots of new features and
bug fixes in that release. Please try that.
http://ws.apache.org/axis2/c/download.cgi

-Thanks,
Manjula.


On Wed, 2008-03-05 at 17:34 +0530, Raghavendra SM wrote:
 All,
 
 For a particular scenario, our module core dumps in some axis library 
 functions consistently but with different back traces. I'm attaching the 
 dumps.log file that has as many as 4 different back-traces produced for 
 the same scenario.
 Also, please find attached the log that has axis generated log for both 
 successful and erroneous times, axis.log.
 
 To give you all a brief background,
 + we are using axis2c-1.0.0
 + the core dump appears during a particular scenario only. Eg: while 
 trying to add a list of already existing users to my database. For each 
 user there is a SOAP request generated and the requests are sequential, 
 i.e the second request is sent only after the response for previous 
 request is received.
 + if I increase the log level of my own module that uses axis2c, there 
 is no dump. On increasing the log level, my module writes quite a bit of 
 information to my log file.
 
 Since the back trace is pointing to the libraries(for which there is no 
 source code given), how can this be debugged and fixed? 
 
 Any inputs will be of great help. Please reply.
  
 
 Regards,
 ~raghav
  
 
 
 -
 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: Core dumps in Axis libraries

2008-03-05 Thread Raghavendra SM
Thanks Manjula,

But thats not a viable option for us. We would still want to continue 
using axis2C-1.0 for some more time. 

Are these dumps well known? And have they been specifically fixed in 
axis2c-1.3? 

Regards,
~raghav
 

-Original Message-
From: Manjula Peiris [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2008 6:05 PM
To: Apache AXIS C User List
Subject: Re: Core dumps in Axis libraries

Hi raghav,

Axis2/C 1.3 was recently released. There are lots of new features and
bug fixes in that release. Please try that.
http://ws.apache.org/axis2/c/download.cgi

-Thanks,
Manjula.


On Wed, 2008-03-05 at 17:34 +0530, Raghavendra SM wrote:
 All,
 
 For a particular scenario, our module core dumps in some axis library 
 functions consistently but with different back traces. I'm attaching 
the 
 dumps.log file that has as many as 4 different back-traces produced 
for 
 the same scenario.
 Also, please find attached the log that has axis generated log for 
both 
 successful and erroneous times, axis.log.
 
 To give you all a brief background,
 + we are using axis2c-1.0.0
 + the core dump appears during a particular scenario only. Eg: while 
 trying to add a list of already existing users to my database. For 
each 
 user there is a SOAP request generated and the requests are 
sequential, 
 i.e the second request is sent only after the response for previous 
 request is received.
 + if I increase the log level of my own module that uses axis2c, there 

 is no dump. On increasing the log level, my module writes quite a bit 
of 
 information to my log file.
 
 Since the back trace is pointing to the libraries(for which there is 
no 
 source code given), how can this be debugged and fixed? 
 
 Any inputs will be of great help. Please reply.
  
 
 Regards,
 ~raghav
  
 
 
 -
 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: Core dumps in Axis libraries

2008-03-05 Thread Dinesh Premalal
Hi Raghavendra,

Raghavendra SM [EMAIL PROTECTED] writes:

 Thanks Manjula,

 But thats not a viable option for us. We would still want to continue 
 using axis2C-1.0 for some more time. 

 Are these dumps well known? And have they been specifically fixed in 
 axis2c-1.3? 
Hmm..For me it seems most of dumps occurred from libxml2, could you
please try with Guththila parser.

to enable guththila , you need to use --enable-guththila option. i.e

./configure --enable-guththila=yes [other options]

thanks,
Dinesh

-- 
http://nethu.org

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



Re: Core dumps in Axis libraries

2008-03-05 Thread Samisa Abeysinghe

Raghavendra SM wrote:

Thanks Manjula,

But thats not a viable option for us. We would still want to continue 
using axis2C-1.0 for some more time. 

Are these dumps well known? 


No.

Are you using the same service client instance from multiple threads?

Samisa...


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



Re: Core dumps in Axis libraries

2008-03-05 Thread Samisa Abeysinghe

Raghavendra SM wrote:

Thanks Manjula,

But thats not a viable option for us. We would still want to continue 
using axis2C-1.0 for some more time. 
  


Well, the community in general is unable to support this scenario. 
Almost all of the devs are working with the latest release. And over 
time, since the release of 1.0, we have done a great deal of bug fixes.

It is always advisable to switch to the latest release.

Samisa...


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



RE: Core dumps in Axis libraries

2008-03-05 Thread Manjula Peiris

On Wed, 2008-03-05 at 18:09 +0530, Raghavendra SM wrote:
 Thanks Manjula,
 
 But thats not a viable option for us. We would still want to continue 
 using axis2C-1.0 for some more time.

IMHO, changing from Axis2/C 1.0 to 1.3 is not a big issue. Because the
client API and the service API did not change much. Devs please correct
me if i am wrong. There are lot of new features, bug fixes and
performance improvements in 1.3 release.

-Manjula


  
 
 Are these dumps well known? And have they been specifically fixed in 
 axis2c-1.3? 
 
 Regards,
 ~raghav
  
 
 -Original Message-
 From: Manjula Peiris [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 05, 2008 6:05 PM
 To: Apache AXIS C User List
 Subject: Re: Core dumps in Axis libraries
 
 Hi raghav,
 
 Axis2/C 1.3 was recently released. There are lots of new features and
 bug fixes in that release. Please try that.
 http://ws.apache.org/axis2/c/download.cgi
 
 -Thanks,
 Manjula.
 
 
 On Wed, 2008-03-05 at 17:34 +0530, Raghavendra SM wrote:
  All,
  
  For a particular scenario, our module core dumps in some axis library 
  functions consistently but with different back traces. I'm attaching 
 the 
  dumps.log file that has as many as 4 different back-traces produced 
 for 
  the same scenario.
  Also, please find attached the log that has axis generated log for 
 both 
  successful and erroneous times, axis.log.
  
  To give you all a brief background,
  + we are using axis2c-1.0.0
  + the core dump appears during a particular scenario only. Eg: while 
  trying to add a list of already existing users to my database. For 
 each 
  user there is a SOAP request generated and the requests are 
 sequential, 
  i.e the second request is sent only after the response for previous 
  request is received.
  + if I increase the log level of my own module that uses axis2c, there 
 
  is no dump. On increasing the log level, my module writes quite a bit 
 of 
  information to my log file.
  
  Since the back trace is pointing to the libraries(for which there is 
 no 
  source code given), how can this be debugged and fixed? 
  
  Any inputs will be of great help. Please reply.
   
  
  Regards,
  ~raghav
   
  
  
  -
  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: Core dumps in Axis libraries

2008-03-05 Thread Samisa Abeysinghe

Manjula Peiris wrote:

On Wed, 2008-03-05 at 18:09 +0530, Raghavendra SM wrote:
  

Thanks Manjula,

But thats not a viable option for us. We would still want to continue 
using axis2C-1.0 for some more time.



IMHO, changing from Axis2/C 1.0 to 1.3 is not a big issue. Because the
client API and the service API did not change much. Devs please correct
me if i am wrong. 


That is correct. We added new methods, but did not change any of the 
existing methods. So it should be safe. However, you may have to 
recompile your clients/services.


Samisa...


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



RE: Axis2/C 1.2 breaks my webservice

2008-03-05 Thread Liu_Edward
Hi Senaka,

I am working with Subra on resolving this issue, and I am having no luck
in getting Axis2/C 1.3.0 to work with the libraries he already discussed
about in previous threads.  Even removing the -static-libgcc flag
during compilation of our libraries does not resolve the issue.

Ed

-Original Message-
From: Senaka Fernando [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2008 1:25 AM
To: Apache AXIS C User List
Subject: Re: Axis2/C 1.2 breaks my webservice

Hi all,

 Senaka,
 1.3 has been released. Users can use the source pack. Why use svn?

Well they should be using the source pack rather. SVN links were simply
to
respond to Subra's last reply. Also, I believe that the Axis2/C 1.3.0
source pack would've solved this issue.

Regards,
Senaka


 Samisa...

 Senaka Fernando wrote:
 Hi Subra,

 No, I meant the whole source. You can try, [1] for this purpose. [2]
is
 the 1.2.0 tag. I think you were rather trying an RC tag, according to
 what
 I gathered from your previous replies to this thread.

 [1] http://svn.apache.org/repos/asf/webservices/axis2/tags/c/1.3.0/
 [2] http://svn.apache.org/repos/asf/webservices/axis2/tags/c/1.2.0/

 And, regarding, isn't the build.sh file from axis2 1.1good?. Did
you
 use
 the 1.1 build.sh with, 1.2 source?

 Regards,
 Senaka


 Hi Senaka,

 I suggest you check out from a branch and try running ./build.sh so
 that

 the configure scripts will be regenerated to support your CFLAGS.
If
 this
 also fails, may be it is the -static-libgcc -shared combination
that
 gives trouble.


 I have downloaded ver 1.3 and would like to try my code with this
 version.
 but before I begin I just wanted to make sure that I am doing
evrything
 correctly.

 What do you mean when you ask me to checkout from a branch? Do you
want
 me
 to checkout just the build.sh file? isn't the build.sh file from
axis2
 1.1good?


 Subra




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






 --
 Samisa Abeysinghe
 Software Architect; WSO2 Inc.

 http://www.wso2.com/ - Oxygenating the Web Service Platform.


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



Module conflict

2008-03-05 Thread Subra A Narayanan
Hello folks,

I am running in to another problem and was wondering if I could get some
help from you guys.

Another developer in my team had to add the following lines to httpd config
file. These lines are in a separate .conf file which is placed in the
/etc/httpd/conf.d/ directory and gets included in the main httpd.conf file.

DocumentRoot /srv/www/html/WebUI/public/
Directory /srv/www/html/WebUI/public/
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
/Directory

We realized that once this is added, we are unable to access our axis2 soap
webservices. We are not even able to bring up the page that lists all the
services and the operations. Looks like that the axis2 httpd module isn't
loading properly.

I did some research and I think it might have something to do with the per
server config and per directory config structures in the axis2 apache
module. Do we have to merge the directory config structures? I am kind of
new to writing apache modules so pls excuse my ignorance if I am wrong. I
will continue to investigate this issue as one of my own apache module is
also not working because of this.

In the meantime, if you guys have any idea please let me know.


Thanks,
Subra


Re: Example policy file needed

2008-03-05 Thread Nandana Mihindukulasooriya
Hi Simon,
Currently Apache Rampart doesn't support alternative security
policies for an endpoint. Current workaround is having two separate
EPRs with the alternative policies. Would that suit your scenario ? If
not you can try to convince the Rampart community to support
alternative security policies starting a thread in the Rampart dev
list.

thanks,
/nandana

On Tue, Mar 4, 2008 at 10:58 PM, Glenn Dougherty
[EMAIL PROTECTED] wrote:
 Nandana, et al,

  We are looking for a combined ws-policy example that supports both Username
  Token and SAML assertions. Meaning, we need to provide a service that
  supports the caller passing either a username token or a SAML assertion.
  Does anyone have an example that shows these two options within in one
  ws-policy file? We have not been successful in configuring the Axis2 1.3
  stack for this effort.

  Regards,
  Glenn


  -Original Message-
  From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 21, 2008 3:27 AM
  To: axis-user@ws.apache.org
  Subject: Re: Example policy file needed

  Hi Simon,
 Please take a look at samples come with the Apache Rampart
  distribution. They contain policies that defines
  Sample 01 - Username Token authentication
  Sample 05 - SAML token

  thanks,
  nandana

  [1] -
  https://svn.apache.org/repos/asf/webservices/rampart/trunk/java/modules/ramp
  art-samples/policy/sample01/
  [2] -
  https://svn.apache.org/repos/asf/webservices/rampart/trunk/java/modules/ramp
  art-samples/policy/sample02/


  On Thu, Feb 21, 2008 at 12:36 AM, Simon Nunn [EMAIL PROTECTED] wrote:
  
  
  
  
   I am trying to use ws-policy for my webservice.   I would like for the
   service to receive either a saml assertion or a username token for
   authetication.  I have been unsuccessful in getting a ws-policy configured
   for this.  Does anyone have an example of a policy file that does this?
  
  
  
   Thanks,
  
Simon
  
  



  --
  Nandana Mihindukulasooriya
  Software Engineer
  WSO2 inc.

  http://nandana83.blogspot.com/
  http://nandanasm.wordpress.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]



http://nandana83.blogspot.com/
http://nandanasm.wordpress.com/

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



Axis2 [1.3] Content-Type: text/xml results in AxisFault

2008-03-05 Thread Thomas Pawlitzki
Hello,

when a client sends a SOAP 1.2 HTTP-request to my webservice with a
ContentType: text/xml
he recieves the following error:

The endpoint reference (EPR) for the Operation not found is ... and
the WSA Action = null

When the client changes the HTTP Header so that the header inlcudes:
Content-Type: application/soap+xml
or
Content-Type: application/soap-xml
the webservice skeleton can recieve the request without any errors.

Why is that?
Does axis2 and SOAP 1.2 not work correctly with the content type text/xml?

Tanks in advance!

Greetings,
Thomas

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



Re: Axis2 [1.3] Content-Type: text/xml results in AxisFault

2008-03-05 Thread Upul Godage
SOAP 1.1 uses content type text/xml
SOAP 1.2 needs content type to be application/soap+xml

Upul

On Wed, Mar 5, 2008 at 4:17 PM, Thomas Pawlitzki [EMAIL PROTECTED]
wrote:

 Hello,

 when a client sends a SOAP 1.2 HTTP-request to my webservice with a
 ContentType: text/xml
 he recieves the following error:

 The endpoint reference (EPR) for the Operation not found is ... and
 the WSA Action = null

 When the client changes the HTTP Header so that the header inlcudes:
 Content-Type: application/soap+xml
 or
 Content-Type: application/soap-xml
 the webservice skeleton can recieve the request without any errors.

 Why is that?
 Does axis2 and SOAP 1.2 not work correctly with the content type text/xml?

 Tanks in advance!

 Greetings,
 Thomas

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




Engage Modules and SOAPHeader

2008-03-05 Thread Nuria Rodríguez García
Hi Nandana,



I would need to know  what's  the influence of engaging addressing and
rampart modules  on the SOAP header management.

I  would like to add more information into  the header in addition to the
information set by default by this components and I don't know if it's
possible  to do that .

I'm trying to get the header set by default by these modules and trying to
modify it with more parameters before sending the SOAP message.



Thanks,

Nuria


The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Capilla Castillo, Esther
Hi all!
I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem, when
I invoke the Services I obtain the follow message:
The endpoint reference (EPR) for the Operation not found is
/axis2/services/WsVerDocumento and the WSA Action = null
I think that my problem is in the services.xml, but I don't know. My
services.xml is that:
service name=WsVerDocumento
Description
Este WebService permita bajar un documento del repositorio de
Documentum
/Description
parameter name=enableMTOMtrue/parameter
parameter name=ServiceClass
locked=falsecom.soluziona.documental.servicios2.verdocumento.VerDocum
entoWebService/parameter
operation name=sendAttachment
actionMappingsendAttachment/actionMapping
messageReceiver
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
/operation
/service

Thanks!
Esther

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



Re: Axis2 [1.3] Content-Type: text/xml results in AxisFault

2008-03-05 Thread Thomas Pawlitzki
Hi Uplu,

thanks for this information.

Greetings,
Thomas

2008/3/5, Upul Godage [EMAIL PROTECTED]:
 SOAP 1.1 uses content type text/xml
 SOAP 1.2 needs content type to be application/soap+xml

 Upul


 On Wed, Mar 5, 2008 at 4:17 PM, Thomas Pawlitzki
 [EMAIL PROTECTED] wrote:

 
  Hello,
 
  when a client sends a SOAP 1.2 HTTP-request to my webservice with a
  ContentType: text/xml
  he recieves the following error:
 
  The endpoint reference (EPR) for the Operation not found is ... and
  the WSA Action = null
 
  When the client changes the HTTP Header so that the header inlcudes:
  Content-Type: application/soap+xml
  or
  Content-Type: application/soap-xml
  the webservice skeleton can recieve the request without any errors.
 
  Why is that?
  Does axis2 and SOAP 1.2 not work correctly with the content type text/xml?
 
  Tanks in advance!
 
  Greetings,
  Thomas
 
 
 -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Problem getting Array of Objects in Java client

2008-03-05 Thread Christian Smith

Hi All,

Firstly, i'm quite new to SOAP and webservices :-)
Here's my problem:  I am trying to use a webservice (not mine) and 
having trouble getting an array of objects.  I think my problem lies in 
defining the type mapping and serializers/deserializers for it.


I have been struggling with this for a while, any help is greatly 
appreciated!


Thanks,
Christian


Heres part of the wsdl:

!-- interface IHardDiskAttachment as struct: --
xsd:complexType name=IHardDiskAttachment
  xsd:sequence
xsd:element name=hardDisk type=xsd:string/
xsd:element name=controller type=vbox:DiskControllerType/
xsd:element name=deviceNumber type=xsd:int/
  /xsd:sequence
/xsd:complexType
# cut #
!-- collection IHardDiskAttachmentCollection as array (wsmap: struct): --
xsd:complexType name=ArrayOfIHardDiskAttachment
  xsd:sequence
xsd:element name=array minOccurs=0 maxOccurs=unbounded 
type=vbox:IHardDiskAttachment/

  /xsd:sequence
/xsd:complexType
# cut #

Here's my java client code:

  public IHardDisk getHardDisk(){
  IHardDisk retCode = null;
try {
  Call call = getCall();
  call.setReturnClass(Vector.class);
TypeMappingRegistry registry = 
call.getService().getTypeMappingRegistry();

  TypeMapping mapping = registry.createTypeMapping();
QName IHardDiskAttachmentArrayTypeQname = new 
QName(mor.getNameSpace(), ArrayOfIHardDiskAttachment);
QName IHardDiskAttachmentArrayElementName = new 
QName(, array);
  
mapping.register(IHardDiskAttachment[].class, 
IHardDiskAttachmentArrayTypeQname,
  new 
ArraySerializerFactory(IHardDiskAttachmentArrayTypeQname),
  new 
ArrayDeserializerFactory(IHardDiskAttachmentArrayTypeQname));

  registry.register(ArrayOfIHardDiskAttachment, mapping);
IHardDiskAttachment[] disks =
  (IHardDiskAttachment[])call.invoke(mor.getNameSpace(),
  IMachine_getHardDiskAttachments,
  new Object[] { mor.getMOR() });
  } catch (Exception e) {
  e.printStackTrace();
  }
return retCode;
  }

I assume there are many places it is going wrong, lots of trial and 
error :-/


Here's the SOAP response sent form the server:

HTTP/1.1 200 OK
Server: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Content-Length: 562
Connection: close

?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:vbox=http://www.virtualbox.org/;

SOAP-ENV:Body
  vbox:IVirtualBox_getMachinesResponse
  returnval
  array8bf184786b97a493-0012/array
  array8bf184786b97a493-0013/array
  /returnval
  /vbox:IVirtualBox_getMachinesResponse
/SOAP-ENV:Body
/SOAP-ENV:Envelope


Exception:

05-Mar-2008 11:39:31 org.apache.axis.client.Call invoke
SEVERE: Exception:
org.xml.sax.SAXException: SimpleDeserializer encountered a child 
element, which is NOT expected, in something it was trying to deserialize.
  at 
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145) 

  at 
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) 

  at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 

  at 
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) 

  at 
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)

  at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
  at org.apache.axis.client.Call.invoke(Call.java:2467)
  at org.apache.axis.client.Call.invoke(Call.java:2366)
  at com.sun.vda.agent.vb.IMachine.getHardDisk(IMachine.java:111)
  at com.sun.vda.agent.vb.VirtualBox.init(VirtualBox.java:47)
  at com.sun.vda.agent.vb.VirtualBox.main(VirtualBox.java:136)
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: SimpleDeserializer encountered a 
child element, which is NOT expected, in something it was trying to 
deserialize.

faultActor:
faultNode:
faultDetail:
  {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: 
SimpleDeserializer encountered a child element, which is NOT expected, 
in something it was trying to deserialize.
  at 
org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145) 

  at 
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) 

  at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) 

  at 

Re: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Deepal jayasinghe


Any possibility of looking at the SOAP request (including HTTP headers) 
, then I may be able to give you an answer.


Thank you,
Deepal

Hi all!
I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem, when
I invoke the Services I obtain the follow message:
The endpoint reference (EPR) for the Operation not found is
/axis2/services/WsVerDocumento and the WSA Action = null
I think that my problem is in the services.xml, but I don't know. My
services.xml is that:
service name=WsVerDocumento
Description
Este WebService permita bajar un documento del repositorio de
Documentum
/Description
parameter name=enableMTOMtrue/parameter
parameter name=ServiceClass
locked=falsecom.soluziona.documental.servicios2.verdocumento.VerDocum
entoWebService/parameter
operation name=sendAttachment
actionMappingsendAttachment/actionMapping
messageReceiver
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
/operation
/service

Thanks!
Esther

-
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: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Capilla Castillo, Esther
This is the SOAP request:

soapenv:Reason
−
soapenv:Text
The endpoint reference (EPR) for the Operation not found is 
/axis2/services/WsVerDocumento and the WSA Action = null
/soapenv:Text
/soapenv:Reason

-Mensaje original-
De: Deepal jayasinghe [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 05 de marzo de 2008 13:37
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found


Any possibility of looking at the SOAP request (including HTTP headers) 
, then I may be able to give you an answer.

Thank you,
Deepal
 Hi all!
 I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem, when
 I invoke the Services I obtain the follow message:
 The endpoint reference (EPR) for the Operation not found is
 /axis2/services/WsVerDocumento and the WSA Action = null
 I think that my problem is in the services.xml, but I don't know. My
 services.xml is that:
 service name=WsVerDocumento
 Description
 Este WebService permita bajar un documento del repositorio de
 Documentum
 /Description
   parameter name=enableMTOMtrue/parameter
 parameter name=ServiceClass
 locked=falsecom.soluziona.documental.servicios2.verdocumento.VerDocum
 entoWebService/parameter
 operation name=sendAttachment
   actionMappingsendAttachment/actionMapping
   messageReceiver
 class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
 /operation
 /service

 Thanks!
 Esther

 -
 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: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Deepal Jayasinghe

What you have send is the response not the request :)

-Deepal


This is the SOAP request:

soapenv:Reason
−
soapenv:Text
The endpoint reference (EPR) for the Operation not found is 
/axis2/services/WsVerDocumento and the WSA Action = null
/soapenv:Text
/soapenv:Reason

-Mensaje original-
De: Deepal jayasinghe [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 05 de marzo de 2008 13:37

Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found


Any possibility of looking at the SOAP request (including HTTP headers) 
, then I may be able to give you an answer.


Thank you,
Deepal
  

Hi all!
I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem, when
I invoke the Services I obtain the follow message:
The endpoint reference (EPR) for the Operation not found is
/axis2/services/WsVerDocumento and the WSA Action = null
I think that my problem is in the services.xml, but I don't know. My
services.xml is that:
service name=WsVerDocumento
Description
Este WebService permita bajar un documento del repositorio de
Documentum
/Description
parameter name=enableMTOMtrue/parameter
parameter name=ServiceClass
locked=falsecom.soluziona.documental.servicios2.verdocumento.VerDocum
entoWebService/parameter
operation name=sendAttachment
actionMappingsendAttachment/actionMapping
messageReceiver
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
/operation
/service

Thanks!
Esther

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

  


--
Thanks,
Deepal

The highest tower is built one brick at a time



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



Re: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Michele Mazzucco

Try to call options.setAction(sendAttachment);

Michele

On 5 Mar 2008, at 12:39, Capilla Castillo, Esther wrote:


This is the SOAP request:

soapenv:Reason
−
soapenv:Text
The endpoint reference (EPR) for the Operation not found is /axis2/ 
services/WsVerDocumento and the WSA Action = null

/soapenv:Text
/soapenv:Reason

-Mensaje original-
De: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 05 de marzo de 2008 13:37
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found


Any possibility of looking at the SOAP request (including HTTP  
headers)

, then I may be able to give you an answer.

Thank you,
Deepal

Hi all!
I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem,  
when

I invoke the Services I obtain the follow message:
The endpoint reference (EPR) for the Operation not found is
/axis2/services/WsVerDocumento and the WSA Action = null
I think that my problem is in the services.xml, but I don't know. My
services.xml is that:
service name=WsVerDocumento
Description
Este WebService permita bajar un documento del repositorio de
Documentum
/Description
parameter name=enableMTOMtrue/parameter
parameter name=ServiceClass
locked=falsecom.soluziona.documental.servicios2.verdocumento.VerDo 
cum

entoWebService/parameter
operation name=sendAttachment
actionMappingsendAttachment/actionMapping
messageReceiver
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
/operation
/service

Thanks!
Esther

-
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: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Capilla Castillo, Esther
Ok, I get this message to invoke in the Internet Explorer. I have not even 
tried to invoke from a client.



-Mensaje original-
De: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 05 de marzo de 2008 13:42
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found

What you have send is the response not the request :)

-Deepal

 This is the SOAP request:

 soapenv:Reason
 −
   soapenv:Text
 The endpoint reference (EPR) for the Operation not found is 
 /axis2/services/WsVerDocumento and the WSA Action = null
 /soapenv:Text
 /soapenv:Reason

 -Mensaje original-
 De: Deepal jayasinghe [mailto:[EMAIL PROTECTED] 
 Enviado el: miércoles, 05 de marzo de 2008 13:37
 Para: axis-user@ws.apache.org
 Asunto: Re: The endpoint reference (EPR) for the Operation not found


 Any possibility of looking at the SOAP request (including HTTP headers) 
 , then I may be able to give you an answer.

 Thank you,
 Deepal
   
 Hi all!
 I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem, when
 I invoke the Services I obtain the follow message:
 The endpoint reference (EPR) for the Operation not found is
 /axis2/services/WsVerDocumento and the WSA Action = null
 I think that my problem is in the services.xml, but I don't know. My
 services.xml is that:
 service name=WsVerDocumento
 Description
 Este WebService permita bajar un documento del repositorio de
 Documentum
 /Description
  parameter name=enableMTOMtrue/parameter
 parameter name=ServiceClass
 locked=falsecom.soluziona.documental.servicios2.verdocumento.VerDocum
 entoWebService/parameter
 operation name=sendAttachment
  actionMappingsendAttachment/actionMapping
  messageReceiver
 class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
 /operation
 /service

 Thanks!
 Esther

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

   

-- 
Thanks,
Deepal

The highest tower is built one brick at a time



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



RE: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Capilla Castillo, Esther
In my client I have the following code to set options: 
Options options = new Options();
options.setTo(targetEPR);
options.setAction(sendAttachment);


options.setProperty(Constants.Configuration.ENABLE_MTOM, 
Constants.VALUE_TRUE);

options.setTimeOutInMilliSeconds(1);

ServiceClient sender = new ServiceClient();
sender.setOptions(options);

-Mensaje original-
De: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 05 de marzo de 2008 13:45
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found

Try to call options.setAction(sendAttachment);

Michele

On 5 Mar 2008, at 12:39, Capilla Castillo, Esther wrote:

 This is the SOAP request:

 soapenv:Reason
 −
   soapenv:Text
 The endpoint reference (EPR) for the Operation not found is /axis2/ 
 services/WsVerDocumento and the WSA Action = null
 /soapenv:Text
 /soapenv:Reason

 -Mensaje original-
 De: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
 Enviado el: miércoles, 05 de marzo de 2008 13:37
 Para: axis-user@ws.apache.org
 Asunto: Re: The endpoint reference (EPR) for the Operation not found


 Any possibility of looking at the SOAP request (including HTTP  
 headers)
 , then I may be able to give you an answer.

 Thank you,
 Deepal
 Hi all!
 I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem,  
 when
 I invoke the Services I obtain the follow message:
 The endpoint reference (EPR) for the Operation not found is
 /axis2/services/WsVerDocumento and the WSA Action = null
 I think that my problem is in the services.xml, but I don't know. My
 services.xml is that:
 service name=WsVerDocumento
 Description
 Este WebService permita bajar un documento del repositorio de
 Documentum
 /Description
  parameter name=enableMTOMtrue/parameter
 parameter name=ServiceClass
 locked=falsecom.soluziona.documental.servicios2.verdocumento.VerDo 
 cum
 entoWebService/parameter
 operation name=sendAttachment
  actionMappingsendAttachment/actionMapping
  messageReceiver
 class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
 /operation
 /service

 Thanks!
 Esther

 -
 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: Axis2 [1.3] Content-Type: text/xml results in AxisFault

2008-03-05 Thread Martin Gainty
spec has changed rather dramatically from legacy 1.1 version
http://www.idealliance.org/papers/xmle02/dx_xmle02/papers/02-02-02/02-02-02.
html

M-
- Original Message -
From: Thomas Pawlitzki [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Wednesday, March 05, 2008 7:16 AM
Subject: Re: Axis2 [1.3] Content-Type: text/xml results in AxisFault


 Hi Uplu,

 thanks for this information.

 Greetings,
 Thomas

 2008/3/5, Upul Godage [EMAIL PROTECTED]:
  SOAP 1.1 uses content type text/xml
  SOAP 1.2 needs content type to be application/soap+xml
 
  Upul
 
 
  On Wed, Mar 5, 2008 at 4:17 PM, Thomas Pawlitzki
  [EMAIL PROTECTED] wrote:
 
  
   Hello,
  
   when a client sends a SOAP 1.2 HTTP-request to my webservice with a
   ContentType: text/xml
   he recieves the following error:
  
   The endpoint reference (EPR) for the Operation not found is ... and
   the WSA Action = null
  
   When the client changes the HTTP Header so that the header inlcudes:
   Content-Type: application/soap+xml
   or
   Content-Type: application/soap-xml
   the webservice skeleton can recieve the request without any errors.
  
   Why is that?
   Does axis2 and SOAP 1.2 not work correctly with the content type
text/xml?
  
   Tanks in advance!
  
   Greetings,
   Thomas
  
  
  -
   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: SOAPRequest

2008-03-05 Thread Seetha Rama Krishna
Hi Vipul,
thanks for your reply. 
  call.getMessageContext().getMessage().writeTo(System.out);   is not working, 
because getMessageContext() is not a method in Call Interface. 
  Here is my complete code which is available with axis distribution 
chapter5
  /*
 * Copyright 2001-2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *  http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an  AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
  package samples.userguide.example5;
  import org.apache.axis.AxisFault;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.utils.Options;
  import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
   
public class Client
{
public static void main(String [] args) throws Exception
{
Options options =  new Options(args);

Order order = new Order();
order.setCustomerName(Glen Daniels);
order.setShippingAddress(275 Grove Street, Newton, MA);

String [] items = new String[] { mp3jukebox, 1600mahBattery };
int [] quantities = new int [] { 1, 4 };

order.setItemCodes(items);
order.setQuantities(quantities);

Service  service = new Service();
Call  call= (Call) service.createCall();
QNameqn  = new QName( urn:BeanService, Order );
  call.registerTypeMapping(Order.class, qn,
  new 
org.apache.axis.encoding.ser.BeanSerializerFactory(Order.class, qn),
  new 
org.apache.axis.encoding.ser.BeanDeserializerFactory(Order.class, qn));
String result;
try {
 call.setTargetEndpointAddress( new java.net.URL(options.getURL()) 
);
call.setOperationName( new QName(OrderProcessor, processOrder) 
);
call.addParameter( arg1, qn, ParameterMode.IN );
call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING );
  result = (String) call.invoke( new Object[] { order } );
} catch (AxisFault fault) {
result = Error :  + fault.toString();
}

System.out.println(result);
 }
}

   


Michael Lambert [EMAIL PROTECTED] wrote:Upul Godage wrote: Hi,
   
 String ret = (String) call.invoke( new Object[] { textToSend } );
   
 call.getMessageContext().getMessage().writeTo(System.out); // Writes to the 
given OutputStream
   
 Upul
   
   On Tue, Mar 4, 2008 at 3:33 PM, Seetha Rama Krishna [EMAIL PROTECTED] 
wrote:
   Hi,
  I deployed the sample code which is distributed by axis, I just wanted to 
see the SOAP Request message through programming.  
  I had done this through TCPMON.  I need to check it through programming. 
How can i do this.   I tried to modify the code Client code for MyService 
webservice.
 
 
 MessageContext mc = new MessageContext(null);
 System.out.println(mc.getAxisEngine());
  String ret = (String) call.invoke( new Object[] { textToSend } );
  
System.out.println(AxisEngine.getCurrentMessageContext().getRequestMessage());
 
I am getting nullpointer Exception when i run this code. 
  By using TCPMonitor, i need to check the SOAP Request Messages 
and Response message of Remote webservice.
 How can i do this
 
 
 
   
 
 
  Thanks  Regards,
 Krishna
 
  
 
-
 Now you can chat without downloading messenger. Click here to know how.   
   
  I use a simple customer module that I configured through axis2.xml:
 
 
 import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.handlers.AbstractHandler;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
 /**
  * Simple handler that logs the contents of SOAPs messages to INFO via 
  * the jakarta commons logging package.
  * 
  * Handler typically is configured to capture messages passing through
  * either the IN or OUT phases of Axis2.  To register the handler enter an 
  * xml element similar to the one below in your axis2.xml:
  * 
  * phaseOrder type=InFlow
  *  ...
  *phase name=userMonitorPhase
  *handler name=SOAPSniffer
  *class=com.fry.axis2.module.SOAPSnifferHandler
  *order phase=userMonitorPhase/
  * 

Re: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Michele Mazzucco
What about the protocol (I'm not expert with MTOM -- so I might be  
wrong)?


options.setTransportInProtocol(Constants.TRANSPORT_HTTP); // set  
according to the protocol in operation
This is needed (if MTOM is not used), otherwise an error like cannot  
infer transport... occurs.


Michele

On 5 Mar 2008, at 12:51, Capilla Castillo, Esther wrote:


In my client I have the following code to set options:
Options options = new Options();
options.setTo(targetEPR);
options.setAction(sendAttachment);


		options.setProperty(Constants.Configuration.ENABLE_MTOM,  
Constants.VALUE_TRUE);


options.setTimeOutInMilliSeconds(1);

ServiceClient sender = new ServiceClient();
sender.setOptions(options);

-Mensaje original-
De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 05 de marzo de 2008 13:45
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found

Try to call options.setAction(sendAttachment);

Michele

On 5 Mar 2008, at 12:39, Capilla Castillo, Esther wrote:


This is the SOAP request:

soapenv:Reason
−
soapenv:Text
The endpoint reference (EPR) for the Operation not found is /axis2/
services/WsVerDocumento and the WSA Action = null
/soapenv:Text
/soapenv:Reason

-Mensaje original-
De: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 05 de marzo de 2008 13:37
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found


Any possibility of looking at the SOAP request (including HTTP
headers)
, then I may be able to give you an answer.

Thank you,
Deepal

Hi all!
I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem,
when
I invoke the Services I obtain the follow message:
The endpoint reference (EPR) for the Operation not found is
/axis2/services/WsVerDocumento and the WSA Action = null
I think that my problem is in the services.xml, but I don't know. My
services.xml is that:
service name=WsVerDocumento
Description
Este WebService permita bajar un documento del  
repositorio de

Documentum
/Description
parameter name=enableMTOMtrue/parameter
parameter name=ServiceClass
locked=falsecom.soluziona.documental.servicios2.verdocumento.VerD 
o

cum
entoWebService/parameter
operation name=sendAttachment
actionMappingsendAttachment/actionMapping
messageReceiver
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
/operation
/service

Thanks!
Esther

 
-

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: [Axis2] SSL server certificate

2008-03-05 Thread Nandana Mihindukulasooriya
Hi Joe,

 Thanks for your comments. I'm wondering whether we should import
 certificates to the default Java trusted store
 (jre/lib/security/cacertificates) or to have a separate trusted key store
 file for our application and import certificate to it? Which one is a better
 solution from the security point of view?

I think if we maintain a key store for a application rather than
adding to the default java trust store , it will be easy to manage.
For example, if you have multiple applications with different trust
relationships then we will have to anyway maintain a key store for
each application.

 The other question how can we show certificate to the user and then import
 it programmatically the same way web-browsers do?

Right now, Axis2 + Rampart doesn't show certificate information in the
WSDL. At the moment, clients have to have the servers certificate and
they can use the java keytool import it to a key store. But we can use
XKMS to do the key management programaticaly. But right now Rampart
doesn't support XKMS either. Take a look at the XKMS sample - [1]
which comes with the WSO2 WSAS distribution.

thanks,
/nandana

[1] - http://www.ibm.com/developerworks/xml/library/x-seclay3/
[2] - http://wso2.org/project/wsas/java/2.2.1/docs/xkms_sample_guide.html

 Joe



 On Mon, Mar 3, 2008 at 10:09 AM, Nandana Mihindukulasooriya
 [EMAIL PROTECTED] wrote:
 
 
 
  Hi Nuria,
yes, you need to set a system property in the client side to
  add that key store containing that cert as a trusted key store. This
  can be simply done using
 
 System.setProperty(javax.net.ssl.trustStore,
 path/to/keystore.jks);
 System.setProperty(javax.net.ssl.trustStorePassword, password);
 
  in the client side.
 
  thanks,
  nandana
 
  On Mon, Mar 3, 2008 at 8:14 PM, Nuria Rodríguez García
 
  [EMAIL PROTECTED] wrote:
  
  
 
 
 
   Hello:
  
  
  
   I'm using Axis2 and I need to use SSL to connect to a WS.
  
   In server side I do the following:
  
  
  
   I configure the server.xml file in tomcat. I have:
  
   Connector port=8443
  
  maxThreads=150 minSpareThreads=25
 maxSpareThreads=75
  
  enableLookups=false disableUploadTimeout=true
  
  acceptCount=100 debug=0 scheme=https secure=true
  
  clientAuth=false sslProtocol=TLS /
  
  
  
   Then I generate a server certificate doing the following:
  
   keytool -genkey -alias tomcat -keyalg RSA
  
   keytool -export -alias tomcat -storepass
 changeit
   -file server.cer
  
   keytool -import -v -trustcacerts -alias tomcat
 -file
   server.cer -keystore %JAVA_HOME%/jre/lib/security/cacerts -keypass
 changeit
   -storepass changeit
  
  
  
   I start-up tomcat and when I call the service using the EPR
   https://mymachine:8443/  I receive the following exception:
  
  
  
   I/O exception (org.apache.axis2.AxisFault)
 caught
   when processing request: sun.security.validator.ValidatorException: PKIX
   path building failed:
   sun.security.provider.certpath.SunCertPathBuilderException: unable to
 find
   valid certification path to requested target
  
  
  
   I don't know if I need to indicate something from the client side.
  
  
  
   Thanks,
  
   Nuria
 
  http://nandana83.blogspot.com/
  http://nandanasm.wordpress.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]



Re: Axis2 [1.3] Content-Type: text/xml results in AxisFault

2008-03-05 Thread keith chapman
In addtion to that SOAP 1.1 requires that you send the SOAP action HTTP
header (thats mandatory), but in SOAP 1.2 thats not. Can you check whether
this header is set when your using SOAP 1.1

Thanks,
Keith.

On Wed, Mar 5, 2008 at 4:42 PM, Upul Godage [EMAIL PROTECTED] wrote:

 SOAP 1.1 uses content type text/xml
 SOAP 1.2 needs content type to be application/soap+xml

 Upul


 On Wed, Mar 5, 2008 at 4:17 PM, Thomas Pawlitzki 
 [EMAIL PROTECTED] wrote:

  Hello,
 
  when a client sends a SOAP 1.2 HTTP-request to my webservice with a
  ContentType: text/xml
  he recieves the following error:
 
  The endpoint reference (EPR) for the Operation not found is ... and
  the WSA Action = null
 
  When the client changes the HTTP Header so that the header inlcudes:
  Content-Type: application/soap+xml
  or
  Content-Type: application/soap-xml
  the webservice skeleton can recieve the request without any errors.
 
  Why is that?
  Does axis2 and SOAP 1.2 not work correctly with the content type
  text/xml?
 
  Tanks in advance!
 
  Greetings,
  Thomas
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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

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


Uploading .aar with Ant

2008-03-05 Thread Milan Kuchtiak

Hi,
I am working on a Netbeans plugin for Axis2.
Is there any Ant script available to enable uploading .aar file ?
I've mean the same functionality that is currently available using the 
Axis2 Admin upload feature ?


I am looking for something like

org.apache.catalina.ant.InstallTask (for uploading war files)

Thanks for any reply.

Milan


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



RE: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Capilla Castillo, Esther
When I invoke my webservice from the client, the exception is:
org.apache.axis2.AxisFault: unknown
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)
at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
at clientesAxis2.VerDocumentoCliente.main(VerDocumentoCliente.java:91)



-Mensaje original-
De: Michele Mazzucco [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 05 de marzo de 2008 14:33
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found

What about the protocol (I'm not expert with MTOM -- so I might be  
wrong)?

options.setTransportInProtocol(Constants.TRANSPORT_HTTP); // set  
according to the protocol in operation
This is needed (if MTOM is not used), otherwise an error like cannot  
infer transport... occurs.

Michele

On 5 Mar 2008, at 12:51, Capilla Castillo, Esther wrote:

 In my client I have the following code to set options:
   Options options = new Options();
   options.setTo(targetEPR);
   options.setAction(sendAttachment);
   
   
   options.setProperty(Constants.Configuration.ENABLE_MTOM,  
 Constants.VALUE_TRUE);
   
   options.setTimeOutInMilliSeconds(1);
   
   ServiceClient sender = new ServiceClient();
   sender.setOptions(options);

 -Mensaje original-
 De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
 Enviado el: miércoles, 05 de marzo de 2008 13:45
 Para: axis-user@ws.apache.org
 Asunto: Re: The endpoint reference (EPR) for the Operation not found

 Try to call options.setAction(sendAttachment);

 Michele

 On 5 Mar 2008, at 12:39, Capilla Castillo, Esther wrote:

 This is the SOAP request:

 soapenv:Reason
 −
  soapenv:Text
 The endpoint reference (EPR) for the Operation not found is /axis2/
 services/WsVerDocumento and the WSA Action = null
 /soapenv:Text
 /soapenv:Reason

 -Mensaje original-
 De: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
 Enviado el: miércoles, 05 de marzo de 2008 13:37
 Para: axis-user@ws.apache.org
 Asunto: Re: The endpoint reference (EPR) for the Operation not found


 Any possibility of looking at the SOAP request (including HTTP
 headers)
 , then I may be able to give you an answer.

 Thank you,
 Deepal
 Hi all!
 I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem,
 when
 I invoke the Services I obtain the follow message:
 The endpoint reference (EPR) for the Operation not found is
 /axis2/services/WsVerDocumento and the WSA Action = null
 I think that my problem is in the services.xml, but I don't know. My
 services.xml is that:
 service name=WsVerDocumento
 Description
 Este WebService permita bajar un documento del  
 repositorio de
 Documentum
 /Description
 parameter name=enableMTOMtrue/parameter
 parameter name=ServiceClass
 locked=falsecom.soluziona.documental.servicios2.verdocumento.VerD 
 o
 cum
 entoWebService/parameter
 operation name=sendAttachment
 actionMappingsendAttachment/actionMapping
 messageReceiver
 class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
 /operation
 /service

 Thanks!
 Esther

  
 -
 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: Example policy file needed

2008-03-05 Thread George Stanchev
Hi Nandana,

Is that Neethi or Rampart shortcoming? I also am in need of alternative
policy support for the same two token types as in Simon's message.

Do you need a JIRA?

Best Regards,
George

-Original Message-
From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2008 1:31 AM
To: axis-user@ws.apache.org
Subject: Re: Example policy file needed

Hi Simon,
Currently Apache Rampart doesn't support alternative security
policies for an endpoint. Current workaround is having two separate EPRs
with the alternative policies. Would that suit your scenario ? If not
you can try to convince the Rampart community to support alternative
security policies starting a thread in the Rampart dev list.

thanks,
/nandana

On Tue, Mar 4, 2008 at 10:58 PM, Glenn Dougherty
[EMAIL PROTECTED] wrote:
 Nandana, et al,

  We are looking for a combined ws-policy example that supports both 
 Username  Token and SAML assertions. Meaning, we need to provide a 
 service that  supports the caller passing either a username token or a
SAML assertion.
  Does anyone have an example that shows these two options within in 
 one  ws-policy file? We have not been successful in configuring the 
 Axis2 1.3  stack for this effort.

  Regards,
  Glenn


  -Original Message-
  From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 21, 2008 3:27 AM
  To: axis-user@ws.apache.org
  Subject: Re: Example policy file needed

  Hi Simon,
 Please take a look at samples come with the Apache Rampart  
 distribution. They contain policies that defines  Sample 01 - Username

 Token authentication  Sample 05 - SAML token

  thanks,
  nandana

  [1] -
  
 https://svn.apache.org/repos/asf/webservices/rampart/trunk/java/module
 s/ramp
  art-samples/policy/sample01/
  [2] -
  
 https://svn.apache.org/repos/asf/webservices/rampart/trunk/java/module
 s/ramp
  art-samples/policy/sample02/


  On Thu, Feb 21, 2008 at 12:36 AM, Simon Nunn [EMAIL PROTECTED]
wrote:
  
  
  
  
   I am trying to use ws-policy for my webservice.   I would like for
the
   service to receive either a saml assertion or a username token for

  authetication.  I have been unsuccessful in getting a ws-policy 
 configured   for this.  Does anyone have an example of a policy file
that does this?
  
  
  
   Thanks,
  
Simon
  
  



  --
  Nandana Mihindukulasooriya
  Software Engineer
  WSO2 inc.

  http://nandana83.blogspot.com/
  http://nandanasm.wordpress.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]



http://nandana83.blogspot.com/
http://nandanasm.wordpress.com/

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


**
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. Any 
unauthorized review, use, disclosure or distribution is prohibited. If you are 
not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
**


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



Re: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread csethil
Are you sure that your service is deployed... Can you see it in the
service listing that can be accessed by going to
http://localhost:8080/axis2 (change port  host accordingly) then
click the services link..

Try to capture and post your request.. You can use tcpmon
(http://ws.apache.org/commons/tcpmon) to capture the messages..

thanks,
Thilina

On 3/5/08, Capilla Castillo, Esther [EMAIL PROTECTED] wrote:
 When I invoke my webservice from the client, the exception is:
 org.apache.axis2.AxisFault: unknown
   at
 org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
   at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)
   at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
   at clientesAxis2.VerDocumentoCliente.main(VerDocumentoCliente.java:91)



 -Mensaje original-
 De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
 Enviado el: miércoles, 05 de marzo de 2008 14:33
 Para: axis-user@ws.apache.org
 Asunto: Re: The endpoint reference (EPR) for the Operation not found

 What about the protocol (I'm not expert with MTOM -- so I might be
 wrong)?

 options.setTransportInProtocol(Constants.TRANSPORT_HTTP); // set
 according to the protocol in operation
 This is needed (if MTOM is not used), otherwise an error like cannot
 infer transport... occurs.

 Michele

 On 5 Mar 2008, at 12:51, Capilla Castillo, Esther wrote:

  In my client I have the following code to set options:
  Options options = new Options();
  options.setTo(targetEPR);
  options.setAction(sendAttachment);
  
  
  options.setProperty(Constants.Configuration.ENABLE_MTOM,
  Constants.VALUE_TRUE);
  
  options.setTimeOutInMilliSeconds(1);
  
  ServiceClient sender = new ServiceClient();
  sender.setOptions(options);
 
  -Mensaje original-
  De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
  Enviado el: miércoles, 05 de marzo de 2008 13:45
  Para: axis-user@ws.apache.org
  Asunto: Re: The endpoint reference (EPR) for the Operation not found
 
  Try to call options.setAction(sendAttachment);
 
  Michele
 
  On 5 Mar 2008, at 12:39, Capilla Castillo, Esther wrote:
 
  This is the SOAP request:
 
  soapenv:Reason
  −
 soapenv:Text
  The endpoint reference (EPR) for the Operation not found is /axis2/
  services/WsVerDocumento and the WSA Action = null
  /soapenv:Text
  /soapenv:Reason
 
  -Mensaje original-
  De: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
  Enviado el: miércoles, 05 de marzo de 2008 13:37
  Para: axis-user@ws.apache.org
  Asunto: Re: The endpoint reference (EPR) for the Operation not found
 
 
  Any possibility of looking at the SOAP request (including HTTP
  headers)
  , then I may be able to give you an answer.
 
  Thank you,
  Deepal
  Hi all!
  I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem,
  when
  I invoke the Services I obtain the follow message:
  The endpoint reference (EPR) for the Operation not found is
  /axis2/services/WsVerDocumento and the WSA Action = null
  I think that my problem is in the services.xml, but I don't know. My
  services.xml is that:
  service name=WsVerDocumento
  Description
  Este WebService permita bajar un documento del
  repositorio de
  Documentum
  /Description
parameter name=enableMTOMtrue/parameter
  parameter name=ServiceClass
  locked=falsecom.soluziona.documental.servicios2.verdocumento.VerD
  o
  cum
  entoWebService/parameter
  operation name=sendAttachment
actionMappingsendAttachment/actionMapping
messageReceiver
  class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
  /operation
  /service
 
  Thanks!
  Esther
 
  
  -
  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]




-- 
Thilina Gunarathne  - http://thilinag.blogspot.com


RE: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Capilla Castillo, Esther
No, my webservices are in http://localhost:7001/axis2/services/WsVerDocumento

The services list show:
Available services
WsVerDocumento
Service EPR : http://localhost:7001/axis2/services/WsVerDocumento
Service Description : Este WebService permita bajar un documento del 
repositorio de Documentum
Service Status : Active
Available Operations

* sendAttachment

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Enviado el: miércoles, 05 de marzo de 2008 16:21
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found

Are you sure that your service is deployed... Can you see it in the
service listing that can be accessed by going to
http://localhost:8080/axis2 (change port  host accordingly) then
click the services link..

Try to capture and post your request.. You can use tcpmon
(http://ws.apache.org/commons/tcpmon) to capture the messages..

thanks,
Thilina

On 3/5/08, Capilla Castillo, Esther [EMAIL PROTECTED] wrote:
 When I invoke my webservice from the client, the exception is:
 org.apache.axis2.AxisFault: unknown
   at
 org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
   at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)
   at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
   at clientesAxis2.VerDocumentoCliente.main(VerDocumentoCliente.java:91)



 -Mensaje original-
 De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
 Enviado el: miércoles, 05 de marzo de 2008 14:33
 Para: axis-user@ws.apache.org
 Asunto: Re: The endpoint reference (EPR) for the Operation not found

 What about the protocol (I'm not expert with MTOM -- so I might be
 wrong)?

 options.setTransportInProtocol(Constants.TRANSPORT_HTTP); // set
 according to the protocol in operation
 This is needed (if MTOM is not used), otherwise an error like cannot
 infer transport... occurs.

 Michele

 On 5 Mar 2008, at 12:51, Capilla Castillo, Esther wrote:

  In my client I have the following code to set options:
  Options options = new Options();
  options.setTo(targetEPR);
  options.setAction(sendAttachment);
  
  
  options.setProperty(Constants.Configuration.ENABLE_MTOM,
  Constants.VALUE_TRUE);
  
  options.setTimeOutInMilliSeconds(1);
  
  ServiceClient sender = new ServiceClient();
  sender.setOptions(options);
 
  -Mensaje original-
  De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
  Enviado el: miércoles, 05 de marzo de 2008 13:45
  Para: axis-user@ws.apache.org
  Asunto: Re: The endpoint reference (EPR) for the Operation not found
 
  Try to call options.setAction(sendAttachment);
 
  Michele
 
  On 5 Mar 2008, at 12:39, Capilla Castillo, Esther wrote:
 
  This is the SOAP request:
 
  soapenv:Reason
  −
 soapenv:Text
  The endpoint reference (EPR) for the Operation not found is /axis2/
  services/WsVerDocumento and the WSA Action = null
  /soapenv:Text
  /soapenv:Reason
 
  -Mensaje original-
  De: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
  Enviado el: miércoles, 05 de marzo de 2008 13:37
  Para: axis-user@ws.apache.org
  Asunto: Re: The endpoint reference (EPR) for the Operation not found
 
 
  Any possibility of looking at the SOAP request (including HTTP
  headers)
  , then I may be able to give you an answer.
 
  Thank you,
  Deepal
  Hi all!
  I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem,
  when
  I invoke the Services I obtain the follow message:
  The endpoint reference (EPR) for the Operation not found is
  /axis2/services/WsVerDocumento and the WSA Action = null
  I think that my problem is in the services.xml, but I don't know. My
  services.xml is that:
  service name=WsVerDocumento
  Description
  Este WebService permita bajar un documento del
  repositorio de
  Documentum
  /Description
parameter name=enableMTOMtrue/parameter
  parameter name=ServiceClass
  locked=falsecom.soluziona.documental.servicios2.verdocumento.VerD
  o
  cum
  entoWebService/parameter
  operation name=sendAttachment
actionMappingsendAttachment/actionMapping
messageReceiver
  class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /
  /operation
  /service
 
  Thanks!
  Esther
 
  
  -
  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: WLS 10 MP1 - Axis 2 1.3 - BouncyCastle problem

2008-03-05 Thread Simon Nunn
Has anyone run into this?  Any suggestions would be appreciated.

 

Thanks,

 Simon

 

From: Simon Nunn [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 03, 2008 11:16 AM
To: axis-user@ws.apache.org
Subject: WLS 10 MP1 - Axis 2 1.3 - BouncyCastle problem

 

I am using WLS 10MP1 with Axis 2 v 1.3.  I am running into the same problem
that was described/fixed for http://issues.apache.org/jira/browse/AXIS2-811.
However, this bug was reported against an older version.  Has anyone else
ran into this problem?  I verified that the jar was indeed in the lib
directory, etc.  I had to use the workaround of modifying my java.security
file, and adding the bcprov-jdk15-132 .jar to my extensions directory.

 

Has anyone else ran into this and got it to work without modifying the
java.security file and copying the jar?

 

Thanks,

 Simon



Re: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Michele Mazzucco
I think the message you create is wrong. The target operation is  
defined as sendAttachment in services.xml, but it's called  
uploadFile into your SOAP request.


Michele

On 5 Mar 2008, at 15:30, Capilla Castillo, Esther wrote:


Hi Michele, the chunk of code:

targetEPR = new EndpointReference(rb.getString(UrlVerDocumento));
		System.out.println(URL del WebService: +rb.getString 
(UrlVerDocumento));


// Definimos el endPoint y la acción
Options options = new Options();
options.setTo(targetEPR);
options.setAction(sendAttachment);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

		options.setProperty(Constants.Configuration.ENABLE_MTOM,  
Constants.VALUE_TRUE);


// Incrementamos el timeout por si el fichero fuese grande
options.setTimeOutInMilliSeconds(1);

ServiceClient sender = new ServiceClient();
sender.setOptions(options);

OMElement echoElement = getOMElement();


OMElement MTOMEle = (OMElement) sender.sendReceive(echoElement);

And the method getOMElement...

public static OMElement getOMElement(  ) {
OMFactory fac = OMAbstractFactory.getOMFactory();

		//OMNamespace omNs = fac.createOMNamespace(http:// 
baratz.pruebas.com, mtom);		
		OMNamespace omNs = fac.createOMNamespace(http:// 
verdocumento.servicios2.documental.soluziona.com/xsd, mtom);


OMElement xmlData = fac.createOMElement(xml, omNs);
OMElement echoElement = fac.createOMElement(uploadFile, omNs);
StringBuffer xml = new StringBuffer();

xml.append(result);
xmlData.setText(xml.toString());
echoElement.addChild(xmlData);

return echoElement;
}




-Mensaje original-
De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 05 de marzo de 2008 16:18
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found

Can you post the chunk of code which sends the message?

Michele

On 5 Mar 2008, at 15:00, Capilla Castillo, Esther wrote:


When I invoke my webservice from the client, the exception is:
org.apache.axis2.AxisFault: unknown
at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAxisOperation.java:287)
at org.apache.axis2.client.ServiceClient.sendReceive
(ServiceClient.java:457)
at org.apache.axis2.client.ServiceClient.sendReceive
(ServiceClient.java:399)
at clientesAxis2.VerDocumentoCliente.main(VerDocumentoCliente.java:
91)



-Mensaje original-
De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 05 de marzo de 2008 14:33
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found

What about the protocol (I'm not expert with MTOM -- so I might be
wrong)?

options.setTransportInProtocol(Constants.TRANSPORT_HTTP); // set
according to the protocol in operation
This is needed (if MTOM is not used), otherwise an error like cannot
infer transport... occurs.

Michele

On 5 Mar 2008, at 12:51, Capilla Castillo, Esther wrote:


In my client I have the following code to set options:
Options options = new Options();
options.setTo(targetEPR);
options.setAction(sendAttachment);


options.setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE);

options.setTimeOutInMilliSeconds(1);

ServiceClient sender = new ServiceClient();
sender.setOptions(options);

-Mensaje original-
De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 05 de marzo de 2008 13:45
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found

Try to call options.setAction(sendAttachment);

Michele

On 5 Mar 2008, at 12:39, Capilla Castillo, Esther wrote:


This is the SOAP request:

soapenv:Reason
−
soapenv:Text
The endpoint reference (EPR) for the Operation not found is /axis2/
services/WsVerDocumento and the WSA Action = null
/soapenv:Text
/soapenv:Reason

-Mensaje original-
De: Deepal jayasinghe [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 05 de marzo de 2008 13:37
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not  
found



Any possibility of looking at the SOAP request (including HTTP
headers)
, then I may be able to give you an answer.

Thank you,
Deepal

Hi all!
I'm deployed a WebServices in beaWeblogic 9.2, but I've a problem,
when
I invoke the Services I 

Re: The endpoint reference (EPR) for the Operation not found

2008-03-05 Thread Michele Mazzucco

Esther,

I'm running out of resources...
- Try to set the target operation into the EPR (i.e. http://localhost: 
8080/axis2/services/Service?Operation)
- Try to define a simple echo operation and call it in order to  
understand what's wrong.



Michele

On 5 Mar 2008, at 16:04, Capilla Castillo, Esther wrote:


Ok, I did the change but I get the same message...
In the services.xml appear:
operation name=sendAttachment
actionMappingurn:downloadFile/actionMapping
		messageReceiver  
class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver /

/operation

And the client:

Options options = new Options();
options.setTo(targetEPR);
options.setAction(urn:downloadFile);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);


		options.setProperty(Constants.Configuration.ENABLE_MTOM,  
Constants.VALUE_TRUE);


// Incrementamos el timeout por si el fichero fuese grande
options.setTimeOutInMilliSeconds(1);

ServiceClient sender = new ServiceClient();
sender.setOptions(options);

Esther

-Mensaje original-
De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 05 de marzo de 2008 16:47
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found

I think the message you create is wrong. The target operation is
defined as sendAttachment in services.xml, but it's called
uploadFile into your SOAP request.

Michele

On 5 Mar 2008, at 15:30, Capilla Castillo, Esther wrote:


Hi Michele, the chunk of code:

targetEPR = new EndpointReference(rb.getString(UrlVerDocumento));
System.out.println(URL del WebService: +rb.getString
(UrlVerDocumento));

// Definimos el endPoint y la acción
Options options = new Options();
options.setTo(targetEPR);
options.setAction(sendAttachment);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

options.setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE);

// Incrementamos el timeout por si el fichero fuese grande
options.setTimeOutInMilliSeconds(1);

ServiceClient sender = new ServiceClient();
sender.setOptions(options);

OMElement echoElement = getOMElement();


OMElement MTOMEle = (OMElement) sender.sendReceive(echoElement);

And the method getOMElement...

public static OMElement getOMElement(  ) {
OMFactory fac = OMAbstractFactory.getOMFactory();

//OMNamespace omNs = fac.createOMNamespace(http://
baratz.pruebas.com, mtom);
OMNamespace omNs = fac.createOMNamespace(http://
verdocumento.servicios2.documental.soluziona.com/xsd, mtom);

OMElement xmlData = fac.createOMElement(xml, omNs);
OMElement echoElement = fac.createOMElement(uploadFile, omNs);
StringBuffer xml = new StringBuffer();

xml.append(result);
xmlData.setText(xml.toString());
echoElement.addChild(xmlData);

return echoElement;
}




-Mensaje original-
De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 05 de marzo de 2008 16:18
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found

Can you post the chunk of code which sends the message?

Michele

On 5 Mar 2008, at 15:00, Capilla Castillo, Esther wrote:


When I invoke my webservice from the client, the exception is:
org.apache.axis2.AxisFault: unknown
at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAxisOperation.java:287)
at org.apache.axis2.client.ServiceClient.sendReceive
(ServiceClient.java:457)
at org.apache.axis2.client.ServiceClient.sendReceive
(ServiceClient.java:399)
at clientesAxis2.VerDocumentoCliente.main(VerDocumentoCliente.java:
91)



-Mensaje original-
De: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 05 de marzo de 2008 14:33
Para: axis-user@ws.apache.org
Asunto: Re: The endpoint reference (EPR) for the Operation not found

What about the protocol (I'm not expert with MTOM -- so I might be
wrong)?

options.setTransportInProtocol(Constants.TRANSPORT_HTTP); // set
according to the protocol in operation
This is needed (if MTOM is not used), otherwise an error like  
cannot

infer transport... occurs.

Michele

On 5 Mar 2008, at 12:51, Capilla Castillo, Esther wrote:


In my client I have the 

Java 5 enum type and WSDL

2008-03-05 Thread Radim Kolarik
Hi,

I tried to use java2wsdl tool to generate a WSDL file for my service,
which uses Java 5 enum type on the interface:

public enum TestEnum {
ONE,
TWO,
THREE
}

It generates the type as:

xs:complexType name=TestEnum
  xs:complexContent
xs:extension base=xs:Enum
  xs:sequence/
/xs:extension
  /xs:complexContent
/xs:complexType

which is wrong because it extends xs:Enum where xs is
http://www.w3.org/2001/XMLSchema namespace, which doesn't define an
Enum type. Also, the individual supported values ONE, TWO and THREE
are not listed.

Is Java 5 enum supported by Axis2? If not, when is it planned to be
supported? BTW, I used the latest nightly build of Axis2 to test this.

Thanks a lot,
Radim

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



WS-Addressing automatic engagement

2008-03-05 Thread Boris Milanov
Hi,

I am new to AXIS2 and I have a question regarding the WS-Addressing module
engagement.
Some modules (i.e. rampart) are always automatically engaged in the client
if the web service requires it.
I would like to know if there is a way (or a plan for future changes in
AXIS2) that addressing is also engaged automatically (without the module
ref=addressing/ tag in axis2.xml).

I went through the AXIS2 1.3 source and noticed that in order for the
addressing to be automatically engaged, the method *AddressingModule.**
canSupportAssertion**(Assertion arg0)* should not always return false as it
does.
Also, in the module.xml file the supported-policy-namespaces tag should be
present:

supported-policy-namespaces namespaces=
http://www.w3.org/2006/05/addressing/wsdl; /
Basically, I think these two changes should be enough for the purpose.

I'll be grateful if someone gives me information on this.

Thanks in advance,
Boris

PS: I checked the svn trunk for AXIS2 and saw that AddressingModule.java is
no more present.


Re: Axis2 and OSGi

2008-03-05 Thread Demetris G


Hi Dims,

   how is this work progressing? It seems to be a pretty good potential 
for both sides if
accomplished as it seems that OSGi is becoming pretty popular in 
residential gateways.


Thanks

Lawrence Mandel wrote:

Hi Demetris,

Dims has kicked off an effort to create an Axis2 OSGi bundle. He posted to 
the axis-dev list last week [1].


[1] http://marc.info/?l=axis-devm=120308686726732w=2

Lawrence





Demetris G [EMAIL PROTECTED] 
02/28/2008 11:02 PM

Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Axis2 and OSGi







Hi all,

has anyone tried to execute Axis2 in the OSGi containers? I know
Axis1.x was imported as a bundle in OSGi but no idea about Axis2.
I am wondering if it can be deployed in a similar manner as in Tomcat
although I think it may still need an Activator to control the rest of its
implementation.

Thanks

  


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



integrate Axis2 with OSGi platform

2008-03-05 Thread Liu, Hua (Maria)
Hi,

 

We have a running OSGi platform hosting a bunch of OSGi services, and
would like to expose some of the OSGi services as web services using
Axis2. The way we want to do this is to wrap Axis2 as an OSGi bundle and
load into the platform, and this Axis2 bundle provides an interface that
allows other OSGi services to expose/register themselves as web
services. As a result, the same instance of a service is used for both
SOAP invocations from remote clients and java method calls from OSGi
services on the same machine.

 

Since we also have very rigid requirements on small footprint including
disk spaces and memory usage, we may only use a fraction of Axis2 to
send/recv/parse SOAP messages and dispatch messages to appropriate
services.

 

So, how we can customize Axis2 to meet our needs? Which jar files we can
remove? And, how to wrap Axis2 as an OSGi bundle?

 

Thanks in advance,

Hua



Re: Axis2 and OSGi

2008-03-05 Thread Davanum Srinivas

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Demetris,

Got to the point where we can listen to bundles, scan them looking for classes 
with jaxws annotations and deploy them as
a web service.

Next up, deploying axis2 modules the same way. Need to figure out how to break 
things into smaller bundles as well.

After that, look at Eclipse Corona, Apache Muse and figure out a new 
declarative service for programatically allowing
folks to register services at specific contexts.

Please feel free to jump in anytime with suggestions, patches would be 
infinitely better :)

- -- dims

Demetris G wrote:
|
| Hi Dims,
|
|how is this work progressing? It seems to be a pretty good potential
| for both sides if
| accomplished as it seems that OSGi is becoming pretty popular in
| residential gateways.
|
| Thanks
|
| Lawrence Mandel wrote:
| Hi Demetris,
|
| Dims has kicked off an effort to create an Axis2 OSGi bundle. He
| posted to the axis-dev list last week [1].
|
| [1] http://marc.info/?l=axis-devm=120308686726732w=2
|
| Lawrence
|
|
|
|
|
| Demetris G [EMAIL PROTECTED] 02/28/2008 11:02 PM
| Please respond to
| axis-user@ws.apache.org
|
|
| To
| axis-user@ws.apache.org
| cc
|
| Subject
| Axis2 and OSGi
|
|
|
|
|
|
|
| Hi all,
|
| has anyone tried to execute Axis2 in the OSGi containers? I know
| Axis1.x was imported as a bundle in OSGi but no idea about Axis2.
| I am wondering if it can be deployed in a similar manner as in Tomcat
| although I think it may still need an Activator to control the rest of
| its
| implementation.
|
| Thanks
|
|
| -
| 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]
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFHzxh2gNg6eWEDv1kRAisKAJ95Iil0TPiE9KUIL9xmzt3+W7QDOACaAuII
s5zyfSk8eT8CQW+j152piTc=
=u5Kf
-END PGP SIGNATURE-

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



Re: integrate Axis2 with OSGi platform

2008-03-05 Thread Davanum Srinivas

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hua,

To be honest, Axis2 at the moment is a bit big for your use case. We may be 
looking at the smaller size use case in the
future, but right now, take a look at Apache Muse, they have a mini soap engine
(http://ws.apache.org/muse/docs/2.1.0/tutorial/04-review-artifacts-mini.html)

- -- dims

Liu, Hua (Maria) wrote:
| Hi,
|
|
|
| We have a running OSGi platform hosting a bunch of OSGi services, and
| would like to expose some of the OSGi services as web services using
| Axis2. The way we want to do this is to wrap Axis2 as an OSGi bundle and
| load into the platform, and this Axis2 bundle provides an interface that
| allows other OSGi services to expose/register themselves as web
| services. As a result, the same instance of a service is used for both
| SOAP invocations from remote clients and java method calls from OSGi
| services on the same machine.
|
|
|
| Since we also have very rigid requirements on small footprint including
| disk spaces and memory usage, we may only use a fraction of Axis2 to
| send/recv/parse SOAP messages and dispatch messages to appropriate
| services.
|
|
|
| So, how we can customize Axis2 to meet our needs? Which jar files we can
| remove? And, how to wrap Axis2 as an OSGi bundle?
|
|
|
| Thanks in advance,
|
| Hua
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFHzxlfgNg6eWEDv1kRAtNNAJ0ekQ04kjMM7cSXLkFdrqOA9EG1OgCfSEPb
Uqdx50VS4acmO/kM8s/uTXE=
=6Qri
-END PGP SIGNATURE-

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



RE: Axis2 and OSGi

2008-03-05 Thread Liu, Hua (Maria)
Thanks, Davanum.
I am new to the DL and didn't know someone else already asked the same
question. 

Best regards,
Hua

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2008 5:03 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 and OSGi

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Demetris,

Got to the point where we can listen to bundles, scan them looking for
classes with jaxws annotations and deploy them as
a web service.

Next up, deploying axis2 modules the same way. Need to figure out how to
break things into smaller bundles as well.

After that, look at Eclipse Corona, Apache Muse and figure out a new
declarative service for programatically allowing
folks to register services at specific contexts.

Please feel free to jump in anytime with suggestions, patches would be
infinitely better :)

- -- dims

Demetris G wrote:
|
| Hi Dims,
|
|how is this work progressing? It seems to be a pretty good
potential
| for both sides if
| accomplished as it seems that OSGi is becoming pretty popular in
| residential gateways.
|
| Thanks
|
| Lawrence Mandel wrote:
| Hi Demetris,
|
| Dims has kicked off an effort to create an Axis2 OSGi bundle. He
| posted to the axis-dev list last week [1].
|
| [1] http://marc.info/?l=axis-devm=120308686726732w=2
|
| Lawrence
|
|
|
|
|
| Demetris G [EMAIL PROTECTED] 02/28/2008 11:02 PM
| Please respond to
| axis-user@ws.apache.org
|
|
| To
| axis-user@ws.apache.org
| cc
|
| Subject
| Axis2 and OSGi
|
|
|
|
|
|
|
| Hi all,
|
| has anyone tried to execute Axis2 in the OSGi containers? I know
| Axis1.x was imported as a bundle in OSGi but no idea about Axis2.
| I am wondering if it can be deployed in a similar manner as in Tomcat
| although I think it may still need an Activator to control the rest
of
| its
| implementation.
|
| Thanks
|
|
| -
| 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]
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFHzxh2gNg6eWEDv1kRAisKAJ95Iil0TPiE9KUIL9xmzt3+W7QDOACaAuII
s5zyfSk8eT8CQW+j152piTc=
=u5Kf
-END PGP SIGNATURE-

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



WSDL element restrictions

2008-03-05 Thread David Bunzli
Hi all,
 
I haven't been able to get restrictions to consistently work - enumerations 
work, but not length restrictions. I've tried both Axis2 v1.1.1 (my production 
version) and Axis2 v1.3 (just in case v1.3 fixed this) with no success. Does 
anyone have any ideas why?
 
To help, here are the relevant types...
 
   !-- This restriction works. The generated class checks for these values --
   xsd:simpleType name=CrlChecking
xsd:restriction base=xsd:string
 xsd:enumeration value=Not required /
 xsd:enumeration value=Desirable /
 xsd:enumeration value=Mandatory /
/xsd:restriction
   /xsd:simpleType
 
   !-- This restriction doesn't work. The generated class doesn't contain any 
length checks --
   xsd:simpleType name=EndUserIdentifier
xsd:restriction base=xsd:string
 xsd:minLength value=1 /
 xsd:maxLength value=255 /
/xsd:restriction
   /xsd:simpleType
 
Here is the complete WSDL...
?xml version=1.0 encoding=UTF-8 standalone=no?
wsdl:definitions
 xmlns:eSig=urn:SigningServices_v1_0_0.secureServices.health.qld.gov.au
 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
 xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:xmime=http://www.w3.org/2005/05/xmlmime;
 name=SigningServices_v1_0_0
 targetNamespace=urn:SigningServices_v1_0_0.secureServices.health.qld.gov.au
 wsdl:types
  xsd:schema
   targetNamespace=urn:SigningServices_v1_0_0.secureServices.health.qld.gov.au
   xmlns:eSig=urn:SigningServices_v1_0_0.secureServices.health.qld.gov.au
   xsd:import namespace=http://www.w3.org/2005/05/xmlmime; 
schemaLocation=xmlmime.xsd /
 
   !-- This restriction works --
   xsd:simpleType name=CrlChecking
xsd:restriction base=xsd:string
 xsd:enumeration value=Not required /
 xsd:enumeration value=Desirable /
 xsd:enumeration value=Mandatory /
/xsd:restriction
   /xsd:simpleType
 
   !-- This restriction doesn't work --
   xsd:simpleType name=EndUserIdentifier
xsd:restriction base=xsd:string
 xsd:minLength value=1 /
 xsd:maxLength value=255 /
/xsd:restriction
   /xsd:simpleType
 
   xsd:complexType name=Document
xsd:sequence
 xsd:element name=ID type=xsd:string minOccurs=1 maxOccurs=1 /
 xsd:element name=File type=xmime:base64Binary minOccurs=1 
maxOccurs=1 xmime:expectedContentTypes=application/binary /
 xsd:element name=Filename type=xsd:string minOccurs=1 maxOccurs=1 
/
/xsd:sequence
   /xsd:complexType
 
   xsd:complexType name=Certificate
xsd:sequence
 xsd:element name=Issuer type=xsd:string minOccurs=1 maxOccurs=1 /
 xsd:element name=Subject type=xsd:string minOccurs=1 maxOccurs=1 
/
 xsd:element name=SerialNumber type=xsd:string minOccurs=0 
maxOccurs=1 /
 xsd:element name=ValidFrom type=xsd:dateTime minOccurs=0 
maxOccurs=1 /
 xsd:element name=ValidTo type=xsd:dateTime minOccurs=0 
maxOccurs=1 /
/xsd:sequence
   /xsd:complexType
 
   xsd:element name=VerifyRequest
xsd:complexType
 xsd:sequence
  xsd:element name=SignID type=xsd:long minOccurs=1 maxOccurs=1 /
  xsd:element name=EndUserIdentifier type=eSig:EndUserIdentifier 
minOccurs=1 maxOccurs=1 /
  xsd:element name=Document type=eSig:Document minOccurs=1 
maxOccurs=2 /
  xsd:element name=CrlChecking type=eSig:CrlChecking minOccurs=0 
maxOccurs=1 /
  xsd:element name=SignatoryDetailsRequired type=xsd:boolean 
minOccurs=0 maxOccurs=1 /
 /xsd:sequence
/xsd:complexType
   /xsd:element
 
   xsd:element name=VerifyResponse
xsd:complexType
 xsd:sequence
  xsd:element name=RequestID type=xsd:string minOccurs=0 
maxOccurs=1 /
  xsd:element name=isVerified type=xsd:boolean minOccurs=1 
maxOccurs=1 /
  xsd:element name=CrlStatus type=xsd:string minOccurs=0 
maxOccurs=1 /
  xsd:element name=Certificate type=eSig:Certificate maxOccurs=1 
minOccurs=0 /
 /xsd:sequence
/xsd:complexType
   /xsd:element
 

   xsd:complexType name=SigningServiceError
xsd:sequence
 xsd:element minOccurs=0 maxOccurs=1 name=RequestID 
type=xsd:string /
 xsd:element minOccurs=1 maxOccurs=1 name=Fault type=xsd:string /
 xsd:element minOccurs=1 maxOccurs=1 name=Datetime 
type=xsd:dateTime /
/xsd:sequence
   /xsd:complexType
 
   xsd:element name=ApplicationError type=eSig:SigningServiceError /
   xsd:element name=SystemError type=eSig:SigningServiceError /
  /xsd:schema
 /wsdl:types
 
 wsdl:message name=VerifyRequest
  wsdl:part name=parameters element=eSig:VerifyRequest /
 /wsdl:message
 wsdl:message name=VerifyResponse
  wsdl:part name=parameters element=eSig:VerifyResponse /
 /wsdl:message
 wsdl:message name=ApplicationError
  wsdl:part element=eSig:ApplicationError name=appFault /
 /wsdl:message
 wsdl:message name=SystemError
  wsdl:part element=eSig:SystemError name=sysFault /
 /wsdl:message
 
 wsdl:portType name=SigningServices_v1_0_0
  wsdl:operation name=Verify
   wsdl:input message=eSig:VerifyRequest /
   wsdl:output message=eSig:VerifyResponse 

Configuring Axis2 to use Rampart from within a WAR

2008-03-05 Thread Nate Roe
I am using Axis2 v1.3 and Rampart v1.3 on JBossAS v4.0.5 running on Java 
1.6.0_03.

I am learning to implement WS-Security.  Both my service and my client run 
within the same JBoss server.  That is to say, my axis2.war and my client.war 
are both located in JBoss's deploy directory.

I have configured my service to use Rampart and to require a timestamp from the 
client as a security parameter.  I tested that a client that does not send the 
timestamp now cannot access the service.  This is working so far.  However the 
service has suddenly also started sending timestamps, which the client does not 
yet understand, and so it fails to receive the response.

Is this a valid idea?  Can two instances of Axis2 load in two separate WARs 
within the same JBoss?  Different ClassLoaders should be used for each WAR to 
prevent a collision, right?

- Nate Roe

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



Re: Axis2 and OSGi

2008-03-05 Thread Demetris G


Hi Dims,

   I will try to help if I can but for a bit I am a bit tied up with a 
deadline. I worked
with the Axis 1.4 import from Knopflerfish OSGi and it has been working 
pretty good.
I am sure you guys know about that but in case you don't you can take a 
look at their
import if it will help at all. I know Axis2 is a different beast to 
import but at least on

the OSGi side I am sure they are commonalities ...

Thanks much

Davanum Srinivas wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Demetris,

Got to the point where we can listen to bundles, scan them looking for 
classes with jaxws annotations and deploy them as

a web service.

Next up, deploying axis2 modules the same way. Need to figure out how 
to break things into smaller bundles as well.


After that, look at Eclipse Corona, Apache Muse and figure out a new 
declarative service for programatically allowing

folks to register services at specific contexts.

Please feel free to jump in anytime with suggestions, patches would be 
infinitely better :)


- -- dims

Demetris G wrote:
|
| Hi Dims,
|
|how is this work progressing? It seems to be a pretty good potential
| for both sides if
| accomplished as it seems that OSGi is becoming pretty popular in
| residential gateways.
|
| Thanks
|
| Lawrence Mandel wrote:
| Hi Demetris,
|
| Dims has kicked off an effort to create an Axis2 OSGi bundle. He
| posted to the axis-dev list last week [1].
|
| [1] http://marc.info/?l=axis-devm=120308686726732w=2
|
| Lawrence
|
|
|
|
|
| Demetris G [EMAIL PROTECTED] 02/28/2008 11:02 PM
| Please respond to
| axis-user@ws.apache.org
|
|
| To
| axis-user@ws.apache.org
| cc
|
| Subject
| Axis2 and OSGi
|
|
|
|
|
|
|
| Hi all,
|
| has anyone tried to execute Axis2 in the OSGi containers? I know
| Axis1.x was imported as a bundle in OSGi but no idea about Axis2.
| I am wondering if it can be deployed in a similar manner as in Tomcat
| although I think it may still need an Activator to control the rest of
| its
| implementation.
|
| Thanks
|
|
| -
| 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]
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFHzxh2gNg6eWEDv1kRAisKAJ95Iil0TPiE9KUIL9xmzt3+W7QDOACaAuII
s5zyfSk8eT8CQW+j152piTc=
=u5Kf
-END PGP SIGNATURE-

-
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 and OSGi

2008-03-05 Thread Davanum Srinivas

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Demetris,

Is this how they do it? register a service and set SOAP.service.name?

http://leobard.twoday.net/stories/2790802/

thanks,
dims

Demetris G wrote:
|
| Hi Dims,
|
|I will try to help if I can but for a bit I am a bit tied up with a
| deadline. I worked
| with the Axis 1.4 import from Knopflerfish OSGi and it has been working
| pretty good.
| I am sure you guys know about that but in case you don't you can take a
| look at their
| import if it will help at all. I know Axis2 is a different beast to
| import but at least on
| the OSGi side I am sure they are commonalities ...
|
| Thanks much
|
| Davanum Srinivas wrote:
| Demetris,
|
| Got to the point where we can listen to bundles, scan them looking for
| classes with jaxws annotations and deploy them as
| a web service.
|
| Next up, deploying axis2 modules the same way. Need to figure out how
| to break things into smaller bundles as well.
|
| After that, look at Eclipse Corona, Apache Muse and figure out a new
| declarative service for programatically allowing
| folks to register services at specific contexts.
|
| Please feel free to jump in anytime with suggestions, patches would be
| infinitely better :)
|
| -- dims
|
| Demetris G wrote:
| |
| | Hi Dims,
| |
| |how is this work progressing? It seems to be a pretty good potential
| | for both sides if
| | accomplished as it seems that OSGi is becoming pretty popular in
| | residential gateways.
| |
| | Thanks
| |
| | Lawrence Mandel wrote:
| | Hi Demetris,
| |
| | Dims has kicked off an effort to create an Axis2 OSGi bundle. He
| | posted to the axis-dev list last week [1].
| |
| | [1] http://marc.info/?l=axis-devm=120308686726732w=2
| |
| | Lawrence
| |
| |
| |
| |
| |
| | Demetris G [EMAIL PROTECTED] 02/28/2008 11:02 PM
| | Please respond to
| | axis-user@ws.apache.org
| |
| |
| | To
| | axis-user@ws.apache.org
| | cc
| |
| | Subject
| | Axis2 and OSGi
| |
| |
| |
| |
| |
| |
| |
| | Hi all,
| |
| | has anyone tried to execute Axis2 in the OSGi containers? I know
| | Axis1.x was imported as a bundle in OSGi but no idea about Axis2.
| | I am wondering if it can be deployed in a similar manner as in Tomcat
| | although I think it may still need an Activator to control the rest of
| | its
| | implementation.
| |
| | Thanks
| |
| |
| | -
| | 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]

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFHz3BAgNg6eWEDv1kRAqs7AKDZXBnqyKuwKYX17XrWW9nbgvhXvACg++zF
YF8JATwkcLjz23O8Ww4CEqE=
=snfy
-END PGP SIGNATURE-

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



Re: Axis2 and OSGi

2008-03-05 Thread Demetris G


This is the routine they use for registering the object:

private ServiceReference registerObject(String name, Object obj) {
   Hashtable ht = new Hashtable();

   ht.put(SOAP.service.name, name);
   return (context.registerService(obj.getClass().getName(), obj, 
ht)).getReference();

   }


and the calling code for a service calls remoteBooks ...

   this.context = context;  
   sh = registerObject(remoteBooks, new BooksImpl(context));
   if ( context.registerService(Books.class.getName(), new 
BooksImpl(context), props) != null ) {
   System.out.println(Service [+Books.class.getName()+] 
registered ... );   
   } else {
   System.out.println(*** Registering service with name 
[+Books.class.getName()+] failed *** );

   }



Here is the web site for this work:
https://www.knopflerfish.org/svn/knopflerfish.org/trunk/osgi/bundles_opt/soap/readme.html

---
On a separate note - is the work for Axis2 for mobile/constrained 
devices still in progress ; do you

have any additional information on this?

Thanks much


Davanum Srinivas wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Demetris,

Is this how they do it? register a service and set SOAP.service.name?

http://leobard.twoday.net/stories/2790802/

thanks,
dims

Demetris G wrote:
|
| Hi Dims,
|
|I will try to help if I can but for a bit I am a bit tied up with a
| deadline. I worked
| with the Axis 1.4 import from Knopflerfish OSGi and it has been working
| pretty good.
| I am sure you guys know about that but in case you don't you can take a
| look at their
| import if it will help at all. I know Axis2 is a different beast to
| import but at least on
| the OSGi side I am sure they are commonalities ...
|
| Thanks much
|
| Davanum Srinivas wrote:
| Demetris,
|
| Got to the point where we can listen to bundles, scan them looking for
| classes with jaxws annotations and deploy them as
| a web service.
|
| Next up, deploying axis2 modules the same way. Need to figure out how
| to break things into smaller bundles as well.
|
| After that, look at Eclipse Corona, Apache Muse and figure out a new
| declarative service for programatically allowing
| folks to register services at specific contexts.
|
| Please feel free to jump in anytime with suggestions, patches would be
| infinitely better :)
|
| -- dims
|
| Demetris G wrote:
| |
| | Hi Dims,
| |
| |how is this work progressing? It seems to be a pretty good 
potential

| | for both sides if
| | accomplished as it seems that OSGi is becoming pretty popular in
| | residential gateways.
| |
| | Thanks
| |
| | Lawrence Mandel wrote:
| | Hi Demetris,
| |
| | Dims has kicked off an effort to create an Axis2 OSGi bundle. He
| | posted to the axis-dev list last week [1].
| |
| | [1] http://marc.info/?l=axis-devm=120308686726732w=2
| |
| | Lawrence
| |
| |
| |
| |
| |
| | Demetris G [EMAIL PROTECTED] 02/28/2008 11:02 PM
| | Please respond to
| | axis-user@ws.apache.org
| |
| |
| | To
| | axis-user@ws.apache.org
| | cc
| |
| | Subject
| | Axis2 and OSGi
| |
| |
| |
| |
| |
| |
| |
| | Hi all,
| |
| | has anyone tried to execute Axis2 in the OSGi containers? I know
| | Axis1.x was imported as a bundle in OSGi but no idea about Axis2.
| | I am wondering if it can be deployed in a similar manner as in 
Tomcat
| | although I think it may still need an Activator to control the 
rest of

| | its
| | implementation.
| |
| | Thanks
| |
| |
| | 
-

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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFHz3BAgNg6eWEDv1kRAqs7AKDZXBnqyKuwKYX17XrWW9nbgvhXvACg++zF
YF8JATwkcLjz23O8Ww4CEqE=
=snfy
-END PGP SIGNATURE-

-
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: Java 5 enum type and WSDL

2008-03-05 Thread Mauro Molinari

Radim Kolarik ha scritto:

Is Java 5 enum supported by Axis2? If not, when is it planned to be
supported? BTW, I used the latest nightly build of Axis2 to test this.


On 22/11/2005 Deepal Jayasinghe wrote a message here (subject: Re: 
java2wsdl and enum) that states:


Nope we do not support enum in Java2WSDL in Axis2 1.3. release and we
are planing to do that for next version.

Cheers!

--
Mauro Molinari
Software Developer
[EMAIL PROTECTED]

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