Forum Discussion

jacomoman's avatar
14 years ago

Empty response from CXF server

Folks,

I've sort of hit a brick wall when it comes to this issue. I've implemented a very simple SOAP web service using Apache CXF. I'll paste the WSDL next. I imported the WSDL into a SoapUI project and made the only call in there, getUser. The call completes, but the response is empty. I've double checked my input params several times and the very same back-end service hit from a REST interface returns the proper response, a User object. But when the same call (to the SOAP interface) is made thru SoapUI... empty response object!

Any help on this would be greatly appreciated. Thank you in advance.

-Jac

Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:getUserResponse xmlns:ns2="http://realm.service/"/>
</soap:Body>
</soap:Envelope>


WSDL:
<wsdl:definitions name="RealmService" targetNamespace="http://realm.service/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://realm.service/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xs:schema elementFormDefault="unqualified" targetNamespace="http://realm.service/" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="getUser" type="tns:getUser"/>
<xs:element name="getUserResponse" type="tns:getUserResponse"/>
<xs:complexType name="getUser">
<xs:sequence>
<xs:element name="userId" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="getUserResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="tns:user"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="user">
<xs:sequence>
<xs:element minOccurs="0" name="emailAddress" type="xs:string"/>
<xs:element minOccurs="0" name="firstName" type="xs:string"/>
<xs:element minOccurs="0" name="id" type="xs:string"/>
<xs:element minOccurs="0" name="lastName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="getUser">
<wsdl:part element="tns:getUser" name="parameters"/>
</wsdl:message>
<wsdl:message name="getUserResponse">
<wsdl:part element="tns:getUserResponse" name="parameters"/>
</wsdl:message>
<wsdl:portType name="RealmWebService">
<wsdl:operation name="getUser">
<wsdl:input message="tns:getUser" name="getUser"/>
<wsdl:output message="tns:getUserResponse" name="getUserResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="RealmServiceSoapBinding" type="tns:RealmWebService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getUser">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getUser">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getUserResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="RealmService">
<wsdl:port binding="tns:RealmServiceSoapBinding" name="RealmServicePort">
<soap:address location="http://localhost:8080/web02/ws/Realm"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
No RepliesBe the first to reply