2 Replies Latest reply on Jun 22, 2006 7:30 PM by Eric van Lydegraf

    targetNamespace for remote webservice does  not like java: U

    Eric van Lydegraf Newbie

      I'm using the wstools to consume a WebService from Weblogic and get this exception.

      The targetNamespace has java:com.name.etc
      According to the WebLogic developer this is their automatically generated WSDL from the appserver.

      Is this a true restriction of WSDL, SOAP, and/or WS-I
      or is JBossWS being more restrictive?

      [wstools] java.lang.IllegalArgumentException: TargetNS should start with http/https/urn
      [wstools] at org.jboss.ws.tools.ToolsUtils.getJavaPackageName(ToolsUtils.java:145)
      [wstools] at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:169)
      [wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:326)
      [wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
      [wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
      [wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
      [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [wstools] at org.apache.tools.ant.Task.perform(Task.java:364)
      [wstools] at org.apache.tools.ant.Target.execute(Target.java:341)
      [wstools] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [wstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
      [wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
      [wstools] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:383)
      [wstools] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:136)