Re: REST with Axis2/C

2007-09-05 Thread Subra A Narayanan
Thanks for all your help Samisa!


On 9/4/07, Samisa Abeysinghe [EMAIL PROTECTED] wrote:

 Sorry about the late reply - please see my comments in line.
 Subra A Narayanan wrote:
  Good Morning Samisa,
 
  Could you pls elaborate a little bit more on ur statement The problem
  you would have to solve in
  this case would be, how to handle the resources requested to a service.
 First, there is an error in my statement. It is not how to handle,
 rather it should be how to map. Sorry about that.
 Now to what I meant; when the request comes, you have to locate the
 service. In Axis2/C jargon, we call this process 'dispatching', and
 there are multiple dispatch mechanisms - from those request URL based
 dispatcher could be used for REST case.
 
  I am not sure I understand that correctly.
 
  Also can you point me to code in Axis2/C framework where I could begin
  looking to get ideas for my module (this is the first time I will be
  writing one). Also I will start looking into libcurl. Is threading a
  major issue that needs to be dealt with while writing modules?
 Our apache module code is located inside the folder
 src/core/transport/http/server/apache2/

 Threading is not an issue - APR, the core library that httpd runs on,
 handles those for you - you just have to worry about how to handle
 requests.

 Thanks,
 Samisa...

 --
 Samisa Abeysinghe : WSO2 WSF/C
 
 http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services
 


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




Re: rampart/c compilation error on Solaris

2007-09-05 Thread Kaushalye Kapuruge

Hi Sharada,
What openssl version you are using?
You can view it by using this command.
%openssl version
Cheers,
Kaushalye

[EMAIL PROTECTED] wrote:

Hi,

  While trying to compile rampart/c version 0.90 on Solaris, I get
the following error on the 'make' command. Has anyone encountered the same
issue? If so, how do we fix it?

 cc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -I
../../../../util/include -I ../../../../include -I
../../../../axiom/include -I /usr/local/ssl/include
-I/opt/crm/snaccess/axis2c/bin/include/axis2-1.1 -g -D_LARGEFILE64_SOURCE
-c rsa.c  -KPIC -DPIC -o .libs/rsa.o
rsa.c, line 69: undefined symbol: __FUNCTION__
rsa.c, line 70: warning: improper pointer/integer combination: arg #4
rsa.c, line 108: undefined symbol: __FUNCTION__
rsa.c, line 109: warning: improper pointer/integer combination: arg #4
rsa.c, line 150: undefined symbol: __FUNCTION__
rsa.c, line 151: warning: improper pointer/integer combination: arg #4
rsa.c, line 192: undefined symbol: __FUNCTION__
rsa.c, line 193: warning: improper pointer/integer combination: arg #4
cc: acomp failed for rsa.c
*** Error code 1
make: Fatal error: Command failed for target `rsa.lo'

Thanks
Sharada


The contents of this email are the property of the sender. If it was not 
addressed to you, you have no legal right to read it. If you think you received 
it in error, please notify the sender. Do not forward or copy without 
permission of the sender.

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


  



--
http://kaushalye.blogspot.com/
http://wso2.org/


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



Re: [axis2] How to secure a web service through SSL

2007-09-05 Thread Alistair Young
export your tomcat's cert into a truststore and specify it in your client:

keytool -export -alias tomcat -keystore keystore.jks -file server.cer
keytool -import -alias myservice -keystore truststore -file

in the client code add:
System.setProperty(”javax.net.ssl.trustStore”, “/path/to/truststore”);
System.setProperty(”javax.net.ssl.trustStorePassword”, “pasword”);

and change to https in the stub:

MyServiceStub stub = new
MyServiceStub(”https://localhost:8443/axis2/services/HelloImpl”);

that'll work for a service over https

Alistair


-- 
mov eax,1
mov ebx,0
int 80h

 Hi,
 I'm quite new into web services, so excuse my dumb question. I tried
 searching
 the list archive, but couldn't find an answer.
 My question is what do I need to to in order to deploy a webservice, which
 is
 to be used over HTTPS.
 I configured tomcat and can access the service at
 https://localhost/axis2/services/HelloImpl?wsdl, but in the wsdl
 descriptor I
 see that the port is mapped to 8080, which is plain old http.
 I added https sender and receiver, but still can't make it work.
 And it made things worse - I see port like http://localhost:443... which I
 think is not correct.
 I copied the wsdl and pasted it into the service archive, changing http to
 https, but the problem still persists.
 Could you please tell me what I'm missing?

 Thanks in advance !


 Boyan Ivanov

 -
 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] How to secure a web service through SSL

2007-09-05 Thread Боян (Boyan) Иванов (Ivanov)
Well, I've  done the cert part, but what is MyServiceStub for?
I'm using spring with axis for the client.
And btw right now I have these lines in my wsdl :

wsdl:service name=HelloImpl
 wsdl:port name=HelloImplSOAP11port_http
binding=axis2:HelloImplSOAP11Binding
soap:address location=http://192.168.32.19:8443/axis2/services/HelloImpl/

/wsdl:port
 wsdl:port name=HelloImplSOAP11port_http1
binding=axis2:HelloImplSOAP11Binding
soap:address location=http://192.168.32.19:8080/axis2/services/HelloImpl/

/wsdl:port
 wsdl:port name=HelloImplSOAP12port_http
binding=axis2:HelloImplSOAP12Binding
soap12:address location=
http://192.168.32.19:8443/axis2/services/HelloImpl/
/wsdl:port
 wsdl:port name=HelloImplSOAP12port_http1
binding=axis2:HelloImplSOAP12Binding
soap12:address location=
http://192.168.32.19:8080/axis2/services/HelloImpl/
/wsdl:port
 wsdl:port name=HelloImplHttpport binding=axis2:HelloImplHttpBinding
http:address location=http://192.168.32.19:8443/axis2/services/HelloImpl/

/wsdl:port
 wsdl:port name=HelloImplHttpport1 binding=axis2:HelloImplHttpBinding
http:address location=http://192.168.32.19:8080/axis2/services/HelloImpl/

/wsdl:port
/wsdl:service

I can access the service, but only through 8080.

Here's my Spring bean :
bean id=hellows
class=
org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean
property name=wsdlDocumentUrl
 !-- value
http://vereo-cacbb4bd6:8988/webservice-Project1-context-root/HelloImplSoapHttpPort?WSDL/value
--
 !-- valuehttp://localhost:8080/roz/services/HelloImpl?wsdl/value
--
 valuehttps://localhost/axis2/services/HelloImpl?wsdl/value
/property
property name=serviceInterface
  valuebg.geek.bivanov.webservice.Hellows/value
/property
property name=namespaceUri
  valuehttp://webservice.bivanov.geek.bg/value
/property
property name=serviceName
!--  valueHelloImplService/value --
   valueHelloImpl/value
/property
property name=portName
  valueHelloImplSOAP12port_http/value
/property
   property name=serviceFactoryClass
valueorg.apache.axis.client.ServiceFactory/value
/property
 /bean


On 9/5/07, Alistair Young [EMAIL PROTECTED] wrote:

 export your tomcat's cert into a truststore and specify it in your client:

 keytool -export -alias tomcat -keystore keystore.jks -file server.cer
 keytool -import -alias myservice -keystore truststore -file

 in the client code add:
 System.setProperty(javax.net.ssl.trustStore, /path/to/truststore);
 System.setProperty(javax.net.ssl.trustStorePassword, pasword);

 and change to https in the stub:

 MyServiceStub stub = new
 MyServiceStub(https://localhost:8443/axis2/services/HelloImpl;);

 that'll work for a service over https

 Alistair


 --
 mov eax,1
 mov ebx,0
 int 80h

  Hi,
  I'm quite new into web services, so excuse my dumb question. I tried
  searching
  the list archive, but couldn't find an answer.
  My question is what do I need to to in order to deploy a webservice,
 which
  is
  to be used over HTTPS.
  I configured tomcat and can access the service at
  https://localhost/axis2/services/HelloImpl?wsdl, but in the wsdl
  descriptor I
  see that the port is mapped to 8080, which is plain old http.
  I added https sender and receiver, but still can't make it work.
  And it made things worse - I see port like http://localhost:443... which
 I
  think is not correct.
  I copied the wsdl and pasted it into the service archive, changing http
 to
  https, but the problem still persists.
  Could you please tell me what I'm missing?
 
  Thanks in advance !
 
 
  Boyan Ivanov
 
  -
  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] How to secure a web service through SSL

2007-09-05 Thread Alistair Young
ok, sorry - I've neved used spring with axis2! The stub comes from running
Axis2 over the WSDL to get java classes.

Alistair

-- 
mov eax,1
mov ebx,0
int 80h

 Well, I've  done the cert part, but what is MyServiceStub for?
 I'm using spring with axis for the client.
 And btw right now I have these lines in my wsdl :

 wsdl:service name=HelloImpl
  wsdl:port name=HelloImplSOAP11port_http
 binding=axis2:HelloImplSOAP11Binding
 soap:address
 location=http://192.168.32.19:8443/axis2/services/HelloImpl/

 /wsdl:port
  wsdl:port name=HelloImplSOAP11port_http1
 binding=axis2:HelloImplSOAP11Binding
 soap:address
 location=http://192.168.32.19:8080/axis2/services/HelloImpl/

 /wsdl:port
  wsdl:port name=HelloImplSOAP12port_http
 binding=axis2:HelloImplSOAP12Binding
 soap12:address location=
 http://192.168.32.19:8443/axis2/services/HelloImpl/
 /wsdl:port
  wsdl:port name=HelloImplSOAP12port_http1
 binding=axis2:HelloImplSOAP12Binding
 soap12:address location=
 http://192.168.32.19:8080/axis2/services/HelloImpl/
 /wsdl:port
  wsdl:port name=HelloImplHttpport binding=axis2:HelloImplHttpBinding
 http:address
 location=http://192.168.32.19:8443/axis2/services/HelloImpl/

 /wsdl:port
  wsdl:port name=HelloImplHttpport1
 binding=axis2:HelloImplHttpBinding
 http:address
 location=http://192.168.32.19:8080/axis2/services/HelloImpl/

 /wsdl:port
 /wsdl:service

 I can access the service, but only through 8080.

 Here's my Spring bean :
 bean id=hellows
 class=
 org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean
 property name=wsdlDocumentUrl
  !-- value
 http://vereo-cacbb4bd6:8988/webservice-Project1-context-root/HelloImplSoapHttpPort?WSDL/value
 --
  !-- valuehttp://localhost:8080/roz/services/HelloImpl?wsdl/value
 --
  valuehttps://localhost/axis2/services/HelloImpl?wsdl/value
 /property
 property name=serviceInterface
   valuebg.geek.bivanov.webservice.Hellows/value
 /property
 property name=namespaceUri
   valuehttp://webservice.bivanov.geek.bg/value
 /property
 property name=serviceName
 !--  valueHelloImplService/value --
valueHelloImpl/value
 /property
 property name=portName
   valueHelloImplSOAP12port_http/value
 /property
property name=serviceFactoryClass
 valueorg.apache.axis.client.ServiceFactory/value
 /property
  /bean


 On 9/5/07, Alistair Young [EMAIL PROTECTED] wrote:

 export your tomcat's cert into a truststore and specify it in your
 client:

 keytool -export -alias tomcat -keystore keystore.jks -file server.cer
 keytool -import -alias myservice -keystore truststore -file

 in the client code add:
 System.setProperty(javax.net.ssl.trustStore, /path/to/truststore);
 System.setProperty(javax.net.ssl.trustStorePassword, pasword);

 and change to https in the stub:

 MyServiceStub stub = new
 MyServiceStub(https://localhost:8443/axis2/services/HelloImpl;);

 that'll work for a service over https

 Alistair


 --
 mov eax,1
 mov ebx,0
 int 80h

  Hi,
  I'm quite new into web services, so excuse my dumb question. I tried
  searching
  the list archive, but couldn't find an answer.
  My question is what do I need to to in order to deploy a webservice,
 which
  is
  to be used over HTTPS.
  I configured tomcat and can access the service at
  https://localhost/axis2/services/HelloImpl?wsdl, but in the wsdl
  descriptor I
  see that the port is mapped to 8080, which is plain old http.
  I added https sender and receiver, but still can't make it work.
  And it made things worse - I see port like http://localhost:443...
 which
 I
  think is not correct.
  I copied the wsdl and pasted it into the service archive, changing
 http
 to
  https, but the problem still persists.
  Could you please tell me what I'm missing?
 
  Thanks in advance !
 
 
  Boyan Ivanov
 
  -
  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]



Server sends the response without SECURITY

2007-09-05 Thread at4david

Hi , I have configured my wsdd files to achieved a security response, the
problem is that the service does not send the response with Security, the
client shows the following exception:
WSDoAllReceiver: Request does not contain required Security header, and it
is because the server does not send Security responses. Does anyone know
because it is??

The wsdd files are shown below:

client_config.wsdd:

!-- Using the WSDoAllSender security handler in request flow --
deployment xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
   transport name=http
pivot=java:org.apache.axis.transport.http.HTTPSender /
globalConfiguration
   requestFlow
..
/requestFlow
responseFlow
   handler type=java:org.apache.ws.axis.security.WSDoAllReceiver
   parameter name=passwordCallbackClass 
value=com.at4wireless.ds.demo.query.PWCallback/
   parameter name=action value=Timestamp Encrypt Signature/
   parameter name=signatureParts
value={Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{}{http://schemas.xmlsoap.org/soap/envelope/}Body;
/
   parameter name=decryptionPropFile
value=ClientQuery/signatureC.properties /
   parameter name=signaturePropFile
value=ClientQuery/cryptoC.properties /
   /handler
/responseFlow
/globalConfiguration
/deployment


and the server.config.wsdd is :


 service name=QueryS provider=java:RPC style=wrapped use=literal
.. 
 /service

transport name=http
  requestFlow

 requestFlow/

transport name=local
  responseFlow
  handler type=URLMapper/
  handler type=java:org.apache.axis.handlers.http.HTTPAuthHandler/
   handler type=LocalResponder/ 
   handler type=java:org.apache.ws.axis.security.WSDoAllSender 
   parameter name=passwordCallbackClass  value=PWCallback/
   parameter name=action value=Timestamp Encrypt Signature/
   parameter name=encryptionUser value=useReqSigCert /
   parameter name=user value=faac /
   parameter name=signatureParts
value={Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{}{http://schemas.xmlsoap.org/soap/envelope/}Body;
/
   parameter name=signaturePropFile value=crypto.properties / 
   /handler
  /responseFlow
 /transport
/deployment

Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Server-sends-the-response-without-SECURITY-tf4382358.html#a12492775
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: get hotupdate not to work (Windows)

2007-09-05 Thread Eichler, Wolfgang

Hello Charitha,

I could verify the update of service.xml as you described.

I tried to get an update of some *.class file inside the *.aar,
realizing the service:
...\build\classes\samples\quickstart\service\pojo\StockQuoteService.clas
s
This is probably beyond the Hotupdate feature?

Thanks and regards
Wolfgang


-Original Message-
From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 03:40
To: axis-user@ws.apache.org
Subject: Re: get hotupdate not to work (Windows)

Hello Eicher,
Hotupdate works properly with axis2-1.3. I just tried with axis2-1.3 
installed on tomcat 6.0.10/Windows XP. Please go through the following 
steps to identify your problem and let us know if you experience the 
same issue again.

- Edit /conf/axis2.xml by setting parameter name=hotupdate 
 true/parameter
- Restart tomcat
- Deploy a service
- Go to http://localhost:8080/axis2/axis2-admin/listService page. You 
can see the deployed service there
- Now update some property in services.xml in your service archive. 
(Update a service level parameter in the services.xml, if you are using 
winrar, you can update the files inside *.aar without extracting the 
archive)
- Go to http://localhost:8080/axis2/axis2-admin/selectServiceParaEdit 
page, select your service from the drop down
- You should be able to see the updated parameters

Thanks and regards
Charitha

Eichler, Wolfgang wrote:

I set in config/axis2.xml:
parameter name=hotupdate true/parameter

http://localhost:8080/axis2/axis2-admin/upload shows:
Hot update of existing service archives is enabled

But if I copy a new *.aar file, the service is not updated
automatically. I have to use
http://localhost:8080/manager/html/reload?path=/axis2
to reload.

This is on Windows using Tomcat 6.0.14,  Axis2-1.3
Any hints?

Thanks and apologize for the newbee question ...

Wolfgang Eichler

-
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: get hotupdate not to work (Windows)

2007-09-05 Thread Charitha Kankanamge

Hi Eicher,
You should be able to add an updated *.class in to *.aar and see the 
update through Axis2 administration page. I updated a method name in a 
service implementation class, added the updated class in to service 
archive, and observed the updated method name through Axis2 admin page 
without restarting tomcat. Hence, Hotupdate feature suppots these 
modifications.


regards
Charitha

Eichler, Wolfgang wrote:


Hello Charitha,

I could verify the update of service.xml as you described.

I tried to get an update of some *.class file inside the *.aar,
realizing the service:
...\build\classes\samples\quickstart\service\pojo\StockQuoteService.clas
s
This is probably beyond the Hotupdate feature?

Thanks and regards
Wolfgang


-Original Message-
From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 03:40

To: axis-user@ws.apache.org
Subject: Re: get hotupdate not to work (Windows)

Hello Eicher,
Hotupdate works properly with axis2-1.3. I just tried with axis2-1.3 
installed on tomcat 6.0.10/Windows XP. Please go through the following 
steps to identify your problem and let us know if you experience the 
same issue again.


- Edit /conf/axis2.xml by setting parameter name=hotupdate 
true/parameter

- Restart tomcat
- Deploy a service
- Go to http://localhost:8080/axis2/axis2-admin/listService page. You 
can see the deployed service there
- Now update some property in services.xml in your service archive. 
(Update a service level parameter in the services.xml, if you are using 
winrar, you can update the files inside *.aar without extracting the 
archive)
- Go to http://localhost:8080/axis2/axis2-admin/selectServiceParaEdit 
page, select your service from the drop down

- You should be able to see the updated parameters

Thanks and regards
Charitha

Eichler, Wolfgang wrote:

 


I set in config/axis2.xml:
parameter name=hotupdate true/parameter

http://localhost:8080/axis2/axis2-admin/upload shows:
Hot update of existing service archives is enabled

But if I copy a new *.aar file, the service is not updated
automatically. I have to use
http://localhost:8080/manager/html/reload?path=/axis2
to reload.

This is on Windows using Tomcat 6.0.14,  Axis2-1.3
Any hints?

Thanks and apologize for the newbee question ...

Wolfgang Eichler

-
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: On ADB Binding

2007-09-05 Thread Gudla, Natraj (GE Money, consultant)
The IDE ( eclipse ) does not recognize 0.00 as a valid value for the schema 
element earlier decalared as double with minInclusive value of 0.00. I have 
seen few articles on the net which talk about the conversion problems with 0, 
0.00, 0. etc all are not considered to be zeros.
 
Another problem as i had earlier stated is AXIS does not genereted the 
conditions properly to check for the minInclusive value stated in the schema. 
It puts a condition to check for something greater. 

-Original Message-
From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
Sent: 05 September 2007 05:36
To: axis-user@ws.apache.org
Subject: Re: On ADB Binding


what is the exception you are getting? 
here is the setter method generated

 public void setGEM_PostvDbl_Type(double param) {
if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, 
0.00 )  0) {
this.localGEM_PostvDbl_Type = param;
} else {
throw new java.lang.RuntimeException();
}
}

and this calls ConverterUtil.compare method.

public static double compare(double doubleValue, String value) {
return doubleValue - Double.parseDouble(value);
}

so it basically use the parseDouble method of the Double class.

Amila. 


On 9/4/07, Gudla, Natraj (GE Money, consultant)  [EMAIL PROTECTED] wrote: 

I am just running through another problem with min inclusive values on double 
types. For declaration,
 


xsd:simpleType name=GEM_PostvDbl_Type  



xsd:restriction base=xsd:double  



xsd:minExclusive value= 0.00/ 



/xsd:restriction 



/xsd:simpleType
An xml schema instance value of 0.00 throws an error, saying it not a valid 
value. 0.00 is a double value, and what could be the problem?
 
Thanks
Natraj
 
 

-Original Message-
From: Amila Suriarachchi [mailto: [EMAIL PROTECTED]

Sent: 04 September 2007 13:07
To: axis-user@ws.apache.org
Subject: Re: On ADB Binding





On 9/4/07, Gudla, Natraj (GE Money, consultant)  [EMAIL PROTECTED] wrote: 

Hi,
 
I am using AXIS2 1.2, Generated the data binding classes using WSDL2Java 
utility and i am trying to parse instance of an xml against the generated 
binding classes. I see a problem in which the xml restrictions are converted 
into code by AXIS utility.
 
My XML schema condition :
 
!-- Positive Integer simple type --

xsd:simpleType name=GEM_PostvInt_Type 

xsd:restriction base=xsd:integer 

xsd:minExclusive value=0 /

/xsd:restriction

/xsd:simpleType

The corresponding code generated in a class : 

/**

* Auto generated setter method 

* 

* @param param

* GEM_PostvInt_Type

*/

public void setGEM_PostvInt_Type(java.math.BigInteger param) {



if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, 0)  0) { 

this.localGEM_PostvInt_Type = param;

} else {

throw new java.lang.RuntimeException();

}



}

 

I check the api docs for ConverterUtil, which says this particular method 
returns a zero when values are equal, +ve when greater, -ve when lesser. If you 
look at my xml, i want zero to be mininclusive 


your given schema part declares it as 

xsd:minExclusive value=0 /

Anyway if you don't have any special reason to use Axis2 1.2 better switch to 
Axis2 1.3.


Amila.



meaning it should be allowed, in such a case why is the method checking for 0 
and not =0. 

I get an exception, as the control moves to the else part. i see the 
converterutil returns a 0 as input value is zerp and is being compared with 
zero.

Thanks
Natraj

 

 



-Original Message-
From: Gudla, Natraj (GE Money, consultant) 
Sent: 30 August 2007 11:48
To: ' axis-user@ws.apache.org'
Cc: '  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]'
Subject: RE: On ADB Binding


Thanks Amila, It clarifies my doubt. We were a bit hesitant to go ahead with 
the ADB binding for the reasons on limitations stated in the documents. 
 

-Original Message-
From: Amila Suriarachchi [mailto: [EMAIL PROTECTED]
Sent: 30 August 2007 11:44
To: axis-user@ws.apache.org
Subject: Re: On ADB Binding


ADB does support restrictions and extensions. 
those documentation are bit obsolete.

Amila.


On 8/30/07, Gudla, Natraj (GE Money, consultant)  [EMAIL PROTECTED] wrote: 

Hi,

The AXIS2 1.2 documentation states the ADB binding does not support xml 
restrictions and extensions. Is it really true? When i generated Java classes 
from a WSDL, i see the restrictions on the types to be properly generated 
within the element classes. 

Following is part of my schema with restriction on the max length.

xsd:simpleType name=LN_PaymentProtection
xsd:annotation
xsd:documentationElements of payment protection 
represent the 
protection types and can be only a string 
type/xsd:documentation
/xsd:annotation
xsd:restriction base=xsd:string
xsd:maxLength value=2/xsd:maxLength 
/xsd:restriction
/xsd:simpleType

The code generated by 

[axis2] Does Axis2 supports DIME?

2007-09-05 Thread Radoslaw Adamiak
Hi

I have a question as in topic. Does Axis2 supports DIME format?
I have read:
http://mail-archives.apache.org/mod_mbox/ws-axis-user/200604.mbox/[EMAIL 
PROTECTED]
but I wanted to ask about newest version of Axis2, maybe something has
changed?

-- 
BR
zolv
www.zolv.pl


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



RE: get hotupdate not to work (Windows)

2007-09-05 Thread Eichler, Wolfgang
Hi Charitha,

I could also see such changes in effect as you describe. 

What I did more precisely:

1. Change in StockQuoteService.java:

public class StockQuoteService {
private HashMap map = new HashMap();

public double getPrice(String symbol) {
Double price = (Double) map.get(symbol);
if(price != null){
return price.doubleValue();
}
return 42.00;
}

  to 

...
return 43.00;
}

2. Compile to *.class

3. modify *.aar (using 7-zip) : replace the StockQuoteService.class

So I don't change the name of some method but only the code. This does
not work in my environment, unless restart of axis2.

Thanks and regards
Wolfgang

-Original Message-
From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 09:34
To: axis-user@ws.apache.org
Subject: Re: get hotupdate not to work (Windows)

Hi Eicher,
You should be able to add an updated *.class in to *.aar and see the 
update through Axis2 administration page. I updated a method name in a 
service implementation class, added the updated class in to service 
archive, and observed the updated method name through Axis2 admin page 
without restarting tomcat. Hence, Hotupdate feature suppots these 
modifications.

regards
Charitha

Eichler, Wolfgang wrote:

Hello Charitha,

I could verify the update of service.xml as you described.

I tried to get an update of some *.class file inside the *.aar,
realizing the service:
...\build\classes\samples\quickstart\service\pojo\StockQuoteService.cla
s
s
This is probably beyond the Hotupdate feature?

Thanks and regards
Wolfgang


-Original Message-
From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 03:40
To: axis-user@ws.apache.org
Subject: Re: get hotupdate not to work (Windows)

Hello Eicher,
Hotupdate works properly with axis2-1.3. I just tried with axis2-1.3 
installed on tomcat 6.0.10/Windows XP. Please go through the following 
steps to identify your problem and let us know if you experience the 
same issue again.

- Edit /conf/axis2.xml by setting parameter name=hotupdate 
 true/parameter
- Restart tomcat
- Deploy a service
- Go to http://localhost:8080/axis2/axis2-admin/listService page. You 
can see the deployed service there
- Now update some property in services.xml in your service archive. 
(Update a service level parameter in the services.xml, if you are using

winrar, you can update the files inside *.aar without extracting the 
archive)
- Go to http://localhost:8080/axis2/axis2-admin/selectServiceParaEdit 
page, select your service from the drop down
- You should be able to see the updated parameters

Thanks and regards
Charitha

Eichler, Wolfgang wrote:

  

I set in config/axis2.xml:
parameter name=hotupdate true/parameter

http://localhost:8080/axis2/axis2-admin/upload shows:
Hot update of existing service archives is enabled

But if I copy a new *.aar file, the service is not updated
automatically. I have to use
http://localhost:8080/manager/html/reload?path=/axis2
to reload.

This is on Windows using Tomcat 6.0.14,  Axis2-1.3
Any hints?

Thanks and apologize for the newbee question ...

Wolfgang Eichler

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



[AXIS2] ClassLoading and duplicate JARs

2007-09-05 Thread p . casenove
Hi all Axis2 users,
I have a question about classloading in Axis2:
If I have a JAR in WEB-INF/lib folder of the WAR and in the lib folder of 
my .aar service archive, which one will be loaded by Axis2 when a 
WebService calls a class in this JAR?
If Axis2 loads the one in the war archive, will the files in the aar still 
be loadable by the JAR in the WAR?
Is it possible to configure this behaviour in Axis2 (like 
PARENT_FIRST/PARENT_LAST option in Websphere)?

Thanks in advance for the answers,

Pierre

Re: get hotupdate not to work (Windows)

2007-09-05 Thread Charitha Kankanamge

Hi Eicher,
Yes. I observed the same issue with the scenario you mentioned. However, 
I'm not sure about the scope of Hotupdate. Anyway it will be great if 
you can report an issue in Axis2 bugs tracking system [1], so that the 
developers will resolve if there is a bug in hotupdate feature.


[1]http://issues.apache.org/jira/browse/AXIS2

regards
Charitha

Eichler, Wolfgang wrote:


Hi Charitha,

I could also see such changes in effect as you describe. 


What I did more precisely:

1. Change in StockQuoteService.java:

public class StockQuoteService {
   private HashMap map = new HashMap();

   public double getPrice(String symbol) {
   Double price = (Double) map.get(symbol);
   if(price != null){
   return price.doubleValue();
   }
   return 42.00;
   }

 to 


...
   return 43.00;
   }

2. Compile to *.class

3. modify *.aar (using 7-zip) : replace the StockQuoteService.class

So I don't change the name of some method but only the code. This does
not work in my environment, unless restart of axis2.

Thanks and regards
Wolfgang

-Original Message-
From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 09:34

To: axis-user@ws.apache.org
Subject: Re: get hotupdate not to work (Windows)

Hi Eicher,
You should be able to add an updated *.class in to *.aar and see the 
update through Axis2 administration page. I updated a method name in a 
service implementation class, added the updated class in to service 
archive, and observed the updated method name through Axis2 admin page 
without restarting tomcat. Hence, Hotupdate feature suppots these 
modifications.


regards
Charitha

Eichler, Wolfgang wrote:

 


Hello Charitha,

I could verify the update of service.xml as you described.

I tried to get an update of some *.class file inside the *.aar,
realizing the service:
...\build\classes\samples\quickstart\service\pojo\StockQuoteService.cla
   


s
 


s
This is probably beyond the Hotupdate feature?

Thanks and regards
Wolfgang


-Original Message-
From: Charitha Kankanamge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 03:40

To: axis-user@ws.apache.org
Subject: Re: get hotupdate not to work (Windows)

Hello Eicher,
Hotupdate works properly with axis2-1.3. I just tried with axis2-1.3 
installed on tomcat 6.0.10/Windows XP. Please go through the following 
steps to identify your problem and let us know if you experience the 
same issue again.


- Edit /conf/axis2.xml by setting parameter name=hotupdate 
   


true/parameter
 


- Restart tomcat
- Deploy a service
- Go to http://localhost:8080/axis2/axis2-admin/listService page. You 
can see the deployed service there
- Now update some property in services.xml in your service archive. 
(Update a service level parameter in the services.xml, if you are using
   



 

winrar, you can update the files inside *.aar without extracting the 
archive)
- Go to http://localhost:8080/axis2/axis2-admin/selectServiceParaEdit 
page, select your service from the drop down

- You should be able to see the updated parameters

Thanks and regards
Charitha

Eichler, Wolfgang wrote:



   


I set in config/axis2.xml:
parameter name=hotupdate true/parameter

http://localhost:8080/axis2/axis2-admin/upload shows:
Hot update of existing service archives is enabled

But if I copy a new *.aar file, the service is not updated
automatically. I have to use
http://localhost:8080/manager/html/reload?path=/axis2
to reload.

This is on Windows using Tomcat 6.0.14,  Axis2-1.3
Any hints?

Thanks and apologize for the newbee question ...

Wolfgang Eichler

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



 





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



Security Configuration in RESPONSE server_config.wsdd

2007-09-05 Thread at4david

Hi, I would like to know how I have to configure the server_config.wsdd to
achieved a renponse with Security, the problem is that If I try configure
like the request configuration I get no security result 

Could anybody help me???

Here I show my server_config.wsdd:



?xml version=1.0 encoding=UTF-8?
deployment xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
 globalConfiguration
  parameter name=adminPassword value=admin/
  parameter name=enableNamespacePrefixOptimization value=true/
  parameter name=disablePrettyXML value=true/
  parameter name=sendMultiRefs value=true/
  parameter name=sendXsiTypes value=true/
  parameter name=sendXMLDeclaration value=true/
 /globalConfiguration
 handler name=LocalResponder
type=java:org.apache.axis.transport.local.LocalResponder/
 handler name=URLMapper
type=java:org.apache.axis.handlers.http.URLMapper/
 handler name=Authenticate
type=java:org.apache.axis.handlers.SimpleAuthenticationHandler/
 
 service name=MyService provider=java:RPC style=wrapped
use=literal
  .
  .
  .
  /service
 transport name=http
  requestFlow
  handler type=URLMapper/
  handler type=java:org.apache.axis.handlers.http.HTTPAuthHandler/
  handler type=java:org.apache.ws.axis.security.WSDoAllReceiver
parameter name=passwordCallbackClass
value=com.at4wireless.ds.interfaces.query.PWCallback/
parameter name=action value=Timestamp Encrypt Signature/
parameter name=decryptionPropFile value=crypto.properties/
parameter name=signaturePropFile value=signature.properties / 
parameter name=signatureParts
value={Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{}{http://schemas.xmlsoap.org/soap/envelope/}Body;
/
  /handler 
  /requestFlow
  parameter name=qs:list
value=org.apache.axis.transport.http.QSListHandler/
  parameter name=qs:wsdl
value=org.apache.axis.transport.http.QSWSDLHandler/
  parameter name=qs.list
value=org.apache.axis.transport.http.QSListHandler/
  parameter name=qs.method
value=org.apache.axis.transport.http.QSMethodHandler/
  parameter name=qs:method
value=org.apache.axis.transport.http.QSMethodHandler/
  parameter name=qs.wsdl
value=org.apache.axis.transport.http.QSWSDLHandler/
 /transport
 transport name=local
 responseFlow
   handler type=LocalResponder/
  /responseFlow
 /transport
/deployment


Thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Security-Configuration-in-RESPONSE-server_config.wsdd-tf4383059.html#a12494808
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: On ADB Binding

2007-09-05 Thread Amila Suriarachchi
On 9/5/07, Gudla, Natraj (GE Money, consultant) [EMAIL PROTECTED] wrote:

  The IDE ( eclipse ) does not recognize 0.00 as a valid value for the
 schema element earlier decalared as double with minInclusive value of 0.00.
 I have seen few articles on the net which talk about the conversion problems
 with 0, 0.00, 0. etc all are not considered to be zeros.


you mean Double.parseDouble(0.00);
does not work in your IDE?

Another problem as i had earlier stated is AXIS does not genereted the
 conditions properly to check for the minInclusive value stated in the
 schema. It puts a condition to check for something greater.


Please check with axis2 1.3. this should be fixed.

here is the generated code for me
if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, 0.00)
= 0){

this.localGEM_PostvDbl_Type=param;
}
else {
throw new
java.lang.RuntimeException();
}

-Original Message-
 *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED]
 *Sent:* 05 September 2007 05:36
 *To:* axis-user@ws.apache.org
 *Subject:* Re: On ADB Binding

 what is the exception you are getting?
 here is the setter method generated

  public void setGEM_PostvDbl_Type(double param) {
 if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param,
 0.00 )  0) {
 this.localGEM_PostvDbl_Type = param;
 } else {
 throw new java.lang.RuntimeException();
 }
 }

 and this calls ConverterUtil.compare method.

 public static double compare(double doubleValue, String value) {
 return doubleValue - Double.parseDouble(value);
 }

 so it basically use the parseDouble method of the Double class.

 Amila.

 On 9/4/07, Gudla, Natraj (GE Money, consultant) [EMAIL PROTECTED]
 wrote:
 
   I am just running through another problem with min inclusive values on
  double types. For declaration,
 
 
  xsd:simpleType name=GEM_PostvDbl_Type 
 
  xsd:restriction base=xsd:double 
 
  xsd:minExclusive value= 0.00/
 
  /xsd:restriction
 
  /xsd:simpleType
  An xml schema instance value of 0.00 throws an error, saying it not a
  valid value. 0.00 is a double value, and what could be the problem?
 
  Thanks
  Natraj
 
 
 
  -Original Message-
  *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED]
  *Sent:* 04 September 2007 13:07
  *To:* axis-user@ws.apache.org
  *Subject:* Re: On ADB Binding
 
 
 
  On 9/4/07, Gudla, Natraj (GE Money, consultant) [EMAIL PROTECTED]
  wrote:
  
Hi,
  
   I am using AXIS2 1.2, Generated the data binding classes using
   WSDL2Java utility and i am trying to parse instance of an xml against the
   generated binding classes. I see a problem in which the xml restrictions 
   are
   converted into code by AXIS utility.
  
   My XML schema condition :
  
  
   !-- Positive Integer simple type --
  
   xsd:simpleType name=GEM_PostvInt_Type 
  
   xsd:restriction base=xsd:integer 
  
   xsd:minExclusive value=0 /
  
   /xsd:restriction
  
   /xsd:simpleType
  
   *The corresponding code generated in a class* :
  
   /**
  
   * Auto generated setter method
  
   *
  
   * [EMAIL PROTECTED] param
  
   * GEM_PostvInt_Type
  
   */
  
   *public* *void* setGEM_PostvInt_Type(java.math.BigInteger param) {
  
   *if* (org.apache.axis2.databinding.utils.ConverterUtil.*compare*(param,
   0)  0) {
  
   *this*.localGEM_PostvInt_Type = param;
  
   } *else* {
  
   *throw* *new* java.lang.RuntimeException();
  
   }
  
   }
  
  
  
   I check the api docs for ConverterUtil, which says this particular
   method returns a zero when values are equal, +ve when greater, -ve when
   lesser. If you look at my xml, i want zero to be mininclusive
  
 
  your given schema part declares it as
 
  xsd:minExclusive value=0 /
 
  Anyway if you don't have any special reason to use Axis2 1.2 better
  switch to Axis2 1.3.
 
  Amila.
 
meaning it should be allowed, in such a case why is the method
   checking for 0 and not =0.
  
   I get an exception, as the control moves to the else part. i see the
   converterutil returns a 0 as input value is zerp and is being compared 
   with
   zero.
  
   Thanks
   Natraj
  
  
  
  
  
   -Original Message-
   *From:* Gudla, Natraj (GE Money, consultant)
   *Sent:* 30 August 2007 11:48
   *To:* 'axis-user@ws.apache.org'
   *Cc:* ' [EMAIL PROTECTED]'
   *Subject:* RE: On ADB Binding
  
   Thanks Amila, It clarifies my doubt. We were a bit hesitant to go
   ahead with the ADB binding for the reasons on limitations stated in the
   documents.
  
  
   -Original Message-
   *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED]
   *Sent: *30 August 2007 11:44
   *To:* axis-user@ws.apache.org
   *Subject:* Re: On ADB Binding
  
   ADB does support restrictions and extensions.
   those documentation are bit obsolete.
  
   

Problem with request time out

2007-09-05 Thread Ashish Arya
Hi All,

 

I am facing problem related with 'AxisFault: Read Time out' in my web
service application.

 

In the application, I am doing some calculation on server side which may
take longer time. To accomplish this, I made following changes in
axis2.xml conf file.

 

parameter name=requestTimeout/parameter

 

But still noticed that the client is getting timed out exception.

 

Do I need to make any other change to avoid request time out?

 

Thanks and Regards,

 

Ashish

 



RE: On ADB Binding

2007-09-05 Thread Gudla, Natraj (GE Money, consultant)
The code generated from AXIS2 1.3 looks to be good. But Amila, we have almost 
started the development work and it not a feasible thing to swtich version at 
this moment. Is there a work around?
 
and with parsing the double value, i see that my IDE XML editor shows up the 
value in red saying it is not a valid double. where as 0.00 i feel is the 
correct one.
 
Thanks
Natraj
 

-Original Message-
From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
Sent: 05 September 2007 11:48
To: axis-user@ws.apache.org
Subject: Re: On ADB Binding




On 9/5/07, Gudla, Natraj (GE Money, consultant)  [EMAIL PROTECTED] wrote: 

The IDE ( eclipse ) does not recognize 0.00 as a valid value for the schema 
element earlier decalared as double with minInclusive value of 0.00. I have 
seen few articles on the net which talk about the conversion problems with 0, 
0.00, 0. etc all are not considered to be zeros.


you mean Double.parseDouble(0.00); 
does not work in your IDE?



Another problem as i had earlier stated is AXIS does not genereted the 
conditions properly to check for the minInclusive value stated in the schema. 
It puts a condition to check for something greater.


Please check with axis2 1.3. this should be fixed.

here is the generated code for me
if (org.apache.axis2.databinding.utils.ConverterUtil.compare (param, 0.00) = 
0){

this.localGEM_PostvDbl_Type=param;
}
else { 
throw new 
java.lang.RuntimeException();
} 



-Original Message-
From: Amila Suriarachchi [mailto: [EMAIL PROTECTED]

Sent: 05 September 2007 05:36
To: axis-user@ws.apache.org
Subject: Re: On ADB Binding


what is the exception you are getting? 
here is the setter method generated

 public void setGEM_PostvDbl_Type(double param) {
if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, 
0.00 )  0) {
this.localGEM_PostvDbl_Type = param;
} else {
throw new java.lang.RuntimeException();
}
}

and this calls ConverterUtil.compare method.

public static double compare(double doubleValue, String value) {
return doubleValue - Double.parseDouble(value);
}

so it basically use the parseDouble method of the Double class.

Amila. 


On 9/4/07, Gudla, Natraj (GE Money, consultant)  [EMAIL PROTECTED] wrote: 

I am just running through another problem with min inclusive values on double 
types. For declaration,
 


xsd:simpleType name= GEM_PostvDbl_Type  



xsd:restriction base= xsd:double  



xsd:minExclusive value= 0.00/ 



/xsd:restriction 



/xsd:simpleType
An xml schema instance value of 0.00 throws an error, saying it not a valid 
value. 0.00 is a double value, and what could be the problem?
 
Thanks
Natraj
 
 

-Original Message-
From: Amila Suriarachchi [mailto: [EMAIL PROTECTED]

Sent: 04 September 2007 13:07
To: axis-user@ws.apache.org  mailto:axis-user@ws.apache.org 
Subject: Re: On ADB Binding





On 9/4/07, Gudla, Natraj (GE Money, consultant)  [EMAIL PROTECTED] wrote: 

Hi,
 
I am using AXIS2 1.2, Generated the data binding classes using WSDL2Java 
utility and i am trying to parse instance of an xml against the generated 
binding classes. I see a problem in which the xml restrictions are converted 
into code by AXIS utility.
 
My XML schema condition :
 
!-- Positive Integer simple type --

xsd:simpleType name=GEM_PostvInt_Type 

xsd:restriction base=xsd:integer 

xsd:minExclusive value=0 /

/xsd:restriction

/xsd:simpleType

The corresponding code generated in a class : 

/**

* Auto generated setter method 

* 

* @param param

* GEM_PostvInt_Type

*/

public void setGEM_PostvInt_Type(java.math.BigInteger param) {



if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, 0)  0) { 

this.localGEM_PostvInt_Type = param;

} else {

throw new java.lang.RuntimeException();

}



}

 

I check the api docs for ConverterUtil, which says this particular method 
returns a zero when values are equal, +ve when greater, -ve when lesser. If you 
look at my xml, i want zero to be mininclusive 


your given schema part declares it as 

xsd:minExclusive value=0 /

Anyway if you don't have any special reason to use Axis2 1.2 better switch to 
Axis2 1.3.


Amila.



meaning it should be allowed, in such a case why is the method checking for 0 
and not =0. 

I get an exception, as the control moves to the else part. i see the 
converterutil returns a 0 as input value is zerp and is being compared with 
zero.

Thanks
Natraj

 

 



-Original Message-
From: Gudla, Natraj (GE Money, consultant) 
Sent: 30 August 2007 11:48
To: ' axis-user@ws.apache.org'
Cc: '  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]'
Subject: RE: On ADB Binding


Thanks Amila, It clarifies my doubt. We were a bit hesitant to 

axis2 bad header for soap calls

2007-09-05 Thread axelspin

POST /axis2/services/resources HTTP/1.1

Host: bsfso1:9080

this is the http header of the ajax client I am using, it worked fine with
axis1

User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.8.1.6)
Gecko/20070725 Firefox/2.0.0.6

Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-gb,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: close

X-Requested-With: XMLHttpRequest

X-Prototype-Version: 1.3.1

Content-Type: application/xml

SOAPAction: 

Referer: http://localhost:9080/axis2/ajaxclient.html

Content-Length: 154

Cookie: JSESSIONID=529D0FE433A10635D62CAEB7082256C5

Pragma: no-cache

Cache-Control: no-cache


Leaving it like this makes axis2 1.2 to reply in this way
faultstringThe endpoint reference (EPR) for the Operation not found is
/axis2/services/resources and the WSA Action = null/faultstring

if I change the Content-Type form application/xml to text/xml all works
fine..

Is it a regular behaviour? would it be possible to accept as soapcalls also
calls with Content-Type: application/xml and empty SOAPAction: ? or such a
client header has to be deprecated and not used at all? 

thanks
-- 
View this message in context: 
http://www.nabble.com/axis2-bad-header-for-soap-calls-tf4383353.html#a12495734
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: Problem with request time out

2007-09-05 Thread Punnoose, Roshan
Thought I would contribute again to the mailing list :-).

 

Basically, the client itself has a timeout in the ServiceClient that you
need to set as well. In the Options of the ServiceClient, set this
property:

options.setTimeOutInMilliSeconds(6);

 

(Or whichever value is applicable to you)

 

Roshan Punnoose

Phone: 301-497-6039



From: Ashish Arya [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 6:49 AM
To: axis-user@ws.apache.org
Subject: Problem with request time out

 

Hi All,

 

I am facing problem related with 'AxisFault: Read Time out' in my web
service application.

 

In the application, I am doing some calculation on server side which may
take longer time. To accomplish this, I made following changes in
axis2.xml conf file.

 

parameter name=requestTimeout/parameter

 

But still noticed that the client is getting timed out exception.

 

Do I need to make any other change to avoid request time out?

 

Thanks and Regards,

 

Ashish

 

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Axis2 events handling

2007-09-05 Thread Elmouj


Hello,

I have been using Axis2 for a month now and it's really powerful and easy to
use. However, the last two days I got stuck looking for a way to access an
event triggered when the last byte of the server response is sent to the
client; so I decided to post on this forum hoping to get a clue to this
issue :( . In other words, I want a way by which I could be informed when
the last byte of the server's response is sent because I need to execute
some tasks after this event has been triggered (I need to delete a file
after the client downloads it).

Thanks in advance,

Elmouj 
-- 
View this message in context: 
http://www.nabble.com/Axis2-events-handling-tf4383721.html#a12496874
Sent from the Axis - User mailing list archive at Nabble.com.


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



RE: [axis2] Does Axis2 supports DIME?

2007-09-05 Thread Walker, Jeff
No, I don't think it does.
Neither does Microsoft anymore. Both worlds have moved to MTOM/XOP.
If you still must use DIME, you need to go back to Axis 1.4.
-jeff

-Original Message-
From: Radoslaw Adamiak [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 3:47 AM
To: axis-user@ws.apache.org
Subject: [axis2] Does Axis2 supports DIME?

Hi

I have a question as in topic. Does Axis2 supports DIME format?
I have read:
http://mail-archives.apache.org/mod_mbox/ws-axis-user/200604.mbox/%3Ce91
[EMAIL PROTECTED]
but I wanted to ask about newest version of Axis2, maybe something has
changed?

-- 
BR
zolv
www.zolv.pl


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



SOAP Implementation

2007-09-05 Thread nenad . jaksic
Hi,
I have to make SOAP implementation.
I am not sure if I can use AXIS2 to do so
or I have to do with normal AXIS?
I guess I have to do with normal AXIS, Is there any usefull resource on the Net 
about how to do such implementation, possibly with Eclipse IDE?

Thanks
Nenad

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



Re: SOAP Implementation

2007-09-05 Thread Paul Fremantle
Sure you can use Axis2. The latest Eclipse Webtools project has Axis2 built in.
You can also use Axis2 simply following the UserGuide or samples.

Paul

On 9/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi,
 I have to make SOAP implementation.
 I am not sure if I can use AXIS2 to do so
 or I have to do with normal AXIS?
 I guess I have to do with normal AXIS, Is there any usefull resource on the 
 Net about how to do such implementation, possibly with Eclipse IDE?

 Thanks
 Nenad

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




-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

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



What new in Axis2?

2007-09-05 Thread Ashish Jain
Hi All!

I am new to apache Axis. Can someone tell me what is new in AXIS2 as
compared to the previous version?


Thanks in advance

regards
Ashish


Re: Axis2 events handling

2007-09-05 Thread Upul Godage
Hi,

If you mean you are having a web service which provides files on request,
let's say, requested by reference number, best thing to do is to have
another operation in the web service. So that after client gets the payload
and, let's say client has processed or saved it successfully, it will call
that operation, saying 'got the payload okay for this reference number.'
Otherwise even though the file is transferred successfully, there could be
an exception on the client side and the file is lost from both sides.

Upul


On 9/5/07, Elmouj [EMAIL PROTECTED] wrote:



 Hello,

 I have been using Axis2 for a month now and it's really powerful and easy
 to
 use. However, the last two days I got stuck looking for a way to access an
 event triggered when the last byte of the server response is sent to the
 client; so I decided to post on this forum hoping to get a clue to this
 issue :( . In other words, I want a way by which I could be informed when
 the last byte of the server's response is sent because I need to execute
 some tasks after this event has been triggered (I need to delete a file
 after the client downloads it).

 Thanks in advance,

 Elmouj
 --
 View this message in context:
 http://www.nabble.com/Axis2-events-handling-tf4383721.html#a12496874
 Sent from the Axis - User mailing list archive at Nabble.com.


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




[AXIS2] Engage module problem

2007-09-05 Thread Lorenzo
I have to add a module to a service.

All go fine id i engage it globally in axis.xml, but how to engage it
programmatically?

--- CODE START ---
 
AxisConfiguration axisCfg = configurationContext.getAxisConfiguration();
AxisService openspcoopService = new
AxisService(OPENSPCOOP_SERVICE_NAME);
AxisOperation operation = new InOutAxisOperation(OPERATION_Q_NAME);
operation.setMessageReceiver(new OpenSPCoopMessageReceiver());
openspcoopService.addOperation(operation);
List transports = new ArrayList();
transports.add(org.apache.axis2.Constants.TRANSPORT_HTTP);
transports.add(https);
openspcoopService.setExposedTransports(transports);
axisCfg.addService(openspcoopService);

--- CODE END ---

i tryed with 

openspcoopService.engageModule(axisCfg.getModule(PD), axisCfg);

(PD is the name of the module) but it log that it is just engaged (but
it not work)

openspcoopService.addModuleref(PD);

doesn't work too...


any suggestion?

thx, Lorenzo



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



Re: Axis2 events handling

2007-09-05 Thread Elmouj

Hello Upul,

   Thanks for your reply. Actually this will work and I have already
thought about it; the problem I found with this solution is that the
deletion of the file (in the server side) is after an acknowledgment FROM
the client. this ACK could be easily bypassed: I mean, no one is obliging
people using my service to develop a client that acknowledges receipt of the
file !!! hence making it possible for the file to reside on the server. For
your concern about if the file is lost, this is not a problem because the
file the server sends to a client is an encryption of a file sent from
Client to Server, hence if there is any problem (which is very very very
rare since Axis2 over TCP is almost error free I guess), the client will
just re-request the encryption of his file. So, I am really looking for a
thing that tells me that the last byte has been sent to the client.

Thanks again,

Elmouj,


Upul Godage wrote:
 
 Hi,
 
 If you mean you are having a web service which provides files on request,
 let's say, requested by reference number, best thing to do is to have
 another operation in the web service. So that after client gets the
 payload
 and, let's say client has processed or saved it successfully, it will call
 that operation, saying 'got the payload okay for this reference number.'
 Otherwise even though the file is transferred successfully, there could be
 an exception on the client side and the file is lost from both sides.
 
 Upul
 
 
 On 9/5/07, Elmouj [EMAIL PROTECTED] wrote:



 Hello,

 I have been using Axis2 for a month now and it's really powerful and easy
 to
 use. However, the last two days I got stuck looking for a way to access
 an
 event triggered when the last byte of the server response is sent to the
 client; so I decided to post on this forum hoping to get a clue to this
 issue :( . In other words, I want a way by which I could be informed when
 the last byte of the server's response is sent because I need to execute
 some tasks after this event has been triggered (I need to delete a file
 after the client downloads it).

 Thanks in advance,

 Elmouj
 --
 View this message in context:
 http://www.nabble.com/Axis2-events-handling-tf4383721.html#a12496874
 Sent from the Axis - User mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/Axis2-events-handling-tf4383721.html#a12498542
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Axis2 events handling

2007-09-05 Thread Andrew Martin
How are you passing the file to Axis2?  If you're just passing an
InputStream, you could write your own wrapper FilterInputStream that
erases the file in its close method or in its read methods whenever -1
is returned.

Andrew

Elmouj wrote:
 Hello Upul,
 
Thanks for your reply. Actually this will work and I have already
 thought about it; the problem I found with this solution is that the
 deletion of the file (in the server side) is after an acknowledgment FROM
 the client. this ACK could be easily bypassed: I mean, no one is obliging
 people using my service to develop a client that acknowledges receipt of the
 file !!! hence making it possible for the file to reside on the server. For
 your concern about if the file is lost, this is not a problem because the
 file the server sends to a client is an encryption of a file sent from
 Client to Server, hence if there is any problem (which is very very very
 rare since Axis2 over TCP is almost error free I guess), the client will
 just re-request the encryption of his file. So, I am really looking for a
 thing that tells me that the last byte has been sent to the client.
 
 Thanks again,
 
 Elmouj,
 
 
 Upul Godage wrote:
 Hi,

 If you mean you are having a web service which provides files on request,
 let's say, requested by reference number, best thing to do is to have
 another operation in the web service. So that after client gets the
 payload
 and, let's say client has processed or saved it successfully, it will call
 that operation, saying 'got the payload okay for this reference number.'
 Otherwise even though the file is transferred successfully, there could be
 an exception on the client side and the file is lost from both sides.

 Upul


 On 9/5/07, Elmouj [EMAIL PROTECTED] wrote:


 Hello,

 I have been using Axis2 for a month now and it's really powerful and easy
 to
 use. However, the last two days I got stuck looking for a way to access
 an
 event triggered when the last byte of the server response is sent to the
 client; so I decided to post on this forum hoping to get a clue to this
 issue :( . In other words, I want a way by which I could be informed when
 the last byte of the server's response is sent because I need to execute
 some tasks after this event has been triggered (I need to delete a file
 after the client downloads it).

 Thanks in advance,

 Elmouj
 --
 View this message in context:
 http://www.nabble.com/Axis2-events-handling-tf4383721.html#a12496874
 Sent from the Axis - User mailing list archive at Nabble.com.


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



 

-- 
Andrew Martin
Computer Programmer
Regenstrief Institute, Inc.
410 West 10th Street, Suite 2000
Indianapolis, IN 46202-3012
Phone: (317) 423-5542
Fax: (317) 423-5695
[EMAIL PROTECTED]


Confidentiality Notice: The contents of this message and any files
transmitted with it may contain confidential and/or privileged
information and are intended solely for the use of the named
addressee(s). Additionally, the information contained herein may have
been disclosed to you from medical records with confidentiality
protected by federal and state laws. Federal regulations and State laws
prohibit you from making further disclosure of such information without
the specific written consent of the person to whom the information
pertains or as otherwise permitted by such regulations. A general
authorization for the release of medical or other information is not
sufficient for this purpose.

If you have received this message in error, please notify the sender by
return e-mail and delete the original message. Any retention,
disclosure, copying, distribution or use of this information by anyone
other than the intended recipient is strictly prohibited.

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



RE: Axis2 events handling

2007-09-05 Thread Walker, Jeff
You could do it another way.
If you don't trust the client to return an ack, then the last piece of
code on the serverside that can get called is a response handler. In the
response handler, you get access to the entire soap message. The
response handler will not get the response soap message until the
implementation has completed its processing (hence the streaming of the
output file must have completed too). Therefore, you could do the file
deletion, or the triggering at least, in the response handler. (Response
handlers are meant for post-processing work, such as cleanup).
-jeff
 

-Original Message-
From: Andrew Martin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 10:05 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 events handling

How are you passing the file to Axis2?  If you're just passing an
InputStream, you could write your own wrapper FilterInputStream that
erases the file in its close method or in its read methods whenever -1
is returned.

Andrew

Elmouj wrote:
 Hello Upul,
 
Thanks for your reply. Actually this will work and I have
already
 thought about it; the problem I found with this solution is that the
 deletion of the file (in the server side) is after an acknowledgment
FROM
 the client. this ACK could be easily bypassed: I mean, no one is
obliging
 people using my service to develop a client that acknowledges receipt
of the
 file !!! hence making it possible for the file to reside on the
server. For
 your concern about if the file is lost, this is not a problem because
the
 file the server sends to a client is an encryption of a file sent from
 Client to Server, hence if there is any problem (which is very very
very
 rare since Axis2 over TCP is almost error free I guess), the client
will
 just re-request the encryption of his file. So, I am really looking
for a
 thing that tells me that the last byte has been sent to the client.
 
 Thanks again,
 
 Elmouj,
 
 
 Upul Godage wrote:
 Hi,

 If you mean you are having a web service which provides files on
request,
 let's say, requested by reference number, best thing to do is to have
 another operation in the web service. So that after client gets the
 payload
 and, let's say client has processed or saved it successfully, it will
call
 that operation, saying 'got the payload okay for this reference
number.'
 Otherwise even though the file is transferred successfully, there
could be
 an exception on the client side and the file is lost from both sides.

 Upul


 On 9/5/07, Elmouj [EMAIL PROTECTED] wrote:


 Hello,

 I have been using Axis2 for a month now and it's really powerful and
easy
 to
 use. However, the last two days I got stuck looking for a way to
access
 an
 event triggered when the last byte of the server response is sent to
the
 client; so I decided to post on this forum hoping to get a clue to
this
 issue :( . In other words, I want a way by which I could be informed
when
 the last byte of the server's response is sent because I need to
execute
 some tasks after this event has been triggered (I need to delete a
file
 after the client downloads it).

 Thanks in advance,

 Elmouj
 --
 View this message in context:
 http://www.nabble.com/Axis2-events-handling-tf4383721.html#a12496874
 Sent from the Axis - User mailing list archive at Nabble.com.



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



 

-- 
Andrew Martin
Computer Programmer
Regenstrief Institute, Inc.
410 West 10th Street, Suite 2000
Indianapolis, IN 46202-3012
Phone: (317) 423-5542
Fax: (317) 423-5695
[EMAIL PROTECTED]


Confidentiality Notice: The contents of this message and any files
transmitted with it may contain confidential and/or privileged
information and are intended solely for the use of the named
addressee(s). Additionally, the information contained herein may have
been disclosed to you from medical records with confidentiality
protected by federal and state laws. Federal regulations and State laws
prohibit you from making further disclosure of such information without
the specific written consent of the person to whom the information
pertains or as otherwise permitted by such regulations. A general
authorization for the release of medical or other information is not
sufficient for this purpose.

If you have received this message in error, please notify the sender by
return e-mail and delete the original message. Any retention,
disclosure, copying, distribution or use of this information by anyone
other than the intended recipient is strictly prohibited.

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



wrong namespace in response?

2007-09-05 Thread feh


Hi folks.

I've written an Axis2 service which returns the correct data, but the
namespace in the response seems to be incorrect.

Now, I know very little (nothing) about SOAP, so I may be wrong about this.
But if the class that implements the service is foo.bar.GroupService,
shouldn't the namespace in the response be
http://foo.bar.GroupService/xsd;?

Below is the request and the response. Thanks for any feedback you can
provide!



GET /Feh/services/GroupService/getGroupIds HTTP/1.1

Host: localhost:8080

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3)
Gecko/20070309 Firefox/2.0.0.3

Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,es-mx;q=0.7,en;q=0.3

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

Cookie: JSESSIONID=A5E3C005B8612DE246643CB9A21E020B



HTTP/1.1 200 OK

Server: Apache-Coyote/1.1

Content-Type: application/xml;charset=UTF-8

Transfer-Encoding: chunked

Date: Wed, 05 Sep 2007 14:31:50 GMT



b7

ns:getGroupIdsResponse
xmlns:ns=http://org.apache.axis2/xsd;ns:return-1/ns:returnns:return920/ns:returnns:return930/ns:return/ns:getGroupIdsResponse

0
-- 
View this message in context: 
http://www.nabble.com/wrong-namespace-in-response--tf4384479.html#a12499369
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Axis2 events handling

2007-09-05 Thread Elmouj

Hello Andrew,

 I am sending the file using SWA (soap with attachments) and not
Inputstream; in other words, axis will access the bytes through a
datahandler (the datahandler uses a datasource to access to the stream) and
the soap header will contain an ID of the attached file. I could do what you
say by changing the code in the datasource, BUT I don't know how Axis reads
the file!!!, may be it reads it only once or twice... I don't know. a
solution that I am using right now is to have my own datahandler and I
delete the file in finalize() method of the datahandler object (means when
there is no more reference to the object) but this takes sometimes a lot of
time before being executed (it depends on when the garbage collector will
pass). 

The exact code I am using for sending back the file is: 
*
File file =  new File(fileAbsolutePath);

OperationContext operationContext = inMsgCtx.getOperationContext();

MessageContext outMessageContext = operationContext

.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);

// Create a data source for the encrypted File  
FileDataSource encryptedFileDataSource = new FileDataSource(file);

// Create the dataHandler out of the above created data source
DataHandler fileDataHandler = new DataHandlerModified
(encryptedFileDataSource);

// We can add the created data handler as an attachment to the
// outgoing message. The Uniqueness of the attachment ID is guaranteed 
by
outMessageContext

String attachmentID = outMessageContext.addAttachment(fileDataHandler);

attachmentID is returned in the SOAP envelope header for the client to
access the attachment

Thanks for your help

Elmouj,


Andrew Martin-7 wrote:
 
 How are you passing the file to Axis2?  If you're just passing an
 InputStream, you could write your own wrapper FilterInputStream that
 erases the file in its close method or in its read methods whenever -1
 is returned.
 
 Andrew
 
 Elmouj wrote:
 Hello Upul,
 
Thanks for your reply. Actually this will work and I have already
 thought about it; the problem I found with this solution is that the
 deletion of the file (in the server side) is after an acknowledgment FROM
 the client. this ACK could be easily bypassed: I mean, no one is obliging
 people using my service to develop a client that acknowledges receipt of
 the
 file !!! hence making it possible for the file to reside on the server.
 For
 your concern about if the file is lost, this is not a problem because the
 file the server sends to a client is an encryption of a file sent from
 Client to Server, hence if there is any problem (which is very very very
 rare since Axis2 over TCP is almost error free I guess), the client will
 just re-request the encryption of his file. So, I am really looking for a
 thing that tells me that the last byte has been sent to the client.
 
 Thanks again,
 
 Elmouj,
 
 
 Upul Godage wrote:
 Hi,

 If you mean you are having a web service which provides files on
 request,
 let's say, requested by reference number, best thing to do is to have
 another operation in the web service. So that after client gets the
 payload
 and, let's say client has processed or saved it successfully, it will
 call
 that operation, saying 'got the payload okay for this reference number.'
 Otherwise even though the file is transferred successfully, there could
 be
 an exception on the client side and the file is lost from both sides.

 Upul


 On 9/5/07, Elmouj [EMAIL PROTECTED] wrote:


 Hello,

 I have been using Axis2 for a month now and it's really powerful and
 easy
 to
 use. However, the last two days I got stuck looking for a way to access
 an
 event triggered when the last byte of the server response is sent to
 the
 client; so I decided to post on this forum hoping to get a clue to this
 issue :( . In other words, I want a way by which I could be informed
 when
 the last byte of the server's response is sent because I need to
 execute
 some tasks after this event has been triggered (I need to delete a file
 after the client downloads it).

 Thanks in advance,

 Elmouj
 --
 View this message in context:
 http://www.nabble.com/Axis2-events-handling-tf4383721.html#a12496874
 Sent from the Axis - User mailing list archive at Nabble.com.


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



 
 
 -- 
 Andrew Martin
 Computer Programmer
 Regenstrief Institute, Inc.
 410 West 10th Street, Suite 2000
 Indianapolis, IN 46202-3012
 Phone: (317) 423-5542
 Fax: (317) 423-5695
 [EMAIL 

Problem with client side exceptions

2007-09-05 Thread John McLaughlin
Hi  all,

I'm a newbie to Axis2, though have used Axis1 before, and am having
trouble with exceptions on the client end.

I've deployed a POJO as a service under Tomcat. I generated the
service and client using Eclipse WTP, so to be as brief as possible, the
service has a method:

public CounterLight getCounter(Long nsuk)
throws CounterNotFoundException
{
:
throw new CounterNotFoundException(Exception) ;
}

CounterNotFoundException is simply an extension of
java.lang.Exception (it implements Serializable as well, though I don't
think this makes any difference)

Wsdl2java generates a class called CounterNotFoundExceptionException2
alongside the stub for the service

On the client side I have:

   try {
stub.getCounter(params) ; // Params initialised properly etc
   }
   catch(CounterNotFoundExceptionException2 e) {
e.printStackTrace() ;
}
catch (AxisFault e) {
e.printStackTrace() ;
}

The AxisFault is ALWAYS the one that is received, never the generated
exception (though the compiler insists that I check for it).

On the server side, I also get a 
java.lang.reflect.InvocationTargetException...Caused by CounterException

Can anybody point me in the right direction here, am I missing
something? I've googled extensively, searched the list archives etc, but
couldn't find much of help.

Thanks for any help!

John


RE: Axis2 events handling

2007-09-05 Thread Elmouj

Hi jeff,

thanks for your concern. Can you please be clear on using response
handler because I don't know if this is an interface that we need to
implement or ... for me the last thing I do in the server side is a simple
return of an OMElement.
here is the signature of my methof if it could help:
***
OMElement encryptFile(String attchmentID, String keyID,String applicationID,
String applicationPassword)
***

thanks again,

Elmouj,


dreamryder wrote:
 
 You could do it another way.
 If you don't trust the client to return an ack, then the last piece of
 code on the serverside that can get called is a response handler. In the
 response handler, you get access to the entire soap message. The
 response handler will not get the response soap message until the
 implementation has completed its processing (hence the streaming of the
 output file must have completed too). Therefore, you could do the file
 deletion, or the triggering at least, in the response handler. (Response
 handlers are meant for post-processing work, such as cleanup).
 -jeff
  
 
 -Original Message-
 From: Andrew Martin [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 05, 2007 10:05 AM
 To: axis-user@ws.apache.org
 Subject: Re: Axis2 events handling
 
 How are you passing the file to Axis2?  If you're just passing an
 InputStream, you could write your own wrapper FilterInputStream that
 erases the file in its close method or in its read methods whenever -1
 is returned.
 
 Andrew
 
 Elmouj wrote:
 Hello Upul,
 
Thanks for your reply. Actually this will work and I have
 already
 thought about it; the problem I found with this solution is that the
 deletion of the file (in the server side) is after an acknowledgment
 FROM
 the client. this ACK could be easily bypassed: I mean, no one is
 obliging
 people using my service to develop a client that acknowledges receipt
 of the
 file !!! hence making it possible for the file to reside on the
 server. For
 your concern about if the file is lost, this is not a problem because
 the
 file the server sends to a client is an encryption of a file sent from
 Client to Server, hence if there is any problem (which is very very
 very
 rare since Axis2 over TCP is almost error free I guess), the client
 will
 just re-request the encryption of his file. So, I am really looking
 for a
 thing that tells me that the last byte has been sent to the client.
 
 Thanks again,
 
 Elmouj,
 
 
 Upul Godage wrote:
 Hi,

 If you mean you are having a web service which provides files on
 request,
 let's say, requested by reference number, best thing to do is to have
 another operation in the web service. So that after client gets the
 payload
 and, let's say client has processed or saved it successfully, it will
 call
 that operation, saying 'got the payload okay for this reference
 number.'
 Otherwise even though the file is transferred successfully, there
 could be
 an exception on the client side and the file is lost from both sides.

 Upul


 On 9/5/07, Elmouj [EMAIL PROTECTED] wrote:


 Hello,

 I have been using Axis2 for a month now and it's really powerful and
 easy
 to
 use. However, the last two days I got stuck looking for a way to
 access
 an
 event triggered when the last byte of the server response is sent to
 the
 client; so I decided to post on this forum hoping to get a clue to
 this
 issue :( . In other words, I want a way by which I could be informed
 when
 the last byte of the server's response is sent because I need to
 execute
 some tasks after this event has been triggered (I need to delete a
 file
 after the client downloads it).

 Thanks in advance,

 Elmouj
 --
 View this message in context:
 http://www.nabble.com/Axis2-events-handling-tf4383721.html#a12496874
 Sent from the Axis - User mailing list archive at Nabble.com.



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



 
 
 -- 
 Andrew Martin
 Computer Programmer
 Regenstrief Institute, Inc.
 410 West 10th Street, Suite 2000
 Indianapolis, IN 46202-3012
 Phone: (317) 423-5542
 Fax: (317) 423-5695
 [EMAIL PROTECTED]
 
 
 Confidentiality Notice: The contents of this message and any files
 transmitted with it may contain confidential and/or privileged
 information and are intended solely for the use of the named
 addressee(s). Additionally, the information contained herein may have
 been disclosed to you from medical records with confidentiality
 protected by federal and state laws. Federal regulations and State laws
 prohibit you from making further disclosure of such information without
 the specific written consent of the person to whom the information
 pertains or as otherwise permitted by such regulations. A general
 authorization for the release 

Axis client in Spring

2007-09-05 Thread Jeronimo AZEVEDO

Hi,

I am trying to get a Axis client with basic http authentication as a 
bean in the Spring Framework configuration using the 
applicationContext.xml. I have been looking around in forums and 
searching the web, but I don't get it. Does anyone has a working axis 
client in Spring Framework? If so, is it possible to get the config an 
code on howto to do it?


Thanks,

J

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



axis 1.4 not maintaining session

2007-09-05 Thread James Neff

Greetings,

I'm trying to get Axis 1.4 to maintain a session for me.

Here is my Java class:

public class StatefulService {

   private String keyValue;//this is the 'state' being 
maintained


   public String setKey() {
   keyValue = theValue;
   return value was set in private member variable;
   }

   public String getKey() {
   String msg = ;
   if(keyValue==null)msg = Session state is not being maintained;
else msg += keyValue=  + keyValue;
   return msg;
   }
}

Here is my client, a jsp being called via Ajax:

%@ page language=java
import=org.apache.axis.client.Call,
org.apache.axis.client.Service,
org.apache.axis.encoding.XMLType,
javax.xml.rpc.ParameterMode,
javax.xml.namespace.QName,
java.net.URL %

%
   String ret = yada;
  
   String endpointURL = 
http://localhost:8080/axis/services/StatefulService;;

   try {
   Service  service = new Service();
   Call call= (Call) service.createCall();
   call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
   call.setReturnType( XMLType.XSD_STRING );
   call.setMaintainSession(true);   
   call.setOperationName( getKey );

   ret = ret + (String) call.invoke( new Object[] { } );
   ret = ret + \n;
   call.setOperationName( setKey );
   ret = ret + (String) call.invoke( new Object[] { } ); 
   ret = ret + \n;

   call.setOperationName( getKey );
   ret = ret + (String) call.invoke( new Object[] { } );
   } catch (Exception e) {
  ret = e.toString();
   }
  
   out.println(ret);


%

Here is my WSDD file I am using to deploy the web service:

deployment xmlns=http://xml.apache.org/axis/wsdd/;
   xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;

service name=StatefulService provider=java:RPC
 parameter name=className value=StatefulService/
 parameter name=allowedMethods value=*/
 parameter name=scope value=session/
/service

/deployment



When I call this the first time I get: 


   Session State is not being maintained
   value was set in private member variable
   keyValue=theValue

When I call it the second time I get the same thing, but I expect:

   keyValue=theValue
   value was set in private member variable
   keyValue=theValue


What in the world am I doing wrong?  I've been baning my head against a 
wall over this for 2 days reading and trying every example online that I 
can find.


Much Thanks in Advance,
Jim


  



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



RE: Axis2 events handling

2007-09-05 Thread Walker, Jeff
Well,
I'm not that knowledgeable on Axis 2 (I'm an old Axis 1.3 guy) but
anyway, a handler is another class you write and register that can be
called on incoming requests (gets entire soap msg before the impl gets
it) and on outgoing responses (gets soap msg after the impl has finished
with it), for both client and service. There is a good example in the
Axis2 samples. The example I am referring too is called
userguide/loggingmodule. This should give you a feel for how a handler
looks and gets registered.
Again, using handlers is just one way of doing it.
-jeff


-Original Message-
From: Elmouj [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 11:20 AM
To: axis-user@ws.apache.org
Subject: RE: Axis2 events handling


Hi jeff,

thanks for your concern. Can you please be clear on using response
handler because I don't know if this is an interface that we need to
implement or ... for me the last thing I do in the server side is a
simple
return of an OMElement.
here is the signature of my methof if it could help:

***
OMElement encryptFile(String attchmentID, String keyID,String
applicationID,
String applicationPassword)

***

thanks again,

Elmouj,


dreamryder wrote:
 
 You could do it another way.
 If you don't trust the client to return an ack, then the last piece of
 code on the serverside that can get called is a response handler. In
the
 response handler, you get access to the entire soap message. The
 response handler will not get the response soap message until the
 implementation has completed its processing (hence the streaming of
the
 output file must have completed too). Therefore, you could do the file
 deletion, or the triggering at least, in the response handler.
(Response
 handlers are meant for post-processing work, such as cleanup).
 -jeff
  
 
 -Original Message-
 From: Andrew Martin [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 05, 2007 10:05 AM
 To: axis-user@ws.apache.org
 Subject: Re: Axis2 events handling
 
 How are you passing the file to Axis2?  If you're just passing an
 InputStream, you could write your own wrapper FilterInputStream that
 erases the file in its close method or in its read methods whenever -1
 is returned.
 
 Andrew
 
 Elmouj wrote:
 Hello Upul,
 
Thanks for your reply. Actually this will work and I have
 already
 thought about it; the problem I found with this solution is that the
 deletion of the file (in the server side) is after an acknowledgment
 FROM
 the client. this ACK could be easily bypassed: I mean, no one is
 obliging
 people using my service to develop a client that acknowledges receipt
 of the
 file !!! hence making it possible for the file to reside on the
 server. For
 your concern about if the file is lost, this is not a problem because
 the
 file the server sends to a client is an encryption of a file sent
from
 Client to Server, hence if there is any problem (which is very very
 very
 rare since Axis2 over TCP is almost error free I guess), the client
 will
 just re-request the encryption of his file. So, I am really looking
 for a
 thing that tells me that the last byte has been sent to the client.
 
 Thanks again,
 
 Elmouj,
 
 
 Upul Godage wrote:
 Hi,

 If you mean you are having a web service which provides files on
 request,
 let's say, requested by reference number, best thing to do is to
have
 another operation in the web service. So that after client gets the
 payload
 and, let's say client has processed or saved it successfully, it
will
 call
 that operation, saying 'got the payload okay for this reference
 number.'
 Otherwise even though the file is transferred successfully, there
 could be
 an exception on the client side and the file is lost from both
sides.

 Upul


 On 9/5/07, Elmouj [EMAIL PROTECTED] wrote:


 Hello,

 I have been using Axis2 for a month now and it's really powerful
and
 easy
 to
 use. However, the last two days I got stuck looking for a way to
 access
 an
 event triggered when the last byte of the server response is sent
to
 the
 client; so I decided to post on this forum hoping to get a clue to
 this
 issue :( . In other words, I want a way by which I could be
informed
 when
 the last byte of the server's response is sent because I need to
 execute
 some tasks after this event has been triggered (I need to delete a
 file
 after the client downloads it).

 Thanks in advance,

 Elmouj
 --
 View this message in context:

http://www.nabble.com/Axis2-events-handling-tf4383721.html#a12496874
 Sent from the Axis - User mailing list archive at Nabble.com.



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



 
 
 -- 
 Andrew Martin
 Computer Programmer
 Regenstrief Institute, Inc.
 410 West 10th Street, 

Re: axis 1.4 not maintaining session

2007-09-05 Thread Andrew Martin
Try this:

public String setKey()
{
getSession().set(keyValue, theValue);
return value was set in private member variable;
}

public String getKey()
{
String msg = ;
String keyValue = (String) getSession().get(keyValue);
if(keyValue==null)msg = Session state is not being maintained;
else msg += keyValue=  + keyValue;
return msg;
}

private Session getSession()
{
MessageContext mc = MessageContext.getCurrentContext();

mc.setMaintainSession(true); // Setup the session

return mc.getSession();
}

Andrew

James Neff wrote:
 Greetings,
 
 I'm trying to get Axis 1.4 to maintain a session for me.
 
 Here is my Java class:
 
 public class StatefulService {
 
private String keyValue;//this is the 'state' being
 maintained
 
public String setKey() {
keyValue = theValue;
return value was set in private member variable;
}
 
public String getKey() {
String msg = ;
if(keyValue==null)msg = Session state is not being maintained;
 else msg += keyValue=  + keyValue;
return msg;
}
 }
 
 Here is my client, a jsp being called via Ajax:
 
 %@ page language=java
 import=org.apache.axis.client.Call,
 org.apache.axis.client.Service,
 org.apache.axis.encoding.XMLType,
 javax.xml.rpc.ParameterMode,
 javax.xml.namespace.QName,
 java.net.URL %
 
 %
String ret = yada;
  String endpointURL =
 http://localhost:8080/axis/services/StatefulService;;
try {
Service  service = new Service();
Call call= (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
call.setReturnType( XMLType.XSD_STRING );
call.setMaintainSession(true); 
 call.setOperationName( getKey );
ret = ret + (String) call.invoke( new Object[] { } );
ret = ret + \n;
call.setOperationName( setKey );
ret = ret + (String) call.invoke( new Object[] { } );
ret = ret + \n;
call.setOperationName( getKey );
ret = ret + (String) call.invoke( new Object[] { } );
} catch (Exception e) {
   ret = e.toString();
}
  out.println(ret);
 
 %
 
 Here is my WSDD file I am using to deploy the web service:
 
 deployment xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
 
 service name=StatefulService provider=java:RPC
  parameter name=className value=StatefulService/
  parameter name=allowedMethods value=*/
  parameter name=scope value=session/
 /service
 
 /deployment
 
 
 
 When I call this the first time I get:
Session State is not being maintained
value was set in private member variable
keyValue=theValue
 
 When I call it the second time I get the same thing, but I expect:
 
keyValue=theValue
value was set in private member variable
keyValue=theValue
 
 
 What in the world am I doing wrong?  I've been baning my head against a
 wall over this for 2 days reading and trying every example online that I
 can find.
 
 Much Thanks in Advance,
 Jim
 
 
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Andrew Martin
Computer Programmer
Regenstrief Institute, Inc.
410 West 10th Street, Suite 2000
Indianapolis, IN 46202-3012
Phone: (317) 423-5542
Fax: (317) 423-5695
[EMAIL PROTECTED]


Confidentiality Notice: The contents of this message and any files
transmitted with it may contain confidential and/or privileged
information and are intended solely for the use of the named
addressee(s). Additionally, the information contained herein may have
been disclosed to you from medical records with confidentiality
protected by federal and state laws. Federal regulations and State laws
prohibit you from making further disclosure of such information without
the specific written consent of the person to whom the information
pertains or as otherwise permitted by such regulations. A general
authorization for the release of medical or other information is not
sufficient for this purpose.

If you have received this message in error, please notify the sender by
return e-mail and delete the original message. Any retention,
disclosure, copying, distribution or use of this information by anyone
other than the intended recipient is strictly prohibited.

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



Re: Loading JAR Files

2007-09-05 Thread Jeff Wang

Hello,

thanks for the reply.  I'm able to put the JARS in the correct  
location.  However, the axis2 class loaders don't load them.  I've  
had to put them outside of my Axis Archive to get them loaded  
otherwise I will get runtime classNotFound exceptions.  Have you ever  
had problems with axis2 not loading jars in the lib directory?


thanks,
Jeff


On Sep 4, 2007, at 7:53 PM, Lahiru Sandakith wrote:


Hi Jeff,

Normally when we create the service archive using the Axis2 Eclipse  
Service Archive Creation Plugin we have to include the 3rd party  
jars at Page 4 [1], and it will put that into the archive lib at  
the archive creation time then axis2 class loading will handle the  
rest when we deploy that.


Thanks

Lahiru

[1] http://ws.apache.org/axis2/tools/1_3/eclipse/servicearchiver- 
plugin.html


On 9/5/07, Jeff Wang [EMAIL PROTECTED]  wrote:
Hello,

I am having trouble loading JAR files in my AAR.  I put all the
required JAR files in the WEB-INF/lib directory of the AAR.  I am
using the Eclipse plug in to create the AAR.  However, when I run the
web service, it cannot load the classes in my jar file.  I've had to
resort to putting it in the lib directory or services/lib dir of the
main axis2.war to be accessible.  Do I need to configure something to
get these jars to load within my aar file??  I'm using axis2, version
1.3.

thanks

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




--
Thanks
Lahiru Sandakith

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




Re: WSDLException : OTHER_ERROR: Unable to locate with a locator the schema referenced at ...

2007-09-05 Thread Linus Kamb

So, am I doing something wrong?  Or is this a bug?

Thanks,
Linus


Linus Kamb wrote:

Thanks a lot for looking.

wsdl2java seems to run successfully:

ant target is:

   target name=w2j depends=clean  
   java classname=org.apache.axis2.wsdl.WSDL2Java fork=true
   failonerror=true
   classpath
   path refid=axis-classpath/
   path refid=jibx-classpath/
   /classpath
   arg value=-o/
   arg value=w2j/
   arg value=-p/
   arg value=${package-name}/
   arg value=-d/
   arg value=jibx/
   arg value=-Ebindingfile/
   arg value=${binding-file}/
   arg value=-uw/
   !-- -ss parameter says generate server code --
   arg value=-ss/
   !-- -sd parameter says generate server deployment files --
   arg value=-sd/
   !-- -ssi parameter says generate Java interface 
definition. --

   arg value=-ssi/
   arg value=-uri/
   arg value=${wsdl-path}/
   /java
   /target

output:
$ ant w2j
Buildfile: build.xml

clean:
  [delete] Deleting directory 
/Users/linus/workspace/ESPortalCDI/server/gen


w2j:
[java] Retrieving schema at 
'http://www.iris.edu/schema/esdp/esdp-0.1.xsd', relative to 
'file:/Users/linus/workspace/ESPortalCDI/resources/META-INF/'.
[java] Retrieving schema at 
'http://schemas.opengis.net/filter/1.1.0/filter.xsd', relative to 
'http://www.iris.edu/schema/esdp/esdp-0.1.xsd'.
[java] Retrieving schema at 
'../../gml/3.1.1/base/geometryAggregates.xsd', relative to 
'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
[java] Retrieving schema at 'geometryPrimitives.xsd', relative to 
'http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd'.
[java] Retrieving schema at 'geometryBasic2d.xsd', relative to 
'http://schemas.opengis.net/gml/3.1.1/base/geometryPrimitives.xsd'.
[java] Retrieving schema at 'geometryBasic0d1d.xsd', relative to 
'http://schemas.opengis.net/gml/3.1.1/base/geometryBasic2d.xsd'.
[java] Retrieving schema at 'measures.xsd', relative to 
'http://schemas.opengis.net/gml/3.1.1/base/geometryBasic0d1d.xsd'.
[java] Retrieving schema at 'units.xsd', relative to 
'http://schemas.opengis.net/gml/3.1.1/base/measures.xsd'.
[java] Retrieving schema at 'dictionary.xsd', relative to 
'http://schemas.opengis.net/gml/3.1.1/base/units.xsd'.
[java] Retrieving schema at 'gmlBase.xsd', relative to 
'http://schemas.opengis.net/gml/3.1.1/base/dictionary.xsd'.
[java] Retrieving schema at '../../../xlink/1.0.0/xlinks.xsd', 
relative to 'http://schemas.opengis.net/gml/3.1.1/base/gmlBase.xsd'.
[java] Retrieving schema at 'basicTypes.xsd', relative to 
'http://schemas.opengis.net/gml/3.1.1/base/gmlBase.xsd'.
[java] Retrieving schema at 'expr.xsd', relative to 
'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
[java] Retrieving schema at 'sort.xsd', relative to 
'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
[java] Retrieving schema at 'expr.xsd', relative to 
'http://schemas.opengis.net/filter/1.1.0/sort.xsd'.
[java] Retrieving schema at 'filterCapabilities.xsd', relative to 
'http://schemas.opengis.net/filter/1.1.0/filter.xsd'.
[java] Retrieving schema at 
'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd', relative to 
'http://www.iris.edu/schema/esdp/esdp-0.1.xsd'.
[java] Retrieving schema at 'geometryBasic2d.xsd', relative to 
'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd'.
[java] Retrieving schema at 'temporal.xsd', relative to 
'http://schemas.opengis.net/gml/3.1.1/base/feature.xsd'.
[java] Retrieving schema at 'gmlBase.xsd', relative to 
'http://schemas.opengis.net/gml/3.1.1/base/temporal.xsd'.
[java] log4j:WARN No appenders could be found for logger 
(org.apache.axis2.description.AxisService).

[java] log4j:WARN Please initialize the log4j system properly.

BUILD SUCCESSFUL
Total time: 15 seconds

generated classes:
$ find w2j/
w2j/
w2j//build.xml
w2j//resources
w2j//resources/ESPortalCDI.wsdl
w2j//resources/services.xml
w2j//resources/xsd0.xsd
w2j//resources/xsd1.xsd
w2j//resources/xsd10.xsd
w2j//resources/xsd11.xsd
w2j//resources/xsd12.xsd
w2j//resources/xsd13.xsd
w2j//resources/xsd14.xsd
w2j//resources/xsd15.xsd
w2j//resources/xsd16.xsd
w2j//resources/xsd2.xsd
w2j//resources/xsd3.xsd
w2j//resources/xsd4.xsd
w2j//resources/xsd5.xsd
w2j//resources/xsd6.xsd
w2j//resources/xsd7.xsd
w2j//resources/xsd8.xsd
w2j//resources/xsd9.xsd
w2j//src
w2j//src/edu
w2j//src/edu/iris
w2j//src/edu/iris/ws
w2j//src/edu/iris/ws/esdp
w2j//src/edu/iris/ws/esdp/ESPortalCDIMessageReceiverInOut.java
w2j//src/edu/iris/ws/esdp/ESPortalCDISkeleton.java
w2j//src/edu/iris/ws/esdp/ESPortalCDISkeletonInterface.java

I wonder, should those various downloaded xsd's be packaged in the 
aar?   Seems not right to me, if that's the case.  I can try that, but 
where should they go?

Thanks,
Linus

Amila Suriarachchi wrote:

Can you try with 

RE: What new in Axis2?

2007-09-05 Thread Raghu Upadhyayula
Ashish,

 

Check this http://ws.apache.org/axis2/

 

Thanks

Raghu

 



From: Ashish Jain [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 6:23 AM
To: [EMAIL PROTECTED]; axis-user@ws.apache.org
Subject: What new in Axis2?

 

Hi All!

I am new to apache Axis. Can someone tell me what is new in AXIS2 as
compared to the previous version?


Thanks in advance

regards
Ashish



Re: Axis client in Spring

2007-09-05 Thread robert lazarski
Axis2 has built in spring support - see the docs. For spring in Axis
1.x , IIRC you need to use some spring classes themselves that rely on
some jax-rpc standard stuff. See the spring docs for Axis 1.x - or
search the spring forums.

HTH,
Robert

On 9/5/07, Jeronimo AZEVEDO [EMAIL PROTECTED] wrote:
 Hi,

 I am trying to get a Axis client with basic http authentication as a
 bean in the Spring Framework configuration using the
 applicationContext.xml. I have been looking around in forums and
 searching the web, but I don't get it. Does anyone has a working axis
 client in Spring Framework? If so, is it possible to get the config an
 code on howto to do it?

 Thanks,

 J

 -
 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: axis 1.4 not maintaining session

2007-09-05 Thread James Neff

Andrew,

I tried what you suggested but I am still getting the same behavior as 
before.


Also, if I set scope to application it DOES maintain the class 
variable, but when I try session it acts like requested.


Any other suggestions?

Thanks,
Jim





Andrew Martin wrote:

Try this:

public String setKey()
{
getSession().set(keyValue, theValue);
return value was set in private member variable;
}

public String getKey()
{
String msg = ;
String keyValue = (String) getSession().get(keyValue);
if(keyValue==null)msg = Session state is not being maintained;
else msg += keyValue=  + keyValue;
return msg;
}

private Session getSession()
{
MessageContext mc = MessageContext.getCurrentContext();

mc.setMaintainSession(true); // Setup the session

return mc.getSession();
}

Andrew

James Neff wrote:
  

Greetings,

I'm trying to get Axis 1.4 to maintain a session for me.

Here is my Java class:

public class StatefulService {

   private String keyValue;//this is the 'state' being
maintained

   public String setKey() {
   keyValue = theValue;
   return value was set in private member variable;
   }

   public String getKey() {
   String msg = ;
   if(keyValue==null)msg = Session state is not being maintained;
else msg += keyValue=  + keyValue;
   return msg;
   }
}

Here is my client, a jsp being called via Ajax:

%@ page language=java
import=org.apache.axis.client.Call,
org.apache.axis.client.Service,
org.apache.axis.encoding.XMLType,
javax.xml.rpc.ParameterMode,
javax.xml.namespace.QName,
java.net.URL %

%
   String ret = yada;
 String endpointURL =
http://localhost:8080/axis/services/StatefulService;;
   try {
   Service  service = new Service();
   Call call= (Call) service.createCall();
   call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
   call.setReturnType( XMLType.XSD_STRING );
   call.setMaintainSession(true); 
call.setOperationName( getKey );

   ret = ret + (String) call.invoke( new Object[] { } );
   ret = ret + \n;
   call.setOperationName( setKey );
   ret = ret + (String) call.invoke( new Object[] { } );
   ret = ret + \n;

   call.setOperationName( getKey );
   ret = ret + (String) call.invoke( new Object[] { } );
   } catch (Exception e) {
  ret = e.toString();
   }
 out.println(ret);

%

Here is my WSDD file I am using to deploy the web service:

deployment xmlns=http://xml.apache.org/axis/wsdd/;
   xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;

service name=StatefulService provider=java:RPC
 parameter name=className value=StatefulService/
 parameter name=allowedMethods value=*/
 parameter name=scope value=session/
/service

/deployment



When I call this the first time I get:
   Session State is not being maintained
   value was set in private member variable
   keyValue=theValue

When I call it the second time I get the same thing, but I expect:

   keyValue=theValue
   value was set in private member variable
   keyValue=theValue


What in the world am I doing wrong?  I've been baning my head against a
wall over this for 2 days reading and trying every example online that I
can find.

Much Thanks in Advance,
Jim


 


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



  



--

James Neff
Technology Specialist

Tethys Health Ventures
4 North Park Drive, Suite 203
Hunt Valley, MD  21030

office:  410.771.0692 x103
cell:443.865.7874



Re: Axis client in Spring

2007-09-05 Thread Боян Иванов(Boyan Ivanov)
Here's part of my spring.xml file.
Hope it helps.

?xml version=1.0 encoding=UTF-8?
!DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN
spring-beans.dtd
beans
  bean id=hellows
   class=org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean
property name=wsdlDocumentUrl
  valuehttp://localhost:8080/axis2/services/HelloImpl?wsdl/value
/property
property name=serviceInterface
  valuebg.bivanov.webservice.Hellows/value
/property
property name=namespaceUri
  valuehttp://bivanov/value
/property
property name=serviceName
!--  valueHelloImplService/value --
   valueHelloImpl/value
/property
property name=portName
  valueHelloImplSOAP12port_http/value
/property
   property name=serviceFactoryClass
valueorg.apache.axis.client.ServiceFactory/value
/property
 /bean

  bean id=hellowsclient class=bg.bivanov.webservice.HellowsImpl
property name=service ref=hellows/
/bean
/beans

This is the interface, containing the methods of your service.
 property name=serviceInterface
  valuebg.bivanov.webservice.Hellows/value

Boyan Ivanov


На сряда 05 септември 2007, robert lazarski написахте:
 Axis2 has built in spring support - see the docs. For spring in Axis
 1.x , IIRC you need to use some spring classes themselves that rely on
 some jax-rpc standard stuff. See the spring docs for Axis 1.x - or
 search the spring forums.

 HTH,
 Robert

 On 9/5/07, Jeronimo AZEVEDO [EMAIL PROTECTED] wrote:
  Hi,
 
  I am trying to get a Axis client with basic http authentication as a
  bean in the Spring Framework configuration using the
  applicationContext.xml. I have been looking around in forums and
  searching the web, but I don't get it. Does anyone has a working axis
  client in Spring Framework? If so, is it possible to get the config an
  code on howto to do it?
 
  Thanks,
 
  J
 
  -
  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: Invalid element/Deserialisation

2007-09-05 Thread Wendy Bao

Hi John,

Could you let me know where I can get the axis-1.2 or axis-1.2.1? I visited
a couple of Aparch web site,  axis-1.2 is no longer available.  

Thanks,

Wendy 


John Baker-2 wrote:
 
 Excellent. Thanks. That's it :)
 
 
 On Wed, Jul 06, 2005 at 10:22:34AM -0400, Anne Thomas Manes wrote:
 John,
 
 Okay -- I see the problem. You haven't actually defined the
 LogonToConnector element exactly according to the wrapped convention,
 so Axis is getting confused.
 
 You defined LogonToConnector like this:
 
 xs:element name=LogonToConnector 
  type=conn:UniformLoginRequestType /
 
 Axis can't quite identify the child parameter element which is of type
 UniformLoginRequestType, so it created another LogonToConnector
 element to represent this type. (indicated by the parameter
 definition in your WSDD)
 
 Please modify LogonToConnector element description in your WSDL to this:
 
xs:element name=LogonToConnector
xs:complexType
xs:sequence
xs:element
 ref=conn:UniformLoginRequest /
/xs:sequence
/xs:complexType
/xs:element
 
 That should take care of it.
 
 Anne
 
 On 7/6/05, John Baker [EMAIL PROTECTED] wrote:
  Here's the wsdd file as generated by Axis 1.2.1:
  
  !-- Use this file to deploy some handlers/chains and services  --
  !-- Two ways to do this:   --
  !--   java org.apache.axis.client.AdminClient deploy.wsdd  --
  !--  after the axis server is running  --
  !-- or --
  !--   java org.apache.axis.utils.Admin client|server deploy.wsdd   --
  !--  from the same directory that the Axis engine runs --
  
  deployment
 xmlns=http://xml.apache.org/axis/wsdd/;
 xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
  
   !-- Services from ServiceRequestConnectorService WSDL service --
  
   service name=CommonConnectorSoapPort provider=java:RPC
 style=wrapped use=literal
   parameter name=wsdlTargetNamespace
 value=http://www.caps-solutions.co.uk/webservices/connectors/servicerequest/service/
   parameter name=wsdlServiceElement
 value=ServiceRequestConnectorService/
   parameter name=schemaQualified
 value=http://www.caps-solutions.co.uk/schema/uniform/72b/common/uniformtypes,http://www.caps-solutions.co.uk/schema/uniform/72b/common/connectortypes,http://www.caps-solutions.co.uk/webservices/connectors/common/messagetypes/
   parameter name=wsdlServicePort
 value=CommonConnectorSoapPort/
   parameter name=className
 value=uk.co.caps_solutions.www.webservices.connectors.servicerequest.service.CommonConnectorSoapBindingImpl/
   parameter name=wsdlPortType value=ICommonConnector/
   parameter name=typeMappingVersion value=1.2/
   operation name=getUniformDatabaseAliases
 qname=operNS:GetUniformDatabaseAliases
 xmlns:operNS=http://www.caps-solutions.co.uk/webservices/connectors/common/messagetypes;
 returnQName=retNS:ArrayOfUniformDatabaseAlias
 xmlns:retNS=http://www.caps-solutions.co.uk/schema/uniform/72b/common/connectortypes;
 returnType=rtns:ArrayOfUniformDatabaseAliasType
 xmlns:rtns=http://www.caps-solutions.co.uk/schema/uniform/72b/common/connectortypes;
 soapAction=http://www.caps-solutions.co.uk/webservices/connectors/common/actions/GetUniformDatabaseAliases;
 
   /operation
   operation name=logonToConnector qname=LogonToConnector
 returnQName=retNS:LogonToConnectorResponse
 xmlns:retNS=http://www.caps-solutions.co.uk/webservices/connectors/common/messagetypes;
 returnType=rtns:LogonToConnectorResponse
 xmlns:rtns=http://www.caps-solutions.co.uk/webservices/connectors/common/messagetypes;
 soapAction=http://www.caps-solutions.co.uk/webservices/connectors/common/actions/LogonToConnector;
 
 parameter qname=pns:LogonToConnector
 xmlns:pns=http://www.caps-solutions.co.uk/webservices/connectors/common/messagetypes;
 type=tns:UniformLoginRequestType
 xmlns:tns=http://www.caps-solutions.co.uk/schema/uniform/72b/common/connectortypes/
   /operation
   operation name=logoffFromConnector
 qname=operNS:LogoffFromConnector
 xmlns:operNS=http://www.caps-solutions.co.uk/webservices/connectors/common/messagetypes;
 returnQName=retNS:UniformLogoffResponse
 xmlns:retNS=http://www.caps-solutions.co.uk/schema/uniform/72b/common/connectortypes;
 returnType=rtns:UniformLogoffResponseType
 xmlns:rtns=http://www.caps-solutions.co.uk/schema/uniform/72b/common/connectortypes;
 soapAction=http://www.caps-solutions.co.uk/webservices/connectors/common/actions/LogoffFromConnector;
 
   /operation
   operation name=getConnectorLoginStatus
 qname=GetConnectorLoginStatus
 returnQName=retNS:GetConnectorLoginStatusResponse
 

Re: wrong namespace in response?

2007-09-05 Thread Anne Thomas Manes
Namespaces are configurable; therefore, they don't necessarily follow
this basic convention.  The WSDL will tell you exactly what the
response message will look like.

Anne

On 9/5/07, feh [EMAIL PROTECTED] wrote:


 Hi folks.

 I've written an Axis2 service which returns the correct data, but the
 namespace in the response seems to be incorrect.

 Now, I know very little (nothing) about SOAP, so I may be wrong about this.
 But if the class that implements the service is foo.bar.GroupService,
 shouldn't the namespace in the response be
 http://foo.bar.GroupService/xsd;?

 Below is the request and the response. Thanks for any feedback you can
 provide!



 GET /Feh/services/GroupService/getGroupIds HTTP/1.1

 Host: localhost:8080

 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3)
 Gecko/20070309 Firefox/2.0.0.3

 Accept:
 text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

 Accept-Language: en-us,es-mx;q=0.7,en;q=0.3

 Accept-Encoding: gzip,deflate

 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

 Keep-Alive: 300

 Connection: keep-alive

 Cookie: JSESSIONID=A5E3C005B8612DE246643CB9A21E020B



 HTTP/1.1 200 OK

 Server: Apache-Coyote/1.1

 Content-Type: application/xml;charset=UTF-8

 Transfer-Encoding: chunked

 Date: Wed, 05 Sep 2007 14:31:50 GMT



 b7

 ns:getGroupIdsResponse
 xmlns:ns=http://org.apache.axis2/xsd;ns:return-1/ns:returnns:return920/ns:returnns:return930/ns:return/ns:getGroupIdsResponse

 0
 --
 View this message in context: 
 http://www.nabble.com/wrong-namespace-in-response--tf4384479.html#a12499369
 Sent from the Axis - User mailing list archive at Nabble.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] Engage module problem

2007-09-05 Thread Ted Jones
Lorenzo,

To engage programmatically:

stub._getServiceClient().engageModule(PD);

This assumes that the module is available as well, meaning it is in
your repository.

Thanks,
Ted 

-Original Message-
From: Lorenzo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 8:42 AM
To: AXIS
Subject: [AXIS2] Engage module problem

I have to add a module to a service.

All go fine id i engage it globally in axis.xml, but how to engage it
programmatically?

--- CODE START ---
 
AxisConfiguration axisCfg = configurationContext.getAxisConfiguration();
AxisService openspcoopService = new
AxisService(OPENSPCOOP_SERVICE_NAME);
AxisOperation operation = new InOutAxisOperation(OPERATION_Q_NAME);
operation.setMessageReceiver(new OpenSPCoopMessageReceiver());
openspcoopService.addOperation(operation);
List transports = new ArrayList();
transports.add(org.apache.axis2.Constants.TRANSPORT_HTTP);
transports.add(https);
openspcoopService.setExposedTransports(transports);
axisCfg.addService(openspcoopService);

--- CODE END ---

i tryed with 

openspcoopService.engageModule(axisCfg.getModule(PD), axisCfg);

(PD is the name of the module) but it log that it is just engaged (but
it not work)

openspcoopService.addModuleref(PD);

doesn't work too...


any suggestion?

thx, Lorenzo



-
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: Problem with client side exceptions

2007-09-05 Thread P�r Malmqvist

I also have problem with this.
My best shot is to set the parameter DrillDownToRootCauseForFaultReason to true in the axis2.xml configuration file at the server side.
Then I can read the exceptionname(among a lot of other exceptions)in a field in the AxisFault message at the client side. I thinkI usedthe method getDetails().
But I dont think this is a good solution... :(
/Pär





From:"John McLaughlin" [EMAIL PROTECTED]Reply-To:axis-user@ws.apache.orgTo:axis-user@ws.apache.orgSubject:Problem with client side exceptionsDate:Wed, 5 Sep 2007 15:50:39 +0100
Hi all, I'm a newbie to Axis2, though have used Axis1 before, and am having trouble with exceptions on the client end. I've deployed a POJO as a service under Tomcat. I generated the service and client using Eclipse WTP, so to be as brief as possible, the service has a method:
 public CounterLight getCounter(Long nsuk) throws CounterNotFoundException { : throw new CounterNotFoundException("Exception") ; } CounterNotFoundException is simply an extension of
java.lang.Exception (it implements Serializable as well, though I don't think this makes any difference) Wsdl2java generates a class called CounterNotFoundExceptionException2 alongside the stub for the service
 On the client side I have: try { stub.getCounter(params) ; // Params initialised properly etc } catch(CounterNotFoundExceptionException2 e) { e.printStackTrace() ;
 } catch (AxisFault e) { e.printStackTrace() ; } The AxisFault is ALWAYS the one that is received, never the generated exception (though the compiler insists that I check for it).
 On the server side, I also get a "java.lang.reflect.InvocationTargetException...Caused by CounterException" Can anybody point me in the right direction here, am I missing something? I've googled extensively, searched the list archives etc, but couldn't find much of help.
Thanks for any help!John

Express yourself instantly with MSN Messenger! MSN Messenger Download today it's FREE!


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



Axis 1.4 and WTK 2.5.1 Invalid Element in Response

2007-09-05 Thread John Cartwright
Hello,

I'm trying to get a j2me web service up and running but am getting the
following error message:

java.rmi.MarshalException: Invalid Element in Response: sellerStatus
   at com.sun.j2mews.xml.rpc.SOAPDecoder.decode(SOAPDecoder.java:192)
   at com.sun.j2mews.xml.rpc.OperationImpl.invoke(OperationImpl.java:240)
   ...

I've attached the wsdl axis is exposing, the deploy.wsdd, and sample
request, and a sample response.  In the response you can see that
there is a valid string value for the sellerStatus element.  I'm not
sure why the wtk generated stub code is failing.  Any help would be
greatly appreciated.
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   soapenv:Body
  getStockRecordByVsnResponse 
xmlns=http://mobile.webservices.sys.mycomp.com;
 getStockRecordByVsn
buyer
   name/
   partyId0/partyId
   sellerfalse/seller
/buyer
colorGreen/color
makeFord/make
mileage60316/mileage
modelExplorer/model
runNumberB020x/runNumber
saleDate08/29/2007/saleDate
seller
   nameHonda Dealer/name
   partyId1179/partyId
   sellertrue/seller
/seller
sellerStatusChecked In/sellerStatus
stockId3843/stockId
vin11/vin
vsn503247/vsn
year2004/year
 /getStockRecordByVsn
  /getStockRecordByVsnResponse
   /soapenv:Body
/soapenv:Envelopesoapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:mob=http://mobile.webservices.sys.mycomp.com;
   soapenv:Header/
   soapenv:Body
  mob:getStockRecordByVsn
 mob:mobileId1/mob:mobileId
 mob:vsn503247/mob:vsn
  /mob:getStockRecordByVsn
   /soapenv:Body
/soapenv:Envelope

deploy.wsdd
Description: Binary data
?xml version=1.0 encoding=UTF-8?
wsdl:definitions targetNamespace=http://mobile.webservices.sys.mycomp.com; xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:impl=http://mobile.webservices.sys.mycomp.com; xmlns:intf=http://mobile.webservices.sys.mycomp.com; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http://www.w3.org/2001/XMLSchema;
!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)--
 wsdl:types
  schema elementFormDefault=qualified targetNamespace=http://mobile.webservices.sys.mycomp.com; xmlns=http://www.w3.org/2001/XMLSchema;
   element name=executeRollOver
complexType
 sequence
  element name=mobileId type=xsd:string/
  element name=vsn type=xsd:long/
  element name=newSaleId type=xsd:long/
  element name=newRunNumber type=xsd:string/
  element name=newLaneNumber type=xsd:string/
  element name=newXNumber type=xsd:string/
 /sequence
/complexType
   /element
   element name=executeRollOverResponse
complexType
 sequence
  element name=executeRollOverReturn type=impl:MobileStockRecord/
 /sequence
/complexType
   /element
   complexType name=MobileDealership
sequence
 element name=isSeller type=xsd:boolean/
 element name=name nillable=true type=xsd:string/
 element name=partyId type=xsd:long/
 element name=seller type=xsd:boolean/
/sequence
   /complexType
   complexType name=MobileStockRecord
sequence
 element name=buyer nillable=true type=impl:MobileDealership/
 element name=color nillable=true type=xsd:string/
 element name=make nillable=true type=xsd:string/
 element name=mileage type=xsd:int/
 element name=model nillable=true type=xsd:string/
 element name=runNumber nillable=true type=xsd:string/
 element name=saleDate nillable=true type=xsd:string/
 element name=seller nillable=true type=impl:MobileDealership/
 element name=sellerStatus nillable=true type=xsd:string/
 element name=stockId type=xsd:long/
 element name=vin nillable=true type=xsd:string/
 element name=vsn type=xsd:long/
 element name=year nillable=true type=xsd:string/
/sequence
   /complexType
   element name=getDynamicOrders
complexType
 sequence
  element name=mobileId type=xsd:string/
  element name=sellerStatus type=xsd:string/
 /sequence
/complexType
   /element
   element name=getDynamicOrdersResponse
complexType
 sequence
  element maxOccurs=unbounded name=getDynamicOrdersReturn type=xsd:string/
 /sequence
/complexType
   /element
   element name=getRollOverRunNumbersBySale
complexType
 sequence
  element name=mobileId type=xsd:string/
  element name=saleId type=xsd:long/
 /sequence
/complexType
   /element
   element name=getRollOverRunNumbersBySaleResponse
complexType
 sequence
  element maxOccurs=unbounded 

WS-Addressing version problem, Java Axis2 client to .Net web service

2007-09-05 Thread Andrew McGhee
Hi,
I'm developing a Java Axis2 1.1 client consuming a dot net web service
which requires WS-Addressing.
 
I'm having problems with changing the WS-Addr schema reference in my
request.
 
In the client I have the following code...
code
public static void setClientProperties(org.apache.axis2.client.Stub
stub) {
   
stub._getServiceClient().getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
AddressingConstants.Submission.WSA_NAMESPACE);
}
/code
 
... I can debug and see the value being set correctly, but the SOAP
request always has...
soapenv:Envelope xmlns:wsa=http://www.w3.org/2005/08/addressing;
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 
Is this the correct way of changing the WS-Addr namespace? In which
object should I be setting the namespace?
 
I also note that the value for the
AddressingConstants.Submission.WSA_NAMESPACE =
http://schemas.xmlsoap.org/ws/2004/08/addressing;, yet the dot net
web service returns an error unless this is changed to
http://schemas.xmlsoap.org/ws/2004/03/addressing; (note the month
change).
 
I'm presuming that once I can set the WS-Addr namespace to the
submission value, I can change it to anything I like as the
setProperty() method takes an Object/String as an argument. However I'm
curious if anyone knows the history behind Microsoft using this other
namespace - is it an earlier submission or just MS creating its own
standards?

Many thanks in advance for any advice anyone can provide.


*
This email, including any attachments sent with it, is
confidential and for the sole use of the intended recipient(s).
This confidentiality is not waived or lost, if you receive it and
you are not the intended recipient(s), or if it is transmitted/
received in error.

Any unauthorised use, alteration, disclosure, distribution or
review of this email is strictly prohibited.  The information
contained in this email, including any attachment sent with
it, may be subject to a statutory duty of confidentiality if it
relates to health service matters.

If you are not the intended recipient(s), or if you have
received this email in error, you are asked to immediately
notify the sender by telephone collect on Australia
+61 1800 198 175 or by return email.  You should also
delete this email, and any copies, from your computer
system network and destroy any hard copies produced.

If not an intended recipient of this email, you must not copy,
distribute or take any action(s) that relies on it; any form of
disclosure, modification, distribution and/or publication of this
email is also prohibited.

Although Queensland Health takes all reasonable steps to
ensure this email does not contain malicious software,
Queensland Health does not accept responsibility for the
consequences if any person's computer inadvertently suffers
any disruption to services, loss of information, harm or is
infected with a virus, other malicious computer programme or
code that may occur as a consequence of receiving this
email.

Unless stated otherwise, this email represents only the views
of the sender and not the views of the Queensland Government.




Re: WS-Addressing version problem, Java Axis2 client to .Net web service

2007-09-05 Thread Anthony Bull




I also had this same problem a year ago - you can search the mailing
list archive to find out how I got it solved - but it did change the
SOAP packets to the 2004 namespace - I had to change it for an interop
project with a .NET web service and client.

I just assumed that it was because MS take so long to release stuff -
but its been 2 years now, so it looks like they don't really care that
they aren't up to date.

Andrew McGhee wrote:

  
  
  Hi,
I'm developing a Java Axis2 1.1 client consuming a dot net web service
which requires WS-Addressing.

I'm having problems with changing the WS-Addr schema reference in my
request.

In the client I have the following code...
code
 public static void setClientProperties(org.apache.axis2.client.Stub
stub) {

stub._getServiceClient().getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERSION,
AddressingConstants.Submission.WSA_NAMESPACE);
}
/code

... I can debug and see the value being set correctly, but the SOAP
request always has...
soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

Is this the correct way of changing the WS-Addr namespace? In which
object should I be setting the namespace?

I also note that the value for the
AddressingConstants.Submission.WSA_NAMESPACE = "http://schemas.xmlsoap.org/ws/2004/08/addressing",
yet the dot net web service returns an error unless this is changed to "http://schemas.xmlsoap.org/ws/2004/03/addressing"
(note the month change).

I'm presuming that once I can set the WS-Addr namespace to the
submission value, I can change it to anything I like as the
setProperty() method takes an Object/String as an argument. However I'm
curious if anyone knows the history behind Microsoft using this other
namespace - is it an earlier submission or just MS creating its own
standards?
  
  Many thanks in advance for any advice anyone can
provide.
  
  
*
This email, including any attachments sent with it, is
confidential and for the sole use of the intended recipient(s).
This confidentiality is not waived or lost, if you receive it and
you are not the intended recipient(s), or if it is transmitted/
received in error.
  
Any unauthorised use, alteration, disclosure, distribution or
review of this email is strictly prohibited. The information
contained in this email, including any attachment sent with
it, may be subject to a statutory duty of confidentiality if it
relates to health service matters.
  
If you are not the intended recipient(s), or if you have
received this email in error, you are asked to immediately
notify the sender by telephone collect on Australia
+61 1800 198 175 or by return email. You should also
delete this email, and any copies, from your computer
system network and destroy any hard copies produced.
  
If not an intended recipient of this email, you must not copy,
distribute or take any action(s) that relies on it; any form of
disclosure, modification, distribution and/or publication of this
email is also prohibited.
  
Although Queensland Health takes all reasonable steps to
ensure this email does not contain malicious software,
Queensland Health does not accept responsibility for the
consequences if any person's computer inadvertently suffers
any disruption to services, loss of information, harm or is
infected with a virus, other malicious computer programme or
code that may occur as a consequence of receiving this
email.
  
Unless stated otherwise, this email represents only the views
of the sender and not the views of the Queensland Government.

  






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



Using Rampart with Axis Webservice to authenticate .NET client

2007-09-05 Thread raghavan
Hi all,
 
Our new project involves developing web service on Axis2 platform.
Our client will be a .NET client.
Is it possible to use Apache Rampart along with the .NET client? Is this
possible to use Rampart's username token authentication with web service
running in axis2 and client running in .NET?
Also, all my web services will be returning java objects rather than
OMElement types. So will this be a problem when using Rampart?
 
Thanks in advance,
Raghavan.V.
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. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail.


Re: [AXIS2] Engage module problem

2007-09-05 Thread Sanka Samaranayke

Hi Lorenzo,

Pls find my comments inlined ..



Lorenzo wrote:

I have to add a module to a service.

All go fine id i engage it globally in axis.xml, but how to engage it
programmatically?

--- CODE START ---
 
AxisConfiguration axisCfg = configurationContext.getAxisConfiguration();

AxisService openspcoopService = new
AxisService(OPENSPCOOP_SERVICE_NAME);
AxisOperation operation = new InOutAxisOperation(OPERATION_Q_NAME);
operation.setMessageReceiver(new OpenSPCoopMessageReceiver());
openspcoopService.addOperation(operation);
List transports = new ArrayList();
transports.add(org.apache.axis2.Constants.TRANSPORT_HTTP);
transports.add(https);
openspcoopService.setExposedTransports(transports);
axisCfg.addService(openspcoopService);

--- CODE END ---

i tryed with 


openspcoopService.engageModule(axisCfg.getModule(PD), axisCfg);
  


try openspcoopService.engageModule(axisCfg.getModule(PD)); instead 
of the above.


Best,
Sanka






(PD is the name of the module) but it log that it is just engaged (but
it not work)

openspcoopService.addModuleref(PD);

doesn't work too...


any suggestion?

thx, Lorenzo



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


  



--
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/


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



Re: WS-Addressing version problem, Java Axis2 client to .Net web service

2007-09-05 Thread Sanka Samaranayke

Andrew McGhee wrote:

Hi,
I'm developing a Java Axis2 1.1 client consuming a dot net web service 
which requires WS-Addressing.
 
I'm having problems with changing the WS-Addr schema reference in my 
request.
 
In the client I have the following code...

code
public static void 
setClientProperties(org.apache.axis2.client.Stub stub) {

stub._getServiceClient().getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERSION, 
AddressingConstants.Submission.WSA_NAMESPACE);

}
/code
 
... I can debug and see the value being set correctly, but the SOAP 
request always has...
soapenv:Envelope xmlns:wsa=http://www.w3.org/2005/08/addressing; 
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 
Is this the correct way of changing the WS-Addr namespace? In which 
object should I be setting the namespace?
 
I also note that the value for the 
AddressingConstants.Submission.WSA_NAMESPACE = 
http://schemas.xmlsoap.org/ws/2004/08/addressing;, yet the dot net 
web service returns an error unless this is changed to  
http://schemas.xmlsoap.org/ws/2004/03/addressing (note the month 
change).


AFAIK, Axis2 addressing module doesn't support 
http://schemas.xmlsoap.org/ws/2004/03/addressing; WS-Addressing namespace.


Best,
Sanka

 
I'm presuming that once I can set the WS-Addr namespace to the 
submission value, I can change it to anything I like as the 
setProperty() method takes an Object/String as an argument. However 
I'm curious if anyone knows the history behind Microsoft using this 
other namespace - is it an earlier submission or just MS creating its 
own standards?

Many thanks in advance for any advice anyone can provide.


*
This email, including any attachments sent with it, is
confidential and for the sole use of the intended recipient(s).
This confidentiality is not waived or lost, if you receive it and
you are not the intended recipient(s), or if it is transmitted/
received in error.

Any unauthorised use, alteration, disclosure, distribution or
review of this email is strictly prohibited. The information
contained in this email, including any attachment sent with
it, may be subject to a statutory duty of confidentiality if it
relates to health service matters.

If you are not the intended recipient(s), or if you have
received this email in error, you are asked to immediately
notify the sender by telephone collect on Australia
+61 1800 198 175 or by return email. You should also
delete this email, and any copies, from your computer
system network and destroy any hard copies produced.

If not an intended recipient of this email, you must not copy,
distribute or take any action(s) that relies on it; any form of
disclosure, modification, distribution and/or publication of this
email is also prohibited.

Although Queensland Health takes all reasonable steps to
ensure this email does not contain malicious software,
Queensland Health does not accept responsibility for the
consequences if any person's computer inadvertently suffers
any disruption to services, loss of information, harm or is
infected with a virus, other malicious computer programme or
code that may occur as a consequence of receiving this
email.

Unless stated otherwise, this email represents only the views
of the sender and not the views of the Queensland Government.




--
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/



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



Re: Using Rampart with Axis Webservice to authenticate .NET client

2007-09-05 Thread Deepal jayasinghe
raghavan wrote:

 Hi all,

 Our new project involves developing web service on Axis2 platform.

 Our client will be a .NET client.

 Is it possible to use Apache Rampart along with the .NET client? Is
 this possible to use Rampart’s username token authentication with web
 service running in axis2 and client running in .NET?

Yes , even we have done interop testing with .Net

 Also, all my web services will be returning java objects rather than
 OMElement types. So will this be a problem when using Rampart?

Not at all. Does not matter whether you use Axiom or Java object.

 Thanks in advance,

 Raghavan.V.

 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. If you have received this email in error please notify
 the system manager. This message contains confidential information and
 is intended only for the individual named. If you are not the named
 addressee you should not disseminate, distribute or copy this e-mail.

Thanks
Deepal

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



RE: Using Rampart with Axis Webservice to authenticate .NET client

2007-09-05 Thread raghavan
Hi,
Thanks for the reply.
Is there any place where I can get the sample programs for the Rampart's
username token authentication with web service running in axis2 and
client running in .NET

Thanks,
Raghavan.V.

-Original Message-
From: Deepal jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 06, 2007 11:14 AM
To: axis-user@ws.apache.org
Subject: Re: Using Rampart with Axis Webservice to authenticate .NET
client

raghavan wrote:

 Hi all,

 Our new project involves developing web service on Axis2 platform.

 Our client will be a .NET client.

 Is it possible to use Apache Rampart along with the .NET client? Is
 this possible to use Rampart's username token authentication with web
 service running in axis2 and client running in .NET?

Yes , even we have done interop testing with .Net

 Also, all my web services will be returning java objects rather than
 OMElement types. So will this be a problem when using Rampart?

Not at all. Does not matter whether you use Axiom or Java object.

 Thanks in advance,

 Raghavan.V.

 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. If you have received this email in error please notify
 the system manager. This message contains confidential information and
 is intended only for the individual named. If you are not the named
 addressee you should not disseminate, distribute or copy this e-mail.

Thanks
Deepal

-
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. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail.

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



Re: Invalid element/Deserialisation

2007-09-05 Thread Deepal jayasinghe
Wendy Bao wrote:
 Hi John,

 Could you let me know where I can get the axis-1.2 or axis-1.2.1? I visited
 a couple of Aparch web site,  axis-1.2 is no longer available.  
   
Try this
http://ws.apache.org/axis2/download/1_2/download.cgi

Thanks
Deepal

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



Re: Axis client in Spring

2007-09-05 Thread jazevedo

Hi,

Thanks for that. I tried it but I still get the same authentication  
error. For the client do I have to setup also my web.xml file? I don't  
think so.


Quoting Боян Иванов(Boyan Ivanov) [EMAIL PROTECTED]:


Here's part of my spring.xml file.
Hope it helps.

?xml version=1.0 encoding=UTF-8?
!DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN
spring-beans.dtd
beans
  bean id=hellows
 
class=org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean

property name=wsdlDocumentUrl
  valuehttp://localhost:8080/axis2/services/HelloImpl?wsdl/value
/property
property name=serviceInterface
  valuebg.bivanov.webservice.Hellows/value
/property
property name=namespaceUri
  valuehttp://bivanov/value
/property
property name=serviceName
!--  valueHelloImplService/value --
   valueHelloImpl/value
/property
property name=portName
  valueHelloImplSOAP12port_http/value
/property
   property name=serviceFactoryClass
valueorg.apache.axis.client.ServiceFactory/value
/property
 /bean

  bean id=hellowsclient class=bg.bivanov.webservice.HellowsImpl
property name=service ref=hellows/
/bean
/beans

This is the interface, containing the methods of your service.
 property name=serviceInterface
  valuebg.bivanov.webservice.Hellows/value

Boyan Ivanov


На сряда 05 септември 2007, robert lazarski написахте:

Axis2 has built in spring support - see the docs. For spring in Axis
1.x , IIRC you need to use some spring classes themselves that rely on
some jax-rpc standard stuff. See the spring docs for Axis 1.x - or
search the spring forums.

HTH,
Robert

On 9/5/07, Jeronimo AZEVEDO [EMAIL PROTECTED] wrote:
 Hi,

 I am trying to get a Axis client with basic http authentication as a
 bean in the Spring Framework configuration using the
 applicationContext.xml. I have been looking around in forums and
 searching the web, but I don't get it. Does anyone has a working axis
 client in Spring Framework? If so, is it possible to get the config an
 code on howto to do it?

 Thanks,

 J

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