You aren't specifying a wsdlLocation when you are deploying. Check you @WebService annotation to see if there is a wsdlLocation and/or add the wsdlLocation attribute to the spring configuration you are using to configure your service.

Dan



On Jul 23, 2008, at 2:56 PM, Santosh Kulkarni wrote:

Is there a way I can output the exact wsdl that I started with?
I am using contract first method to generate the web service with CXF 2.0.6 and Spring. The web service is working but when I get the wsdl by using “?wsdl” it is missing the type information. Using the maven plugin to generate sources and running it on tomcat 5.5 inside of eclipse.

Starting wsdl

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="DoubleIt"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema";
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
   xmlns:tns="http://www.jcpenney.com/DoubleIt";
   targetNamespace="http://www.jcpenney.com/DoubleIt";>
   <wsdl:types>
<xsd:schema targetNamespace="http://www.jcpenney.com/ PaymentService">

<xsd:import namespace="http://www.jcpenney.com/ PaymentXsd" schemaLocation="DoubleIt.xsd"/>

        </xsd:schema>

   </wsdl:types>
   <wsdl:message name="DoubleItRequest">
      <wsdl:part element="tns:DoubleIt" name="parameters" />
   </wsdl:message>
   <wsdl:message name="DoubleItResponse">
      <wsdl:part element="tns:DoubleItResponse" name="parameters" />
   </wsdl:message>
   <wsdl:portType name="DoubleItPortType">
      <wsdl:operation name="DoubleIt">
         <wsdl:input message="tns:DoubleItRequest" />
         <wsdl:output message="tns:DoubleItResponse" />
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="DoubleItBinding" type="tns:DoubleItPortType">
      <soap:binding style="document"
         transport="http://schemas.xmlsoap.org/soap/http"; />
      <wsdl:operation name="DoubleIt">
         <soap:operation soapAction=""/>
         <wsdl:input><soap:body use="literal"/></wsdl:input>
         <wsdl:output><soap:body use="literal"/></wsdl:output>
      </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="DoubleItService">
      <wsdl:port name="DoubleItPort" binding="tns:DoubleItBinding">
         <soap:address
            location="http://localhost:8080/payment/doubleit"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>



Wsdl from the “?wsdl”

<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions name="DoubleItServiceService" targetNamespace="http://jcpenney.com/"; xmlns:ns1="http://www.jcpenney.com/DoubleIt"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/ " xmlns:tns="http://jcpenney.com/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ " xmlns:xsd="http://www.w3.org/2001/XMLSchema";> <wsdl:import location="http://localhost:8080/payment/DoubleItService?wsdl=DoubleItPortType.wsdl " namespace="http://www.jcpenney.com/DoubleIt";>
    </wsdl:import>
<wsdl:binding name="DoubleItServiceServiceSoapBinding" type="ns1:DoubleItPortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http " />
    <wsdl:operation name="DoubleIt">
      <soap:operation soapAction="" style="document" />
      <wsdl:input name="DoubleIt">
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output name="DoubleItResponse">
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="DoubleItServiceService">
<wsdl:port binding="tns:DoubleItServiceServiceSoapBinding" name="DoubleItServicePort"> <soap:address location="http://localhost:8080/payment/DoubleItService " />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>






The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. If the reader of this message is not the intended recipient, you are hereby notified that your access is unauthorized, and any review,
dissemination, distribution or copying of this message including any
attachments is strictly prohibited.   If you are not the intended
recipient, please contact the sender and delete the material from any
computer.

---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog




Reply via email to