I have an empty namespace in a wsdl, so I map in wsdl2java in build.xml
this: 
<mapping namespace=""
package="com.inera.metamag.ntcio.services.verifydigitalobject"/>

my classes are generate correctly, but when I deploy I have this error:

[axis-admin] BUILD FAILED:
file:C:/eclipse/workspace/MetaMag-NTC-IO/build.xml:41: axis-admin failed
with  {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
org.xml.sax.SAXParseException: The value of the attribute
"prefix="xmlns",localpart="ns",rawname="xmlns:ns"" is invalid. Prefixed
namespace bindings may not be empty.


Follow the entire ant output.



Buildfile: C:\eclipse\workspace\MetaMag-NTC-IO\build.xml

Deploy VerifyDigitalObject:
  [axis-admin] Processing file
C:\eclipse\workspace\MetaMag-NTC-IO\WEB-INF\classes\com\inera\metamag\ntcio\
services\verifydigitalobject\deploy.wsdd
  [axis-admin] AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXParseException: The value of the attribute
&quot;prefix=&quot;xmlns&quot;,localpart=&quot;ns&quot;,rawname=&quot;xmlns:
ns&quot;&quot; is invalid. Prefixed namespace bindings may not be empty.
 faultActor: 
 faultNode: 
 faultDetail: 
        {http://xml.apache.org/axis/}stackTrace: AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXParseException: The value of the attribute
&amp;quot;prefix=&amp;quot;xmlns&amp;quot;,localpart=&amp;quot;ns&amp;quot;,
rawname=&amp;quot;xmlns:ns&amp;quot;&amp;quot; is invalid. Prefixed
namespace bindings may not be empty.
 faultActor: 
 faultNode: 
 faultDetail: 

org.xml.sax.SAXParseException: The value of the attribute
&quot;prefix=&quot;xmlns&quot;,localpart=&quot;ns&quot;,rawname=&quot;xmlns:
ns&quot;&quot; is invalid. Prefixed namespace bindings may not be empty.
        at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
60)
        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:16
9)
        at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onContextImpl.java:1015)
        at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
        at org.apache.crimson.parser.Parser2.content(Unknown Source)
        at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
        at org.apache.crimson.parser.Parser2.content(Unknown Source)
        at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
        at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
        at org.apache.crimson.parser.Parser2.parse(Unknown Source)
        at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
textImpl.java:242)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
        at org.apache.axis.client.Call.invoke(Call.java:2553)
        at org.apache.axis.client.Call.invoke(Call.java:1672)
        at org.apache.axis.client.AdminClient.process(AdminClient.java:355)
        at org.apache.axis.client.AdminClient.process(AdminClient.java:334)
        at org.apache.axis.client.AdminClient.process(AdminClient.java:341)
        at org.apache.axis.client.AdminClient.process(AdminClient.java:292)
        at
org.apache.axis.tools.ant.axis.AdminClientTask.execute(AdminClientTask.java:
308)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja
va:569)
        at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.ja
va:367)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.ant.core.AntRunner.run(AntRunner.java:335)
        at
org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntLaunchDele
gate$1.run(AntLaunchDelegate.java:172)
        at java.lang.Thread.run(Unknown Source)


  [axis-admin] Running axis-admin with parameters:
  [axis-admin]   action:
  [axis-admin]   url:null
  [axis-admin]   hostname:null
  [axis-admin]   port:0
  [axis-admin]   servletPath:MetaMag-NTC-IO/services/AdminService
  [axis-admin]   fileProtocol:null
  [axis-admin]   username:null
  [axis-admin]   password:null
  [axis-admin]   transportChain:null
  [axis-admin]   debug:true
  [axis-admin] BUILD FAILED:
file:C:/eclipse/workspace/MetaMag-NTC-IO/build.xml:41: axis-admin failed
with  {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
org.xml.sax.SAXParseException: The value of the attribute
"prefix="xmlns",localpart="ns",rawname="xmlns:ns"" is invalid. Prefixed
namespace bindings may not be empty.
Total time: 1 second

Ciao e buon lavoro,
   Renato
---- 
    Renato Eschini 
    Inera srl 
    Via Vespucci 41 
    56100 Pisa 
    Tel:         (+39) (0)50 2201218 
    WWW:         http://www.inera.it


Reply via email to