I am having some difficulty calling a .NET web service from Axis 1.2.1 client.  I am getting the following error:

 

org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
        at org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
        at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
        at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
        at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
        at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
        at org.tiaa.dsv.dao.WebServicesDao.formatResults(WebServicesDao.java:337)
        at org.tiaa.dsv.dao.WebServicesDao.invokeWithSoapEnvelope(WebServicesDao.java:291)
        at org.tiaa.dsv.dao.WebServicesDao.callWebService(WebServicesDao.java:208)
        at org.tiaa.dsv.dao.WebServicesDao.retrieveData(WebServicesDao.java:75)
        at org.tiaa.dsv.ejb.MessageBean.onMessage(MessageBean.java:242)
        at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
        at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
        at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
        at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
        at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

 

The WSDL for the web service is as follows:

 

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.relius.net/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.relius.net/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://www.relius.net/">
      <s:element name="GetPlanCounts">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="PlansToCheck" type="tns:ArrayOfPlanInfo" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfPlanInfo">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="PlanInfo" nillable="true" type="tns:PlanInfo" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="PlanInfo">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="PlanId" type="s:string" />
          <s:element minOccurs="1" maxOccurs="1" name="Year" type="s:int" />
        </s:sequence>
      </s:complexType>
      <s:element name="GetPlanCountsResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetPlanCountsResult" type="tns:ArrayOfNotice" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfNotice">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="Notice" nillable="true" type="tns:Notice" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="Notice">
        <s:attribute name="Type" type="s:string" />
        <s:attribute name="Number" type="s:int" use="required" />
      </s:complexType>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="GetPlanCountsSoapIn">
    <wsdl:part name="parameters" element="tns:GetPlanCounts" />
  </wsdl:message>
  <wsdl:message name="GetPlanCountsSoapOut">
    <wsdl:part name="parameters" element="tns:GetPlanCountsResponse" />
  </wsdl:message>
  <wsdl:portType name="CrefServicesSoap">
    <wsdl:operation name="GetPlanCounts">
      <wsdl:input message="tns:GetPlanCountsSoapIn" />
      <wsdl:output message="tns:GetPlanCountsSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="CrefServicesSoap" type="tns:CrefServicesSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetPlanCounts">
      <soap:operation soapAction="http://www.relius.net/GetPlanCounts" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="CrefServicesSoap12" type="tns:CrefServicesSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetPlanCounts">
      <soap12:operation soapAction="http://www.relius.net/GetPlanCounts" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="CrefServices">
    <wsdl:port name="CrefServicesSoap" binding="tns:CrefServicesSoap">
      <soap:address location="http://chast1reliuswc1/RWCRelius5500/crefservices.asmx" />
    </wsdl:port>
    <wsdl:port name="CrefServicesSoap12" binding="tns:CrefServicesSoap12">
      <soap12:address location="http://chast1reliuswc1/RWCRelius5500/crefservices.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

 

The web service is returning the following:

 

<?xml version="1.0" encoding="utf-8"?>

   <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

      <soap:Body>

         <GetPlanCountsResponse xmlns="http://www.relius.net/">

            <GetPlanCountsResult>

               <Notice Type="form5500-pending-prior" Number="1" />

               <Notice Type="form5500-pending-current" Number="0" />

               <Notice xsi:nil="true" />

            </GetPlanCountsResult>

         </GetPlanCountsResponse>

      </soap:Body>

   </soap:Envelope>

 

 

Any help would be greatly appreciated!!!

 

Thank you,
Ken Hoying

 



**************************************************************
This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************

Reply via email to