Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 87969 invoked from network); 2 Nov 2005 18:53:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Nov 2005 18:53:05 -0000 Received: (qmail 15457 invoked by uid 500); 2 Nov 2005 18:52:55 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 15412 invoked by uid 500); 2 Nov 2005 18:52:55 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 15381 invoked by uid 99); 2 Nov 2005 18:52:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 10:52:54 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of davanum@gmail.com designates 66.249.82.192 as permitted sender) Received: from [66.249.82.192] (HELO xproxy.gmail.com) (66.249.82.192) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 10:52:49 -0800 Received: by xproxy.gmail.com with SMTP id s8so339232wxc for ; Wed, 02 Nov 2005 10:52:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BIA74200RlefKiYnhICseR1V2LA5cTs/cEEN+YLiSXS9ltnoOGTSuJ0NSAPdIv7nlAuob8g0Tmo+Q3B6Mv/yzn1AW9/eQE6wq3TSDefzyXVP5nhRPg45C2Ul9ReCVBH4IRWiNx4tnzzDlYO7iBe/8paI22VRea5rql7v8AfD61s= Received: by 10.11.122.17 with SMTP id u17mr15776cwc; Wed, 02 Nov 2005 10:52:32 -0800 (PST) Received: by 10.11.122.71 with HTTP; Wed, 2 Nov 2005 10:52:32 -0800 (PST) Message-ID: <19e0530f0511021052r29e72febo773e3eeb3a3de164@mail.gmail.com> Date: Wed, 2 Nov 2005 13:52:32 -0500 From: Davanum Srinivas Reply-To: dims@apache.org To: axis-user@ws.apache.org Subject: Re: 2 WSDL2Java problems moving from 1.1 to 1.3 Cc: acronce@earthlink.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N JavaMail stuff - http://java.sun.com/products/javamail/ Activation stuff - http://java.sun.com/products/javabeans/glasgow/jaf.html On 11/2/05, Parikh,Pratik wrote: > > Just get the latest sun jwsdp-1.6 and that should get you > activation.jar, and you should have j2ee.jar if you have the j2ee > installed. > > Thanks, > Parikh, Pratik > > > > -----Original Message----- > From: Allen Cronce [mailto:acronce@earthlink.net] > Sent: Wednesday, November 02, 2005 11:00 AM > To: axis-user@ws.apache.org > Subject: Re: 2 WSDL2Java problems moving from 1.1 to 1.3 > > Thanks for the response. I've seen this kind of recommendation in other > posts. But I haven't added those jars because I thought that all it > would do is get rid of the DataHandler and MimeMultipart warnings. As I > indicated, I don't need attachment support. > > Honestly I don't see how adding jars specific to attachment support will > address the "specialAttrs is referenced but not defined" error. But I'm > willing to try it. > > I don't have these jars on my system so I will have to download them. > Are there certain versions of these jars that I need for Axis 1.3? If > anyone could provide some links to jars that are known to work, I'd > appreciate it. > > Best regards, > -- > Allen Cronce > > Parikh,Pratik wrote: > > Add activation.jar and j2ee.jar in your classpath. > > > > Thanks, > > Parikh, Pratik > > -----Original Message----- > > From: Allen Cronce [mailto:acronce@earthlink.net] > > Sent: Wednesday, November 02, 2005 10:12 AM > > To: axis-user@ws.apache.org > > Subject: 2 WSDL2Java problems moving from 1.1 to 1.3 > > > > Hi all, > > > > I ran into a bug in Axis 1.1 where if you have a combination of in, > > out and inout parameters, Axis gets confused and screws up the array > > of parameters delivered to the xxxImpl.java code. As a result, there's > > > a Java exception because the parameters don't match the method call > > signature. > > > > It looks like this bug is fixed in 1.3, so I'm trying to move to that > > version. But now with 1.3 I'm running into code generation problems. > > > > First, when I use the Axis 1.3 WSDL2Java to generate the server side > > classes, I get the following error: > > > > - Unable to find required classes (javax.activation.DataHandler and > > javax.mail.internet.MimeMultipart). Attachment support is disabled. > > Parsing XML file: axisprob.wsdl > > java.io.IOException: Type specialAttrs is referenced but not defined. > > at > > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolT > > ab > > le.java:665) > > at > > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545) > > at > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java > > :5 > > 18) > > at > > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java > > :4 > > 95) > > at > > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) > > at java.lang.Thread.run(Thread.java:552) > > > > The issue that that WSDL2Java's got a problem with specialAttrs, which > > > is an attribute group defined by the w3c. I'm importing the xml.xsd > > schema where specialAttrs is defined. I assume that the DataHandler > > and MimeMultipart warnings are just noise since I don't need > > attachment support. > > > > When I previously generated code with Axis 1.1, this error did not > > happen. Further, other validation tools think that the wsdl is fine. > > > > Rather than post my whole schema and wsdl, I've reproduced the problem > > > in a simple sample wsdl (appended below). > > > > As a test I removed line 30 of my wsdl (where I reference > > xml:specialAttrs), then the code generates. That's not a valid work > > around though because in the real world, this problem appears in an > > external schema file. In any case, even when I hack the wsdl, the > > generated code doesn't build, which is my second problem. > > > > It looks like when you're using document wrapped style and have more > > than one out or inout parameters, Axis wants to wrap any outputted > > class in a "holder" class. That makes sense. > > > > But in this case of my sample wsdl, the code generated passes a > > org.apache.axis.holders.NMTokenHolder to the > > AxisprobSOAPBindingImpl.problemMessage method. This causes build > > errors because there is no NMTokenHolder class. There is only a > > TokenHolder class. > > > > I suppose that I can manually edit the generated code to change the > > undefined NMTokenHolder to TokenHolder classes. But it's bothersome > > that Axis is generating code for classes that don't exist. > > > > Again, the problem wsdl can be found below. Also, I've posted a zip of > > > the wsdl and code generated here: > > > > http://homepage.mac.com/WebObjects/FileSharing.woa/wa/axis_1_3_problem > > .z ip.zip?a=3DdownloadFile&user=3Dpaceap&path=3DSites/axis_1_3_problem.= zip > > > > Any suggestions for solving these problems would be welcome. > > > > Best regards, > > -- > > Allen Cronce > > > > --------------------------------------- > > > > > targetNamespace=3D"axisprob.wsdl" > > xmlns:http=3D"http://schemas.xmlsoap.org/wsdl/http/" > > xmlns:mime=3D"http://schemas.xmlsoap.org/wsdl/mime/" > > xmlns:soap=3D"http://schemas.xmlsoap.org/wsdl/soap/" > > xmlns:soapenc=3D"http://schemas.xmlsoap.org/soap/encoding/" > > xmlns=3D"http://schemas.xmlsoap.org/wsdl/" > > xmlns:xs=3D"http://www.w3.org/2001/XMLSchema" > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > > xmlns:wsdlns=3D"axisprob.wsdl" > > xmlns:xsdns=3D"axisprob.xsd"> > > > > > schemaLocation=3D"http://www.w3.org/2001/xml.xsd"/> > > > > > xmlns:xsdns=3D"axisprob.xsd" > > xmlns:xs=3D"http://www.w3.org/2001/XMLSchema" > > xmlns:soapenc=3D"http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:wsdl=3D"http://schemas.xmlsoap.org/wsdl/"> > > > > > > > > > > This is a type > > definition for generic text in > > XML. For maintenance reasons, it is preferable > > > to use something like this > > rather than the built-in datatype string, > > unless you have an absolute > > requirement to use a simple datatype. > > > > > > > > > maxOccurs=3D"unbounded" > > processContents=3D"lax"/> > > > > > > > processContents=3D"lax"/> > > > > > > > > > > This is a type > > definition for globally unique > > identifiers. > > > > > > > > > value=3D"[0-9,A-F,a-f]{8}-[0-9,A-F,a-f]{4}-[0-9,A-F,a-f]{4}-[0-9,A-F,a-= f > > ]{ > > 4}-[0-9,A-F,a-f]{12}" > > /> > > > > > > > > > > > > This is a type > > definition for globally unique > > identifiers. > > > > > > > > > > > > > > > > NEEDS COMMENT > > > > > > > > > > > type=3D"xsdns:GUIDType"/> > > > type=3D"xsdns:TextType" minOccurs=3D"0" > > maxOccurs=3D"1"/> > > > > > > > > > > > > > > NEEDS COMMENT > > > > > > > > > > > type=3D"xsdns:RecordReferenceType"/> > > > type=3D"xsdns:TextType" minOccurs=3D"0" > > maxOccurs=3D"1"/> > > type=3D"xsdns:GUIDType"/> > > > > > > > > > > > > > > > > > > > > > > > > element=3D"xsdns:problemMessageResponse"/> > > > > > > > > > > > > > > > > > > > > > > type=3D"wsdlns:axisprobPortType"> > > > transport=3D"http://schemas.xmlsoap.org/soap/http"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > binding=3D"wsdlns:axisprobSOAPBinding"> > > > > location=3D"http://localhost:4310/WebObjects/axisprob2.woa/wa/axisprob2"/= > > > > > > > > > > > > > CONFIDENTIALITY NOTICE > > > > This message and any included attachments are from Cerner Corporation > > and are intended only for the addressee. The information contained in > > this message is confidential and may constitute inside or non-public > > information under international, federal, or state securities laws. > > Unauthorized forwarding, printing, copying, distribution, or use of > > such information is strictly prohibited and may be unlawful. If you > > are not the addressee, please promptly delete this message and notify > > the sender of the delivery error by e-mail or you may call Cerner's > > corporate offices in Kansas City, Missouri, U.S.A at (+1) > > (816)221-1024. > > ---------------------------------------- -- > > > > > > CONFIDENTIALITY NOTICE > > This message and any included attachments > are from Cerner Corporation and are intended > only for the addressee. The information > contained in this message is confidential and > may constitute inside or non-public information > under international, federal, or state > securities laws. Unauthorized forwarding, > printing, copying, distribution, or use of such > information is strictly prohibited and may be > unlawful. If you are not the addressee, please > promptly delete this message and notify the > sender of the delivery error by e-mail or you > may call Cerner's corporate offices in Kansas > City, Missouri, U.S.A at (+1) (816)221-1024. > ---------------------------------------- -- > -- Davanum Srinivas : http://wso2.com/blogs/