title: wsdl has no service element
body: <p>I have to consume a WCF web service and was given a WSDL (external, so have no control on the WSDL). Inside the WSDL definitions I am not finding the service element which has the service, port and address elements. Is that normal not be present in a WSDL? Is this common for a WCF WSDL? I am trying to generate stubs for this using axis and am having issues. </p>
  
  <pre><code>&lt;wsdl:definitions&gt;
  ....
  ...
  ..
  
  **&lt;wsdl:service&gt;
        &lt;wsdl:port&gt;
         &lt;wsdl1:address/&gt;
        &lt;/wsdl:port&gt;
      &lt;/wsdl:service&gt;**
  
  &lt;/wsdl:definitions&gt;
  </code></pre>
  
  <p>The part between the asterisks is what is missing in the WSDL.</p>
  
  <p>Did someone have an issue like this? Please let me know.</p>
  
  <p>When generating stubs, I am getting this error:
  Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
          at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:175)
          at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
          at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
  Caused by: org.apache.axis2.AxisFault: No services found in the WSDL at file:/c:/work/xxx.wsdl with targetnamespace <a href="http://tempuri.org/" rel="nofollow">http://tempuri.org/</a>
          at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:115)
          at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:169)
          ... 2 more</p>
  
  <p>I looked at the code WSDL11ToAllAxisServicesBuilder.java and it looks like this error occurs if axis does not find a service element.</p>
  
  <p>Does anyone have a solution to this?</p>