JiBX

2007-02-09 Thread informaticu007-pfc
Hi,

I'm stuck with the JiBX code generation thing for wrapped model of Web Services 
and I would like to know where I can find an example about that.

And also another question:

I'm trying to develop a web service that requires sessions in order to do 
diferent operations and I need to keep different session IDs and don't know if 
I can do it in axis2 or I have to manage with other application. I don't know 
if axis2 creates a thread each time a service is called and so I can't keep any 
session information or there is another way for keeping this information. Can 
someone give a reference with information on this and an example on the session 
management if it's possible??


Thanks






-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

RE: Problems with wsdl2java and JiBX

2007-02-02 Thread informaticu007-pfc

I reported a JIRA about this problem. AXIS2-2088
 

[EMAIL PROTECTED] escribió: Hi:

I'm having a problem with wsdl2java code generation. I'm trying JiBX 
databinding in wrapped mode. I've got my objects defined, my wsdl definition of 
the service and  I made my binding definition manually (I attached all the 
files). I also made an ant task, following the steps of the jibx tutorial.

This is the problem:

When I use the ant task for compiling the binding definition with the 
build.xml, everything seems to go alright. After that, I would have to type 
some code for running the service and that's why I decided to use wsdl2java. 
When I use wsdl2java for code generation I get this error:

Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: No mapping defined for element {http://login/types
}WebLoginElement
at  
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:224)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: No mapping defined for element {http://lo
gin/types}WebLoginElement
at org.apache.axis2.jibx.CodeGenerationUtility.mapQName(CodeGenerationUt
ility.java:928)
at org.apache.axis2.jibx.CodeGenerationUtility.mapMessage(CodeGeneration
Utility.java:914)
at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtil
ity.java:384)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExte
nsion.java:74)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:177)
... 2 more

... 2 more




I use the command like this:

wsdl2java -uri LoginServiceJiBX.wsdl -o build -ss -sd -g -d jibx -ssi 
-Ebindingfile binding.xml -ns2p 
http://login=login,http://login/types=login.types

I tried it in many ways, defining all the mappings  between namespaces and 
packages and without them... I think the problem is with that mapping but I 
don't know if I'm doing something wrong or it's tool's problem.

I made it also in unwrapped mode and there was no problem with that.

And also another question: is there any way for passing the -Ebindingfile in 
the ant task of wsdl2java? because I didn't find it.

I would appreciate any help on this.

Thanks and regards:

Jorge


-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
  


  
  


  


















 
  
  
  
   













-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Problems with wsdl2java and JiBX

2007-01-31 Thread informaticu007-pfc
Hi:

I'm having a problem with wsdl2java code generation. I'm trying JiBX 
databinding in wrapped mode. I've got my objects defined, my wsdl definition of 
the service and  I made my binding definition manually (I attached all the 
files). I also made an ant task, following the steps of the jibx tutorial.

This is the problem:

When I use the ant task for compiling the binding definition with the 
build.xml, everything seems to go alright. After that, I would have to type 
some code for running the service and that's why I decided to use wsdl2java. 
When I use wsdl2java for code generation I get this error:

Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: No mapping defined for element {http://login/types
}WebLoginElement
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:224)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: No mapping defined for element {http://lo
gin/types}WebLoginElement
at org.apache.axis2.jibx.CodeGenerationUtility.mapQName(CodeGenerationUt
ility.java:928)
at org.apache.axis2.jibx.CodeGenerationUtility.mapMessage(CodeGeneration
Utility.java:914)
at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtil
ity.java:384)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExte
nsion.java:74)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:177)
... 2 more

... 2 more




I use the command like this:

wsdl2java -uri LoginServiceJiBX.wsdl -o build -ss -sd -g -d jibx -ssi 
-Ebindingfile binding.xml -ns2p 
http://login=login,http://login/types=login.types

I tried it in many ways, defining all the mappings between namespaces and 
packages and without them... I think the problem is with that mapping but I 
don't know if I'm doing something wrong or it's tool's problem.

I made it also in unwrapped mode and there was no problem with that.

And also another question: is there any way for passing the -Ebindingfile in 
the ant task of wsdl2java? because I didn't find it.

I would appreciate any help on this.

Thanks and regards:

Jorge


-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

LoginServiceJiBX.wsdl
Description: 1026571261-LoginServiceJiBX.wsdl

  


  
  


  


ReturnWebLoginElement.java
Description: 117642524-ReturnWebLoginElement.java


WebLoginElement.java
Description: 4079661065-WebLoginElement.java












   	 
	 
	 
		
	  



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

Re: Axis2 Eclipse code generator plugin for jibx

2007-01-29 Thread informaticu007-pfc
I Sent a JIRA with the description of the steps I followed (AXIS2-2058)

Regards 

Jorge

[EMAIL PROTECTED] escribió: Hi Lahiru:

I don't know if it's normal but I've just realized that when I built the plugin 
after uncommenting the databinding jibx and built again the jar file, its size 
went from 76 kb to 98 kb. I think I'm doing something wrong but I don't know 
what.

Thanks:

   Jorge

Lahiru Sandakith <[EMAIL PROTECTED]> escribió: Hi, 
we have experienced random behavior, when we  codegen using jibx. 
As you say, if you have uncommented the databinding jibx, copy the libs, make 
the changes in the plugins.xml and build the plugin after that replace the 
existing plugin at eclipse plugins directory, it should work.  

If the eclipse workspace had inconsistencies because of the plugin change that 
you did manually you can try deleting the codegen plugin dir located at 
/.metadata/plugins/  but this is equivalent to eclipse 
restart. 

Thanks 

Lahiru Sandakith

On 1/27/07, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:Hi: 

I'd already done what you've suggested and it didn't work. 
I've added the axis2-jibx, jibx-run and jibx-bind to the 
/plugins/Axis2_Codegen_Wizard_1.2.1/lib directory and then added this entries 
to the /plugins/Axis2_Codegen_Wizard_1.2.1/plugin.xml:


 
  
  
 
   
  
 
  


but the problem is the same. Thankyou anyway for trying.
Anyone else can help  me??
Thankyou

Ajith Ranabahu <[EMAIL PROTECTED]> escribió:  Hi,
I guess this is something that should be recorded as a Jira since if
the code generator listed jibx as an option the jibx jars need to be
in the distribution.
In the meanwhile  please try the following and see whether it works. 

1. copy the jar files to the
/plugins/Axis2_Codegen_Wizard_1.2.1/lib directory

2. Update the plugin.xml file


I. find the following entries
   ..
   
 
  
  
 
  
  ..
 These should be inside the runtime element.

   II. Add jibx jar entries similar to this

  
 
  
.


3. Restart eclipse.

HTH
Ajith

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


[EMAIL PROTECTED]  escribió:
  Hi there!

I'm new to this whole thing of axis2 and I would be grateful if someone could 
help me with this: 

I would like to use the eclipse code generator plugin for generating code using 
jibx databinding. I watched out in the source  code that comes with the plugin 
and I found that the option is available in the databinding combo box, but was 
disabled and I  uncommented it. Then, when I used that option I got a message: 

"an error occurred while completing process -java.lang.InterruptedException:
java.lang.RuntimeException: JiBX framework jars not in classpath" 

I tried copying the jars files axis2-jibx, jibx-run and jibx-bind from the 
axis2 lib directory and put into the plugin lib directory and even taking the 
class files from the axis2-jibx and updating the axis2-1.1.jar  file from the 
plugin lib directory with those classes but the problem was still the same. 

Could anyone help me, please?

Thank you in advance


-

 LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
 http://es.voice.yahoo.com 

-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
 http://es.voice.yahoo.com 





-- 
Regards
Lahiru Sandakith 


-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com


-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Re: Axis2 Eclipse code generator plugin for jibx

2007-01-27 Thread informaticu007-pfc
Hi Lahiru:

I don't know if it's normal but I've just realized that when I built the plugin 
after uncommenting the databinding jibx and built again the jar file, its size 
went from 76 kb to 98 kb. I think I'm doing something wrong but I don't know 
what.

Thanks:

   Jorge

Lahiru Sandakith <[EMAIL PROTECTED]> escribió: Hi, 
we have experienced random behavior, when we  codegen using jibx. 
As you say, if you have uncommented the databinding jibx, copy the libs, make 
the changes in the plugins.xml and build the plugin after that replace the 
existing plugin at eclipse plugins directory, it should work.  

If the eclipse workspace had inconsistencies because of the plugin change that 
you did manually you can try deleting the codegen plugin dir located at 
/.metadata/plugins/ but this is equivalent to eclipse 
restart. 

Thanks 

Lahiru Sandakith

On 1/27/07, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:Hi: 

I'd already done what you've suggested and it didn't work. 
I've added the axis2-jibx, jibx-run and jibx-bind to the 
/plugins/Axis2_Codegen_Wizard_1.2.1/lib directory and then added this entries 
to the /plugins/Axis2_Codegen_Wizard_1.2.1/plugin.xml:


 
  
  
 
   
  
 
  


but the problem is the same. Thankyou anyway for trying.
Anyone else can help  me??
Thankyou

Ajith Ranabahu <[EMAIL PROTECTED]> escribió:  Hi,
I guess this is something that should be recorded as a Jira since if
the code generator listed jibx as an option the jibx jars need to be
in the distribution.
In the meanwhile please try the following and see whether it works. 

1. copy the jar files to the
/plugins/Axis2_Codegen_Wizard_1.2.1/lib directory

2. Update the plugin.xml file


I. find the following entries
   ..
   
 
  
  
 
  
  ..
 These should be inside the runtime element.

   II. Add jibx jar entries similar to this

  
 
  
.


3. Restart eclipse.

HTH
Ajith

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


[EMAIL PROTECTED]  escribió:
  Hi there!

I'm new to this whole thing of axis2 and I would be grateful if someone could 
help me with this: 

I would like to use the eclipse code generator plugin for generating code using 
jibx databinding. I watched out in the source code that comes with the plugin 
and I found that the option is available in the databinding combo box, but was 
disabled and I  uncommented it. Then, when I used that option I got a message: 

"an error occurred while completing process -java.lang.InterruptedException:
java.lang.RuntimeException: JiBX framework jars not in classpath" 

I tried copying the jars files axis2-jibx, jibx-run and jibx-bind from the 
axis2 lib directory and put into the plugin lib directory and even taking the 
class files from the axis2-jibx and updating the axis2-1.1.jar  file from the 
plugin lib directory with those classes but the problem was still the same. 

Could anyone help me, please?

Thank you in advance


-

 LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
 http://es.voice.yahoo.com 

-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
 http://es.voice.yahoo.com 





-- 
Regards
Lahiru Sandakith 


-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Re: Axis2 Eclipse code generator plugin for jibx

2007-01-27 Thread informaticu007-pfc
Hi: 

I'd already done what you've suggested and it didn't work.
I've added the axis2-jibx, jibx-run and jibx-bind to the 
/plugins/Axis2_Codegen_Wizard_1.2.1/lib directory and then added this entries 
to the /plugins/Axis2_Codegen_Wizard_1.2.1/plugin.xml:


 
  
  
 
  
  
 
  


but the problem is the same. Thankyou anyway for trying.
Anyone else can help me??
Thankyou

Ajith Ranabahu <[EMAIL PROTECTED]> escribió: Hi,
I guess this is something that should be recorded as a Jira since if
the code generator listed jibx as an option the jibx jars need to be
in the distribution.
In the meanwhile please try the following and see whether it works.

1. copy the jar files to the
/plugins/Axis2_Codegen_Wizard_1.2.1/lib directory

2. Update the plugin.xml file

I. find the following entries
   ..
   

 
  
  

 
  
  ..
 These should be inside the runtime element.

   II. Add jibx jar entries similar to this

  

 
  
.

3. Restart eclipse.

HTH
Ajith

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


[EMAIL PROTECTED] escribió:
  Hi there!

I'm new to this whole thing of axis2 and I would be grateful if someone could 
help me with this:

I would like to use the eclipse code generator plugin for generating code using 
jibx databinding. I watched out in the source code that comes with the plugin 
and I found that the option is available in the databinding combo box, but was 
disabled and I uncommented it. Then, when I used that option I got a message: 

"an error occurred while completing process -java.lang.InterruptedException:
java.lang.RuntimeException: JiBX framework jars not in classpath"

I tried copying the jars files axis2-jibx, jibx-run and jibx-bind from the 
axis2 lib directory and put into the plugin lib directory and even taking the 
class files from the axis2-jibx and updating the axis2-1.1.jar file from the 
plugin lib directory with those classes but the problem was still the same. 

Could anyone help me, please?

Thank you in advance


-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com 

-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Axis2 Eclipse code generator plugin for jibx

2007-01-26 Thread informaticu007-pfc
Hi there!

I'm new to this whole thing of axis2 and I would be grateful if someone could 
help me with this:

I would like to use the eclipse code generator plugin for generating code using 
jibx databinding. I watched out in the source code that comes with the plugin 
and I found that the option is available in the databinding combo box, but was 
disabled and I uncommented it. Then, when I used that option I got a message: 

"an error occurred while completing process -java.lang.InterruptedException:
java.lang.RuntimeException: JiBX framework jars not in classpath"

I tried copying the jars files axis2-jibx, jibx-run and jibx-bind from the 
axis2 lib directory and put into the plugin lib directory and even taking the 
class files from the axis2-jibx and updating the axis2-1.1.jar file from the 
plugin lib directory with those classes but the problem was still the same. 

Could anyone help me, please?

Thank you in advance


-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com