title: : colon is not a valid char in the targetNamespace cxf-codegen-plugin wsdl2java
body: <p>I want to use cxf and i am trying to generate a client stub from a provided WSDL by maven with cxf-codegen-plugin wsdl2java</p>
  
  <p>Problem is the targetNamespace is named:</p>
  
  <pre><code>http://ip:port/ws/EndpointName.inbound.ws:companyName
  </code></pre>
  
  <p>and maven generate-sources phase fails with:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.7.5:wsdl2java (generate-jaxb) on project: Execution generate-jaxb of goal org.apache.cxf:cxf-codegen-plugin:2.7.5:wsdl2java failed: org.apache.cxf.tools.common.ToolException: : is not a valid char in the targetNamespace -&gt; [Help 1]
  </code></pre>
  
  <p>I believe the endpoint is developed using WebMethods. The company hosting this WS endpoint is telling me they have no control over the targetNamespace.</p>
  
  <p>I tried remplacing</p>
  
  <pre><code>:companyName
  </code></pre>
  
  <p>by</p>
  
  <pre><code>/companyName
  </code></pre>
  
  <p>client stub generation goes fine but I get an error when I try to contact their server:</p>
  
  <pre><code>Caused by: javax.ejb.EJBException: javax.xml.ws.WebServiceException: Could not find service named {http://ip:port/ws/EndpointName.inbound.ws/companyName}WebServiceName in wsdl http://ip:port/ws/EndpointName.inbound.ws:companyName?WSDL
  </code></pre>
  
  <p>Any idea?
  Should i switch to axis2 to be compatible with WebMethods?</p>
  
  <p>Thanks a lot</p>