Can you also provide the code for your pojo and the config you used?

Greetings

Christian Schneider
---
http://www.liquid-reality.de



KBerthelot schrieb:
I've created a simple pojo that I'm exposing as a web service using the http
and jsr181 components.  The service consists of one operation (submitOrder)
that returns an Order object (which is a basic java bean exposing 3
properties).

The wsdl generated is missing the definition of the complex type "Order". The definition of the submitOrderResponse correctly refers to "ns1:Order",
but that type is not defined in the wsdl and causes the web service client
generation to fail.

Here's the generated wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:ns1="http://service.edgenet.com";
xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope";
xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding";
xmlns:tns="http://edgenet.com";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
targetNamespace="http://edgenet.com";>
   <wsdl:types>
      <xsd:schema attributeFormDefault="qualified"
elementFormDefault="qualified" targetNamespace="http://edgenet.com";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
         <xsd:element name="submitOrder">
            <xsd:complexType>
               <xsd:sequence>
                  <xsd:element maxOccurs="1" minOccurs="1"
name="description" nillable="true" type="xsd:string"/>
                  <xsd:element maxOccurs="1" minOccurs="1" name="price"
type="xsd:double"/>
               </xsd:sequence>
            </xsd:complexType>
         </xsd:element>
         <xsd:element name="submitOrderResponse">
            <xsd:complexType>
               <xsd:sequence>
                  <xsd:element maxOccurs="1" minOccurs="1" name="out"
nillable="true" type="ns1:Order"/>

               </xsd:sequence>
            </xsd:complexType>
         </xsd:element>
      </xsd:schema>
  </wsdl:types>
  <wsdl:message name="submitOrderRequest">
     <wsdl:part element="tns:submitOrder" name="parameters"/>
  </wsdl:message>
  <wsdl:message name="submitOrderResponse">
     <wsdl:part element="tns:submitOrderResponse" name="parameters"/>
  </wsdl:message>

  <wsdl:portType name="Local_OrderServicePortType">
     <wsdl:operation name="submitOrder">
        <wsdl:input message="tns:submitOrderRequest"
name="submitOrderRequest"/>
        <wsdl:output message="tns:submitOrderResponse"
name="submitOrderResponse"/>
     </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="OrderService-10ebecfde89-213689Binding"
type="tns:Local_OrderServicePortType">
     <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
     <wsdl:operation name="submitOrder">
        <wsdlsoap:operation soapAction=""/>
        <wsdl:input name="submitOrderRequest">
           <wsdlsoap:body use="literal"/>
        </wsdl:input>

        <wsdl:output name="submitOrderResponse">
           <wsdlsoap:body use="literal"/>
        </wsdl:output>
     </wsdl:operation>
  </wsdl:binding>

  <wsdl:service name="OrderService">
     <wsdl:port binding="tns:OrderService-10ebecfde89-213689Binding"
name="OrderService-10ebecfde89-213689">
        <wsdlsoap:address
location="http://0.0.0.0:8080/Interlinks/OrderService/"/>
     </wsdl:port>
  </wsdl:service>
</wsdl:definitions>


Reply via email to