Rampart/C Fails to build on Ubuntu 9.04

2009-08-27 Thread Jay Sullivan
Hi.  I am trying to install Axis/C 1.6.0 and Rampart/C 1.3.0 together on a
i386/Linux Ubuntu-9.04 system.

I can build and install Rampart/C, but the samples will not work. The first
sign that there is a problem is when I try to build the client/sec_echo
sample.  I've written a verbose explanation of how to reproduce the problem:
see http://petio.org/2009/08/27/status.html for the details.

This is a *major* issue for me, since it prevents me from using Rampart/C at
all.


Re: setting server cert from the api

2009-08-27 Thread Kevin Steves
On Thu, Aug 27, 2009 at 09:26:32PM +0530, Selvaratnam Uthaiyashankar wrote:
: Can you try whether following works for you?
: 
: axis2_options_set_property(options, env, AXIS2_SSL_SERVER_CERT, property);

thanks.  tried that.  it crashes in openssl now.  some kind of pointer issue.

any ideas?

[Thu Aug 27 14:41:45 2009] [debug] op_client.c(888) 
Start:axis2_op_client_infer_transport
[Thu Aug 27 14:41:45 2009] [debug] op_client.c(954) 
End:axis2_op_client_infer_transport
[Thu Aug 27 14:41:45 2009] [...TRACE...] engine.c(91) axis2_engine_send start
[Thu Aug 27 14:41:45 2009] [...TRACE...] engine.c(680) 
Start:axis2_engine_invoke_phases
[Thu Aug 27 14:41:45 2009] [...TRACE...] phase.c(166) Entry:axis2_phase_invoke
[Thu Aug 27 14:41:45 2009] [debug] phase.c(210) Invoke the handler 
AddressingOutHandler within the phase MessageOut
[Thu Aug 27 14:41:45 2009] [info]  Starting addressing out handler
[Thu Aug 27 14:41:45 2009] [debug] addr_out_handler.c(133) No action present. 
Stop processing addressing
[Thu Aug 27 14:41:45 2009] [...TRACE...] phase.c(273) Exit:axis2_phase_invoke
[Thu Aug 27 14:41:45 2009] [...TRACE...] engine.c(701) 
End:axis2_engine_invoke_phases
[Thu Aug 27 14:41:45 2009] [...TRACE...] http_transport_sender.c(194) 
Entry:axis2_http_transport_sender_invoke
[Thu Aug 27 14:41:45 2009] [debug] http_transport_sender.c(246) 
ctx_epr:https://map.ilabs.example.com/test.yaws
[Thu Aug 27 14:41:45 2009] [debug] http_transport_sender.c(805) using axis2 
native http sender.
[Thu Aug 27 14:41:45 2009] [...TRACE...] http_sender.c(252) 
Entry:axis2_http_sender_send
[Thu Aug 27 14:41:45 2009] [debug] http_sender.c(416) 
msg_ctx_id:urn:uuid:6ab3031e-9352-1de1-257e-0016d320a8c8
[Thu Aug 27 14:41:45 2009] [info]  [ssl client] Client certificate chain 
filenot specified

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 27096, thread 0x820b9c00]
0x0bac4eb7 in ERR_add_error_data (num=5) at 
/usr/src/lib/libssl/src/crypto/err/err.c:335
335 n+=strlen(a);
(gdb) bt
#0  0x0bac4eb7 in ERR_add_error_data (num=5) at 
/usr/src/lib/libssl/src/crypto/err/err.c:335
#1  0x0bb0f1dd in BIO_new_file (filename=0x73657665 Address 0x73657665 out of 
bounds, mode=0x2ba58e8c r)
at /usr/src/lib/libssl/src/crypto/bio/bss_file.c:127
#2  0x0ba9f274 in X509_load_cert_crl_file (ctx=0x8168c6c0, file=0x7 Address 
0x7 out of bounds, type=0)
at /usr/src/lib/libssl/src/crypto/x509/by_file.c:272
#3  0x0ba9ee7e in by_file_ctrl (ctx=0x8168c6c0, cmd=1, argp=0x7 Address 0x7 
out of bounds, argl=0, ret=0x0)
at /usr/src/lib/libssl/src/crypto/x509/by_file.c:120
#4  0x0bab875a in X509_LOOKUP_ctrl (ctx=0x, cmd=1, argc=0x73657665 
Address 0x73657665 out of bounds, argl=1, ret=0x0)
at /usr/src/lib/libssl/src/crypto/x509/x509_lu.c:117
#5  0x0ba9e615 in X509_STORE_load_locations (ctx=0x8168bb40, file=0x73657665 
Address 0x73657665 out of bounds, path=0x0)
at /usr/src/lib/libssl/src/crypto/x509/x509_d2.c:92
#6  0x039acb10 in SSL_CTX_load_verify_locations (ctx=0x0, CAfile=0x73657665 
Address 0x73657665 out of bounds, CApath=0x0)
at /usr/src/lib/libssl/src/ssl/ssl_lib.c:2527
#7  0x0994c05c in axis2_ssl_utils_initialize_ctx (env=0x88486180, 
server_cert=0x73657665 Address 0x73657665 out of bounds, key_file=0x0, 
ssl_pp=0x0) at ssl/ssl_utils.c:110
#8  0x0994b98c in axutil_stream_create_ssl (env=0x88486180, socket=8, 
server_cert=0x73657665 Address 0x73657665 out of bounds, key_file=0x0, 
ssl_pp=0x0) at ssl/ssl_stream.c:96
#9  0x09949cc0 in axis2_http_client_send (client=0x85a8ee00, env=0x88486180, 
request=0x88656ec0, ssl_pp=0x0) at http_client.c:265
#10 0x09944728 in axis2_http_sender_send (sender=0x8168c460, env=0x88486180, 
msg_ctx=0x863d9e00, out=0x8168c2c0, 
str_url=0x7d79a040 https://map.ilabs.example.com/test.yaws;, 
soap_action=0x299394d2 ) at http_sender.c:1101
#11 0x09942555 in axis2_http_transport_sender_write_message 
(transport_sender=0x7f588de0, env=0x88486180, msg_ctx=0x863d9e00, 
epr=0x884862a0, 
out=0x8168c2c0, om_output=0x8168b480) at http_transport_sender.c:806
#12 0x09941606 in axis2_http_transport_sender_invoke 
(transport_sender=0x7f588de0, env=0x88486180, msg_ctx=0x863d9e00)
at http_transport_sender.c:309
#13 0x078989b4 in axis2_engine_send (engine=0x88656f90, env=0x88486180, 
msg_ctx=0x863d9e00) at engine.c:176
#14 0x078c783b in axis2_op_client_two_way_send (env=0x88486180, 
msg_ctx=0x863d9e00) at op_client.c:1171
#15 0x078c66a2 in axis2_op_client_execute (op_client=0x8168b840, 
env=0x88486180, block=1) at op_client.c:508
#16 0x078c95fd in axis2_svc_client_send_receive_with_op_qname 
(svc_client=0x85a8e300, env=0x88486180, op_qname=0x8168c480, payload=0x8168dc40)
at svc_client.c:732
#17 0x078c9871 in axis2_svc_client_send_receive (svc_client=0x85a8e300, 
env=0x88486180, payload=0x8168dc40) at svc_client.c:830
#18 0x1c001305 in test_request (log_level=AXIS2_LOG_LEVEL_TRACE, log_file=0x0, 
server_cert_path=0xcfbdb3a8 

Re: Where's wsgen and wsimport?

2009-08-27 Thread Isuru Suriarachchi
Hi Aaron,

I've written a blog post on deploying JAXWS service in Axis2 at [1]. Most of
the details including download links for jaxws-rt.jar and jaxws-tools.jar
are there in this post.

Thanks,
~Isuru

[1]
http://isurues.wordpress.com/2009/08/27/how-to-deploy-your-jaxws-web-service-in-axis2/

On Wed, Aug 26, 2009 at 9:14 PM, Meyer, Aaron L. alme...@magellanhealth.com
 wrote:

  Amila,



 Thanks for your reply.  Since these jars weren’t in the Axis distribution I
 eventually concluded that I had to get them from elsewhere and downloaded
 JAX-WS 2.1.5 from the Glassfish/Metro/JAX-WS site (I encountered a problem
 with the 2.1.7 download jar file).  I can see that wsgen and wsimport are in
 the ‘bin’ folder.



 However, it’s still not clear to me just how to integrate with Axis or why
 the documentation doesn’t cover this, so I guess I’ll experiment some more
 keeping your tip in mind.



 I’m curious as to how you figured this out from the provided documentation
 (or otherwise).  I realize that Axis is open source, but it sure would be a
 monumental improvement if the Axis documentation were given as much
 attention as the product itself and explained in more detail so we wouldn’t
 have to needlessly waste so much time trying to get it (or at least certain
 aspects of it like JAX-WS) working.  For example, it doesn’t seem like it
 would be that difficult to mention that you have to download JAX-WS
 separately, include a link, explain how to integrate it, and suggest
 when/why you might want to use it with Axis.



 Hopefully someone from Axis will read this and get the documentation
 improved.



 In any case, thanks again for the tip!



 Aaron Meyer

 Phone: (314) 387-4297

 E-Mail: alme...@magellanhealth.com
   --

 *From:* Amila Suriarachchi [mailto:amilasuriarach...@gmail.com]
 *Sent:* Tuesday, August 25, 2009 11:50 PM
 *To:* axis-user@ws.apache.org
 *Subject:* Re: Where's wsgen and wsimport?



 hi,

 you need to put jaxws-rt.jar and jaxws-tools.jar s to lib folder.

 thanks,
 Amila.

 On Tue, Aug 25, 2009 at 11:36 PM, Meyer, Aaron L. 
 alme...@magellanhealth.com wrote:

 The immediate problem I hope you can help me with:

 I can’t find wsgen or wsimport in the distribution for 1.5.  I’m wondering
 why there is documentation for JAXWS but apparently it’s not included.
 Also, I would like to know if JAXWS is what I should learn if just starting
 out since (if I understand what I read correctly) it appears as though it
 will be the J2EE standard way of creating Web Services.  So how do I get
 JAXWS to work with Axis – that’s the missing part in the documentation.



 Other comments:



 I’m trying to learn Web Services and I just went through the JBoss In
 Action chapter and successfully created a simple web service (apparently
 based on JAXWS).  I then decided I would like to also learn Axis (partly
 because we aren’t on the latest JBoss server).  I quickly became frustrated
 for the following reasons:



 The documentation is very confusing because it offers all these different
 technologies you can use but offers no guidelines as to which to use, and
 the examples under the different sections aren’t even consistent (e.g. Quick
 Start vs. User Guide).   This is only made worse by the (apparently) missing
 support for JAXWS (even though it’s documented as though it is supported).



 It would save a lot of frustration if you could clarify all this in the
 documentation (especially the JAXWS part).



 By the way - this is not meant to ‘trash’ your product by any means, but
 rather to be constructive information in hopes of improvements.



 Thanks,



 Aaron Meyer

 Senior Programmer/Analyst - Provider Data Systems

 Magellan Health Services

 14100 Magellan Plaza

 Maryland Heights, MO 63043

 Phone: (314) 387-4297

 E-Mail: alme...@magellanhealth.com






 --
 Amila Suriarachchi
 WSO2 Inc.
 blog: http://amilachinthaka.blogspot.com/




-- 
Senior Software Engineer,
WSO2 Inc. http://wso2.org/
Blog : http://isurues.wordpress.com/


Axis 1.4: not doing correct deployment wsdl for specific classes

2009-08-27 Thread Olmo León Cadahía
Hi all,
I hope somebody can help me with this issue..


I'm using Axis 1.4. When I create the wsdd deployment document I specified
the beanmappings I want axis to published in the wsdl *[1]*. But when
generating the wsdl they are not included as *complexType*, and just
putting the classes that are directly referenced in my
*treatmentStageWS *class.

I want to explicitly add other classes to the *beanmapping *because I have
inheritance, and the child classes are not being included automatically in
the wsdl (what is logic).

*[1] *
deployment xmlns=http://xml.apache.org/axis/wsdd/; xmlns:java=
http://xml.apache.org/axis/wsdd/providers/java;
service name = treatmentStageWS style=wrapped use=literal provider =
java:RPC
parameter name = allowedMethods value =
getTreatmentStage,getLastTreatmentStage/
parameter name = className
value=soap.services.impl.TreatmentStageWSImpl/
parameter name=scope value=Application/
parameter name=wsdlTargetNamespace value=
http://localhost:8080/axis/services/treatmentStageWS/
parameter name=namespaceUri value=
http://localhost:8080/axis/services/treatmentStageWS/
parameter name=wsdlDocumentUrl value=
http://localhost:8080/axis/services/treatmentStageWS/

beanMapping qname=ns2:*KitForm* xmlns:ns2=treatmentStageWS
languageSpecificType=java:forms.KitForm/
beanMapping qname=ns3:*KitFormExtension* xmlns:ns3=treatmentStageWS
languageSpecificType=java:forms.KitFormExtension/
/service
/deployment


So in the wsdl deployed is just being included *KitForm *and not its child *
KitFormExtension*.

Any idea for solving this problem?

Thanks in advance,


Re: Problem with ns qualified attribute of a client message

2009-08-27 Thread error3
No one ?
- err...@free.fr a écrit :

  
  This is why the client should send the type. Server has said it is
  anyType so client has to send the type as the xsi type.
  As you have told your server does not process the runtime type,
 then
  it may have assume it as string.
  
  thanks,
  Amila.
 
 Well, Amila,
 
 the server process the runtime time like this :
 if it's string, the client send
 valuestringthestringvalue/string/value
 it it's dateTime, the client send
 valuedatetimethedatetime/datetime/value
 
 There's no need of having fully qualified namespace.
 What makes the server send me an error is that string is fully
 qualified : string xmlns:xi=http://
 without this, it works (I've tried with SOAPUI)
 
 What do you think ? Any possibilities to remove these fully qualified
 namespace attribute ?
 
 Cheers, and thanks again
 
 -- 
 Martin


Re: Problem with ns qualified attribute of a client message

2009-08-27 Thread Amila Suriarachchi
How your value element looks like

element name=value type=xs:anyType/

if so what you send is not according to the schema. Then I think there is
not proper solution

thanks,
Amila.


On Thu, Aug 27, 2009 at 1:37 PM, err...@free.fr wrote:

 No one ?
 - err...@free.fr a écrit :

  
   This is why the client should send the type. Server has said it is
   anyType so client has to send the type as the xsi type.
   As you have told your server does not process the runtime type,
  then
   it may have assume it as string.
  
   thanks,
   Amila.
 
  Well, Amila,
 
  the server process the runtime time like this :
  if it's string, the client send
  valuestringthestringvalue/string/value
  it it's dateTime, the client send
  valuedatetimethedatetime/datetime/value
 
  There's no need of having fully qualified namespace.
  What makes the server send me an error is that string is fully
  qualified : string xmlns:xi=http://
  without this, it works (I've tried with SOAPUI)
 
  What do you think ? Any possibilities to remove these fully qualified
  namespace attribute ?
 
  Cheers, and thanks again
 
  --
  Martin




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: Problem with ns qualified attribute of a client message

2009-08-27 Thread error3
The xsd tells me :
xsd:complexType name=QueryParam

xsd:sequence

xsd:element name=name type=xsd:string/

!-- See note in EPCIS spec text regarding the value 
for this element --

xsd:element name=value type=xsd:anyType /

/xsd:sequence

/xsd:complexType

What I send with axis2 generated code :

paramnameeventType/name

value xmlns:s23=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:s24=http://www.w3.org/2001/XMLSchema; 
s23:type=s24:stringObjectEvent/value

/param

What I want to send to note make the server down :
paramnameeventType/name

valuestringObjectEvent/string/value

/param


Is there a difference between xsd:AnyType and xs:AnyType ?

Can't I modify the xsd to fit my needs ? (like saying that value contains a 
string or a datetime or ... ?, as the possibilities are limitatted. I have 
no problem with modifiying the schema definition) Do you know how can I do that 
?


- Amila Suriarachchi amilasuriarach...@gmail.com a écrit :

 How your value element looks like
 
 element name=value type=xs:anyType/
 
 if so what you send is not according to the schema. Then I think there
 is not proper solution
 
 thanks,
 Amila.
 
 
 
 On Thu, Aug 27, 2009 at 1:37 PM,  err...@free.fr  wrote:
 
 
 No one ?
 - err...@free.fr a écrit :
 
 
 
 
  
   This is why the client should send the type. Server has said it is
   anyType so client has to send the type as the xsi type.
   As you have told your server does not process the runtime type,
  then
   it may have assume it as string.
  
   thanks,
   Amila.
 
  Well, Amila,
 
  the server process the runtime time like this :
  if it's string, the client send
  valuestringthestringvalue/string/value
  it it's dateTime, the client send
  valuedatetimethedatetime/datetime/value
 
  There's no need of having fully qualified namespace.
  What makes the server send me an error is that string is fully
  qualified : string xmlns:xi=http://
  without this, it works (I've tried with SOAPUI)
 
  What do you think ? Any possibilities to remove these fully
 qualified
  namespace attribute ?
 
  Cheers, and thanks again
 
  --
  Martin
 
 
 
 --
 Amila Suriarachchi
 WSO2 Inc.
 blog: http://amilachinthaka.blogspot.com/


Re: Problem with ns qualified attribute of a client message

2009-08-27 Thread Andreas Veithen
Is the string element defined in the schema?

Andreas

On Thu, Aug 27, 2009 at 11:23, err...@free.fr wrote:
 The xsd tells me :
        xsd:complexType name=QueryParam

                xsd:sequence

                        xsd:element name=name type=xsd:string/

                        !-- See note in EPCIS spec text regarding the value 
 for this element --

                        xsd:element name=value type=xsd:anyType /

                /xsd:sequence

        /xsd:complexType

 What I send with axis2 generated code :

 paramnameeventType/name

 value xmlns:s23=http://www.w3.org/2001/XMLSchema-instance; 
 xmlns:s24=http://www.w3.org/2001/XMLSchema; 
 s23:type=s24:stringObjectEvent/value

 /param

 What I want to send to note make the server down :
 paramnameeventType/name

 valuestringObjectEvent/string/value

 /param


 Is there a difference between xsd:AnyType and xs:AnyType ?

 Can't I modify the xsd to fit my needs ? (like saying that value contains a 
 string or a datetime or ... ?, as the possibilities are limitatted. I 
 have no problem with modifiying the schema definition) Do you know how can I 
 do that ?


 - Amila Suriarachchi amilasuriarach...@gmail.com a écrit :

 How your value element looks like

 element name=value type=xs:anyType/

 if so what you send is not according to the schema. Then I think there
 is not proper solution

 thanks,
 Amila.



 On Thu, Aug 27, 2009 at 1:37 PM,  err...@free.fr  wrote:


 No one ?
 - err...@free.fr a écrit :




  
   This is why the client should send the type. Server has said it is
   anyType so client has to send the type as the xsi type.
   As you have told your server does not process the runtime type,
  then
   it may have assume it as string.
  
   thanks,
   Amila.
 
  Well, Amila,
 
  the server process the runtime time like this :
  if it's string, the client send
  valuestringthestringvalue/string/value
  it it's dateTime, the client send
  valuedatetimethedatetime/datetime/value
 
  There's no need of having fully qualified namespace.
  What makes the server send me an error is that string is fully
  qualified : string xmlns:xi=http://
  without this, it works (I've tried with SOAPUI)
 
  What do you think ? Any possibilities to remove these fully
 qualified
  namespace attribute ?
 
  Cheers, and thanks again
 
  --
  Martin



 --
 Amila Suriarachchi
 WSO2 Inc.
 blog: http://amilachinthaka.blogspot.com/



Re: Problem with ns qualified attribute of a client message

2009-08-27 Thread error3
no I don't think (I'm not very used to read xsd, but it seems that no).

I've just understand that I've probably made a mistake.
xsd:element name=value type=xsd:anyType can contains (according to the 
specs)
xsd:integer, xsd:double, xsd:dateTime, xsd:string, epcisq:ArrayOfString, 
epcisq:VoidHolder

When the server wants
valuestringoneValue/string/value

It's not a xsd:string value, but probably a epcisq:ArrayOfString of one element.
epcisq:ArrayOfString is defined as :
xsd:complexType name=ArrayOfString
   xsd:sequence
xsd:element name=string type=xsd:string minOccurs=0 
maxOccurs=unbounded/
   /xsd:sequence
/xsd:complexType

All I want is to remove the xmlns: inside the value tag :-/

Perhaps I should try to modifiy the xsd:element name=value ... to be a 
epcisq:ArrayOfString type... I'm not sure the server knows how to handle other 
types (bad IBM implementation ???). 
I will try that.

thank you very much ! You help me understand how this works...


- Andreas Veithen andreas.veit...@gmail.com a écrit :

 Is the string element defined in the schema?
 
 Andreas
 
 On Thu, Aug 27, 2009 at 11:23, err...@free.fr wrote:
  The xsd tells me :
         xsd:complexType name=QueryParam
 
                 xsd:sequence
 
                         xsd:element name=name type=xsd:string/
 
                         !-- See note in EPCIS spec text regarding
 the value for this element --
 
                         xsd:element name=value type=xsd:anyType
 /
 
                 /xsd:sequence
 
         /xsd:complexType
 
  What I send with axis2 generated code :
 
  paramnameeventType/name
 
  value xmlns:s23=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:s24=http://www.w3.org/2001/XMLSchema;
 s23:type=s24:stringObjectEvent/value
 
  /param
 
  What I want to send to note make the server down :
  paramnameeventType/name
 
  valuestringObjectEvent/string/value
 
  /param
 
 
  Is there a difference between xsd:AnyType and xs:AnyType ?
 
  Can't I modify the xsd to fit my needs ? (like saying that value
 contains a string or a datetime or ... ?, as the possibilities are
 limitatted. I have no problem with modifiying the schema definition)
 Do you know how can I do that ?
 
 
  - Amila Suriarachchi amilasuriarach...@gmail.com a écrit :
 
  How your value element looks like
 
  element name=value type=xs:anyType/
 
  if so what you send is not according to the schema. Then I think
 there
  is not proper solution
 
  thanks,
  Amila.
 
 
 
  On Thu, Aug 27, 2009 at 1:37 PM,  err...@free.fr  wrote:
 
 
  No one ?
  - err...@free.fr a écrit :
 
 
 
 
   
This is why the client should send the type. Server has said it
 is
anyType so client has to send the type as the xsi type.
As you have told your server does not process the runtime
 type,
   then
it may have assume it as string.
   
thanks,
Amila.
  
   Well, Amila,
  
   the server process the runtime time like this :
   if it's string, the client send
   valuestringthestringvalue/string/value
   it it's dateTime, the client send
   valuedatetimethedatetime/datetime/value
  
   There's no need of having fully qualified namespace.
   What makes the server send me an error is that string is fully
   qualified : string xmlns:xi=http://
   without this, it works (I've tried with SOAPUI)
  
   What do you think ? Any possibilities to remove these fully
  qualified
   namespace attribute ?
  
   Cheers, and thanks again
  
   --
   Martin
 
 
 
  --
  Amila Suriarachchi
  WSO2 Inc.
  blog: http://amilachinthaka.blogspot.com/
 


Re: Problem with ns qualified attribute of a client message

2009-08-27 Thread Amila Suriarachchi
On Thu, Aug 27, 2009 at 2:53 PM, err...@free.fr wrote:

 The xsd tells me :
xsd:complexType name=QueryParam

xsd:sequence

xsd:element name=name type=xsd:string/

!-- See note in EPCIS spec text regarding the value
 for this element --

xsd:element name=value type=xsd:anyType /

/xsd:sequence

/xsd:complexType

 What I send with axis2 generated code :

 paramnameeventType/name

 value xmlns:s23=http://www.w3.org/2001/XMLSchema-instance; xmlns:s24=
 http://www.w3.org/2001/XMLSchema;
 s23:type=s24:stringObjectEvent/value

 /param

 What I want to send to note make the server down :
 paramnameeventType/name

 valuestringObjectEvent/string/value

 /param


 Is there a difference between xsd:AnyType and xs:AnyType ?


No. your service interpret the request in a wrong way.

Try with this change to schema.

xsd:complexType name=QueryParam

   xsd:sequence

   xsd:element name=name type=xsd:string/

   xsd:element name=value type=tns:testType /

   /xsd:sequence

   /xsd:complexType

xsd:complexType name=testType

   xsd:sequence

   xsd:any/

   /xsd:sequence

   /xsd:complexType

this would generate an OMElemet for value variable. Then you can set any
thing you need.

thanks,
Amila.



 Can't I modify the xsd to fit my needs ? (like saying that value contains a
 string or a datetime or ... ?, as the possibilities are limitatted. I
 have no problem with modifiying the schema definition) Do you know how can I
 do that ?


 - Amila Suriarachchi amilasuriarach...@gmail.com a écrit :

  How your value element looks like
 
  element name=value type=xs:anyType/
 
  if so what you send is not according to the schema. Then I think there
  is not proper solution
 
  thanks,
  Amila.
 
 
 
  On Thu, Aug 27, 2009 at 1:37 PM,  err...@free.fr  wrote:
 
 
  No one ?
  - err...@free.fr a écrit :
 
 
 
 
   
This is why the client should send the type. Server has said it is
anyType so client has to send the type as the xsi type.
As you have told your server does not process the runtime type,
   then
it may have assume it as string.
   
thanks,
Amila.
  
   Well, Amila,
  
   the server process the runtime time like this :
   if it's string, the client send
   valuestringthestringvalue/string/value
   it it's dateTime, the client send
   valuedatetimethedatetime/datetime/value
  
   There's no need of having fully qualified namespace.
   What makes the server send me an error is that string is fully
   qualified : string xmlns:xi=http://
   without this, it works (I've tried with SOAPUI)
  
   What do you think ? Any possibilities to remove these fully
  qualified
   namespace attribute ?
  
   Cheers, and thanks again
  
   --
   Martin
 
 
 
  --
  Amila Suriarachchi
  WSO2 Inc.
  blog: http://amilachinthaka.blogspot.com/




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Axis 1.5 compile problem

2009-08-27 Thread Simon Steinacker
Hello,
I just changed my software from Axis2 1.4.1 to Axis2 1.5. So I linked the 
libraries, exchanged the new axis2.xml and the axis2-web directory. I noticed 
that in the viewphases.jsp there are compile errors.
PhaseInfo.getGlobalInFlow() returns a java.util.List, but the variable it is 
assigned to is of type java.util.ArrayList. This leads to compile errors.

Am I doing something wrong?
Thanks in advance,
Regards,
Simon

---
DI Simon Steinacker
Software developement
eHealth solutions

Phone +43 (0)50 8648-4134
Fax +43 (0)50 8648-4539
simon.steinac...@ith-icoserve.commailto:thomas.schabetsber...@ith-icoserve.com
__
ITH icoserve technology for healthcare GmbH 6020 Innsbruck, Innrain 98
Firmenbuchnummer: FN 174117f
Firmenbuchgericht: Innsbruck
DVR: 0983039
www.ith-icoserve.comhttp://www.ith-icoserve.com

sense - smart ehealth solutions ...
... because networking in health care makes sense!



unsubscribe-axis-user

2009-08-27 Thread Kenneth W. Meehan
unsubscribe-axis-user


[axis-users] Re: Newbie question

2009-08-27 Thread Arvind Narayan
Thanks, strangely enough, the issue was resolved after I enabled the
-b flag in WSDL2C. ( generate backwards compatible code ). Although
why that might be the case still confounds me.

thanks

arvind.

On Wed, Aug 26, 2009 at 11:58 PM, Chinmoy Chakrabortycch...@gmail.com wrote:
 Instead of using ArrayList, use complex type array as return type

 e.g instead of using public ArrayList listFunctions(), use public Function[]
 listFunction()

 Chinmoy

 On Thu, Aug 27, 2009 at 4:12 AM, Arvind Narayan arvind.nara...@gmail.com
 wrote:

 Hello:

 I am facing a strange problem where I see SOAP data coming back from
 the server, but my axis2 client is reading NULLs for all fields in an
 array_list response.

 Here are the steps I took:

 (1) Used the WSDL2C tool in AXIS2C version 1.5 to generate stub
 classes using adb binding and wv 1.1 ( all other versions fail )
 (2) Server runs Axis2 inside tomcat.
 (3) Start a tcpdump to see client/server interaction.
 (4) Client starts up sends request to server.
 (5) Server responds with required data. ( its an array_list type ).
 tcpdump displays the returned data.
 (6) Client sees 190 items in adb_xxx_sizeof_return( response, env );
 (6) Client uses adb_xxx_get_return_at( response, env, i ) to get element
 at i.
 (7) Element is not NULL, but all inner members of the element are NULL.

 what could I be doing wrong? what other details do you need?

 thanks

 arvind.




Re: unsubscribe-axis-user

2009-08-27 Thread Larry Meadors
You'll have better luck sending that to axis-user-unsubscr...@ws.apache.org

Larry


On Thu, Aug 27, 2009 at 6:43 AM, Kenneth W. Meehanmee...@progress.com wrote:
 unsubscribe-axis-user



unsubscribe-axis-user

2009-08-27 Thread trevor.baden




unsubscribe-axis-user

2009-08-27 Thread MIKE WIESEMANN, BLOOMBERG/ 731 LEXIN


RE: Where's wsgen and wsimport?

2009-08-27 Thread Meyer, Aaron L.
Isuru, 

 

I'm impressed!  Based on the date it looks like you just did this for me
(and others) today.  I have to start working on something else so I
don't know when I will have a chance to try this, but I definitely plan
to when I get a chance.  It looks like the kind of information Axis
needs to put on their web site.  I noticed that you did some work for
them.

 

Thanks very much!

 

Aaron Meyer

Phone: (314) 387-4297

E-Mail: alme...@magellanhealth.com mailto:alme...@magellanhealth.com 



From: Isuru Suriarachchi [mailto:isur...@gmail.com] 
Sent: Thursday, August 27, 2009 1:58 AM
To: axis-user@ws.apache.org
Subject: Re: Where's wsgen and wsimport?

 

Hi Aaron,

I've written a blog post on deploying JAXWS service in Axis2 at [1].
Most of the details including download links for jaxws-rt.jar and
jaxws-tools.jar are there in this post.

Thanks,
~Isuru

[1]
http://isurues.wordpress.com/2009/08/27/how-to-deploy-your-jaxws-web-ser
vice-in-axis2/

On Wed, Aug 26, 2009 at 9:14 PM, Meyer, Aaron L.
alme...@magellanhealth.com wrote:

Amila, 

 

Thanks for your reply.  Since these jars weren't in the Axis
distribution I eventually concluded that I had to get them from
elsewhere and downloaded JAX-WS 2.1.5 from the Glassfish/Metro/JAX-WS
site (I encountered a problem with the 2.1.7 download jar file).  I can
see that wsgen and wsimport are in the 'bin' folder.  

 

However, it's still not clear to me just how to integrate with Axis or
why the documentation doesn't cover this, so I guess I'll experiment
some more keeping your tip in mind.

 

I'm curious as to how you figured this out from the provided
documentation (or otherwise).  I realize that Axis is open source, but
it sure would be a monumental improvement if the Axis documentation were
given as much attention as the product itself and explained in more
detail so we wouldn't have to needlessly waste so much time trying to
get it (or at least certain aspects of it like JAX-WS) working.  For
example, it doesn't seem like it would be that difficult to mention that
you have to download JAX-WS separately, include a link, explain how to
integrate it, and suggest when/why you might want to use it with Axis. 

 

Hopefully someone from Axis will read this and get the documentation
improved.

 

In any case, thanks again for the tip! 

 

Aaron Meyer

Phone: (314) 387-4297

E-Mail: alme...@magellanhealth.com mailto:alme...@magellanhealth.com 



From: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] 
Sent: Tuesday, August 25, 2009 11:50 PM
To: axis-user@ws.apache.org
Subject: Re: Where's wsgen and wsimport?

 

hi,

you need to put jaxws-rt.jar and jaxws-tools.jar s to lib folder.

thanks,
Amila.

On Tue, Aug 25, 2009 at 11:36 PM, Meyer, Aaron L.
alme...@magellanhealth.com wrote:

The immediate problem I hope you can help me with:

I can't find wsgen or wsimport in the distribution for 1.5.  I'm
wondering why there is documentation for JAXWS but apparently it's not
included.  Also, I would like to know if JAXWS is what I should learn if
just starting out since (if I understand what I read correctly) it
appears as though it will be the J2EE standard way of creating Web
Services.  So how do I get JAXWS to work with Axis - that's the missing
part in the documentation. 

 

Other comments:

 

I'm trying to learn Web Services and I just went through the JBoss In
Action chapter and successfully created a simple web service (apparently
based on JAXWS).  I then decided I would like to also learn Axis (partly
because we aren't on the latest JBoss server).  I quickly became
frustrated for the following reasons:

 

The documentation is very confusing because it offers all these
different technologies you can use but offers no guidelines as to which
to use, and the examples under the different sections aren't even
consistent (e.g. Quick Start vs. User Guide).   This is only made worse
by the (apparently) missing support for JAXWS (even though it's
documented as though it is supported). 

 

It would save a lot of frustration if you could clarify all this in the
documentation (especially the JAXWS part).  

 

By the way - this is not meant to 'trash' your product by any means, but
rather to be constructive information in hopes of improvements.   

 

Thanks,

 

Aaron Meyer

Senior Programmer/Analyst - Provider Data Systems

Magellan Health Services

14100 Magellan Plaza

Maryland Heights, MO 63043

Phone: (314) 387-4297

E-Mail: alme...@magellanhealth.com mailto:alme...@magellanhealth.com 

 




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/




-- 
Senior Software Engineer,
WSO2 Inc. http://wso2.org/
Blog : http://isurues.wordpress.com/



create MessageElement from a XML file (Problem with blank namespace)

2009-08-27 Thread A.H

Hello,

I have to create a MessageElement from a XML-file. I used following
programm-code to open and parse the XML-file. After that initialize the
MessageElement attribute with the content of the XML- File.

// Code ///
File xmlfile = new File(pathOfFile);
MessageElement[] mElemente = new MessageElement[1];
DocumentBuilderFactory factory= DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(xmlfile);
Element element = document.getDocumentElement();
mElemente[0] = new MessageElement(element);
// Code ///

When i print the content of the MessageElement mElement[0] using the
function getAsString like:

System.out.println(mElemente[0].getAsString());

i notice that every attribut or elements become a blank namespace like this:

personID

this blank namespace does not exist in the originale XML-file and i dont
know exactly why and from where they come. So when i send the whole SOAP
Message with this MessageElement to my Webservice i become following error:

com.ctc.wstx.exc.WstxParsingException: Non-default namespace can not map to
empty URI (as per Namespace 1.0 # 2) in XML 1.0 documents
 at [row,col {unknown-source}]: [2,21]
 

My questions are:
1- How can i create a MessageElement from a XML file
2- How can i remove the blank namespace
3- Who cause this problem

Thank you very much for Help



-- 
View this message in context: 
http://www.nabble.com/create-MessageElement-from-a-XML-file-%28Problem-with-blank-namespace%29-tp25169266p25169266.html
Sent from the Axis - User mailing list archive at Nabble.com.


Unable to get Header tags in custom module's inflow handler

2009-08-27 Thread soni swapna

Hi Axis Team, 

In a client class we have our custom module and rampart engaged. While
sending the request, we are setting some header tags in outflow handler of
custom module. while request going out, first custom module's outflow
handler is executing then rampart module's outflow handler is executing.
When request goes til webservice, (webservice is also having rampart and
custom module engage), then webservice custom module's inflow handler is
executing. We have a code to extract custom header tags in inflow handler.
But the custom header tags we have set in outflow handler is not coming till
inflow handler. And in inflow handler the envelope is in encrypt form. Could
you please tell me how to get these header values in inflow handler. 

Please reply as soon as possible. This is very urgent. 

Thanks, 
Swapna Soni
-- 
View this message in context: 
http://www.nabble.com/Unable-to-get-Header-tags-in-custom-module%27s-inflow-handler-tp25169355p25169355.html
Sent from the Axis - User mailing list archive at Nabble.com.



Question about xsd:any

2009-08-27 Thread error3
Hello again,

I have a xsd with an extension, I mean something like that :

[...]
xsd:sequence
 xsd:element name=begin type=xsd:string /
 xsd:element name=end type=xsd:string /
 xsd:any namespace=##other processContents=lax minOccurs=0 
maxOccurs=unbounded /
/xsd:sequence
[...]

I have a axis2 generated webservice. The response of this service use the above 
element of xsd).
Well the service send me something like that
[...]
beginstart/begin
customfield1this is a customfield/customfield1
customfield2this is a customfield/customfield2

Is there's a way to use the 'any' element in axis2 ? something like registering 
objects that can hold the de/serialization for 'any' ?
Can 'customFields' be some more complex elements ? like :
customfieldfirstfieldtest/firstfield/customfield


thank you for any help 

-- 
Martin


Can axis2-1.5 use rampart-1.4

2009-08-27 Thread Asen
Hi there-

When I am trying to engage rampart module, the module does not exist in
the axis configuration.
The rahas is loaded but not the rampart.
This was not the case when I was using 1.4.1 release.
Is axis2-1.5 add the rampart 1.4 module into the faultModuleList and
ignoring it?

Asen-


Re: Can axis2-1.5 use rampart-1.4

2009-08-27 Thread Asen
Please ignore this.
I was missing some required .jar on the classpath.


On Thu, Aug 27, 2009 at 12:50 PM, Asen asen.m.ase...@gmail.com wrote:

 Hi there-

 When I am trying to engage rampart module, the module does not exist in
 the axis configuration.
 The rahas is loaded but not the rampart.
 This was not the case when I was using 1.4.1 release.
 Is axis2-1.5 add the rampart 1.4 module into the faultModuleList and
 ignoring it?

 Asen-



adding MTOM/SwA functionality

2009-08-27 Thread Jeff Ramin


Hi folks.

I have an existing SOAP service, and I want to add the ability to receive
binary data (an audio file). The code is hand written; not auto-generated.

So, if I have an existing method such as:

public void doSomething(String someParam)

and I want to also receive an audio file, what would the new signature 
look like?:


public void doSomething(String someParam,  audioFile)

Thanks!

--
Jeff Ramin
Software Engineer
Singlewire Software
PO Box 46218
Madison, WI 53744-6218

Phone Direct - 608.298.1024
www.singlewire.com



send soap attachment via AXIS2

2009-08-27 Thread sean . flannery
Hello,

I'm struggling to send a soap attachment with AXIS2.

Most of the documentation I'm finding online is on receiving, rather than 
sending attachments.  Here's the closest I've gathered to what the code 
should sort of look like (which is surely wrong):

 
stub._getServiceClient().getOptions().setProperty(Constants.Configuration.ENABLE_MTOM,
 Constants.VALUE_TRUE);
 
FileDataSource dataSource = 
new FileDataSource(c:\\myImageAttachment.jpg);
DataHandler dataHandler = new DataHandler(dataSource);

 MessageContext.getCurrentMessageContext().addAttachment(dataHandler);


   stub.CreateIncident();


But that code does not work since getCurrentMessageContext returns null.

Outside of attachments, the rest of the functionality works fine.

It looks, to me, like the old version of Axis had an addAttachment method 
on the stub API, but I don't see anything comparable in 2. 


Any help would be appreciated.  Thanks.

Sean
/PREpspan style=font-size:9.5pt;line-height:115%;font-family:ArialThis 
transmission is intended solely for the person or organization to whom it is 
addressed and it may contain privileged and cofidential information.  If you 
are not the intended recipient you should not copy, distribute or take any 
action in reliance on it.  If you believe you received this transmission in 
error please notify the sender.br222 Merchandise Mart Plaza, Suite 250, 
Chicago, IL  60654, USA/span/p


RE: adding MTOM/SwA functionality

2009-08-27 Thread McCullough, Ryan
Jeff,

I just found this website:
http://www.w3.org/2000/xp/Group/4/08/implementation.html

Which has implantation examples for MTOM. It shows what the request and 
response look like. Hope this helps.

-Ryan

-Original Message-
From: Jeff Ramin [mailto:jeff.ra...@singlewire.com] 
Sent: Thursday, August 27, 2009 2:34 PM
To: axis-user@ws.apache.org
Subject: adding MTOM/SwA functionality


Hi folks.

I have an existing SOAP service, and I want to add the ability to receive
binary data (an audio file). The code is hand written; not auto-generated.

So, if I have an existing method such as:

public void doSomething(String someParam)

and I want to also receive an audio file, what would the new signature 
look like?:

public void doSomething(String someParam,  audioFile)

Thanks!

-- 
Jeff Ramin
Software Engineer
Singlewire Software
PO Box 46218
Madison, WI 53744-6218

Phone Direct - 608.298.1024
www.singlewire.com



Re: Can axis2-1.5 use rampart-1.4

2009-08-27 Thread v2cg4ss

What miss jar, I have just tried to use axis2 1.5 inside of tomcat 6.0.20
with ramart 1.4 and I get a class not found error.  I copy the rampart
modules to the axis2 modules folder and then copied the rampart jars to the
axis2 lib folder and I get the error.  So which jar(s) did you have to place
in your classpath?



asen wrote:
 
 Please ignore this.
 I was missing some required .jar on the classpath.
 
 
 On Thu, Aug 27, 2009 at 12:50 PM, Asen asen.m.ase...@gmail.com wrote:
 
 Hi there-

 When I am trying to engage rampart module, the module does not exist in
 the axis configuration.
 The rahas is loaded but not the rampart.
 This was not the case when I was using 1.4.1 release.
 Is axis2-1.5 add the rampart 1.4 module into the faultModuleList and
 ignoring it?

 Asen-

 
 

-- 
View this message in context: 
http://www.nabble.com/Can-axis2-1.5-use-rampart-1.4-tp25176887p25180691.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Can axis2-1.5 use rampart-1.4

2009-08-27 Thread Nandana Mihindukulasooriya
Did you copy all the required jars to axis2 lib ? The jars in the Rampart
binary distribution and the bouncy castle / backport-util-concurrent jars.
Anyway Rampart 1.5 will be released soon, it will be the compatible version
with Axis2 1.5.

opensaml-1.1.jar
rampart-core-1.4.jar
rampart-policy-1.4.jar
rampart-trust-1.4.jar
wss4j-1.5.4.jar
xmlsec-1.4.1.jar
bcprov-jdk15-132.jar
backport-util-concurrent-3.1.jar

regards,
Nandana

On Fri, Aug 28, 2009 at 12:03 AM, v2cg4ss ssel...@datamentors.com wrote:


 What miss jar, I have just tried to use axis2 1.5 inside of tomcat 6.0.20
 with ramart 1.4 and I get a class not found error.  I copy the rampart
 modules to the axis2 modules folder and then copied the rampart jars to the
 axis2 lib folder and I get the error.  So which jar(s) did you have to
 place
 in your classpath?



 asen wrote:
 
  Please ignore this.
  I was missing some required .jar on the classpath.
 
 
  On Thu, Aug 27, 2009 at 12:50 PM, Asen asen.m.ase...@gmail.com wrote:
 
  Hi there-
 
  When I am trying to engage rampart module, the module does not exist
 in
  the axis configuration.
  The rahas is loaded but not the rampart.
  This was not the case when I was using 1.4.1 release.
  Is axis2-1.5 add the rampart 1.4 module into the faultModuleList and
  ignoring it?
 
  Asen-
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Can-axis2-1.5-use-rampart-1.4-tp25176887p25180691.html
 Sent from the Axis - User mailing list archive at Nabble.com.




Re: Unable to get Header tags in custom module's inflow handler

2009-08-27 Thread Nandana Mihindukulasooriya
Hi,
   I have done a very similar thing for testing encrypted/signed headers and
I didn't face any issues. In this test, I used a module [1] which inserts
some headers to the SOAP messages in the out flow and used the same module
to log them in the in flow. And I encrypted/signed those custom headers
added by the module using Rampart. I have tested this with Axis2 1.4 /
Rampart 1.4 and Axis2 1.5 / Rampart trunk without any problem. If I
understood correct, you seem to be doing a similar thing.
What is the Axis2 version and Rampart version you are using ? Are you
encrypting the custom headers added by your module. Can you attach a sample
message on the transit ?

regards,
Nandana

[1] -
https://svn.apache.org/repos/asf/webservices/rampart/scratch/java/test-module/READ_ME.txt

On Thu, Aug 27, 2009 at 4:36 PM, soni swapna sws...@cisco.com wrote:


 Hi Axis Team,

In a client class we have our custom module and rampart engaged. While
 sending the request, we are setting some header tags in outflow handler of
 custom module. while request going out, first custom module's outflow
 handler is executing then rampart module's outflow handler is executing.
 When request goes til webservice, (webservice is also having rampart and
 custom module engage), then webservice custom module's inflow handler is
 executing. We have a code to extract custom header tags in inflow handler.
 But the custom header tags we have set in outflow handler is not coming
 till
 inflow handler. And in inflow handler the envelope is in encrypt form.
 Could
 you please tell me how to get these header values in inflow handler.

 Please reply as soon as possible. This is very urgent.

 Thanks,
 Swapna Soni
 --
 View this message in context:
 http://www.nabble.com/Unable-to-get-Header-tags-in-custom-module%27s-inflow-handler-tp25169355p25169355.html
 Sent from the Axis - User mailing list archive at Nabble.com.




Re: Unable to get Header tags in custom module's inflow handler

2009-08-27 Thread Amila Suriarachchi
hi,

Have you engage Addressing? if so try without it.

Amila.


On Fri, Aug 28, 2009 at 4:58 AM, Nandana Mihindukulasooriya 
nandana@gmail.com wrote:

 Hi,
I have done a very similar thing for testing encrypted/signed headers
 and I didn't face any issues. In this test, I used a module [1] which
 inserts some headers to the SOAP messages in the out flow and used the same
 module to log them in the in flow. And I encrypted/signed those custom
 headers added by the module using Rampart. I have tested this with Axis2 1.4
 / Rampart 1.4 and Axis2 1.5 / Rampart trunk without any problem. If I
 understood correct, you seem to be doing a similar thing.
 What is the Axis2 version and Rampart version you are using ? Are you
 encrypting the custom headers added by your module. Can you attach a sample
 message on the transit ?

 regards,
 Nandana

 [1] -
 https://svn.apache.org/repos/asf/webservices/rampart/scratch/java/test-module/READ_ME.txt


 On Thu, Aug 27, 2009 at 4:36 PM, soni swapna sws...@cisco.com wrote:


 Hi Axis Team,

In a client class we have our custom module and rampart engaged. While
 sending the request, we are setting some header tags in outflow handler of
 custom module. while request going out, first custom module's outflow
 handler is executing then rampart module's outflow handler is executing.
 When request goes til webservice, (webservice is also having rampart and
 custom module engage), then webservice custom module's inflow handler is
 executing. We have a code to extract custom header tags in inflow handler.
 But the custom header tags we have set in outflow handler is not coming
 till
 inflow handler. And in inflow handler the envelope is in encrypt form.
 Could
 you please tell me how to get these header values in inflow handler.

 Please reply as soon as possible. This is very urgent.

 Thanks,
 Swapna Soni
 --
 View this message in context:
 http://www.nabble.com/Unable-to-get-Header-tags-in-custom-module%27s-inflow-handler-tp25169355p25169355.html
 Sent from the Axis - User mailing list archive at Nabble.com.







-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: Question about xsd:any

2009-08-27 Thread Amila Suriarachchi
On Thu, Aug 27, 2009 at 10:31 PM, err...@free.fr wrote:

 Hello again,

 I have a xsd with an extension, I mean something like that :

 [...]
 xsd:sequence
  xsd:element name=begin type=xsd:string /
  xsd:element name=end type=xsd:string /
  xsd:any namespace=##other processContents=lax minOccurs=0
 maxOccurs=unbounded /
 /xsd:sequence
 [...]

 I have a axis2 generated webservice. The response of this service use the
 above element of xsd).
 Well the service send me something like that
 [...]
 beginstart/begin
 customfield1this is a customfield/customfield1
 customfield2this is a customfield/customfield2

 Is there's a way to use the 'any' element in axis2 ? something like
 registering objects that can hold the de/serialization for 'any' ?
 Can 'customFields' be some more complex elements ? like :
 customfieldfirstfieldtest/firstfield/customfield


try your self. for any It generates an OMElement. so you can have any thing.

thanks,
Amila.




 thank you for any help

 --
 Martin




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: adding MTOM/SwA functionality

2009-08-27 Thread prabath

Please have a look at [1].

Thanks  regards.
-Prabath

[1]:https://svn.apache.org/repos/asf/webservices/axis2/site/1_1/mtom-guide.html

Jeff Ramin wrote:


Hi folks.

I have an existing SOAP service, and I want to add the ability to receive
binary data (an audio file). The code is hand written; not 
auto-generated.


So, if I have an existing method such as:

public void doSomething(String someParam)

and I want to also receive an audio file, what would the new signature 
look like?:


public void doSomething(String someParam,  audioFile)

Thanks!





Re: send soap attachment via AXIS2

2009-08-27 Thread prabath

Please have a look at [1].

Thanks  regards.
-Prabath

[1]:https://svn.apache.org/repos/asf/webservices/axis2/site/1_1/mtom-guide.html

sean.flann...@jwt.com wrote:


Hello,

I'm struggling to send a soap attachment with AXIS2.

Most of the documentation I'm finding online is on receiving, rather than
sending attachments.  Here's the closest I've gathered to what the code
should sort of look like (which is surely wrong):


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

   FileDataSource dataSource =
   new FileDataSource(c:\\myImageAttachment.jpg);
   DataHandler dataHandler = new DataHandler(dataSource);

MessageContext.getCurrentMessageContext().addAttachment(dataHandler);


  stub.CreateIncident();


But that code does not work since getCurrentMessageContext returns null.

Outside of attachments, the rest of the functionality works fine.

It looks, to me, like the old version of Axis had an addAttachment 
method on the stub API, but I don't see anything comparable in 2.



Any help would be appreciated.  Thanks.

Sean

This transmission is intended solely for the person or organization to 
whom it is addressed and it may contain privileged and cofidential 
information. If you are not the intended recipient you should not 
copy, distribute or take any action in reliance on it. If you believe 
you received this transmission in error please notify the sender.

222 Merchandise Mart Plaza, Suite 250, Chicago, IL 60654, USA





Re: Where's wsgen and wsimport?

2009-08-27 Thread Isuru Suriarachchi
Hi Aaron,

Yes I wrote it yesterday. Thought it will be helpful for many people like
you. Therefore made it bit more public rather than explaining everything in
the mail itself. Yes I know we are lacking a proper documentation on JAXWS
in the Axis2 user guide.

Thanks,
~Isuru

On Thu, Aug 27, 2009 at 7:41 PM, Meyer, Aaron L. alme...@magellanhealth.com
 wrote:

  Isuru,



 I’m impressed!  Based on the date it looks like you just did this for me
 (and others) today.  I have to start working on something else so I don’t
 know when I will have a chance to try this, but I definitely plan to when I
 get a chance.  It looks like the kind of information Axis needs to put on
 their web site.  I noticed that you did some work for them.



 Thanks very much!



 Aaron Meyer

 Phone: (314) 387-4297

 E-Mail: alme...@magellanhealth.com
   --

 *From:* Isuru Suriarachchi [mailto:isur...@gmail.com]
 *Sent:* Thursday, August 27, 2009 1:58 AM

 *To:* axis-user@ws.apache.org
 *Subject:* Re: Where's wsgen and wsimport?



 Hi Aaron,

 I've written a blog post on deploying JAXWS service in Axis2 at [1]. Most
 of the details including download links for jaxws-rt.jar and jaxws-tools.jar
 are there in this post.

 Thanks,
 ~Isuru

 [1]
 http://isurues.wordpress.com/2009/08/27/how-to-deploy-your-jaxws-web-service-in-axis2/

 On Wed, Aug 26, 2009 at 9:14 PM, Meyer, Aaron L. 
 alme...@magellanhealth.com wrote:

 Amila,



 Thanks for your reply.  Since these jars weren’t in the Axis distribution I
 eventually concluded that I had to get them from elsewhere and downloaded
 JAX-WS 2.1.5 from the Glassfish/Metro/JAX-WS site (I encountered a problem
 with the 2.1.7 download jar file).  I can see that wsgen and wsimport are in
 the ‘bin’ folder.



 However, it’s still not clear to me just how to integrate with Axis or why
 the documentation doesn’t cover this, so I guess I’ll experiment some more
 keeping your tip in mind.



 I’m curious as to how you figured this out from the provided documentation
 (or otherwise).  I realize that Axis is open source, but it sure would be a
 monumental improvement if the Axis documentation were given as much
 attention as the product itself and explained in more detail so we wouldn’t
 have to needlessly waste so much time trying to get it (or at least certain
 aspects of it like JAX-WS) working.  For example, it doesn’t seem like it
 would be that difficult to mention that you have to download JAX-WS
 separately, include a link, explain how to integrate it, and suggest
 when/why you might want to use it with Axis.



 Hopefully someone from Axis will read this and get the documentation
 improved.



 In any case, thanks again for the tip!



 Aaron Meyer

 Phone: (314) 387-4297

 E-Mail: alme...@magellanhealth.com
   --

 *From:* Amila Suriarachchi [mailto:amilasuriarach...@gmail.com]
 *Sent:* Tuesday, August 25, 2009 11:50 PM
 *To:* axis-user@ws.apache.org
 *Subject:* Re: Where's wsgen and wsimport?



 hi,

 you need to put jaxws-rt.jar and jaxws-tools.jar s to lib folder.

 thanks,
 Amila.

 On Tue, Aug 25, 2009 at 11:36 PM, Meyer, Aaron L. 
 alme...@magellanhealth.com wrote:

 The immediate problem I hope you can help me with:

 I can’t find wsgen or wsimport in the distribution for 1.5.  I’m wondering
 why there is documentation for JAXWS but apparently it’s not included.
 Also, I would like to know if JAXWS is what I should learn if just starting
 out since (if I understand what I read correctly) it appears as though it
 will be the J2EE standard way of creating Web Services.  So how do I get
 JAXWS to work with Axis – that’s the missing part in the documentation.



 Other comments:



 I’m trying to learn Web Services and I just went through the JBoss In
 Action chapter and successfully created a simple web service (apparently
 based on JAXWS).  I then decided I would like to also learn Axis (partly
 because we aren’t on the latest JBoss server).  I quickly became frustrated
 for the following reasons:



 The documentation is very confusing because it offers all these different
 technologies you can use but offers no guidelines as to which to use, and
 the examples under the different sections aren’t even consistent (e.g. Quick
 Start vs. User Guide).   This is only made worse by the (apparently) missing
 support for JAXWS (even though it’s documented as though it is supported).



 It would save a lot of frustration if you could clarify all this in the
 documentation (especially the JAXWS part).



 By the way - this is not meant to ‘trash’ your product by any means, but
 rather to be constructive information in hopes of improvements.



 Thanks,



 Aaron Meyer

 Senior Programmer/Analyst - Provider Data Systems

 Magellan Health Services

 14100 Magellan Plaza

 Maryland Heights, MO 63043

 Phone: (314) 387-4297

 E-Mail: alme...@magellanhealth.com






 --
 Amila Suriarachchi
 WSO2 Inc.
 blog: http://amilachinthaka.blogspot.com/


Eclipse Plugin with MTOM support

2009-08-27 Thread Partha Pal
Hi all,

 

I need to write an Eclipse plugin which internally will call web
services with attachments. I need to provide support for Eclipse 3.3 ,
3.4 and 3.5  . Could anybody please point me to any axis2 plugin / jar
file so that I could use it, because with the axis plug-ins already
included in these versions of Eclipse it is not working from the plugin
I am developing. 

 

Any help is appreciated as I am pretty new to plug-ins and axis2 . J

 

Thanks,

Partha

 

  



Re: send soap attachment via AXIS2

2009-08-27 Thread Chinmoy Chakraborty
you can try this,

MessageContext mc = new MessageContext();
FileDataSource dataSource =
   new FileDataSource(c:\\myImageAttachment.jpg);
   DataHandler dataHandler = new DataHandler(dataSource);

mc.addAttachment(dataHandler .getName(), dataHandler);

then add this message context to the client.

one more point, this is 'SwA' enabled attachment handling, so you have to
enabled SwA both in the server and client side.

Chinmoy



On Fri, Aug 28, 2009 at 8:11 AM, prabath prab...@wso2.com wrote:

 Please have a look at [1].

 Thanks  regards.
 -Prabath

 [1]:
 https://svn.apache.org/repos/asf/webservices/axis2/site/1_1/mtom-guide.html


 sean.flann...@jwt.com wrote:


 Hello,

 I'm struggling to send a soap attachment with AXIS2.

 Most of the documentation I'm finding online is on receiving, rather than
 sending attachments.  Here's the closest I've gathered to what the code
 should sort of look like (which is surely wrong):



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

   FileDataSource dataSource =
   new FileDataSource(c:\\myImageAttachment.jpg);
   DataHandler dataHandler = new DataHandler(dataSource);

 MessageContext.getCurrentMessageContext().addAttachment(dataHandler);


  stub.CreateIncident();


 But that code does not work since getCurrentMessageContext returns null.

 Outside of attachments, the rest of the functionality works fine.

 It looks, to me, like the old version of Axis had an addAttachment method
 on the stub API, but I don't see anything comparable in 2.


 Any help would be appreciated.  Thanks.

 Sean

 This transmission is intended solely for the person or organization to
 whom it is addressed and it may contain privileged and cofidential
 information. If you are not the intended recipient you should not copy,
 distribute or take any action in reliance on it. If you believe you received
 this transmission in error please notify the sender.
 222 Merchandise Mart Plaza, Suite 250, Chicago, IL 60654, USA