Web service response is null, but SOAP message response is valid <p>I am writing a web service starting with writing the WSDL. I have been generating server-side skeleton code using wsimport and then writing my own implementing class. I'm running the web service on an Axis2 server. When using soapUI, the SOAP messages coming to and from the service look fine, but when using a web service client, I'm getting null in the client-side stubs. I've heard that this could be a namespace issue, but I see anything wrong. Here is my copy of the WSDL. Any help would be appreciated.</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://test.sa.lmco.com" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://test.sa.lmco.com"&gt; &lt;!-- **************** --&gt; &lt;!-- ** Types ** --&gt; &lt;!-- **************** --&gt; &lt;wsdl:types&gt; &lt;xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://test.sa.lmco.com"&gt; &lt;xs:element name="sayHello"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element minOccurs="0" name="s" nillable="true" type="xs:string"/&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:element name="sayHelloResponse"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:element name="getTaxonomyNode"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element name="taxonomyId" minOccurs="1" maxOccurs="1" type="xs:int" /&gt; &lt;xs:element name="nodeId" type="xs:int" /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:element name="getTaxonomyNodeResponse"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element name="resultNode" type="ns:TaxonomyNode" /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:element name="getChildren"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element name="taxonomyId" minOccurs="1" maxOccurs="1" type="xs:int" /&gt; &lt;xs:element name="parentNodeId" minOccurs="1" maxOccurs="1" type="xs:int" /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:element name="getChildrenResponse"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element name="childNodes" minOccurs="0" maxOccurs="unbounded" type="ns:TaxonomyNode" /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;xs:complexType name="TaxonomyNode"&gt; &lt;xs:sequence&gt; &lt;xs:element name="taxonomyId" type="xs:int" /&gt; &lt;xs:element name="nodeId" type="xs:int" /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;xs:complexType name="LCD"&gt; &lt;xs:sequence&gt; &lt;xs:element name="language" type="xs:string" /&gt; &lt;xs:element name="content" type="xs:string" /&gt; &lt;xs:element name="description" type="xs:string" /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:schema&gt; &lt;/wsdl:types&gt; &lt;!-- ***************** --&gt; &lt;!-- ** Messages ** --&gt; &lt;!-- ***************** --&gt; &lt;wsdl:message name="sayHelloRequest"&gt; &lt;wsdl:part name="parameters" element="ns:sayHello"/&gt; &lt;/wsdl:message&gt; &lt;wsdl:message name="sayHelloResponse"&gt; &lt;wsdl:part name="parameters" element="ns:sayHelloResponse"/&gt; &lt;/wsdl:message&gt; &lt;wsdl:message name="getTaxonomyNodeRequest"&gt; &lt;wsdl:part name="parameters" element="ns:getTaxonomyNode" /&gt; &lt;/wsdl:message&gt; &lt;wsdl:message name="getTaxonomyNodeResponse"&gt; &lt;wsdl:part name="parameters" element="ns:getTaxonomyNodeResponse" /&gt; &lt;/wsdl:message&gt; &lt;wsdl:message name="getChildrenRequest"&gt; &lt;wsdl:part name="parameters" element="ns:getChildren" /&gt; &lt;/wsdl:message&gt; &lt;wsdl:message name="getChildrenResponse"&gt; &lt;wsdl:part name="parameters" element="ns:getChildrenResponse" /&gt; &lt;/wsdl:message&gt; &lt;!-- ******************* --&gt; &lt;!-- ** PortTypes ** --&gt; &lt;!-- ******************* --&gt; &lt;wsdl:portType name="HelloWSPortType"&gt; &lt;wsdl:operation name="sayHello"&gt; &lt;wsdl:input message="ns:sayHelloRequest" wsaw:Action="urn:sayHello"/&gt; &lt;wsdl:output message="ns:sayHelloResponse" wsaw:Action="urn:sayHelloResponse"/&gt; &lt;/wsdl:operation&gt; &lt;wsdl:operation name="getTaxonomyNode"&gt; &lt;wsdl:input message="ns:getTaxonomyNodeRequest" wsaw:Action="urn:getTaxonomyNode" /&gt; &lt;wsdl:output message="ns:getTaxonomyNodeResponse" wsaw:Action="urn:getTaxonomyNodeResponse" /&gt; &lt;/wsdl:operation&gt; &lt;wsdl:operation name="getChildren"&gt; &lt;wsdl:input message="ns:getChildrenRequest" wsaw:Action="urn:getChildren" /&gt; &lt;wsdl:output message="ns:getChildrenResponse" wsaw:Action="urn:getChildrenResponse" /&gt; &lt;/wsdl:operation&gt; &lt;/wsdl:portType&gt; &lt;!-- ****************** --&gt; &lt;!-- ** Bindings ** --&gt; &lt;!-- ****************** --&gt; &lt;wsdl:binding name="HelloWSServiceSoap11Binding" type="ns:HelloWSPortType"&gt; &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/&gt; &lt;wsdl:operation name="sayHello"&gt; &lt;soap:operation soapAction="urn:sayHello" style="document"/&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:operation name="getTaxonomyNode"&gt; &lt;soap:operation soapAction="urn:getTaxonomyNode" style="document" /&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:operation name="getChildren"&gt; &lt;soap:operation soapAction="urn:getChildren" style="document" /&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;!-- **************** --&gt; &lt;!-- ** Service ** --&gt; &lt;!-- **************** --&gt; &lt;wsdl:service name="HelloWS"&gt; &lt;wsdl:port name="HelloWSServiceHttpSoap11Endpoint" binding="ns:HelloWSServiceSoap11Binding"&gt; &lt;soap:address location="http://162.16.129.25:9090/axis2/services/HelloWS"/&gt; &lt;/wsdl:port&gt; &lt;/wsdl:service&gt; </code></pre> <p></p>