opensubscriber
   Find in this group all groups
 
Unknown more information…

a : axis-dev@ws.apache.org 9 September 2009 • 9:33AM -0400

RE: Errors while compiling classes using axis2 XMLBeans wsdl2Java
by Martin Gainty

REPLY TO AUTHOR
 
REPLY TO GROUP





i am unable to provide a solution without the wsdl

Viel Gluck
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.





From: Nilesh.Vyas@well...
To: axis-dev@ws.a...
Date: Tue, 8 Sep 2009 13:29:24 -0500
Subject: RE: Errors while compiling classes using axis2 XMLBeans wsdl2Java



















Thanks Martin.

Unfortunately I wont be able to share the wsdl but this is what
I am trying to accomplish.



Migrate the existing code from Axis1 to Axis2.  Following are
the steps I am following :



1)    
Take the same wsdl as is working in Axis 1.4

2)    
Run wsdl2Java using Axis2 (XmlBEans).



I am expecting that the Axis framework classes should be
generated without any change in the wsdl. I can then modify the *Skeleton.java
to put in my logic .



Also this change should be transparent to the clients i.e they
can still continue using Axis1.4 eventhough I have deployed my code on Axis2.



The challenge I am facing is that *ServiceMessageReceiverInout.java
(which is an axis2 framework class) does not implement the MessageReceiver.receive(MessageContext)method
implemented.



Could there be a wsdl change required or is there any parameter to
wsdl2Java Argument that can resolve this.



Thanks

Nilesh







From: Martin Gainty
[mailto:mgainty@hotm...]

Sent: Saturday, September 05, 2009 1:18 PM

To: axis-dev@ws.a...

Subject: RE: Errors while compiling classes using axis2 XMLBeans
wsdl2Java







Its
in AXIS2 1.5

grep -S -l xmlNameToJavaIdentifier *.java



.\codegen\src\org\apache\axis2\wsdl\databinding\TypeMappingAdapter.java

.\kernel\src\org\apache\axis2\util\JavaUtils.java



check out the \modules\jaxws-integration for successful implementation of
AbstractInOutSyncMessageReceiver



we could be of greater assistance if you provide wsdl and accompanying xsd

Martin Gainty

______________________________________________

Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité





Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.



Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

















From: Nilesh.Vyas@well...

To: axis-dev@ws.a...

Date: Fri, 4 Sep 2009 19:07:21 -0500

Subject: Errors while compiling classes using axis2 XMLBeans wsdl2Java



HI
All,





I
am using XMLBEans to generate the java classes from wsdl using Axis 2.





While
compilation , it gives me the following  error :-











     [iajc] error at public class
XXXServiceMessageReceiverInOut extends
org.apache.axis2.receivers.AbstractInOutMessageReceiver{





The type XXXMessageReceiverInOut must implement the inherited
abstract method MessageReceiver.receive(MessageContext)





     [iajc] error at if((op.getName() !=
null) && ((methodName =
org.apache.axis2.util.JavaUtils.xmlNameToJavaIdentifier(op.getName().getLocalPart()))
!= null)){





     [iajc]                                                                            
^^^^^^^^^^^^^^





     [iajc] The method
xmlNameToJavaIdentifier(String) is undefined for the type JavaUtils





     [iajc] [error   0]: error
at public class XXXServiceMessageReceiverInOut extends org.apache.axis2.receivers.AbstractInOutMessageReceiver{





     [iajc]            
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^





     [iajc]
XXXServiceMessageReceiverInOut.java:14:0::0 The type
XXXServiceMessageReceiverInOut must implement the inherited abstract method
MessageReceiver.receive(MessageContext)





     [iajc] [error   1]: error
at if((op.getName() != null) && ((methodName =
org.apache.axis2.util.JavaUtils.xmlNameToJavaIdentifier(op.getName().getLocalPart()))
!= null)){





     [iajc]                                                                            
^^^^^^^^^^^^^^





     [iajc]
XXXyServiceMessageReceiverInOut.java:35:0::0 The method
xmlNameToJavaIdentifier(String) is undefined for the type JavaUtils

















I am not sure if I would need to implement that method. Would
that not be done as part of the wsdl2Java generation. I believe only the
*Skeleton.java needs to be modified











Thanks





Nilesh

















Windows
Live: Make it easier for your friends to see what you’re up to on
Facebook. Find out more.


_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.