Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 47802 invoked from network); 30 May 2006 22:32:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2006 22:32:24 -0000 Received: (qmail 35676 invoked by uid 500); 30 May 2006 22:32:21 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 35635 invoked by uid 500); 30 May 2006 22:32:21 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 35624 invoked by uid 99); 30 May 2006 22:32:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 15:32:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 15:32:20 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2D3EA7141E0 for ; Tue, 30 May 2006 22:31:30 +0000 (GMT) Message-ID: <19453699.1149028290167.JavaMail.jira@brutus> Date: Tue, 30 May 2006 22:31:30 +0000 (GMT+00:00) From: "Bhaskar Rathod (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS2-784) Java code generated by WSDL2Java does not compile when WSDL contains a custom element in SOAP header In-Reply-To: <6121138.1149028171019.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-784?page=all ] Bhaskar Rathod updated AXIS2-784: --------------------------------- Attachment: sample-address.wsdl The sample address WSDL. > Java code generated by WSDL2Java does not compile when WSDL contains a custom element in SOAP header > ---------------------------------------------------------------------------------------------------- > > Key: AXIS2-784 > URL: http://issues.apache.org/jira/browse/AXIS2-784 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: om, Tools, wsdl > Versions: 1.0 > Environment: Windows XP Professional, JDK1.5.0_03, Ant 1.6.5 > Reporter: Bhaskar Rathod > Attachments: sample-address.wsdl > > I have created a WSDL file, and I am trying to generate and compile java code for my web service. I can generate code, but ant build fails with complains about org.apache.axiom.om.OMelement. The errors are about the method newXMLStreamReader() and variable Factory within this interface. > Specifically, I am trying to add a custom soap header in my request and response. > WSDL: > ---------- > > xmlns:tns="http://foo.bar/service" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TtsSgsTitleTransfer" > targetNamespace="http://foo.bar/service"> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:tns="http://foo.bar/service" > xmlns="http://foo.bar/service" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > binding="tns:addressBinding"> > > > > > ---------------------------------------------------- > My stack trace on compile error: > ---------------------------------------------------------- > C:\devtools\axis2-std-1.0-bin\samples\wsdl>WSDL2Java -uri sample-address.wsdl -sd -s -ss -d xmlbeans -p test.address -o address_src > Using AXIS2_HOME: c:\devtools\axis2-std-1.0-bin > Using JAVA_HOME: C:\devtools\jdk1.5.0_03 > log4j:WARN No appenders could be found for logger > (org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter). > log4j:WARN Please initialize the log4j system properly. > C:\devtools\axis2-std-1.0-bin\samples\wsdl>cd address_src > C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src>ant > Buildfile: build.xml > init: > [mkdir] Created dir: > C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build > [mkdir] Created dir: > C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\classes > [mkdir] Created dir: > C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\lib > [mkdir] Created dir: > C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\test > jar.xbeans: > [jar] Building jar: > C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\lib\XBeans-packaged.jar > pre.compile.test: > [echo] XmlBeans Availability = true > [echo] Stax Availability= true > [echo] Axis2 Availability= true > compile.src: > [javac] Compiling 230 source files to > C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build\classes > [javac] C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\src\test\address\AddressServiceMessageReceiverInOut.java:77: > cannot find > symbol > [javac] symbol : method newXMLStreamReader() > [javac] location: interface org.apache.axiom.om.OMElement > [javac] > (org.apache.axiom.om.OMAbstractFactory.getOMFactory(),new > org.apache.axis2.util.StreamWrapper(param.newXMLStream > Reader())) ; > [javac] > ^ > [javac] C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\src\test\address\AddressServiceMessageReceiverInOut.java:160: > cannot find > symbol > [javac] symbol : variable Factory > [javac] location: interface org.apache.axiom.om.OMElement > [javac] return org.apache.axiom.om.OMElement.Factory.parse( > [javac] ^ > [javac] C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\src\test\address\AddressServiceMessageReceiverInOut.java:164: > cannot find > symbol > [javac] symbol : variable Factory > [javac] location: interface org.apache.axiom.om.OMElement > [javac] return org.apache.axiom.om.OMElement.Factory.parse( > [javac] ^ > [javac] Note: * uses or overrides a deprecated API. > [javac] Note: Recompile with -Xlint:deprecation for details. > [javac] Note: > C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\src\test\address\AddressServiceMessageReceiverInOut.java > uses unche > cked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 3 errors > BUILD FAILED > C:\devtools\axis2-std-1.0-bin\samples\wsdl\address_src\build.xml:50: > Compile failed; see the compiler error output for details. > Total time: 17 seconds -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org