cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tadayoshi Sato (JIRA)" <>
Subject [jira] [Created] (CXF-6608) java2ws -t (target namespace) option generates invalid WSDL
Date Thu, 24 Sep 2015 04:59:04 GMT
Tadayoshi Sato created CXF-6608:

             Summary: java2ws -t (target namespace) option generates invalid WSDL
                 Key: CXF-6608
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 3.1.2
            Reporter: Tadayoshi Sato

This command:
java2ws -wsdl -t urn:com.example:ws:1.0
generates WSDL that contains two different namespaces for the {{tns}} ({{"urn:com.example:ws:1.0"}})
and the schema types ({{""}}) as follows:
<wsdl:definitions name="ExampleService" targetNamespace="urn:com.example:ws:1.0"
  xmlns:ns1="" xmlns:tns="urn:com.example:ws:1.0" ...>
    <xs:schema xmlns="" ... targetNamespace="">
      <xs:element name="op1" type="op1" />
  <wsdl:message name="op1">
    <wsdl:part name="parameters" element="ns1:op1">
  <wsdl:portType name="ExampleServicePortType">
    <wsdl:operation name="op1">
      <wsdl:input name="op1" message="ns1:op1">
      <wsdl:output name="op1Response" message="ns1:op1Response">

Therefore, importing the WSDL to Eclipse shows WSDL validation errors.

This message was sent by Atlassian JIRA

View raw message