Re: How to get rid of Unexpected SubElement Exception

2009-01-10 Thread ibrahim demir
Hi Amila;

I will try them but the only way for me is using eclipse codegen plugin because 
the objects on the clinet side are very complex and had a very hard model.So I 
have to genereta code with a tool. Axis2 codegen plugin supports xmlbeans and 
jaxbri I think. But what about the Axiom. Is there an esay way to change my 
code to use axiom or a codegen fr axiom bindigin. 

I have some information about axiom but I use to create a web service 
architecture for our own architecture.

Yours and thanks for all your help.

 Ibrahim DEMIR
CyberSoft Yazilim Muh.
http://www.ibrahimdemir.org

 
   
 





From: Amila Suriarachchi amilasuriarach...@gmail.com
To: axis-user@ws.apache.org
Sent: Saturday, January 10, 2009 8:54:03 AM
Subject: Re: How to get rid of Unexpected SubElement Exception




On Sat, Jan 10, 2009 at 2:37 AM, ibrahim demir ibrahimdem...@yahoo.com wrote:

Hi;

Thanks for the reply. But the order is changeable also. But today 
contract-first approach is hard to obey.
you may try with Xmlbeans data binding or jaxbri data binding. But if your 
actuall response changes so often then better to use the Axiom it self. Then 
you can get only the important parts of the response  in your code.

thanks,
Amila. 

So by the time the response changes. So will it make sense if I change my 
binding? Which binding methodology can easily work when the order of the 
elements change.?

Yours


 Ibrahim DEMIR
CyberSoft Yazilim Muh.
http://www.ibrahimdemir.org

 
   
 





From: don t donny.tjon...@verizonwireless.com
To: axis-user@ws.apache.org
Sent: Friday, January 9, 2009 10:18:57 PM
Subject: Re: How to get rid of Unexpected SubElement Exception



Hi, to make an element optional you can set minOccurs=0 in the WSDL.
However elements in the SOAP body must appear in the same order specified in
the WSDL.


ibrahim demir wrote:
 
 Hi All;
 
 I have already said about my problem but want to repeat. I am using Axis2
 and Axis2 Code Generator for Eclipse to generate my client codes.
 (Choosing ABD binding)
 
 As you know when the response has extre elements or the order is different
 than the wsdl than it causes and Unexpected Subelemenet exception. Is
 there a way to void it. Is it possible to make Axis2 just use the coming
 elemenst that are necceassary for it. Or should I change my binding
 methodology?
 This a very problem for me because the server is not stable about the
 responses and is dynamic for being able to response for diffrent requests.
 
 yours.
 
  Ibrahim DEMIR
 CyberSoft Yazilim Muh.
 http://www.ibrahimdemir.org
 
 
  
 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-rid-of-Unexpected-SubElement-Exception-tp21326520p21379854.html
Sent from the Axis - User mailing list archive at Nabble.com.





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



  

Re: How to get rid of Unexpected SubElement Exception

2009-01-09 Thread don t

Hi, to make an element optional you can set minOccurs=0 in the WSDL.
However elements in the SOAP body must appear in the same order specified in
the WSDL.


ibrahim demir wrote:
 
 Hi All;
 
 I have already said about my problem but want to repeat. I am using Axis2
 and Axis2 Code Generator for Eclipse to generate my client codes.
 (Choosing ABD binding)
 
 As you know when the response has extre elements or the order is different
 than the wsdl than it causes and Unexpected Subelemenet exception. Is
 there a way to void it. Is it possible to make Axis2 just use the coming
 elemenst that are necceassary for it. Or should I change my binding
 methodology?
 This a very problem for me because the server is not stable about the
 responses and is dynamic for being able to response for diffrent requests.
 
 yours.
 
  Ibrahim DEMIR
 CyberSoft Yazilim Muh.
 http://www.ibrahimdemir.org
 
 
   
 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-rid-of-Unexpected-SubElement-Exception-tp21326520p21379854.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: How to get rid of Unexpected SubElement Exception

2009-01-09 Thread ibrahim demir
Hi;

Thanks for the reply. But the order is changeable also. But today 
contract-first approach is hard to obey.So by the time the response changes. So 
will it make sense if I change my binding? Which binding methodology can easily 
work when the order of the elements change.?

Yours

 Ibrahim DEMIR
CyberSoft Yazilim Muh.
http://www.ibrahimdemir.org

 
   
 





From: don t donny.tjon...@verizonwireless.com
To: axis-user@ws.apache.org
Sent: Friday, January 9, 2009 10:18:57 PM
Subject: Re: How to get rid of Unexpected SubElement Exception


Hi, to make an element optional you can set minOccurs=0 in the WSDL.
However elements in the SOAP body must appear in the same order specified in
the WSDL.


ibrahim demir wrote:
 
 Hi All;
 
 I have already said about my problem but want to repeat. I am using Axis2
 and Axis2 Code Generator for Eclipse to generate my client codes.
 (Choosing ABD binding)
 
 As you know when the response has extre elements or the order is different
 than the wsdl than it causes and Unexpected Subelemenet exception. Is
 there a way to void it. Is it possible to make Axis2 just use the coming
 elemenst that are necceassary for it. Or should I change my binding
 methodology?
 This a very problem for me because the server is not stable about the
 responses and is dynamic for being able to response for diffrent requests.
 
 yours.
 
  Ibrahim DEMIR
 CyberSoft Yazilim Muh.
 http://www.ibrahimdemir.org
 
 
  
 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-rid-of-Unexpected-SubElement-Exception-tp21326520p21379854.html
Sent from the Axis - User mailing list archive at Nabble.com.


  

Re: How to get rid of Unexpected SubElement Exception

2009-01-09 Thread don t

You can try XMLBeans or working with the AXIOM model.


ibrahim demir wrote:
 
 Hi;
 
 Thanks for the reply. But the order is changeable also. But today
 contract-first approach is hard to obey.So by the time the response
 changes. So will it make sense if I change my binding? Which binding
 methodology can easily work when the order of the elements change.?
 
 Yours
 
  Ibrahim DEMIR
 CyberSoft Yazilim Muh.
 http://www.ibrahimdemir.org
 
  

  
 
 
 
 
 
 From: don t donny.tjon...@verizonwireless.com
 To: axis-user@ws.apache.org
 Sent: Friday, January 9, 2009 10:18:57 PM
 Subject: Re: How to get rid of Unexpected SubElement Exception
 
 
 Hi, to make an element optional you can set minOccurs=0 in the WSDL.
 However elements in the SOAP body must appear in the same order specified
 in
 the WSDL.
 
 
 ibrahim demir wrote:
 
 Hi All;
 
 I have already said about my problem but want to repeat. I am using Axis2
 and Axis2 Code Generator for Eclipse to generate my client codes.
 (Choosing ABD binding)
 
 As you know when the response has extre elements or the order is
 different
 than the wsdl than it causes and Unexpected Subelemenet exception. Is
 there a way to void it. Is it possible to make Axis2 just use the coming
 elemenst that are necceassary for it. Or should I change my binding
 methodology?
 This a very problem for me because the server is not stable about the
 responses and is dynamic for being able to response for diffrent
 requests.
 
 yours.
 
  Ibrahim DEMIR
 CyberSoft Yazilim Muh.
 http://www.ibrahimdemir.org
 
 
  
 
 
 -- 
 View this message in context:
 http://www.nabble.com/How-to-get-rid-of-Unexpected-SubElement-Exception-tp21326520p21379854.html
 Sent from the Axis - User mailing list archive at Nabble.com.
 
 
   
 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-rid-of-Unexpected-SubElement-Exception-tp21326520p21381872.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: How to get rid of Unexpected SubElement Exception

2009-01-09 Thread Amila Suriarachchi
On Sat, Jan 10, 2009 at 2:37 AM, ibrahim demir ibrahimdem...@yahoo.comwrote:

 Hi;

 Thanks for the reply. But the order is changeable also. But today
 contract-first approach is hard to obey.

you may try with Xmlbeans data binding or jaxbri data binding. But if your
actuall response changes so often then better to use the Axiom it self. Then
you can get only the important parts of the response  in your code.

thanks,
Amila.

 So by the time the response changes. So will it make sense if I change my
 binding? Which binding methodology can easily work when the order of the
 elements change.?

 Yours

 Ibrahim DEMIR
 CyberSoft Yazilim Muh.
 http://www.ibrahimdemir.org





 --
 *From:* don t donny.tjon...@verizonwireless.com
 *To:* axis-user@ws.apache.org
 *Sent:* Friday, January 9, 2009 10:18:57 PM
 *Subject:* Re: How to get rid of Unexpected SubElement Exception


 Hi, to make an element optional you can set minOccurs=0 in the WSDL.
 However elements in the SOAP body must appear in the same order specified
 in
 the WSDL.


 ibrahim demir wrote:
 
  Hi All;
 
  I have already said about my problem but want to repeat. I am using Axis2
  and Axis2 Code Generator for Eclipse to generate my client codes.
  (Choosing ABD binding)
 
  As you know when the response has extre elements or the order is
 different
  than the wsdl than it causes and Unexpected Subelemenet exception. Is
  there a way to void it. Is it possible to make Axis2 just use the coming
  elemenst that are necceassary for it. Or should I change my binding
  methodology?
  This a very problem for me because the server is not stable about the
  responses and is dynamic for being able to response for diffrent
 requests.
 
  yours.
 
   Ibrahim DEMIR
  CyberSoft Yazilim Muh.
  http://www.ibrahimdemir.org
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-get-rid-of-Unexpected-SubElement-Exception-tp21326520p21379854.html
 Sent from the Axis - User mailing list archive at Nabble.com.





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