title: <soap:address> location attribute when using Netbeans New -> Webservice from WSDL using XMLSpy
body: <p>I'm trying to create a webservice using the New -> Web Service from WSDL in Netbeans 7.1.2. </p>
  
  <p>I went ahead and created a WSDL using XML spy. Here is the basic WSDL that I've created:</p>
  
  <pre><code>&lt;wsdl:definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" 
  xmlns:wsp="http://www.w3.org/ns/ws-policy" 
  xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" 
  xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" 
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
  xmlns:tns="http://planningservice.ohs.com/" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns="http://docs.oasis-open.org/wsn/t-1" xmlns:ns1="http://www.isotc211.org/2005/gco" xmlns:ns2="http://www.isotc211.org/2005/gmd" xmlns:ns3="http://www.isotc211.org/2005/gsr" xmlns:ns4="http://www.isotc211.org/2005/gss" xmlns:ns5="http://www.isotc211.org/2005/gts" xmlns:ns6="http://www.opengis.net/gml/3.2" xmlns:ns7="http://www.opengis.net/ows/1.1" xmlns:ns8="http://www.opengis.net/sps/2.0" xmlns:ns9="http://www.opengis.net/swe/2.0" xmlns:ns10="http://www.opengis.net/swes/2.0" xmlns:ns11="http://www.w3.org/2005/08/addressing" name="PlanningService" targetNamespace="http://planningservice.ohs.com/"&gt;
  &lt;wsdl:import namespace="http://www.opengis.net/sps/2.0" location="http://schemas.opengis.net/sps/2.0/spsGetFeasibility.xsd"/&gt;
  &lt;wsdl:types&gt;
      &lt;xsd:schema&gt;
          &lt;xsd:import namespace="http://ps.ca"/&gt;
      &lt;/xsd:schema&gt;
  &lt;/wsdl:types&gt;
  &lt;wsdl:message name="GetFeasibility"&gt;
      &lt;wsdl:part name="parameters" type="ns8:GetFeasibilityType"/&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="GetFeasibilityResponse"&gt;
      &lt;wsdl:part name="parameters" type="ns8:GetFeasibilityResponseType"/&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:portType name="PlanningService"&gt;
      &lt;wsdl:operation name="GetFeasibility"&gt;
          &lt;wsdl:input message="tns:GetFeasibility" wsam:Action="http://planningservice.ohs.com/PlanningService/getFeasibility"/&gt;
          &lt;wsdl:output message="tns:GetFeasibilityResponse" wsam:Action="http://planningservice.ohs.com/PlanningService/getFeasibilityResponse"/&gt;
      &lt;/wsdl:operation&gt;
  &lt;/wsdl:portType&gt;
  &lt;wsdl:binding name="PlanningSerivcePortBinding" type="tns:PlanningService"&gt;
      &lt;soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/&gt;
      &lt;wsdl:operation name="GetFeasibility"&gt;
          &lt;soap:operation soapAction="' '"/&gt;
          &lt;wsdl:input&gt;
              &lt;soap:body use="literal"/&gt;
          &lt;/wsdl:input&gt;
          &lt;wsdl:output&gt;
              &lt;soap:body use="literal"/&gt;
          &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
  &lt;/wsdl:binding&gt;
  &lt;wsdl:service name="PlanningSerivce"&gt;
      &lt;wsdl:port name="PlanningService" binding="tns:PlanningSerivcePortBinding"&gt;
          &lt;soap:address location="http://localhost:8080/PlanningService/"/&gt;
      &lt;/wsdl:port&gt;
  &lt;/wsdl:service&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I try using the above I the 'New Web Service From WSDL' wizard says "There is no service in specified WSDL file."</p>
  
  <p>If I don't specify the location attribute, like so:</p>
  
  <pre><code>&lt;wsdl:service name="PlanningSerivce"&gt;
      &lt;wsdl:port name="PlanningService" binding="tns:PlanningSerivcePortBinding"&gt;
          &lt;soap:address/&gt;
      &lt;/wsdl:port&gt;
  &lt;/wsdl:service&gt;
  </code></pre>
  
  <p>I don't have that notification but during the creation of the Web Service I get an error that says the attribute is missing. </p>
  
  <p>So my question is what do I put in the location attribute to get Netbeans to recognize that there is a service defined, given that it isn't deployed anywhere!</p>
  
  <p>Thanks all!</p>
  
  <p>~D</p>