title: Problem creating a web service from a WSDL
body: <p>The problem I'm having is that when I attempt to create a web service in netbeans using this wsdl, netbeans says that there is no service defined. I'm new to the whole wsdl thing but as far as I can tell there is one defined.</p>
  
  <p>The wsdl is:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://discoveryinsurance.com/DicQuoteSvc/AgencyQuote.wsdl" xmlns:ns="http://discoveryinsurance.com/DicQuoteSvc/schemas/DicAcordQuoteRq.xsd" xmlns:na="http://discoveryinsurance.com/DicQuoteSvc/schemas/DicAcordQuoteRs.xsd" targetNamespace="http://discoveryinsurance.com/DicQuoteSvc/AgencyQuote.wsdl"&gt;
  &lt;wsdl:import namespace="http://discoveryinsurance.com/DicQuoteSvc/schemas/" location="DicAcordQuoteRq.xsd"/&gt;
  &lt;wsdl:import namespace="http://discoveryinsurance.com/DicQuoteSvc/schemas/" location="DicAcordQuoteRs.xsd"/&gt;
  &lt;wsdl:types&gt;
      &lt;xs:schema targetNamespace="http://discoveryinsurance.com/DicQuoteSvc/schemas/" elementFormDefault="qualified"/&gt;
  &lt;/wsdl:types&gt;
  &lt;wsdl:message name="NewMessageRequest"&gt;
      &lt;wsdl:part name="parameter" element="ns:ACORD"/&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="NewMessageResponse"&gt;
      &lt;wsdl:part name="parameter" element="na:ACORD"/&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:portType name="QuotePortType"&gt;
      &lt;wsdl:operation name="RequestQuote"&gt;
          &lt;wsdl:input message="tns:NewMessageRequest"/&gt;
          &lt;wsdl:output message="tns:NewMessageResponse"/&gt;
      &lt;/wsdl:operation&gt;
  &lt;/wsdl:portType&gt;
  &lt;wsdl:binding name="QuoteBinding" type="tns:QuotePortType"&gt;
      &lt;soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/&gt;
      &lt;wsdl:operation name="RequestQuote"&gt;
          &lt;soap:operation soapAction="http://discoveryinsurance.com/DicQuoteSvc/AgencyQuote" style="rpc"/&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="AgencyQuote"&gt;
      &lt;wsdl:port name="QuotePortType" binding="tns:QuoteBinding"&gt;
          &lt;soap:address  location="http://discoveryinsurance.com/DicQuoteSvc/"/&gt;
      &lt;/wsdl:port&gt;
  &lt;/wsdl:service&gt;
  </code></pre>
  
  <p></p>
  
  <p>XMLSpy says that the wsdl is valid but it fails when i try to create the web service from it.
  Any help would be appreciated even constructive criticism.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Using wsimport from the commmand line I get.</p>
  
  <blockquote>
    <p>[ERROR] Invalid wsdl:operation "RequestQuote": its a rpc-literal operation,  mes
    sage part must refer to a schema type declaration
      line 16 of file:/D:/projects/DICACORD/QuoteRq2.wsdl</p>
  </blockquote>
  
  <p>Does that mean that even though the two xsd's are imported I still have to define the types in the wsdl?</p>
  
  <p><strong>Update 2</strong></p>
  
  <p>The schema for the request->.
  <a href="http://pastie.org/747795" rel="nofollow noreferrer">Schema at pastie</a></p>
  
  <p><strong>Addition</strong></p>
  
  <p>Does anyone see anything wrong with the xsd imports and/or how they are being used?</p>