namespace validation

2006-07-31 Thread Kamlesh kumar
I am interested in knowing whether AxisCPP validates
the namespaces for a soap request or not ? In other
words does it verify that all the elements in the soap
request belong to the same namespace as defined in
wsdl ?

I tried digging into Axis CPP source code and came
across the getElement() method in SoapDeSerialzer.cpp.

http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp?view=markup
Although it takes pNamespace as one of the
parameters
it does not actually use it to validate in the code.
So it seems like we only look at the element name and
ignore the namespace. Is this the desired behavior or
does it need to be fixed?

I would appreciate any insight into this issue. Thanks

-Kamlesh

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: namespace validation

2006-07-31 Thread Nadir Amra
Validation is a sore-spot as far as AXISCPP.  There are a lot of places 
where it should validate and does not.  Open a JIRA (if one is not already 
created) and attach a simple wsdl with resultant output from web service 
if possible.

Nadir K. Amra


Kamlesh kumar [EMAIL PROTECTED] wrote on 07/31/2006 01:25:03 AM:

 I am interested in knowing whether AxisCPP validates
 the namespaces for a soap request or not ? In other
 words does it verify that all the elements in the soap
 request belong to the same namespace as defined in
 wsdl ?
 
 I tried digging into Axis CPP source code and came
 across the getElement() method in SoapDeSerialzer.cpp.
 
 http://svn.apache.
 
org/viewvc/webservices/axis/trunk/c/src/soap/SoapDeSerializer.cpp?view=markup
 Although it takes pNamespace as one of the
 parameters
 it does not actually use it to validate in the code.
 So it seems like we only look at the element name and
 ignore the namespace. Is this the desired behavior or
 does it need to be fixed?
 
 I would appreciate any insight into this issue. Thanks
 
 -Kamlesh


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



incompatible types error

2006-07-31 Thread Saehoon Cheon
I've tested Java2WSDL.
The service includes the vector array(Vector[]). But it causes the incompatible type error even if it works fine with javac command. 
The Code looks like, Vector[] marginVArr = init.getMaxDistance();
In this case, how can I find the problem?


Re: [Axis2 1.0] WSDL2Java bug?

2006-07-31 Thread Ajith Ranabahu

Hi Nirmit,
This indeed looks like a bug. Please open a Jira and attach the WSDL

Ajith

On 7/30/06, Anne Thomas Manes [EMAIL PROTECTED] wrote:

Please file a JIRA.

On 7/29/06, Nirmit Desai [EMAIL PROTECTED] wrote:

 Hi,

 I am trying to generate test case from a WSDL operation taking no
 parameters (everything is document literal) . The input message for the
 operation is defined thus:

 message name=getMembershipInfo/

 The generated skeleton looks ok. However, the generated test cases look
 buggy as in the testStartop_name method of the test case class it calls
 the stub.startop_name with a param34 without first creating it. In fact,
 As the operation does not take any parameters, there is not need to create
 and pass any such parameters. And rightly, the
 startop_name method in the stub class takes only a callback object as a
 parameter, no other parameter is required.

 So, just by removing the param34 from the call to stb.startop_name solves
 the problem.

 Thanks,

 -Nirmit



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





--
Ajith Ranabahu

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



Re: implement JMS transport

2006-07-31 Thread Ali Sadik Kumlali
Hi Preetha,All of the info I'll give is for Axis2 only not for Axis.AFAIK, currently, there is no a tutorial for the Axis2 JMS.  There are two JMS implementations of Axis2. Current implementation (org.apache.axis2.transport.jms.*) was ported from Axis1 and available with Axis2-1.0. On the other hand, new implementation(org.apache.axis2.transport.njms.*) was written from the ground up after Axis2-1.0 was released. For the new JMS implementation, you'll need to use nightly builds or SVN.Some resources:- There is an integration test based on the current implemenation. But you need to change many thing to be able to run. I posted some mails to the axis-user list regarding this.http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/jms/JMSEchoRawXMLTest.java?view=markup
- I created a fully documented unit test for the new JMS implementation. It also has screenshots that let you configure SonicMQ and Hermes. Please note that there is no feedback from the Axis2 team yet. So, please don't take it as real solution.https://issues.apache.org/jira/browse/AXIS2-868- axis-user archive. You may restrict the query further.
http://www.mail-archive.com/cgi-bin/htsearch?config=axis-user_ws_apache_orgrestrict=exclude=words=JMS+Axis2


- axis-dev archive. You may restrict the query further.
http://www.mail-archive.com/cgi-bin/htsearch?config=axis-dev_ws_apache_orgrestrict=exclude=words=JMS+Axis2

Hope this helps,Ali Sadik Kumlali- Original Message From: [EMAIL PROTECTED]To: axis-user@ws.apache.orgSent: Monday, July 31, 2006 8:10:12 AMSubject: implement JMS transport


 
 




Hi, 

  

I want to implement my web service using JMS transport.  

Please help me on a good link or an example that would guide
me  

In the process. Your help on this will be appreciated. 

  

Regards, 

Preetha V. 

  



 



  



DISCLAIMER:This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. 



Axis2 Exception

2006-07-31 Thread Pradeepta Bhattacharya
When I try to return back a array of objects from my method, I get back an
exception on the server stating 

12:24:09,670 ERROR [AxisServlet] java.lang.NoSuchMethodError:
org.apache.axis2.databinding.utils.BeanUtil.getOMElement(Ljavax/xml/namespac
e/QName;[Ljava/lang/Object;Ljavax/xml/namespace/QName;)Lorg/apache/axiom/om/
OMElement;


What would be the reason for this error? Thanks.

Pradeepta


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



Axis 1.3 WSDL2Java Overwrites the original files

2006-07-31 Thread Amit Andhale
Hi All,
When I run WSDL2Java command, it generates the Stub files, which also overrides my existing files.
Could you please help me in this context?

Regards
Amit 


[AXIS 2] WS-addressing module

2006-07-31 Thread Fabien Couble



Hi everybody,

I have to adapt the WS-addressing module in order 
to make it WS-Management compliant. That's why I'd like to have your point of 
view.In fact, the WS-Management specification adds two attributes to the 
WS-addressing header.It is the attributes wsman:ResourceURI and 
wsman:SelectorSet.I have analysed the WS-Addressing Module and I'd like to 
know if you agree with me.To add these two attributes I have to modify the 
class org.apache.axis2.client.Options (add the getter/setter).And then 
modify the two classes: org.apache.axis2.handlers.addressing.AddressingInHandler 
and org.apache.axis2.handlers.addressing.AddressingOutHandlerIn the first 
class, I should add a method to extract the two attributes and put them in an 
Option structure.In the second one, I should add the attributes from the 
Option structure to the SOAP message.

For me, these are only these things to do...Am 
i right?? Any comment is welcome!Thx for your 
help!Fabien

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re: [AXIS 2] WS-addressing module

2006-07-31 Thread Eran Chinthaka
Hi Fabien,

I think you got the point, but let me add couple things to this.

First, about where to put the code to extracting the two parameters from
the message and putting them back to the SOAP message.

1. You can put the code in AddressingHandlers, but with a flag to
indicate whether WS-Management is enabled or not. Your code will
basically work when the flag is on. But I feel this is kind of not that
elegant as this pollutes the WS-A code with some other code. Remember I
didn't say I didn't like it :)

2. You can add two handlers one in IN path and the other in the OUT path
so that they will do the necessary things once invoked.  This approach
will make sure you do not pollute the WS-A code.

I prefer the second approach if that can be done :).

-- Chinthaka

Fabien Couble wrote:
 
 Hi everybody,
  
 I have to adapt the WS-addressing module in order to make it
 WS-Management compliant. That's why I'd like to have your point of view.
 In fact, the WS-Management specification adds two attributes to the
 WS-addressing header.
 It is the attributes wsman:ResourceURI and wsman:SelectorSet.
 I have analysed the WS-Addressing Module and I'd like to know if you
 agree with me.
 To add these two attributes I have to modify the class
 org.apache.axis2.client.Options (add the getter/setter).
 And then modify the two classes:
 org.apache.axis2.handlers.addressing.AddressingInHandler and
 org.apache.axis2.handlers.addressing.AddressingOutHandler
 In the first class, I should add a method to extract the two attributes
 and put them in an Option structure.
 In the second one, I should add the attributes from the Option structure
 to the SOAP message.
  
 For me, these are only these things to do...
 Am i right??
 Any comment is welcome!
 Thx for your help!
 Fabien
 This message contains information that may be privileged or confidential
 and is the property of the Capgemini Group. It is intended only for the
 person to whom it is addressed. If you are not the intended recipient,
 you are not authorized to read, print, retain, copy, disseminate,
 distribute, or use this message or any part thereof. If you receive this
 message in error, please notify the sender immediately and delete all
 copies of this message.
 




signature.asc
Description: OpenPGP digital signature


[AXIS2] problem addressing

2006-07-31 Thread Fabien Couble



Hi all,

I have a problem to engage the addressing module 
with a stub. 
An exception is raised!!
This is what I have done:

 ConfigurationContext 
configContext =
  
  
ConfigurationContextFactory.createConfigurationContextFromFileSystem
  
  ("C:/Program Files/Apache Software 
Foundation/Tomcat 5.5/webapps/axis2/WEB-INF", 
  
  "C:/Program Files/Apache Software 
Foundation/Tomcat 5.5/webapps/axis2/WEB-INF/conf/axis2.xml");
 WSTransferServiceStub 
stub = new WSTransferServiceStub(configContext, "http://localhost:8080/axis2/services/WSTransferService");

 AnyXmlTypeOutputParamDocument aa 
= stub.Get();

I'd like to know if it is possible ans if yes, the 
way to do this.

Regards 
Fabien

PS: For information, 
this is the exception raised:

Exception in thread "main" 
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass1(Native 
Method)
at java.lang.ClassLoader.defineClass(Unknown 
Source)
at java.security.SecureClassLoader.defineClass(Unknown 
Source)
at java.net.URLClassLoader.defineClass(Unknown 
Source)
at java.net.URLClassLoader.access$100(Unknown 
Source)
at java.net.URLClassLoader$1.run(Unknown 
Source)
at java.security.AccessController.doPrivileged(Native 
Method)
at java.net.URLClassLoader.findClass(Unknown 
Source)
at java.lang.ClassLoader.loadClass(Unknown 
Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown 
Source)
at java.lang.ClassLoader.loadClass(Unknown 
Source)
at java.lang.ClassLoader.loadClass(Unknown 
Source)
at java.lang.ClassLoader.loadClass(Unknown 
Source)
at java.lang.ClassLoader.loadClass(Unknown 
Source)
at java.lang.ClassLoader.loadClassInternal(Unknown 
Source)
at 
org.apache.axis2.handlers.soapmonitor.SOAPMonitorHandler.invoke(SOAPMonitorHandler.java:107)
at 
org.apache.axis2.engine.Phase.invoke(Phase.java:380)
at 
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:362)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:280)
at 
com.example.transfer_wsdl.WSTransferServiceStub.Get(WSTransferServiceStub..java:135)
at 
client.WSTransferClient.main(WSTransferClient.java:37)



This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re: [AXIS2] problem addressing

2006-07-31 Thread Fabien Couble



forgot the previous message!! 
It was the soapmonitor module. it must be engaged 
at the server sid only!!
Sorry for disturbing!


  - Original Message - 
  From: 
  Fabien Couble 
  To: axis-user@ws.apache.org 
  Sent: Monday, July 31, 2006 10:35 
AM
  Subject: [AXIS2] problem addressing
  
  Hi all,
  
  I have a problem to engage the addressing module 
  with a stub. 
  An exception is raised!!
  This is what I have done:
  
   ConfigurationContext 
  configContext =


  ConfigurationContextFactory.createConfigurationContextFromFileSystem

("C:/Program Files/Apache Software 
  Foundation/Tomcat 5.5/webapps/axis2/WEB-INF", 

"C:/Program Files/Apache Software 
  Foundation/Tomcat 
  5.5/webapps/axis2/WEB-INF/conf/axis2.xml");
   
  WSTransferServiceStub stub = new WSTransferServiceStub(configContext, "http://localhost:8080/axis2/services/WSTransferService");
  
   AnyXmlTypeOutputParamDocument 
  aa = stub.Get();
  
  I'd like to know if it is possible ans if yes, 
  the way to do this.
  
  Regards 
  Fabien
  
  PS: For 
  information, this is the exception raised:
  
  Exception in thread "main" 
  java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
  at java.lang.ClassLoader.defineClass1(Native 
  Method)
  at java.lang.ClassLoader.defineClass(Unknown 
  Source)
  at 
  java.security.SecureClassLoader.defineClass(Unknown Source)
  at java.net.URLClassLoader.defineClass(Unknown 
  Source)
  at java.net.URLClassLoader.access$100(Unknown 
  Source)
  at java.net.URLClassLoader$1.run(Unknown 
  Source)
  at java.security.AccessController.doPrivileged(Native 
  Method)
  at java.net.URLClassLoader.findClass(Unknown 
  Source)
  at java.lang.ClassLoader.loadClass(Unknown 
  Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown 
  Source)
  at java.lang.ClassLoader.loadClass(Unknown 
  Source)
  at java.lang.ClassLoader.loadClass(Unknown 
  Source)
  at java.lang.ClassLoader.loadClass(Unknown 
  Source)
  at java.lang.ClassLoader.loadClass(Unknown 
  Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown 
  Source)
  at 
  org.apache.axis2.handlers.soapmonitor.SOAPMonitorHandler.invoke(SOAPMonitorHandler.java:107)
  at 
  org.apache.axis2.engine.Phase.invoke(Phase.java:380)
  at 
  org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
  at 
  org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
  at 
  org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:362)
  at 
  org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:280)
  at 
  com.example.transfer_wsdl.WSTransferServiceStub.Get(WSTransferServiceStub...java:135)
  at 
  client.WSTransferClient.main(WSTransferClient.java:37)
  
  
  


  This message contains 
information that may be privileged or confidential and is the property 
of the Capgemini Group. It is intended only for the person to whom it is 
addressed. If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this 
message or any part thereof. If you receive this message in error, 
please notify the sender immediately and delete all copies of this 
message.

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re: [AXIS2] problem addressing

2006-07-31 Thread Eran Chinthaka
Do you have servletapi jar in the classpath?


Fabien Couble wrote:
 
 forgot the previous message!!
 It was the soapmonitor module. it must be engaged at the server sid only!!
 Sorry for disturbing!
  
 
 - Original Message -
 *From:* Fabien Couble mailto:[EMAIL PROTECTED]
 *To:* axis-user@ws.apache.org mailto:axis-user@ws.apache.org
 *Sent:* Monday, July 31, 2006 10:35 AM
 *Subject:* [AXIS2] problem addressing
 
 Hi all,
  
 I have a problem to engage the addressing module with a stub.
 An exception is raised!!
 This is what I have done:
  
 ConfigurationContext configContext = 

 ConfigurationContextFactory.createConfigurationContextFromFileSystem
 (C:/Program Files/Apache Software Foundation/Tomcat
 5.5/webapps/axis2/WEB-INF,
  C:/Program Files/Apache Software Foundation/Tomcat
 5.5/webapps/axis2/WEB-INF/conf/axis2.xml);
 
 WSTransferServiceStub stub = new
 WSTransferServiceStub(configContext,
 http://localhost:8080/axis2/services/WSTransferService;);
  
 AnyXmlTypeOutputParamDocument aa = stub.Get();
  
 I'd like to know if it is possible ans if yes, the way to do this.
  
 Regards
 Fabien
  
 PS: For information, this is the exception raised:
  
 Exception in thread main java.lang.NoClassDefFoundError:
 javax/servlet/http/HttpServlet
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at
 
 org.apache.axis2.handlers.soapmonitor.SOAPMonitorHandler.invoke(SOAPMonitorHandler.java:107)
 
 at org.apache.axis2.engine.Phase.invoke(Phase.java:380)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)
 at
 
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:362)
 
 at
 
 org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:280)
 
 at
 
 com.example.transfer_wsdl.WSTransferServiceStub.Get(WSTransferServiceStub...java:135)
 
 at client.WSTransferClient.main(WSTransferClient.java:37)
  
 

 This message contains information that may be privileged or
 confidential and is the property of the Capgemini Group. It is
 intended only for the person to whom it is addressed. If you are not
 the intended recipient, you are not authorized to read, print,
 retain, copy, disseminate, distribute, or use this message or any
 part thereof. If you receive this message in error, please notify
 the sender immediately and delete all copies of this message.
 
 This message contains information that may be privileged or confidential
 and is the property of the Capgemini Group. It is intended only for the
 person to whom it is addressed. If you are not the intended recipient,
 you are not authorized to read, print, retain, copy, disseminate,
 distribute, or use this message or any part thereof. If you receive this
 message in error, please notify the sender immediately and delete all
 copies of this message.
 




signature.asc
Description: OpenPGP digital signature


Re: [AXIS 2] WS-addressing module

2006-07-31 Thread Paul Fremantle
FabienWS-Management uses the normal extension point for WS-Addressing, which is the reference parameters. This extension point is ALREADY built in.wsa:ReferenceParameters  wsman:ResourceURI resource URI /wsman:ResourceURI
 wsman:SelectorSet ... /wsman:Selector /wsman:SelectorSet /wsa:ReferenceParametersThese can be set using the following Axis2 code:EndpointReference epr; 
epr.addReferenceParameter(OMElement el);PaulOn 7/31/06, Fabien Couble [EMAIL PROTECTED]
 wrote:






Hi everybody,

I have to adapt the WS-addressing module in order 
to make it WS-Management compliant. That's why I'd like to have your point of 
view.In fact, the WS-Management specification adds two attributes to the 
WS-addressing header.It is the attributes wsman:ResourceURI and 
wsman:SelectorSet.I have analysed the WS-Addressing Module and I'd like to 
know if you agree with me.To add these two attributes I have to modify the 
class org.apache.axis2.client.Options (add the getter/setter).And then 
modify the two classes: org.apache.axis2.handlers.addressing.AddressingInHandler 
and org.apache.axis2.handlers.addressing.AddressingOutHandlerIn the first 
class, I should add a method to extract the two attributes and put them in an 
Option structure.In the second one, I should add the attributes from the 
Option structure to the SOAP message.

For me, these are only these things to do...Am 
i right?? Any comment is welcome!Thx for your 
help!Fabien

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



-- Paul FremantleVP/Technology, WSO2 and OASIS WS-RX TC Co-chairhttp://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]Oxygenating the Web Service Platform, www.wso2.com


Re: [AXIS 2] WS-addressing module

2006-07-31 Thread Fabien Couble



Thx Paul
I didn't know that...

  - Original Message - 
  From: 
  Paul Fremantle 
  
  To: axis-user@ws.apache.org 
  Sent: Monday, July 31, 2006 11:14 
AM
  Subject: Re: [AXIS 2] WS-addressing 
  module
  FabienWS-Management uses the normal extension point for 
  WS-Addressing, which is the reference parameters. This extension point is 
  ALREADY built in.wsa:ReferenceParameters  
  wsman:ResourceURI resource URI /wsman:ResourceURI  
  wsman:SelectorSet ... 
  /wsman:Selector /wsman:SelectorSet 
  /wsa:ReferenceParametersThese can be set using the 
  following Axis2 code:EndpointReference epr; 
  epr.addReferenceParameter(OMElement el);Paul
  On 7/31/06, Fabien 
  Couble [EMAIL PROTECTED] 
   wrote:
  


Hi everybody,

I have to adapt the WS-addressing module in 
order to make it WS-Management compliant. That's why I'd like to have your 
point of view.In fact, the WS-Management specification adds two 
attributes to the WS-addressing header.It is the attributes 
wsman:ResourceURI and wsman:SelectorSet.I have analysed the 
WS-Addressing Module and I'd like to know if you agree with me.To add 
these two attributes I have to modify the class 
org.apache.axis2.client.Options (add the getter/setter).And then modify 
the two classes: org.apache.axis2.handlers.addressing.AddressingInHandler 
and org.apache.axis2.handlers.addressing.AddressingOutHandlerIn the 
first class, I should add a method to extract the two attributes and put 
them in an Option structure.In the second one, I should add the 
attributes from the Option structure to the SOAP message.

For me, these are only these things to 
do...Am i right?? Any comment is welcome!Thx for your 
help!Fabien

  
  
This message contains 
  information that may be privileged or confidential and is the property 
  of the Capgemini Group. It is intended only for the person to whom it 
  is addressed. If you are not the intended recipient, you are not 
  authorized to read, print, retain, copy, disseminate, distribute, or 
  use this message or any part thereof. If you receive this message in 
  error, please notify the sender immediately and delete all copies of 
  this message. 
  -- Paul FremantleVP/Technology, WSO2 and OASIS WS-RX TC 
  Co-chairhttp://bloglines.com/blog/paulfremantle 
  [EMAIL PROTECTED]"Oxygenating the 
  Web Service Platform", www.wso2.com

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



[AXIS2] soap header

2006-07-31 Thread Fabien Couble



Hi all,
I'd like to know if it is possible to have access 
to the SOAP header in the implementation of the service (skeleton). 
Actually, I'd like to get some information. 
If it is not possible, I suppose I have to get this 
information in a module!!?

Thx 
Fabien

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



[Axis2] Problems with wsdl2java

2006-07-31 Thread Carsten Ziegeler
Hi,

I'm trying to generate a java service using wsdl2java from latest axis2
svn, but I'm getting always the following exception.

As far as I understand all this, the element RequestSecurityToken has a
type. I tried to generate client code with axis 1.3 and that worked though.

Any help appreciated.

Thanks
Carsten

Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException
: org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.d
atabinding.UnmatchedTypeException: No type was mapped to the name
RequestSecurityToken with namespace
http://schemas.xmlsoap.org/ws/2005/02/trust
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:235)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axi
s2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the
name Reque
stSecurityToken with namespace http://schemas.xmlsoap.org/ws/2005/02/trust
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:796)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:217)
... 2 more
Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No
type was
 mapped to the name RequestSecurityToken with namespace
http://schemas.xmlsoap.o
rg/ws/2005/02/trust
at
org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingNa
me(TypeMappingAdapter.java:73)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:1855)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:1713)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1454)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmitter
.java:1384)


-- 
Carsten Ziegeler - Open Source Group, SN AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
?xml version=1.0 encoding=UTF-8?
wsdl:definitions
  targetNamespace=http://www.test.net/namespace;
  xmlns:tns=http://www.test.net/namespace;
  xmlns:wst=http://schemas.xmlsoap.org/ws/2005/02/trust;
  xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
  xmlns:xs=http://www.w3.org/2001/XMLSchema;
  xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
  wsdl:types
xs:schema
  xs:import namespace=http://schemas.xmlsoap.org/ws/2005/02/trust;
schemaLocation=http://schemas.xmlsoap.org/ws/2005/02/trust/ws-trust.xsd; /
/xs:schema
  /wsdl:types

wsdl:message name=RequestSecurityTokenRequest
  wsdl:part name=request element=wst:RequestSecurityToken/wsdl:part/wsdl:message
wsdl:message name=RequestSecurityTokenResponse
  wsdl:part name=response
element=wst:RequestSecurityTokenResponse
  /wsdl:part/wsdl:message
wsdl:portType name=SecurityTokenService
wsdl:operation name=RequestSecurityToken
  wsdl:input message=tns:RequestSecurityTokenRequest /
  wsdl:output message=tns:RequestSecurityTokenResponse /
/wsdl:operation
  /wsdl:portType

  wsdl:binding name=AuthenticationBinding type=tns:SecurityTokenService
soap:binding style=document
  transport=http://schemas.xmlsoap.org/soap/http; /
wsdl:operation name=RequestSecurityToken
  soap:operation
soapAction=http://schemas.xmlsoap.org/ws/2005/02/trust/wsdl/RequestSecurityToken; style=document/
  wsdl:input
soap:body use=literal /
  /wsdl:input
  wsdl:output
soap:body use=literal /
  /wsdl:output
/wsdl:operation
  /wsdl:binding
  wsdl:service name=test-auth_0.95.1.0
wsdl:port name=test-auth-service binding=tns:AuthenticationBinding
  soap:address
location=http://localhost:8080/axis2/service/test-auth; /
/wsdl:port
  /wsdl:service
/wsdl:definitions

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

Re: [Axis2] Problems with wsdl2java

2006-07-31 Thread Ajith Ranabahu

Hi,
Have you tried with -d xmlbeans ?

Ajith

On 7/31/06, Carsten Ziegeler [EMAIL PROTECTED] wrote:

Hi,

I'm trying to generate a java service using wsdl2java from latest axis2
svn, but I'm getting always the following exception.

As far as I understand all this, the element RequestSecurityToken has a
type. I tried to generate client code with axis 1.3 and that worked though.

Any help appreciated.

Thanks
Carsten

Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException
: org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.d
atabinding.UnmatchedTypeException: No type was mapped to the name
RequestSecurityToken with namespace
http://schemas.xmlsoap.org/ws/2005/02/trust
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:235)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axi
s2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the
name Reque
stSecurityToken with namespace http://schemas.xmlsoap.org/ws/2005/02/trust
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:796)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:217)
... 2 more
Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No
type was
 mapped to the name RequestSecurityToken with namespace
http://schemas.xmlsoap.o
rg/ws/2005/02/trust
at
org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingNa
me(TypeMappingAdapter.java:73)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:1855)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:1713)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:1454)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEm
itter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmitter
.java:1384)


--
Carsten Ziegeler - Open Source Group, SN AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/


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






--
Ajith Ranabahu

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



Re: [Axis2] Problems with wsdl2java

2006-07-31 Thread Carsten Ziegeler
Ajith Ranabahu schrieb:
 Hi,
 Have you tried with -d xmlbeans ?
 
I tried it with -d none.
With -d adb I get this exception:

Caused by: org.apache.axis2.schema.SchemaCompilationException:
Unsupported content Simple Content Extension !  at
org.apache.axis2.schema.SchemaCompiler.processSimpleContent(SchemaCom
piler.java:979)

With -d xmlbeans I get the following exception:

...
Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
http://schemas.xmlsoap.org/ws/2004/08/addressing/:4:1571: error:
cvc-enumeration-valid:
 string value 'none' is not a valid enumeration value for type of
processContents attribute in xs:wildcard
at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe
nerationUtility.java:235)
... 8 more

Carsten

-- 
Carsten Ziegeler - Open Source Group, SN AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

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



No such operation error

2006-07-31 Thread Richard Jones

Hi Folks,

I am trying to get a test client to connect to my new service using Axis 
at both ends, but have encountered a problem which I can't understand. 
When I make a request, using a data type called SingleGUID, I get an 
AxisFault thus:


Exception in thread main AxisFault
 faultCode: {http://xml.apache.org/axis/}Client
 faultSubcode:
 faultString: No such operation 'SingleGUID'
 faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}hostname:[...deleted...]

No such operation 'SingleGUID'

This error message is accurate enough in so much as there isn't an 
operation called SingleGUID, but I never asked it to perform such an 
operation, AFAICT.  The code that invokes this, and thus causes the 
problem is:


MyServiceWrapper service = getService();
SingleGUID sguid = new SingleGUID(guid);
RequestFileDetailsResponse response = service.requestFileDetails(sguid);

Any ideas what I might have done wrong?

I wanted to take a look at the SOAP message, to see if it looks like 
what I expected it to look like, but SOAPMonitor seems not to want to 
connect to my server (something to do with not supporting a list 
operation).


Any help gratefully received.

Cheers,

--
Richard
---
Richard Jones
Web and Database Technology Specialist
Imperial College London
t: +44 (0)20 759 41815
e: [EMAIL PROTECTED]

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



Re: No such operation error

2006-07-31 Thread Paul Fremantle

Richard

Can you post some code? Its hard to figure this out from the
description. It looks as if its incorrectly using SingleGUID as an
operation name instead of the requestFileDetails which should be the
op name.

Paul

On 7/31/06, Richard Jones [EMAIL PROTECTED] wrote:

Hi Folks,

I am trying to get a test client to connect to my new service using Axis
at both ends, but have encountered a problem which I can't understand.
When I make a request, using a data type called SingleGUID, I get an
AxisFault thus:

Exception in thread main AxisFault
  faultCode: {http://xml.apache.org/axis/}Client
  faultSubcode:
  faultString: No such operation 'SingleGUID'
  faultActor:
  faultNode:
  faultDetail:
 {http://xml.apache.org/axis/}hostname:[...deleted...]

No such operation 'SingleGUID'

This error message is accurate enough in so much as there isn't an
operation called SingleGUID, but I never asked it to perform such an
operation, AFAICT.  The code that invokes this, and thus causes the
problem is:

MyServiceWrapper service = getService();
SingleGUID sguid = new SingleGUID(guid);
RequestFileDetailsResponse response = service.requestFileDetails(sguid);

Any ideas what I might have done wrong?

I wanted to take a look at the SOAP message, to see if it looks like
what I expected it to look like, but SOAPMonitor seems not to want to
connect to my server (something to do with not supporting a list
operation).

Any help gratefully received.

Cheers,

--
Richard
---
Richard Jones
Web and Database Technology Specialist
Imperial College London
t: +44 (0)20 759 41815
e: [EMAIL PROTECTED]

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





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

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



Re: [AXIS2] soap header

2006-07-31 Thread Paul Fremantle
FabienIf you write your own message receiver then you can get this info, as you are passed the MessageContext. From there you can navigate to the headers. In a codegen skeleton I don't think you can (maybe I missed it). You could also modify the generated MessageReceiver to set it onto the object, but you'd have to be careful to not regenerate.
PaulOn 7/31/06, Fabien Couble [EMAIL PROTECTED] wrote:







Hi all,
I'd like to know if it is possible to have access 
to the SOAP header in the implementation of the service (skeleton). 
Actually, I'd like to get some information. 
If it is not possible, I suppose I have to get this 
information in a module!!?

Thx 
Fabien

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



-- Paul FremantleVP/Technology, WSO2 and OASIS WS-RX TC Co-chairhttp://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]Oxygenating the Web Service Platform, www.wso2.com


Re: [AXIS2] soap header

2006-07-31 Thread David Illsley

Fabien,
If you want access to the SOAPHeader, you can get it through the
MessageContext. You can get this by adding the following method to
your skeleton (I think this works for all MessageReceivers):

...
   OperationContext _oc;
   public void setOperationContext(OperationContext oc){
   _oc = oc;
   }
...

and then when invoked get the MessageContext using:

MessageContext mc =_oc.getMessageContext(In);

and then get the SOAPEnvelope from mc.

If you are trying to get a WS-Addressing reference parameter (and are
using WS-Addressing 2005/08) you can just call:
_oc.getMessageContext(In).getTo().getAllReferenceParameters().get(qnameOfReferenceParameter);


David

On 31/07/06, Fabien Couble [EMAIL PROTECTED] wrote:




Hi all,
I'd like to know if it is possible to have access  to the SOAP  header in the 
implementation of the service (skeleton).  Actually, I'd like to get some 
information.
If it is not possible, I suppose I have to get this  information in a module!!?

Thx
Fabien
This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.






--
David Illsley - IBM Web Services Development

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



Re: [AXIS2] soap header

2006-07-31 Thread Eran Chinthaka
Paul Fremantle wrote:
 Fabien
 
 If you write your own message receiver then you can get this info, as
 you are passed the MessageContext. From there you can navigate to the
 headers.

One more addition. If you use any of the in-built message receiver, then
again you will have access to the message context.

-- Chinthaka



signature.asc
Description: OpenPGP digital signature


Re: [AXIS2] soap header

2006-07-31 Thread Eran Chinthaka
David Illsley wrote:
 Fabien,
 If you want access to the SOAPHeader, you can get it through the
 MessageContext. You can get this by adding the following method to
 your skeleton (I think this works for all MessageReceivers):
 

No it doesn't happen for all the message receivers. I think the code gen
templates should be modified to implement the Service interface by the
skeleton and the generated message receiver to invoke the
setOperationContext method.

What do others think about this?

(If agreed I'd like to implement this as an exercise to get in to code
gen module :) )

-- Chinthaka



signature.asc
Description: OpenPGP digital signature


Re: [AXIS2] soap header

2006-07-31 Thread Paul Fremantle

Oh thanks David and Chinthaka I'd missed that.

Paul

On 7/31/06, Eran Chinthaka [EMAIL PROTECTED] wrote:

Paul Fremantle wrote:
 Fabien

 If you write your own message receiver then you can get this info, as
 you are passed the MessageContext. From there you can navigate to the
 headers.

One more addition. If you use any of the in-built message receiver, then
again you will have access to the message context.

-- Chinthaka







--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

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



Re: No such operation error

2006-07-31 Thread Richard Jones

Hi Paul,


Can you post some code? Its hard to figure this out from the
description. It looks as if its incorrectly using SingleGUID as an
operation name instead of the requestFileDetails which should be the
op name.


I am an idiot, sorry.  In the process of pulling the code apart to send 
you the relevant bits I discovered that the server-config.wsdd was being 
pulled from an old copy, and not the most recently generated one!  D'oh.


Thanks very much for your response, though, and thanks also to all you 
folks who are working on Axis.  I'm pretty new to web services, and it's 
making my life a whole lot easier.


All the best,

--
Richard
---
Richard Jones
Web and Database Technology Specialist
Imperial College London
t: +44 (0)20 759 41815
e: [EMAIL PROTECTED]

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



Re: [AXIS2] soap header

2006-07-31 Thread Davanum Srinivas

+1 from me Eran

-- dims

On 7/31/06, Eran Chinthaka [EMAIL PROTECTED] wrote:

David Illsley wrote:
 Fabien,
 If you want access to the SOAPHeader, you can get it through the
 MessageContext. You can get this by adding the following method to
 your skeleton (I think this works for all MessageReceivers):


No it doesn't happen for all the message receivers. I think the code gen
templates should be modified to implement the Service interface by the
skeleton and the generated message receiver to invoke the
setOperationContext method.

What do others think about this?

(If agreed I'd like to implement this as an exercise to get in to code
gen module :) )

-- Chinthaka







--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: [Axis2] Problems with wsdl2java

2006-07-31 Thread Martin Gainty

Carsten-

http://www.filigris.com/products/docflex_xml/xsddoc/examples/html/XMLSchema/schemas/XMLSchema_xsd/complexTypes/wildcard.html

xsd:wildcard
valid values for attribute processContents are either skip, lax, 
strict  ONLY

none is not a valid in this context

Viel Gluck,
Martin Gainty

__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.








From: Carsten Ziegeler [EMAIL PROTECTED]
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Problems with wsdl2java
Date: Mon, 31 Jul 2006 13:34:47 +0200
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by 
bay0-mc4-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Mon, 31 
Jul 2006 04:33:58 -0700

Received: (qmail 40002 invoked by uid 500); 31 Jul 2006 11:33:49 -
Received: (qmail 39990 invoked by uid 99); 31 Jul 2006 11:33:49 -
Received: from [209.237.227.194] (HELO [127.0.0.1]) (209.237.227.194)by 
apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 04:33:49 -0700

X-Message-Info: LsUYwwHHNt1tVplJvUOmFk/UVEnmHIctKTkyJo5uTFU=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
List-Post: mailto:axis-user@ws.apache.org
List-Id: axis-user.ws.apache.org
Delivered-To: mailing list axis-user@ws.apache.org
X-ASF-Spam-Status: No, hits=-0.0 required=10.0tests=SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
References: [EMAIL PROTECTED] 
[EMAIL PROTECTED]

X-Enigmail-Version: 0.94.0.0
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 31 Jul 2006 11:33:58.0192 (UTC) 
FILETIME=[365E6300:01C6B495]


Ajith Ranabahu schrieb:
 Hi,
 Have you tried with -d xmlbeans ?

I tried it with -d none.
With -d adb I get this exception:

Caused by: org.apache.axis2.schema.SchemaCompilationException:
Unsupported content Simple Content Extension !  at
org.apache.axis2.schema.SchemaCompiler.processSimpleContent(SchemaCom
piler.java:979)

With -d xmlbeans I get the following exception:

...
Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
http://schemas.xmlsoap.org/ws/2004/08/addressing/:4:1571: error:
cvc-enumeration-valid:
 string value 'none' is not a valid enumeration value for type of
processContents attribute in xs:wildcard
at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe
nerationUtility.java:235)
... 8 more

Carsten

--
Carsten Ziegeler - Open Source Group, SN AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

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

2006-07-31 Thread Fabien Couble



Hi all,
I have a problem with the addressing 
module!!!
Actually this is the code of my 
client:

 WSTransferServiceStub stub = new 
WSTransferServiceStub(configContext, "http://localhost:8080/axis2/services/WSTransferService");
 ServiceClient sender = 
stub._getServiceClient();EndpointReference 
epr = new EndpointReference("http://localhost:8080/axis2/services/WSTransferService");epr.addReferenceParameter(new 
QName("wsman=http://schemas.xmlsoap.org/ws/2005/06/management","ResourceURI"), 
"http://harddisk" 
);epr.addReferenceParameter(new 
QName("wsman=http://schemas.xmlsoap.org/ws/2005/06/management","SelectorSet"), 
"3" 
);System.out.println("EPR = 
"+ epr.ListReferenceParameters());
Options options = new 
Options();options.setTo(epr);options.setAction("http://schemas.xmlsoap.org/ws/2004/09/transfer/GET");stub._setServiceClient(sender);

The SOAP message generated is the following:
?xml version='1.0' encoding='utf-8'?
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap..org/soap/envelope/" 
xmlns:wsa="http://www.w3.org/2005/08/addressing"
soapenv:Header
  
wsa:Tohttp://localhost:8080/axis2/services/WSTransferService/wsa:To
  
wsa:ReplyTowsa:Addresshttp://www.w3.org/2005/08/addressing/anonymous/wsa:Address/wsa:ReplyTo
  
wsa:MessageIDurn:uuid:BA4666E7C889EB8DB711543552270621/wsa:MessageID
  
wsa:ActionGet/wsa:Action
/soapenv:Header
 soapenv:Body
  Get /
 /soapenv:Body
/soapenv:Envelope

The problem is that my reference parameters are not 
added to the SOAP message.
I have checked into the code and it is due to a 
null reference in the method processToEPR of the addressing module.
Moreover, the Action field is strange because it is 
not http://schemas.xmlsoap.org/ws/2004/09/transfer/GET.

Personnally, I think the problem is located in the 
method _setServiceClient.

First of all, I'd like to know if I'm using the 
correct way to do this!!
Secondly, I'd like to know if you have heard about 
this possible problem.
Any advices is welcome!

Thx a lot
Fabien

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



RE: Evaluating SOAP-Server

2006-07-31 Thread Ted Jones
We have used the Systinet SOAP Server successfully. 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Oliver Hirschi
Sent: Monday, July 31, 2006 5:35 AM
To: axis-user@ws.apache.org
Subject: Evaluating SOAP-Server

Hi,

I'd like to change our application-server from corba to soap. The main
job of this application server is to interact with java-clients to make
database-queries. Additionally there are a few jobs which takes a lot of
time, so they should be done on server, not on client.
In the future its possible, that we devlope also a java-web-client to
the server. This client should then also use the same soap-interfaces of
the server.

Is axis the right soap-server due to my requirements?

By googleing about soap there comes ever Apache Axis. Is this the one
and only soap-server or are there others?

Great thank  kind regards,
--
Oliver Hirschi
http://www.FamilyHirschi.ch



-
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: Evaluating SOAP-Server

2006-07-31 Thread prashanth shivakumar
All the commercial app servers comes with a builtin SOAP server like IBM websphere,BEA weblogic etc...
Also try JBoss..It should have webservices engine as well and its free..
On 7/31/06, Ted Jones [EMAIL PROTECTED] wrote:
We have used the Systinet SOAP Server successfully.-Original Message-From: news [mailto:
[EMAIL PROTECTED]] On Behalf Of Oliver HirschiSent: Monday, July 31, 2006 5:35 AMTo: axis-user@ws.apache.orgSubject: Evaluating SOAP-Server
Hi,I'd like to change our application-server from corba to soap. The mainjob of this application server is to interact with java-clients to makedatabase-queries. Additionally there are a few jobs which takes a lot of
time, so they should be done on server, not on client.In the future its possible, that we devlope also a java-web-client tothe server. This client should then also use the same soap-interfaces ofthe server.
Is axis the right soap-server due to my requirements?By googleing about soap there comes ever Apache Axis. Is this the oneand only soap-server or are there others?Great thank  kind regards,
--Oliver Hirschihttp://www.FamilyHirschi.ch-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: Evaluating SOAP-Server

2006-07-31 Thread Paul Fremantle

Apache Axis2 does exactly what you ask.

1) It supports remote clients
2) It supports asynchronous calls and asynchronous services, so you
can have the server call back when the response is ready (long running
queries)
3) It supports bundling AJAX HTML clients that use the same services
to build web pages.

For an example of the AJAX clients, you can see the Tungsten server
(http://dist.wso2.net/products/tungsten/) which is an SOA application
server based on Axis2. It uses that model for the admin console, and
also the Chad sample shows the AJAX clients too.

Paul

On 7/31/06, Oliver Hirschi [EMAIL PROTECTED] wrote:

Hi,

I'd like to change our application-server from corba to soap. The main
job of this application server is to interact with java-clients to make
database-queries. Additionally there are a few jobs which takes a lot of
time, so they should be done on server, not on client.
In the future its possible, that we devlope also a java-web-client to
the server. This client should then also use the same soap-interfaces of
the
server.

Is axis the right soap-server due to my requirements?

By googleing about soap there comes ever Apache Axis. Is this the one
and only soap-server or are there others?

Great thank  kind regards,
--
Oliver Hirschi
http://www.FamilyHirschi.ch



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





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

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



Re: [AXIS2] ReferenceParameter

2006-07-31 Thread Paul Fremantle
FabienI think maybe its a simple code mistake. You never do sender.setOptions(options) in the code you are showing here.So the options you are setting up arent used.Paul
On 7/31/06, Fabien Couble [EMAIL PROTECTED] wrote:







Hi all,
I have a problem with the addressing 
module!!!
Actually this is the code of my 
client:

 WSTransferServiceStub stub = new 
WSTransferServiceStub(configContext, http://localhost:8080/axis2/services/WSTransferService
);
 ServiceClient sender = 
stub._getServiceClient();EndpointReference 
epr = new EndpointReference(http://localhost:8080/axis2/services/WSTransferService
);epr.addReferenceParameter(new 
QName(wsman=http://schemas.xmlsoap.org/ws/2005/06/management,ResourceURI), 
http://harddisk 
);epr.addReferenceParameter(new 
QName(wsman=http://schemas.xmlsoap.org/ws/2005/06/management,SelectorSet), 
3 
);System.out.println(EPR = 
+ epr.ListReferenceParameters());
Options options = new 
Options();options.setTo(epr);options.setAction(http://schemas.xmlsoap.org/ws/2004/09/transfer/GET
);stub._setServiceClient(sender);

The SOAP message generated is the following:
?xml version='1.0' encoding='utf-8'?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap..org/soap/envelope/ 
xmlns:wsa=http://www.w3.org/2005/08/addressing
soapenv:Header
  
wsa:Tohttp://localhost:8080/axis2/services/WSTransferService/wsa:To

  
wsa:ReplyTowsa:Addresshttp://www.w3.org/2005/08/addressing/anonymous/wsa:Address/wsa:ReplyTo

  
wsa:MessageIDurn:uuid:BA4666E7C889EB8DB711543552270621/wsa:MessageID
  
wsa:ActionGet/wsa:Action
/soapenv:Header
 soapenv:Body
  Get /
 /soapenv:Body
/soapenv:Envelope

The problem is that my reference parameters are not 
added to the SOAP message.
I have checked into the code and it is due to a 
null reference in the method processToEPR of the addressing module.
Moreover, the Action field is strange because it is 
not http://schemas.xmlsoap.org/ws/2004/09/transfer/GET.

Personnally, I think the problem is located in the 
method _setServiceClient.

First of all, I'd like to know if I'm using the 
correct way to do this!!
Secondly, I'd like to know if you have heard about 
this possible problem.
Any advices is welcome!

Thx a lot
Fabien

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



-- Paul FremantleVP/Technology, WSO2 and OASIS WS-RX TC Co-chairhttp://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]Oxygenating the Web Service Platform, www.wso2.com


Re: [AXIS2] soap header

2006-07-31 Thread Paul Fremantle

Chinthaka

Sounds like a great idea.

Paul

On 7/31/06, Eran Chinthaka [EMAIL PROTECTED] wrote:

David Illsley wrote:
 Fabien,
 If you want access to the SOAPHeader, you can get it through the
 MessageContext. You can get this by adding the following method to
 your skeleton (I think this works for all MessageReceivers):


No it doesn't happen for all the message receivers. I think the code gen
templates should be modified to implement the Service interface by the
skeleton and the generated message receiver to invoke the
setOperationContext method.

What do others think about this?

(If agreed I'd like to implement this as an exercise to get in to code
gen module :) )

-- Chinthaka







--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

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



Re: No such operation error

2006-07-31 Thread Paul Fremantle

Richard

If you're just starting out you also might want to take a look at
Axis2 which is significantly (4-5x) faster than Axis1.

Paul

On 7/31/06, Richard Jones [EMAIL PROTECTED] wrote:

Hi Paul,

 Can you post some code? Its hard to figure this out from the
 description. It looks as if its incorrectly using SingleGUID as an
 operation name instead of the requestFileDetails which should be the
 op name.

I am an idiot, sorry.  In the process of pulling the code apart to send
you the relevant bits I discovered that the server-config.wsdd was being
pulled from an old copy, and not the most recently generated one!  D'oh.

Thanks very much for your response, though, and thanks also to all you
folks who are working on Axis.  I'm pretty new to web services, and it's
making my life a whole lot easier.

All the best,

--
Richard
---
Richard Jones
Web and Database Technology Specialist
Imperial College London
t: +44 (0)20 759 41815
e: [EMAIL PROTECTED]

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





--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

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



Re: [AXIS2] ReferenceParameter

2006-07-31 Thread Fabien Couble



Thx Paul!!
You were right...
It wasthis stupid error

Thx a lot



  - Original Message - 
  From: 
  Paul Fremantle 
  
  To: axis-user@ws.apache.org 
  Sent: Monday, July 31, 2006 5:18 PM
  Subject: Re: [AXIS2] 
  ReferenceParameter
  FabienI think maybe its a simple code mistake. 
  You never do sender.setOptions(options) in the code you are showing 
  here.So the options you are setting up arent used.Paul
  On 7/31/06, Fabien 
  Couble [EMAIL PROTECTED] 
  wrote:
  


Hi all,
I have a problem with the addressing 
module!!!
Actually this is the code of my 
client:

 WSTransferServiceStub stub = new 
WSTransferServiceStub(configContext, "http://localhost:8080/axis2/services/WSTransferService 
");
 ServiceClient sender = 
stub._getServiceClient();EndpointReference 
epr = new EndpointReference("http://localhost:8080/axis2/services/WSTransferService 
");epr.addReferenceParameter(new QName("wsman=http://schemas.xmlsoap.org/ws/2005/06/management","ResourceURI"), 
"http://harddisk" 
);epr.addReferenceParameter(new QName("wsman=http://schemas.xmlsoap.org/ws/2005/06/management","SelectorSet"), 
"3" 
);System.out.println("EPR 
= "+ epr.ListReferenceParameters());
Options options = new 
Options();options.setTo(epr);options.setAction("http://schemas.xmlsoap.org/ws/2004/09/transfer/GET 
");stub._setServiceClient(sender);

The SOAP message generated is the following:
?xml version='1.0' encoding='utf-8'?
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap..org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing"
soapenv:Header
  wsa:Tohttp://localhost:8080/axis2/services/WSTransferService/wsa:To 

  
wsa:ReplyTowsa:Addresshttp://www.w3.org/2005/08/addressing/anonymous/wsa:Address/wsa:ReplyTo 

  
wsa:MessageIDurn:uuid:BA4666E7C889EB8DB711543552270621/wsa:MessageID
  
wsa:ActionGet/wsa:Action
/soapenv:Header
 soapenv:Body
  Get /
 /soapenv:Body
/soapenv:Envelope

The problem is that my reference parameters are 
not added to the SOAP message.
I have checked into the code and it is due to a 
null reference in the method processToEPR of the addressing 
module.
Moreover, the Action field is strange because 
it is not http://schemas.xmlsoap.org/ws/2004/09/transfer/GET.

Personnally, I think the problem is located in 
the method _setServiceClient.

First of all, I'd like to know if I'm using the 
correct way to do this!!
Secondly, I'd like to know if you have heard 
about this possible problem.
Any advices is welcome!

Thx a lot
Fabien

  
  
This message contains 
  information that may be privileged or confidential and is the property 
  of the Capgemini Group. It is intended only for the person to whom it 
  is addressed. If you are not the intended recipient, you are not 
  authorized to read, print, retain, copy, disseminate, distribute, or 
  use this message or any part thereof. If you receive this message in 
  error, please notify the sender immediately and delete all copies of 
  this message. 
  -- Paul FremantleVP/Technology, WSO2 and OASIS WS-RX TC 
  Co-chairhttp://bloglines.com/blog/paulfremantle 
  [EMAIL PROTECTED]"Oxygenating the 
  Web Service Platform", www.wso2.com

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re: [AXIS2] ReferenceParameter

2006-07-31 Thread Paul Fremantle
You're welcome its only because I do these errors so often that I'm good at spotting them :-)PaulOn 7/31/06, Fabien Couble 
[EMAIL PROTECTED] wrote:






Thx Paul!!
You were right...
It wasthis stupid error

Thx a lot



  - Original Message - 
  
From: 
  Paul Fremantle 
  
  To: 
axis-user@ws.apache.org 
  Sent: Monday, July 31, 2006 5:18 PM

  Subject: Re: [AXIS2] 
  ReferenceParameter
  FabienI think maybe its a simple code mistake. 
  You never do sender.setOptions(options) in the code you are showing 
  here.So the options you are setting up arent used.Paul
  On 7/31/06, Fabien 
  Couble [EMAIL PROTECTED] 
  wrote:
  


Hi all,
I have a problem with the addressing 
module!!!
Actually this is the code of my 
client:

 WSTransferServiceStub stub = new 
WSTransferServiceStub(configContext, http://localhost:8080/axis2/services/WSTransferService 
);
 ServiceClient sender = 
stub._getServiceClient();EndpointReference 
epr = new EndpointReference(http://localhost:8080/axis2/services/WSTransferService 
);epr.addReferenceParameter(new QName(wsman=http://schemas.xmlsoap.org/ws/2005/06/management
,ResourceURI), 
http://harddisk 
);epr.addReferenceParameter(new QName(wsman=http://schemas.xmlsoap.org/ws/2005/06/management
,SelectorSet), 
3 
);System.out.println(EPR 
= + epr.ListReferenceParameters());
Options options = new 
Options();options.setTo(epr);options.setAction(http://schemas.xmlsoap.org/ws/2004/09/transfer/GET 
);stub._setServiceClient(sender);

The SOAP message generated is the following:
?xml version='1.0' encoding='utf-8'?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap..org/soap/envelope/ xmlns:wsa=
http://www.w3.org/2005/08/addressing
soapenv:Header
  wsa:Tohttp://localhost:8080/axis2/services/WSTransferService
/wsa:To 

  
wsa:ReplyTowsa:Addresshttp://www.w3.org/2005/08/addressing/anonymous
/wsa:Address/wsa:ReplyTo 

  
wsa:MessageIDurn:uuid:BA4666E7C889EB8DB711543552270621/wsa:MessageID
  
wsa:ActionGet/wsa:Action
/soapenv:Header
 soapenv:Body
  Get /
 /soapenv:Body
/soapenv:Envelope

The problem is that my reference parameters are 
not added to the SOAP message.
I have checked into the code and it is due to a 
null reference in the method processToEPR of the addressing 
module.
Moreover, the Action field is strange because 
it is not http://schemas.xmlsoap.org/ws/2004/09/transfer/GET.

Personnally, I think the problem is located in 
the method _setServiceClient.

First of all, I'd like to know if I'm using the 
correct way to do this!!
Secondly, I'd like to know if you have heard 
about this possible problem.
Any advices is welcome!

Thx a lot
Fabien

  
  
This message contains 
  information that may be privileged or confidential and is the property 
  of the Capgemini Group. It is intended only for the person to whom it 
  is addressed. If you are not the intended recipient, you are not 
  authorized to read, print, retain, copy, disseminate, distribute, or 
  use this message or any part thereof. If you receive this message in 
  error, please notify the sender immediately and delete all copies of 
  this message. 
  -- Paul FremantleVP/Technology, WSO2 and OASIS WS-RX TC 
  Co-chairhttp://bloglines.com/blog/paulfremantle 
  [EMAIL PROTECTED]Oxygenating the 
  Web Service Platform, www.wso2.com


This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



-- Paul FremantleVP/Technology, WSO2 and OASIS WS-RX TC Co-chairhttp://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]Oxygenating the Web Service Platform, www.wso2.com


Axis, Tomcat, and MX4J Integration

2006-07-31 Thread Terrence Irving
I am working on a project that uses MX4J, Tomcat 5.5.17, and Axis 1.1. As it is now, basically when Tomcat starts up, my MX4J MBean server code begins running. My goal is to have the client connect to the server code using SOAP, hence the need for Axis. For this project's purposes, deploying the server code as a web service to Axis by using the command line is unacceptable, so I have been considering alternatives. They are:1. Using MX4J's Resolver class (http://mx4j.sourceforge.net/docs/api/mx4j/tools/remote/resolver/soap/Resolver.html), which seems to handle Axis deployment programatically.2. Configuring the web.xml file to specify the server code as a listener class (so that, hypothetically, the server code will run when Tomcat starts up).3. Writing a class that extends AxisServlet, and whose init() method calls super.init() to ensure that Axis actually starts when Tomcat does.I was hoping to hear your opinions on 
 these options or other routes you have taken to use Axis programatically. Thanks. 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail Beta.

Running services in distinct classloaders?

2006-07-31 Thread Guus der Kinderen
Hi,

I'm currently running Axis inside a Jetty container. As far as I can tell,
the soap services I generate use the classloader of that container. Is there
any way I can control which service uses which classloader? Is it even
possible to load services for a given container using a distinct classloader
for each service?

My problem is this:

I'm using a plugin system. I have one plugin that provides the Jetty
container, running the Axis webapplication. Several of my other plugins
create, amongst other things, Axis soap services. Those services use the
classloader of the plugin that provides the Jetty container (because that's
what loaded Axis in the first place). This makes it impossible for those
soap interfaces to interact with the other classes of the plugins, because
those were loaded by their own classloader. 

The two options that I see don't apply: I can't have the classloader of the
container-plugin delegate to the other plugins, because I have more than one
plugin that defines soap services (and I can only have one parent
classloader to delegate to). I can't use the same classloader for all
plugins, either: whenever I replace a plugin with new code, the old code
would remain in the classloader (or I would have to unload the classloader
by reloading all plugins, which is not an attractive option either).

What's the best strategy here? Kind regards,

Guus der Kinderen

Buzzaa Media Group B.V.
Patrijsweg 102
2289 EZ  RIJSWIJK (ZH)
the Netherlands

attachment: winmail.dat-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Axis 1.3 WSDL2Java Overwrites the original files

2006-07-31 Thread Derek
Title: Message



What I 
do is have my ANT script set up to run WSDL2Java to put files in a different 
source tree, 'build/generatedSrc', which has the same structure as my 'src' 
tree.

Then I 
have an ANT target which generates files into the 'generatedSrc' 
tree.

If I 
want to modify a file (a skeleton file, for instance), I copy the file from my 
generatedSrc tree to my src tree, modify it as desired, and then modify my ANT 
script to automatically delete it from the generatedSrc tree after each time 
that WSDL2Java is run.

That 
way, I can be sure that none of my modified files have been overridden. I think 
it's unwise to generate files into a directory where non-generated files sit. 
(Also, keeping them separateallows me tomake sure, for instance, 
that the generated files don't get checked into version 
control.)

When 
compiling, I just include both source tree roots in the 'javac' ANT 
target.

Derek

  
  -Original Message-From: Amit Andhale 
  [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2006 12:34 
  AMTo: axis-user@ws.apache.orgSubject: Axis 1.3 WSDL2Java 
  Overwrites the original files
  Hi All,
  When I run WSDL2Java command, it generates the Stub files, which also 
  overrides my existing files.
  Could you please help me in this context?
  
  Regards
  Amit 


Re: [Axis2] Problems with wsdl2java

2006-07-31 Thread Anne Thomas Manes

Hmm

But I just filtered through both the WS-Trust and WS-Addressing
schemas, and neither includes a value of none in any processContent
attribute.

I wouldn't expect ADB to handle these schemas, but I do expect
XMLBeans to do so. This looks like a bug in XMLBeans.

Anne

On 7/31/06, Martin Gainty [EMAIL PROTECTED] wrote:

Carsten-

http://www.filigris.com/products/docflex_xml/xsddoc/examples/html/XMLSchema/schemas/XMLSchema_xsd/complexTypes/wildcard.html

xsd:wildcard
valid values for attribute processContents are either skip, lax,
strict  ONLY
none is not a valid in this context

Viel Gluck,
Martin Gainty

__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission.






From: Carsten Ziegeler [EMAIL PROTECTED]
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Problems with wsdl2java
Date: Mon, 31 Jul 2006 13:34:47 +0200
MIME-Version: 1.0
Received: from mail.apache.org ([209.237.227.199]) by
bay0-mc4-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Mon, 31
Jul 2006 04:33:58 -0700
Received: (qmail 40002 invoked by uid 500); 31 Jul 2006 11:33:49 -
Received: (qmail 39990 invoked by uid 99); 31 Jul 2006 11:33:49 -
Received: from [209.237.227.194] (HELO [127.0.0.1]) (209.237.227.194)by
apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 04:33:49 -0700
X-Message-Info: LsUYwwHHNt1tVplJvUOmFk/UVEnmHIctKTkyJo5uTFU=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
List-Post: mailto:axis-user@ws.apache.org
List-Id: axis-user.ws.apache.org
Delivered-To: mailing list axis-user@ws.apache.org
X-ASF-Spam-Status: No, hits=-0.0 required=10.0tests=SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
User-Agent: Thunderbird 1.5.0.5 (Windows/20060719)
References: [EMAIL PROTECTED]
[EMAIL PROTECTED]
X-Enigmail-Version: 0.94.0.0
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 31 Jul 2006 11:33:58.0192 (UTC)
FILETIME=[365E6300:01C6B495]

Ajith Ranabahu schrieb:
  Hi,
  Have you tried with -d xmlbeans ?
 
I tried it with -d none.
With -d adb I get this exception:

Caused by: org.apache.axis2.schema.SchemaCompilationException:
Unsupported content Simple Content Extension !  at
org.apache.axis2.schema.SchemaCompiler.processSimpleContent(SchemaCom
piler.java:979)

With -d xmlbeans I get the following exception:

...
Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
http://schemas.xmlsoap.org/ws/2004/08/addressing/:4:1571: error:
cvc-enumeration-valid:
  string value 'none' is not a valid enumeration value for type of
processContents attribute in xs:wildcard
 at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe
nerationUtility.java:235)
 ... 8 more

Carsten

--
Carsten Ziegeler - Open Source Group, SN AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

-
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: stateful web service

2006-07-31 Thread Shaowei Mao
Engaging addressing module fixed the problem. I also need to extract service
group id and set it in soap header for all requests in the same session. It
would be nice to have a option in wsdl2java to generate these codes.

Thanks

-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 30, 2006 10:38 PM
To: axis-user@ws.apache.org
Subject: Re: stateful web service

did you engage addressing module ?
if yes serviceGroupId is inside the was:ReplyTo header.

Shaowei Mao wrote:

 Hi, I implemented a web service by generating stub and skeleton from
 wsdl. Now I want to turn them into stateful. I have been looking
 through mailing list and found that I need to set service scope to
 soapsession and store state in the service group context. I did set
 the service scope to soapsession in the services.xml, but service
 didn't return service group id to the client and each time I invoked
 service, axis2 created a new instance for service implementation
 class. What else do I need to change in order to make it work?

 Shaowei Mao

 aMind Solutions LLC

 Phone: 425-313-3107

 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

 website: www.amindsolutions.com


-- 
Thanks,
Deepal

~Future is Open~ 



-
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] use spring configured bean inside axis2 as implementation class

2006-07-31 Thread Dave Andreasen








I had the same issue. The problem is
related to the Service using its own classloader and Spring wanting to
use the thread context classloader. See http://issues.apache.org/jira/browse/AXIS2-400.




There have been some extensions made to
support Spring in Axis2 in the nightly builds. You try pulling them down
to see if they help you out. Look at JIRA issue http://issues.apache.org/jira/browse/AXIS2-272
for more information



I didnt use the extensions because
they didnt apply to the approach we used for creating our Spring
beans. I did create an Axis module that loads my Spring beans on Axis
startup. 



Hope this helps!



Dave Andreasen











From: Shaowei Mao
[mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 2:59
PM
To: axis-user@ws.apache.org
Subject: [axis2] use spring
configured bean inside axis2 as implementation class





Hi, I am trying to use
spring configured bean by creating spring container inside skeleton generated
by wsdl2java to create my own implementation class for web service, but spring
container BeanFactory can't load my classes packaged inside axis2 aar file. I
think this is related to class loader aixs2 is using for each web service. Does
anyone have sample code to solve this problem?



Shaowei Mao

aMind Solutions LLC

Phone: 425-313-3107

Email: [EMAIL PROTECTED]

website: www.amindsolutions.com










Use of MessageContext setProperty()

2006-07-31 Thread mojo cracker
Hi, Does any one know what is the impact of using MessageContext.setProperty() in a clustered serverenvironment? Would the property get replicated in a manner similar to http session data?Would be nice to hear from some one who knows or has experienced this scenario.
Thanks

http://www.gillansinn.com/contest.php?section=sotwc_songid=99vote=5



-- 
___Play 100s of games for FREE! http://games.mail.com/


SoapEnv

2006-07-31 Thread Bret Kumler
I used the wsdl2java to generate the stubs.

I was wondering how I can get the SOAP header information.

I noticed the stub extends org.apache.axis2.client.Stub, from there I
saw getFactory(SoapVersion), which returns a SOAPFactory, but it's
protected.

Any tips?

Thanks!


This e-mail message and any attachments may contain private, confidential, 
proprietary or privileged material of GoldenGate Software, Inc. that is for the 
sole use of the intended recipient(s) of this e-mail message.  Any review, 
copying or distribution or other use of this e-mail message or any attachments 
hereto by anyone other than the intended recipient(s) is strictly prohibited.  
If you are not the intended recipient(s) of this e-mail message, please contact 
GoldenGate Software, Inc. (415-777-0200) immediately and permanently delete the 
original e-mail message and any copies of this e-mail message and all 
attachments, if any.


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



RE: [axis2] use spring configured bean inside axis2 as implementation class

2006-07-31 Thread Shaowei Mao








Dave, thanks for info. I solved class
loader problem by setting current thread context class loader. This should work
for me now.



Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());











From: Dave Andreasen
[mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 1:11
PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: RE: [axis2] use spring
configured bean inside axis2 as implementation class





I had the same issue. The problem is
related to the Service using its own classloader and Spring wanting to
use the thread context classloader. See http://issues.apache.org/jira/browse/AXIS2-400.




There have been some extensions made to
support Spring in Axis2 in the nightly builds. You try pulling them down
to see if they help you out. Look at JIRA issue http://issues.apache.org/jira/browse/AXIS2-272
for more information



I didnt use the extensions because
they didnt apply to the approach we used for creating our Spring
beans. I did create an Axis module that loads my Spring beans on Axis
startup. 



Hope this helps!



Dave Andreasen











From: Shaowei Mao
[mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 31, 2006 2:59
PM
To: axis-user@ws.apache.org
Subject: [axis2] use spring
configured bean inside axis2 as implementation class





Hi, I am trying to use
spring configured bean by creating spring container inside skeleton generated
by wsdl2java to create my own implementation class for web service, but spring
container BeanFactory can't load my classes packaged inside axis2 aar file. I
think this is related to class loader aixs2 is using for each web service. Does
anyone have sample code to solve this problem?



Shaowei Mao

aMind Solutions LLC

Phone: 425-313-3107

Email: [EMAIL PROTECTED]

website: www.amindsolutions.com










Axis 1.3: Axis Interoperability issue with .net

2006-07-31 Thread Pradeep Reddy
Hi all,I am using Axis 1.3.My webservice is sending back a response that is similar to this for couple of contained objects.iv_contactInfo...iv_contactInfo...However, .NET is expecting 
..ContactInfoiv_contactInfoiv_contactInfoContactInfo..and returns null values for ContactInfo objects.ContactInfo is the 
type of object that client builds after recieving the response.Please note that Contactinfo is returned as part of a larger object PublishedAsset.PublishedAsset  -- ArrayOfAssetContact --AssetContact
 ---ContactInfoHas anyone seen this issue before? Any help would be greatly appreciated.Thanks,Pradeep


Re: Axis 1.3: Axis Interoperability issue with .net

2006-07-31 Thread Pradeep Reddy
Anne, Thanks for your quick reply.I looked up JIRA and found this issue. http://issues.apache.org/jira/browse/AXIS-2267PublishedAsset is a subclass but I don't have any mixed type arrays. So this might not be the bug that you are referring to.
I applied the patch to this issue to the org.apache.axis.encoding.SerializationContext and ran into the same issue again.Was this bug fixed in axis 1.4?Regards,Pradeep
On 7/31/06, Anne Thomas Manes [EMAIL PROTECTED] wrote:
This is a bug in the way Axis 1.3 manages arrays.On 7/31/06, Pradeep Reddy [EMAIL PROTECTED] wrote: Hi all, I am using Axis 1.3. My webservice is sending back a response that is similar to this for couple
 of contained objects.  iv_contactInfo ... iv_contactInfo ... However, .NET is expecting .. ContactInfo iv_contactInfo
  iv_contactInfo ContactInfo .. and returns null values for ContactInfo objects. ContactInfo is the type of object that client builds after recieving the
 response. Please note that Contactinfo is returned as part of a larger object PublishedAsset. PublishedAsset-- ArrayOfAssetContact --AssetContact ---ContactInfo
 Has anyone seen this issue before?Any help would be greatly appreciated. Thanks, Pradeep-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2 1.0] parameters in services.xml

2006-07-31 Thread Nirmit Desai

Hi all,

I am trying to set a parameter in my services.xml file and get it in my
service like this (all document/literal with ADB):

parameter name=memberName locked=falseSampleMember/parameter

And in my service implementation class:

private MessageContext msgCtx=null;

public void init(MessageContext ctx)
{
  msgCtx=ctx;
  System.out.println(init called..context:+ctx);
}

public  com.ibm.sobe.xsd.PingReturn ping(com.ibm.sobe.xsd.PingParam param0)
{
  PingReturn pr=new PingReturn();
  System.out.println(Param:+msgCtx.getParameter(memberName));
  .
}

It throws a NullPointerException when any operation on msgCtx is attempted,
implying that msgCtx is null. I followed the advice give in this article:
http://www.developer.com/open/print.php/10930_3589126_3

Is this the best way to do this? If so, what am I doing wrong? I really
need a way to access statically set parameters in services.xml.

Thanks,

-Nirmit


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



Java client using another web service

2006-07-31 Thread Sergio Stateri Jr

   Hi,

   I need to call a web service that returns a complex type. How can I 
deserialize
this return into a java class ?

   Thanks in advance,

   Sergio Stateri Jr.
   [EMAIL PROTECTED]



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



RE: Java client using another web service

2006-07-31 Thread Bharadwaj, Nandita \(GE Healthcare\)
Which complex type you want to convert to java?

You can use JavaUtils.convert in axis1.4.

Nandita
 

-Original Message-
From: Sergio Stateri Jr [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 01, 2006 9:21 AM
To: axis-user@ws.apache.org
Subject: Java client using another web service


   Hi,

   I need to call a web service that returns a complex type. How can I
deserialize this return into a java class ?

   Thanks in advance,

   Sergio Stateri Jr.
   [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]



READ TIME OUT using NONBlocking client

2006-07-31 Thread nancy








Hello,



 I want to use callback means nonblocking axis client
to call webservice.I am using following code for that.But even then read time
out is occurring.As my process can take several hours in responding,so I need
this kind of thing.Please help





***

SOAPEnvelope resultEnvelope = null;

 Options options = null;

 try {

 options = new Options();

 options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

 

 EndpointReference EPR =
new EndpointReference(webServiceURI);



 log.info(EndpointReference:
+ EPR.getAddress());

 options.setTo(EPR);



 options.setAction(operationName);





 //Callback to handle the response

 Callback callback = new Callback() {

 public void onComplete(AsyncResult result) {

 try {

 StringWriter writer = new
StringWriter();


result.getResponseEnvelope().serialize(XMLOutputFactory.newInstance()


.createXMLStreamWriter(writer));

 writer.flush();


System.out.println(writer.toString());





 } catch (XMLStreamException e) {

 onError(e);

 }

 }



 public void onError(Exception e) {

 e.printStackTrace();

 }

 }; 



 ServiceClient
serviceClient;

 options.setUseSeparateListener(false);



  serviceClient = new
ServiceClient();

 serviceClient.setOptions(options);

 OMElement
params1=getRequestOMElement(operationName, parameterMap,
urn:CallWebService);

 serviceClient.sendReceiveNonblocking(params1,
callback);

 

 while
(!callback.isComplete()) {

  Thread.sleep(1000);

  }

 



 
serviceClient.finalizeInvoke();

 

 } catch (AxisFault ex) {

 ex.printStackTrace();

 

 } catch (InterruptedException ex) { 

 ex.printStackTrace(); 

 }

***



 

With
Warm Regards, 

Nancy Aggarwal