You have 2 choices....
Choice #1 - use wsdlFile tag in your wsdd and point it to your original wsdl. See
http://www.ftponline.com/javapro/2003_02/online/WSDL_kjones_02_27_03/default_pf.asp
for example.
Choice #2 - Make a local fix to Axis's code as shown below (Patch against latest CVS):
===============================================================================================
cvs -z9 -q diff -u -wb -i wsdl\fromJava\Emitter.java (in directory
C:\jakarta\xml-axis\java\src\org\apache\axis\)
Index: wsdl/fromJava/Emitter.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java,v
retrieving revision 1.95
diff -d -u -b -B -w -u -w -b -i -r1.95 Emitter.java
--- wsdl/fromJava/Emitter.java 11 Jul 2003 12:59:19 -0000 1.95
+++ wsdl/fromJava/Emitter.java 11 Jul 2003 17:50:28 -0000
@@ -291,9 +291,11 @@
// Add Axis version info as comment to beginnning of generated WSDL
Comment wsdlVersion = doc.createComment(Messages.getMessage("wsdlCreated00",
Version.getVersion()));
- doc.getDocumentElement().insertBefore(wsdlVersion,
- doc.getDocumentElement().getFirstChild());
+ Element documentElement = doc.getDocumentElement();
+ documentElement.insertBefore(wsdlVersion,
+ documentElement.getFirstChild());
+ documentElement.setAttribute("elementFormDefault","qualified");
// Return the document
return doc;
}
===============================================================================================
--- Tamas Hauer <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I use WSDL2java to produce some services. My wsdl starts like this:
> <wsdl:definitions name="com.mammogrid.portal"
> targetNamespace="http://mammogrid.com/portal/"
> elementFormDefault="qualified"
> xmlns:tns="http://mammogrid.com/portal/"
> xmlns:ans="http://mammogrid.com/portal/api/"
> xmlns:pns="http://mammogrid.com/portal/patient/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> >
> <wsdl:types>
>
> All the services are generated fine and deployment is working except
> for one thing, the deployed wsdl does not have the
> elementFormDefault="qualified"
> attribute. Thus, if I generate client code from the original wsdl
> then it is OK, but not from the deployed WSDL. If I fetch the wsdl
> off the axis endpoint and patch it with this attribute, then it is
> working fine.
>
> Is this a bug in axis or is there some switch which I forget about?
>
> Thanks,
>
> Tamas
>
>
> --
> -------------------------------------------------------------------
> -- Tamas Hauer ETT Division, CERN
> [EMAIL PROTECTED] Geneve 23 Switzerland 1211
> http://cern.ch/Tamas.Hauer Tel:(41)-227672342 Fax:(41)-227678930
>
=====
Davanum Srinivas - http://webservices.apache.org/~dims/
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com