axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: [PATCH] Fix for Bug24689
Date Mon, 17 Nov 2003 14:29:01 GMT
Srinath,
Thanks for forwarding Dimuthu's patch. 

Regarding JAXME work. Please go ahead and commit code to DOM_TO_JAXME whenever you have an
update.
Just let us all know when you get "ant clean all-tests" to pass with that branch. Yes, we
will
have to port all the changes in HEAD back to DOM_TO_JAXME when you are at a "good" point.
Also see
the latest testcase test/wsdl/uddiv2/uddiv2.wsdl, this is likely to break JAXME in many ways.
(http://nagoya.apache.org/eyebrowse/ReadMsg?listName=jaxme-dev@ws.apache.org&msgNo=325)

Thanks,
dims

--- Srinath Perera <hemapani@vijayaba.cse.mrt.ac.lk> wrote:
> hi dims;
> 
> she is gone;yet this is the patch I belive.(attached).:)
> 
> BTW
> 
> We have remove all the dom schema parsing stuff and the code run's
> purely on the Jaxme. 
> 1) the gernarated code does compile (expect 4 few wsdl's under the
> discussion for fix)
> 2) I am yet to do a diff with axis1.1 genarated code.
> 
> there are lot of changes done ..unused classes removed
> 
> do you mind I commit the code to the DOM_TO_JAXME branch.  (am asking as
> there are lot of changes). 
> 
> I keep the method signatures intact as much as possible but some methods
> and classes does vanished when jaxme comes in.
> 
> Srinath
> 
> 
>  
> On Mon, 2003-11-17 at 18:58, Davanum Srinivas wrote:
> > Dimuthu,
> > 
> > The patch.zip has no files :(
> > 
> > -- dims
> > 
> > --- Dimuthu Leelarathne <muthulee@opensource.lk> wrote:
> > > hi dims,
> > > 
> > > This is the fix for the bug 24689 - last Friday's posting. I did not
> > > commit it straight away. Just thought that it would be better to submit as
> > > a patch :-).
> > > 
> > > Thanks,
> > > Dimuthu.
> > > -- 
> > > Lanka Software Foundation - Proud to be a part of it.
> > > http://www.opensource.lk
> > > 
> > > 
> > > ----- Original Message -----
> > > From: "Davanum Srinivas" <dims@yahoo.com>
> > > To: <axis-dev@ws.apache.org>
> > > Cc: <hemapani@vijayaba.cse.mrt.ac.lk>
> > > Sent: Friday, November 14, 2003 3:08 AM
> > > Subject: ATTN: Srinath and Team (Re: DO NOT REPLY [Bug 24689] New: - UDDI
> > > v2 inquiry.wsdl / SimpleContent / AddressLine)
> > > 
> > > 
> > > > Srinath,
> > > >
> > > > Can you please help me with this one?
> > > >
> > > > Thanks,
> > > > dims
> > > >
> > > > --- bugzilla@apache.org wrote:
> > > > > DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> > > > > RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> > > > > <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24689>.
> > > > > ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> > > > > INSERTED IN THE BUG DATABASE.
> > > > >
> > > > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24689
> > > > >
> > > > > UDDI v2 inquiry.wsdl / SimpleContent / AddressLine
> > > > >
> > > > >            Summary: UDDI v2 inquiry.wsdl / SimpleContent / AddressLine
> > > > >            Product: Axis
> > > > >            Version: current (nightly)
> > > > >           Platform: Other
> > > > >         OS/Version: Other
> > > > >             Status: NEW
> > > > >           Severity: Normal
> > > > >           Priority: Other
> > > > >          Component: WSDL processing
> > > > >         AssignedTo: axis-dev@ws.apache.org
> > > > >         ReportedBy: dims@yahoo.com
> > > > >
> > > > >
> > > > > Running WSDL2Java against the following WSDL results in uncompilable
> > > code:
> > > > >
> > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > <definitions
> > > > >     targetNamespace="urn:import"
> > > > >     xmlns="http://schemas.xmlsoap.org/wsdl/"
> > > > >     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> > > > >     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > > >     xmlns:b1="urn:uddi-org:inquiry_v2"
> > > > >     >
> > > > > <import
> > > > >     location="http://uddi.org/wsdl/inquire_v2.wsdl"
> > > > >     namespace="urn:uddi-org:inquiry_v2">
> > > > > </import>
> > > > > <service name="InquiryService">
> > > > >   <port name="InquiryService1" binding="b1:InquireSoap">
> > > > >     <soap:address location="http://uddi.microsoft.com/inquire"/>
> > > > >   </port>
> > > > > </service>
> > > > > </definitions>
> > > > >
> > > > > Note that this WSDL imports inquire_v2.wsdl which in turn imports
> > > > > http://www.uddi.org/schema/uddi_v2.xsd. If i run MSFT's xsd.exe
> > > against this exe
> > > > > i get the following construct for the AddressLine complexType:
> > > > >
> > > > > /// <remarks/>
> > > > > [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:uddi-org:api_v2")]
> > > > > [System.Xml.Serialization.XmlRootAttribute(Namespace="urn:uddi-org:api_v2",
> > > > > IsNullable=false)]
> > > > > public class addressLine {
> > > > >     /// <remarks/>
> > > > >     [System.Xml.Serialization.XmlAttributeAttribute()]
> > > > >     public string keyName;
> > > > >     /// <remarks/>
> > > > >     [System.Xml.Serialization.XmlAttributeAttribute()]
> > > > >     public string keyValue;
> > > > >     /// <remarks/>
> > > > >     [System.Xml.Serialization.XmlTextAttribute()]
> > > > >     public string Value;
> > > > > }
> > > > >
> > > > > But when i use WSDL2Java the AddressLine.java is not compilable :(
> > > > >
> > > > > Thanks,
> > > > > dims
> > > >
> > > >
> > > > =====
> > > > Davanum Srinivas - http://webservices.apache.org/~dims/
> > > >
> > > >
> > > 
> > > 
> > > 
> > > 
> > 
> > > ATTACHMENT part 2 application/x-zip-compressed name=patch.zip
> > 
> > 
> > 
> > =====
> > Davanum Srinivas - http://webservices.apache.org/~dims/
> > 
> > Index: JavaBeanWriter.java
> ===================================================================
> RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java,v
> retrieving revision 1.46
> diff -u -r1.46 JavaBeanWriter.java
> --- JavaBeanWriter.java	29 Oct 2003 20:46:25 -0000	1.46
> +++ JavaBeanWriter.java	17 Nov 2003 09:26:19 -0000
> @@ -772,7 +772,7 @@
>  
>              if (enableSetters) {
>                  if (isUnion()) {
> -                    pw.println("    public void setValue(" + typeName
> +                    pw.println("    public void set"+capName+"(" + typeName
>                              + " value) {");
>                      writeSimpleTypeSetter(typeName);
>                  } else {
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

Mime
View raw message