[Axis2] Question about interactiving with different Axis2 versions
Hi, We use Axis2 for the WebServices and ADB for the code generation. Currently, the Server side uses Axis2 1.1.1 version and Client uses Axis2 1.2 version for code generation (stubs etc). Is this type of set-up okay? or will there be any problem with different versions. Can Client version be different from the Server and vice versa? Which layer (server/client) can have upper version? Thanks. -- View this message in context: http://www.nabble.com/-Axis2--Question-about-interactiving-with-different-Axis2-versions-tp14406286p14406286.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Can WSDL have multiple operations
I'm experiencing trouble having multiple ports (wsdl:portType) with its own binding (wsdl:binding) but only one service tag in a WSDL file. Here is the error, Operation Not found EPR is http://127.0.0.1:7001/abcService and WSA Action = urn:Operation2 Anne Thomas Manes wrote: Although the schema says it's legal, that doesn't mean that products necessarily support it. I would avoid defining multiple services in a single WSDL file. Note that a single service can expose any number of ports, and each port can implement a different binding, exposing different portType operations. WSDL 2.0 imposed (IMO) an unreasonable restriction of one interface (the replacement for portType) per service. Anne On 5/16/07, Glen Mazza [EMAIL PROTECTED] wrote: Ouch. I misread the schema. Thanks/Sorry. Glen Am Donnerstag, den 17.05.2007, 08:10 +1200 schrieb Dennis Sosnoski: Actually it's unbounded: complexType name=definitionsType complexContent extension base=wsdl:documented sequence element ref=wsdl:import minOccurs=0 maxOccurs=unbounded/ element ref=wsdl:types minOccurs=0/ element ref=wsdl:message minOccurs=0 maxOccurs=unbounded/ element ref=wsdl:portType minOccurs=0 maxOccurs=unbounded/ element ref=wsdl:binding minOccurs=0 maxOccurs=unbounded/ element ref=wsdl:service minOccurs=0 maxOccurs=unbounded/ any namespace=##other minOccurs=0 maxOccurs=unbounded annotation documentationto support extensibility elements /documentation /annotation /any /sequence attribute name=targetNamespace type=uriReference use=optional/ attribute name=name type=NMTOKEN use=optional/ /extension /complexContent /complexType So the answer is yes, the WSDL can contain multiple instances of anything except the wsdl:types element. Note that the repeated elements need to be in the correct order, though - the types element, then all the messages, then all the portTypes, etc. I've seen some schema that had repeated elements all jumbled together, and these are invalid. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Axis2 Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Glen Mazza wrote: No, according to the schema[1], the maxOccurs of wsdl:service is 1. Glen [1] http://www.w3.org/TR/wsdl#A4.1 Am Mittwoch, den 16.05.2007, 08:33 -0700 schrieb Anil VVNN: Hi, Can one WSDL file contain multiple operations i.e. multiple wsdl:service tags with each having its own port and binding information. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Axis2--Can-WSDL-have-multiple-operations-tf3765319.html#a10667088 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Can WSDL have multiple operations
Hi, Can one WSDL file contain multiple operations i.e. multiple wsdl:service tags with each having its own port and binding information. Thanks. -- View this message in context: http://www.nabble.com/-Axis2--Can-WSDL-have-multiple-operations-tf3765319.html#a10644233 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] wsdl2java overriding my files
Hi, Now I understand that editing the generated files from wsdl2java is not a good practice with the exception of skeleton code. Because if you change wsdl in future you got to generate java files (wrapper objects) again which will not contain changes I did manually so I got to put that code manually again and its not a good design practice. So, now I have a design issue, I want to implement Strategy pattern in my service piece .Here is the problem description, 1) My service is using ADB framework and I have a requirement for a client to send POJO to service end. So, here I have an interface and implementation class Transporter (Interface) -- ABCTransporter (Implementation class) under package name service So, class names are com.service.Transporter and com.service.ABCTransporter Basically these classes have getters and setters (i.e. POJO) and I want to pass this object (ABCTransporter) from client (Java SOAP client) to server (webservice). Here is the WSDL code, wsdl:types schema element name=MessageRequest complexType sequence element name=transporter nillable=true type=tns:Transporter/ /sequence /complexType /element complexType abstract=true name=Transporter/ complexType name=ABCTransporter complexContent extension base=tns:Transporter sequence element name=StartDate nillable=true type=xsd:string/ element name=EndDate nillable=true type=xsd:string/ /sequence /extension /complexContent /complexType /schema /wsdl:types wsdl:message name=addRequest wsdl:part name=part1 element=tns:MessageRequest/ /wsdl:message 2) Now WSDL2Java creates wrapper objects on these message transport objects which will create under package called webservice i.e. com.webservice.Transporter and com.webservice.ABCTransporter 3) Now at the service end when the request comes in, it will receive com.webservice.ABCTransporter thats what client is sending com.webservice.Transporter transporter = (com.webservice.Transporter) msgRequest.getTransporter(); //The following condition determines if the request is from ABC or BCD if (transporter instanceof com.webservice.ABCTransporter) { The above line is the problem with if condition, how could I get rid off if and else conditions, can I use Strategy pattern but again I have no control over com.webservice.Transporter com.webservice.ABCTransporter classes as these are generated by wsdl2java tool on top of my domain classes com.service.Transporter com.service.ABCTransporter Any ideas. Thanks. - Anil Anil VVNN wrote: Philipp, Are you referring to arg line=-p com.myprj.webservice/ in my ant script. if so, I removed this line but it is still overriding the files under com.myprj.webservice directory. Observed that it is not overriding code of Stub, Skeleton and MessageReceiverInOut but it is overriding wrapper objects of complex types. What I mean is, here is my wsdl file, element name=MessageRequest complexType sequence element name=transporter nillable=true type=tns:Transporter/ /sequence /complexType /element complexType abstract=true name=Transporter/ complexType name=ABCTransporter complexContent extension base=tns:Transporter sequence element name=StartDate nillable=true type=xsd:string/ element name=EndDate nillable=true type=xsd:string/ /sequence /extension /complexContent /complexType Transporter is an Interface and ABCTransporter implementation class in my object model. But I want to modify corresponding wrapper objects (Transporter and ABCTransporter ) created by wsdl2java, so I did but when I run wsdl2java again, it creates new wrapper objects of Transporter and ABCTransporter and I loose my changes. Any ideas how would I do to not to override these wrapper objects. Thanks. Philipp Leitner-2 wrote: you should pass a target package as argument to wsdl2java to prevent it from overriding existing source files. /philipp Anil VVNN schrieb: Hi, Any option to not to override files if they are already present. As I have modified few classes (wrapper objects of complex types) and skeleton code. Here is my call in ant scripts, java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpathref=axis.classpath arg line=-uri ./ws/${src.xml.dir}/${wsdl.file}/ arg line=-ss/ arg line=-sd/ arg line=-ssi/ arg line=-d adb/ arg line=-g/ arg line=-p com.myprj.webservice/ arg line=-o ${basedir}/ws
[Axis2] Best way to handle Axis generated code
Hi, Now I understand that editing the generated files from wsdl2java is not a good practice with the exception of skeleton code. Because if you change wsdl in future you got to generate java files (wrapper objects) again which will not contain changes I did manually so I got to put that code manually again and its not a good design practice. So, now I have a design issue, I want to implement Strategy pattern in my service piece .Here is the problem description, 1) My service is using ADB framework and I have a requirement for a client to send POJO to service end. So, here I have an interface and implementation class Transporter (Interface) -- ABCTransporter (Implementation class) under package name service So, class names are com.service.Transporter and com.service.ABCTransporter Basically these classes have getters and setters (i.e. POJO) and I want to pass this object (ABCTransporter) from client (Java SOAP client) to server (webservice). Here is the WSDL code, wsdl:types schema element name=MessageRequest complexType sequence element name=transporter nillable=true type=tns:Transporter/ /sequence /complexType /element complexType abstract=true name=Transporter/ complexType name=ABCTransporter complexContent extension base=tns:Transporter sequence element name=StartDate nillable=true type=xsd:string/ element name=EndDate nillable=true type=xsd:string/ /sequence /extension /complexContent /complexType /schema /wsdl:types wsdl:message name=addRequest wsdl:part name=part1 element=tns:MessageRequest/ /wsdl:message 2) Now WSDL2Java creates wrapper objects on these message transport objects which will create under package called webservice i.e. com.webservice.Transporter and com.webservice.ABCTransporter 3) Now at the service end when the request comes in, it will receive com.webservice.ABCTransporter thats what client is sending com.webservice.Transporter transporter = (com.webservice.Transporter) msgRequest.getTransporter(); //The following condition determines if the request is from ABC or BCD if (transporter instanceof com.webservice.ABCTransporter) { The above line is the problem with if condition, how could I get rid off if and else conditions, can I use Strategy pattern but again I have no control over com.webservice.Transporter com.webservice.ABCTransporter classes as these are generated by wsdl2java tool on top of my domain classes com.service.Transporter com.service.ABCTransporter Any ideas. Thanks. - Anil -- View this message in context: http://www.nabble.com/-Axis2--Best-way-to-handle-Axis-generated-code-tf3566299.html#a9962237 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] wsdl2java overriding my files
I couldn't able to find the solution yet. Could somebody shed light on this. Thanks. Philipp Leitner-2 wrote: Hmm, I might be wrong, but I think that the package that wsdl2java generates the data objects to depend on the namespace of these objects in the WSDL file ... but I am quite sure that there is some way you can overwrite this with a parameter (can't check right now). Best if you dig into the wsdl2java source and look yourself. /philipp Anil VVNN schrieb: Philipp, Unfortunately, this did not work. This is what I did, arg line=-p com.myprj.webservice.generated/ Actually its generating some of the files (Stub, Skeleton and MessageReceiverInOut) to com.myprj.webservice.generated folder but other wrapper objects of complex types are still writing to com.myprj.webservice folder. Did I miss anything. Thanks. Philipp Leitner-2 wrote: The thing is, you should let these files be generated into a /different/ package :-) Try arg line=-p com.myprj.webservice.generated/ This should do the trick. /philipp Anil VVNN schrieb: Philipp, Are you referring to arg line=-p com.myprj.webservice/ in my ant script. if so, I removed this line but it is still overriding the files under com.myprj.webservice directory. Observed that it is not overriding code of Stub, Skeleton and MessageReceiverInOut but it is overriding wrapper objects of complex types. What I mean is, here is my wsdl file, element name=MessageRequest complexType sequence element name=transporter nillable=true type=tns:Transporter/ /sequence /complexType /element complexType abstract=true name=Transporter/ complexType name=ABCTransporter complexContent extension base=tns:Transporter sequence element name=StartDate nillable=true type=xsd:string/ element name=EndDate nillable=true type=xsd:string/ /sequence /extension /complexContent /complexType Transporter is an Interface and ABCTransporter implementation class in my object model. But I want to modify corresponding wrapper objects (Transporter and ABCTransporter ) created by wsdl2java, so I did but when I run wsdl2java again, it creates new wrapper objects of Transporter and ABCTransporter and I loose my changes. Any ideas how would I do to not to override these wrapper objects. Thanks. Philipp Leitner-2 wrote: you should pass a target package as argument to wsdl2java to prevent it from overriding existing source files. /philipp Anil VVNN schrieb: Hi, Any option to not to override files if they are already present. As I have modified few classes (wrapper objects of complex types) and skeleton code. Here is my call in ant scripts, java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpathref=axis.classpath arg line=-uri ./ws/${src.xml.dir}/${wsdl.file}/ arg line=-ss/ arg line=-sd/ arg line=-ssi/ arg line=-d adb/ arg line=-g/ arg line=-p com.myprj.webservice/ arg line=-o ${basedir}/ws/src/java/ arg line=-S ./ /java Thanks. - 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] -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-overriding-my-files-tf3553485.html#a9936923 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Validation Error with library.wsdl in Example
Hi, I have a question about WSDL2Java code generation tool, I have a requirement to change the generated files i.e. wrapper objects of complex types and skeleton code. But after modifying the generated files, if I run WSD2Java again it is overriding all the changes except for skeleton code. So, any option to not to override files if the files are already present. Thanks. - Anil david2 wrote: Dennis, Bless you my son for the incredible insight you have provided in this example. I had wrestled with the issue of JiBX mapping for non-trivial types for many hours before I stumbled on your example. I am well on my way now. One thing: Although I can get your example to work, and I have been able to duplicate the approach in my own application, I was not able to get either your WSDL or my similarly constructed WSDL to validate in NetBeans. The error generated is: XML validation started. C:/netBeansWorkspace/Sandbox/library.wsdl:26,12 src-resolve: Cannot resolve the name 'tns:BookInformation' to a(n) 'type definition' component. 1 Error(s), 0 Warning(s). XML validation finished. Any idea what might be going wrong, or is it possibly just a NetBeans issue? -David -- View this message in context: http://www.nabble.com/-Axis2--JiBX-unwrapped-with-Fault-example-tf3017807.html#a9940228 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] wsdl2java overriding my files
Thanks. I even tried putting .overwrite file under base dir and listed all the Java files which I want wsdl2java tool to generate those files only but didn't help either. Philipp Leitner-2 wrote: OK, after your last posting I was finally able to understand what you actually want to do :-) -- you have generated stubs with wsdl2java in the past, changed them and are now re-running wsdl2java, and want to somehow preserve your changes. I am quite sure that this is not possible with Axis or Axis2 - simply because the logic necessary behind such a feature would be tremendious. You would have to know what the file looked like originally, do kind of a 'diff' between the original and the changed version, generate the new stubs and (and this is the really hard part) know where to put the changes so that they are 'semantically equivalent'. I daresay this is in general impossible. /philipp Anil VVNN schrieb: I couldn't able to find the solution yet. Could somebody shed light on this. Thanks. Philipp Leitner-2 wrote: Hmm, I might be wrong, but I think that the package that wsdl2java generates the data objects to depend on the namespace of these objects in the WSDL file ... but I am quite sure that there is some way you can overwrite this with a parameter (can't check right now). Best if you dig into the wsdl2java source and look yourself. /philipp Anil VVNN schrieb: Philipp, Unfortunately, this did not work. This is what I did, arg line=-p com.myprj.webservice.generated/ Actually its generating some of the files (Stub, Skeleton and MessageReceiverInOut) to com.myprj.webservice.generated folder but other wrapper objects of complex types are still writing to com.myprj.webservice folder. Did I miss anything. Thanks. Philipp Leitner-2 wrote: The thing is, you should let these files be generated into a /different/ package :-) Try arg line=-p com.myprj.webservice.generated/ This should do the trick. /philipp Anil VVNN schrieb: Philipp, Are you referring to arg line=-p com.myprj.webservice/ in my ant script. if so, I removed this line but it is still overriding the files under com.myprj.webservice directory. Observed that it is not overriding code of Stub, Skeleton and MessageReceiverInOut but it is overriding wrapper objects of complex types. What I mean is, here is my wsdl file, element name=MessageRequest complexType sequence element name=transporter nillable=true type=tns:Transporter/ /sequence /complexType /element complexType abstract=true name=Transporter/ complexType name=ABCTransporter complexContent extension base=tns:Transporter sequence element name=StartDate nillable=true type=xsd:string/ element name=EndDate nillable=true type=xsd:string/ /sequence /extension /complexContent /complexType Transporter is an Interface and ABCTransporter implementation class in my object model. But I want to modify corresponding wrapper objects (Transporter and ABCTransporter ) created by wsdl2java, so I did but when I run wsdl2java again, it creates new wrapper objects of Transporter and ABCTransporter and I loose my changes. Any ideas how would I do to not to override these wrapper objects. Thanks. Philipp Leitner-2 wrote: you should pass a target package as argument to wsdl2java to prevent it from overriding existing source files. /philipp Anil VVNN schrieb: Hi, Any option to not to override files if they are already present. As I have modified few classes (wrapper objects of complex types) and skeleton code. Here is my call in ant scripts, java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpathref=axis.classpath arg line=-uri ./ws/${src.xml.dir}/${wsdl.file}/ arg line=-ss/ arg line=-sd/ arg line=-ssi/ arg line=-d adb/ arg line=-g/ arg line=-p com.myprj.webservice/ arg line=-o ${basedir}/ws/src/java/ arg line=-S ./ /java Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-overriding-my-files
[Axis2] wsdl2java overriding my files
Hi, Any option to not to override files if they are already present. As I have modified few classes (wrapper objects of complex types) and skeleton code. Here is my call in ant scripts, java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpathref=axis.classpath arg line=-uri ./ws/${src.xml.dir}/${wsdl.file}/ arg line=-ss/ arg line=-sd/ arg line=-ssi/ arg line=-d adb/ arg line=-g/ arg line=-p com.myprj.webservice/ arg line=-o ${basedir}/ws/src/java/ arg line=-S ./ /java Thanks. -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-overriding-my-files-tf3553485.html#a9921386 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] wsdl2java overriding my files
Philipp, Are you referring to arg line=-p com.myprj.webservice/ in my ant script. if so, I removed this line but it is still overriding the files under com.myprj.webservice directory. Observed that it is not overriding code of Stub, Skeleton and MessageReceiverInOut but it is overriding wrapper objects of complex types. What I mean is, here is my wsdl file, element name=MessageRequest complexType sequence element name=transporter nillable=true type=tns:Transporter/ /sequence /complexType /element complexType abstract=true name=Transporter/ complexType name=ABCTransporter complexContent extension base=tns:Transporter sequence element name=StartDate nillable=true type=xsd:string/ element name=EndDate nillable=true type=xsd:string/ /sequence /extension /complexContent /complexType Transporter is an Interface and ABCTransporter implementation class in my object model. But I want to modify corresponding wrapper objects (Transporter and ABCTransporter ) created by wsdl2java, so I did but when I run wsdl2java again, it creates new wrapper objects of Transporter and ABCTransporter and I loose my changes. Any ideas how would I do to not to override these wrapper objects. Thanks. Philipp Leitner-2 wrote: you should pass a target package as argument to wsdl2java to prevent it from overriding existing source files. /philipp Anil VVNN schrieb: Hi, Any option to not to override files if they are already present. As I have modified few classes (wrapper objects of complex types) and skeleton code. Here is my call in ant scripts, java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpathref=axis.classpath arg line=-uri ./ws/${src.xml.dir}/${wsdl.file}/ arg line=-ss/ arg line=-sd/ arg line=-ssi/ arg line=-d adb/ arg line=-g/ arg line=-p com.myprj.webservice/ arg line=-o ${basedir}/ws/src/java/ arg line=-S ./ /java Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-overriding-my-files-tf3553485.html#a9921989 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] wsdl2java overriding my files
Philipp, Unfortunately, this did not work. This is what I did, arg line=-p com.myprj.webservice.generated/ Actually its generating some of the files (Stub, Skeleton and MessageReceiverInOut) to com.myprj.webservice.generated folder but other wrapper objects of complex types are still writing to com.myprj.webservice folder. Did I miss anything. Thanks. Philipp Leitner-2 wrote: The thing is, you should let these files be generated into a /different/ package :-) Try arg line=-p com.myprj.webservice.generated/ This should do the trick. /philipp Anil VVNN schrieb: Philipp, Are you referring to arg line=-p com.myprj.webservice/ in my ant script. if so, I removed this line but it is still overriding the files under com.myprj.webservice directory. Observed that it is not overriding code of Stub, Skeleton and MessageReceiverInOut but it is overriding wrapper objects of complex types. What I mean is, here is my wsdl file, element name=MessageRequest complexType sequence element name=transporter nillable=true type=tns:Transporter/ /sequence /complexType /element complexType abstract=true name=Transporter/ complexType name=ABCTransporter complexContent extension base=tns:Transporter sequence element name=StartDate nillable=true type=xsd:string/ element name=EndDate nillable=true type=xsd:string/ /sequence /extension /complexContent /complexType Transporter is an Interface and ABCTransporter implementation class in my object model. But I want to modify corresponding wrapper objects (Transporter and ABCTransporter ) created by wsdl2java, so I did but when I run wsdl2java again, it creates new wrapper objects of Transporter and ABCTransporter and I loose my changes. Any ideas how would I do to not to override these wrapper objects. Thanks. Philipp Leitner-2 wrote: you should pass a target package as argument to wsdl2java to prevent it from overriding existing source files. /philipp Anil VVNN schrieb: Hi, Any option to not to override files if they are already present. As I have modified few classes (wrapper objects of complex types) and skeleton code. Here is my call in ant scripts, java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpathref=axis.classpath arg line=-uri ./ws/${src.xml.dir}/${wsdl.file}/ arg line=-ss/ arg line=-sd/ arg line=-ssi/ arg line=-d adb/ arg line=-g/ arg line=-p com.myprj.webservice/ arg line=-o ${basedir}/ws/src/java/ arg line=-S ./ /java Thanks. - 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] -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-overriding-my-files-tf3553485.html#a9922483 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] wsdl2java Code Generation problem (ADB)
Hi, I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but encountering problem while generating Java classes, could somebody validate the attached wsdl. And here is the error, === org.apache.axis2.wsdl.codegen.CodeGenerationException: apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name setMessage with namespace http://ADBTest/xsd === http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl Thanks. Do you need ADBTestSkeleton code too. -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] wsdl2java Code Generation problem (ADB)
Hi Dims, I think nothing wrong with Axis2 libraries, problem could be with my wsdl file (ADBTest.wsdl attached). Can you please validate. Thanks. - Anil Davanum Srinivas wrote: Please create a JIRA issue and upload the wsdl's. thanks, dims On 3/28/07, Anil VVNN [EMAIL PROTECTED] wrote: Hi, I'm using Axis2 1.1.1, I have written very simple wsdl wsdl but encountering problem while generating Java classes, could somebody validate the attached wsdl. And here is the error, === org.apache.axis2.wsdl.codegen.CodeGenerationException: apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name setMessage with namespace http://ADBTest/xsd === http://www.nabble.com/file/7486/ADBTest.wsdl ADBTest.wsdl Thanks. Do you need ADBTestSkeleton code too. -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9716015 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Axis2--wsdl2java-Code-Generation-problem-%28ADB%29-tf3481013.html#a9717631 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] AXIOM or JBIX
Hi Nilesh, Thanks for detailed response. So, the AddressBookService example (at http://people.apache.org/~thilina/axis2/docs/jibx/jibx-unwrapped-example.html) which uses POJO as a data transfer object, can be implemented using any Data binding framework (JIBX or ADB) to create Java classes. What is JiBX binding definition, is this property only applicable to JiBX framework -EbindingFile /resources/jibxbindingFile.xml And also, can we send the client request using SOAP (instead of writing Java Client) and get the response back in SOAP? In which case, this type of scenario comes in. Thanks, Anil Nilesh Ghorpade wrote: Hi Anil, The Data binding frameworks come into picture when you are generating the Java code artifacts from WSDL. If you observe the wsdl2java command there is a command line argument namely -d with which you can specify the Data binding framework which you want to use. In case u want to use JiBX you would be specifying something like $ wsdl2java -o /outputDir -d jibx -EbindingFile /resources/jibxbindingFile.xml -uri MyWebService.wsdl The above command is just for making things more simpler. Also if there are no schema references in the WSDL or if the WSDL is not having any schema types then the Data binding framework would not be coming into picture. (Others Please correct me if I am wrong.) You would just be deciding which Data binding framework you should be using. AXIS 2 would internally be using the same and generating the Java classes for you. Do not get confused by the approach which you are choosing to build the web service and the data binding framework. The data binding framework is just to map the schema which is defined in the WSDL to Java classes. Thats the only purpose of the data binding framework. Using POJO's for web services means you would be writing a POJO class which would be capturing all the information you need for invoking the particular web service operation. For example if you see the AddressBookService in the AXIS 2 samples you can see that the addEntry method takes in a POJO as its input parameter namely Entry. Regarding your second question I am not able to understand it correctly. Also the flow which you have mentioned from the Client to the Service is correct and it would remain the same for any Web service for that matter i.e. not only AXIS 2 but any web service which is developed using any other framework. Hope that answers your queries. Regards Nilesh - Original Message From: Anil VVNN [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, March 26, 2007 7:56:35 PM Subject: Re: [Axis2] AXIOM or JBIX Hi Niles, Thanks for answering my questions. As I said I'm a beginner, I have few more questions related to previous one. (1) When exactly do we use Binding frameworks (JIBX, ADB or XMLBeans) ? For instance, the examples given in Axis2 website (i.e. StockQuoteService) referring to simple method call, client calling WS for getPrice/update operations but there's no XSD involved, I think this kind of operations can be easily accomplished using POJO option. But I'm confused when to use POJO or anyother Binding framework(JIBX). (2) What is the difference between XML Processing Model and SOAP Processing Model, when do we use these models independently. To my understanding, this is the typical flow of Axis2 services, Client calls--- Stub (generated by wsdl2java) calls[SOAP request]--- Skeleton Interface (generated by wsdl2java) --Business Logic And this SOAP request can be handled using any transport (eg. TCP, JMS etc.) Please correct me if I'm wrong. Thanks. - Anil Nilesh Ghorpade wrote: Hi, As per my understanding AXIS 2 uses AXIOM API's internally for any XML related activities. Hence as you have mentioned that you are confused to choose between POJO, AXIOM, JIBX, ADB or XMLBeans, the AXIOM is an invalid option here. Secondly in AXIS 2 you can create web services using either the Spring Framework or POJO. JiBX, XMLBeans and ADB are more related to the data binding frameworks which AXIS 2 supports. Hence it depends on your schema on which data binding framework you would want to select. As per my knowledge XMLBeans is the best when it comes to complex schemas. This is because XMLBeans implementation can understand all the XSD (i.e. schema) constructs. To answer your second question, the answer is YES. If you want to use the wsdl2java command from AXIS2 for generating your stubs and skeletons you will need the WSDL. Generating a WSDL is also not a diccficult task. YOu can have your SEI defined i.e. the Service Endpoint Interface with all the method signatures which you want to expose as web service operations. On executing the java2wsdl command from AXIS2 you would be able to get the WSDL. And using this WSDL you can generate the remaining artifacts of your web service. WSDL is nothing
Re: [Axis2] AXIOM or JBIX
Hi Niles, Thanks for answering my questions. As I said I'm a beginner, I have few more questions related to previous one. (1) When exactly do we use Binding frameworks (JIBX, ADB or XMLBeans) ? For instance, the examples given in Axis2 website (i.e. StockQuoteService) referring to simple method call, client calling WS for getPrice/update operations but there's no XSD involved, I think this kind of operations can be easily accomplished using POJO option. But I'm confused when to use POJO or anyother Binding framework(JIBX). (2) What is the difference between XML Processing Model and SOAP Processing Model, when do we use these models independently. To my understanding, this is the typical flow of Axis2 services, Client calls--- Stub (generated by wsdl2java) calls[SOAP request]--- Skeleton Interface (generated by wsdl2java) --Business Logic And this SOAP request can be handled using any transport (eg. TCP, JMS etc.) Please correct me if I'm wrong. Thanks. - Anil Nilesh Ghorpade wrote: Hi, As per my understanding AXIS 2 uses AXIOM API's internally for any XML related activities. Hence as you have mentioned that you are confused to choose between POJO, AXIOM, JIBX, ADB or XMLBeans, the AXIOM is an invalid option here. Secondly in AXIS 2 you can create web services using either the Spring Framework or POJO. JiBX, XMLBeans and ADB are more related to the data binding frameworks which AXIS 2 supports. Hence it depends on your schema on which data binding framework you would want to select. As per my knowledge XMLBeans is the best when it comes to complex schemas. This is because XMLBeans implementation can understand all the XSD (i.e. schema) constructs. To answer your second question, the answer is YES. If you want to use the wsdl2java command from AXIS2 for generating your stubs and skeletons you will need the WSDL. Generating a WSDL is also not a diccficult task. YOu can have your SEI defined i.e. the Service Endpoint Interface with all the method signatures which you want to expose as web service operations. On executing the java2wsdl command from AXIS2 you would be able to get the WSDL. And using this WSDL you can generate the remaining artifacts of your web service. WSDL is nothing but an interface and hence even if you have defined an interface in Java, you can generate a WSDL from it. Hope that answers your queries. Regards Niles - Original Message From: Martin Gainty [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, March 26, 2007 3:15:01 AM Subject: Re: [Axis2] AXIOM or JBIX Anil- I found this whitepaper quite informative SAX2 processes fastest..with DOM bein http://www.mail-archive.com/jibx-users@lists.sourceforge.net/msg01044.html FWIW, M-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Anil [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Sunday, March 25, 2007 4:37 PM Subject: [Axis2] AXIOM or JBIX Hi, I'm new to Axis2, what is the criteria to choose between POJO, AXIOM, JIBX, ADB or XMLBeans. How do we decide architecture wise. My second question is, is wsdl file mandatory to create stub and skeleton interfaces or can we use just skeleton file to create wsdl file. Thanks. Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php -- View this message in context: http://www.nabble.com/-Axis2--AXIOM-or-JBIX-tf3463792.html#a9674209 Sent from the Axis - User mailing list archive at Nabble.com.