3 Replies Latest reply on Oct 24, 2007 6:23 PM by g king

    SoapFaultException using anyType

    g king Newbie

      I'm attempting to access a web-service on a clients machine, but, receive one of the vaguest errors ever:

      2007-10-17 11:44:18,875 INFO [STDOUT:140] javax.xml.rpc.soap.SOAPFaultException: SoapMapper:Can't create mapper inside 'anyType' of type anySimpleType in namespace http://www.w3.org/2001/XMLSchema.
      2007-10-17 11:44:18,875 INFO [STDOUT:140] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:360)
      2007-10-17 11:44:18,875 INFO [STDOUT:140] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:224)
      2007-10-17 11:44:18,875 INFO [STDOUT:140] at com.comira.ScheduleSoapPort_Stub.getCandidateScheduleData(ScheduleSoapPort_Stub.java:170)
      


      I'm not sure what is causing the problem and was hoping someone could help.

      I'm using jwsdp1.3, jboss-4.0.3SP1, jdk1.4.2_13.

      Thanks,
      Graham

        • 1. Re: SoapFaultException using anyType
          g king Newbie

          Can anyone tell me which version of JBoss works with jdk1.4.2 and supports the anyType type element?

          This seemed to state that there was a problem with rpc encoded web-services: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032888#4032888

          I've tried to change them to literal, but, have been unsuccessful..

          And this says that it's fixed, but, it doesn't say which version to use:
          http://jira.jboss.com/jira/browse/JBWS-1595

          Thanks.

          Graham

          Here's the wsdl. If you see anything that might be causing the problem please let me know:

          <?xml version='1.0' encoding='UTF-8' ?>
          <!-- Generated 04/03/06 by Microsoft SOAP Toolkit WSDL File Generator, Version 3.00.1325.0 -->
          <definitions
           name='ALMVTC'
           targetNamespace=' http://actcenters.com/ALMVTC.WSDL'
           xmlns:wsdlns='http://actcenters.com/ALMVTC/wsdl/'
           xmlns:typens='http://actcenters.com/ALMVTC/type/'
           xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
           xmlns:xsd='http://www.w3.org/2001/XMLSchema'
           xmlns:stk='http://schemas.microsoft.com/soap-toolkit/wsdl-extension'
           xmlns:dime='http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/'
           xmlns:ref='http://schemas.xmlsoap.org/ws/2002/04/reference/'
           xmlns:content='http://schemas.xmlsoap.org/ws/2002/04/content-type/'
           xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
           xmlns='http://schemas.xmlsoap.org/wsdl/'>
          
           <types>
           <schema
           targetNamespace='http://actcenters.com/ALMVTC/type/'
           xmlns='http://www.w3.org/2001/XMLSchema'
           xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
           xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
           elementFormDefault='qualified'>
          
           <import namespace='http://schemas.xmlsoap.org/soap/encoding/'/>
           <import namespace='http://schemas.xmlsoap.org/wsdl/'/>
           <import namespace='http://schemas.xmlsoap.org/ws/2002/04/reference/'/>
           <import namespace='http://schemas.xmlsoap.org/ws/2002/04/content-type/'/>
          
           </schema>
           </types>
          
           <message name='Registration.register'>
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Registration.registerResponse'>
           <part name='Result' type='xsd:anyType'/>
          
           </message>
          
           <message name='ScheduleData.getScheduleData'>
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='ScheduleData.getScheduleDataResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getVersion'>
          
           </message>
          
           <message name='Schedule.getVersionResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getSiteTitleList'>
           <part name='SiteTitleList' type='xsd:anyType'/>
           <part name='sTitleId' type='xsd:anyType'/>
          
           <part name='sSiteName' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getSiteTitleListResponse'>
           <part name='Result' type='xsd:boolean'/>
           <part name='SiteTitleList' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.setInactiveFlag'>
           <part name='sTitleId' type='xsd:anyType'/>
          
           <part name='sSiteID' type='xsd:anyType'/>
           <part name='sInactive' type='xsd:anyType'/>
           <part name='sErr' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.setInactiveFlagResponse'>
           <part name='Result' type='xsd:boolean'/>
           <part name='sErr' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getSiteName'>
           <part name='sSiteID' type='xsd:anyType'/>
           <part name='sSiteName' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getSiteNameResponse'>
           <part name='Result' type='xsd:boolean'/>
           <part name='sSiteName' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.setSitesTitleFlag'>
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.setSitesTitleFlagResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getStatesByTitleId'>
          
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getStatesByTitleIdResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getSitesBySiteNameTitleId'>
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getSitesBySiteNameTitleIdResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getProctorStationIdsByStateTitle'>
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getProctorStationIdsByStateTitleResponse'>
          
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getProctorStationInfo'>
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getProctorStationInfoResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getTestCenters'>
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getTestCentersResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getAvailableDays'>
          
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getAvailableDaysResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getAvailableAppointments'>
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getAvailableAppointmentsResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.scheduleAppointment'>
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.scheduleAppointmentResponse'>
          
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.cancelAppointment'>
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.cancelAppointmentResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.serviceCheck'>
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.serviceCheckResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getCandidateScheduleData'>
          
           <part name='sRequest' type='xsd:anyType'/>
           </message>
          
           <message name='Schedule.getCandidateScheduleDataResponse'>
           <part name='Result' type='xsd:anyType'/>
           </message>
          
           <portType name='RegistrationSoapPort'>
          
           <operation name='register' parameterOrder='sRequest'>
          
           <input message='wsdlns:Registration.register'/>
           <output message='wsdlns:Registration.registerResponse'/>
           </operation>
          
           </portType>
          
           <portType name='ScheduleDataSoapPort'>
          
           <operation name='getScheduleData' parameterOrder='sRequest'>
           <input message='wsdlns:ScheduleData.getScheduleData'/>
          
           <output message='wsdlns:ScheduleData.getScheduleDataResponse'/>
           </operation>
          
           </portType>
          
           <portType name='ScheduleSoapPort'>
          
           <operation name='getVersion' parameterOrder=''>
          
           <output message='wsdlns:Schedule.getVersionResponse'/>
          
           </operation>
          
           <operation name='getSiteTitleList' parameterOrder='SiteTitleList sTitleId sSiteName'>
           <input message='wsdlns:Schedule.getSiteTitleList'/>
           <output message='wsdlns:Schedule.getSiteTitleListResponse'/>
           </operation>
          
           <operation name='setInactiveFlag' parameterOrder='sTitleId sSiteID sInactive sErr'>
           <input message='wsdlns:Schedule.setInactiveFlag'/>
           <output message='wsdlns:Schedule.setInactiveFlagResponse'/>
          
           </operation>
          
           <operation name='getSiteName' parameterOrder='sSiteID sSiteName'>
           <input message='wsdlns:Schedule.getSiteName'/>
           <output message='wsdlns:Schedule.getSiteNameResponse'/>
           </operation>
          
           <operation name='setSitesTitleFlag' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.setSitesTitleFlag'/>
           <output message='wsdlns:Schedule.setSitesTitleFlagResponse'/>
          
           </operation>
          
           <operation name='getStatesByTitleId' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.getStatesByTitleId'/>
           <output message='wsdlns:Schedule.getStatesByTitleIdResponse'/>
           </operation>
          
           <operation name='getSitesBySiteNameTitleId' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.getSitesBySiteNameTitleId'/>
           <output message='wsdlns:Schedule.getSitesBySiteNameTitleIdResponse'/>
          
           </operation>
          
           <operation name='getProctorStationIdsByStateTitle' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.getProctorStationIdsByStateTitle'/>
           <output message='wsdlns:Schedule.getProctorStationIdsByStateTitleResponse'/>
           </operation>
          
           <operation name='getProctorStationInfo' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.getProctorStationInfo'/>
           <output message='wsdlns:Schedule.getProctorStationInfoResponse'/>
          
           </operation>
          
           <operation name='getTestCenters' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.getTestCenters'/>
           <output message='wsdlns:Schedule.getTestCentersResponse'/>
           </operation>
          
           <operation name='getAvailableDays' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.getAvailableDays'/>
           <output message='wsdlns:Schedule.getAvailableDaysResponse'/>
          
           </operation>
          
           <operation name='getAvailableAppointments' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.getAvailableAppointments'/>
           <output message='wsdlns:Schedule.getAvailableAppointmentsResponse'/>
           </operation>
          
           <operation name='scheduleAppointment' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.scheduleAppointment'/>
           <output message='wsdlns:Schedule.scheduleAppointmentResponse'/>
          
           </operation>
          
           <operation name='cancelAppointment' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.cancelAppointment'/>
           <output message='wsdlns:Schedule.cancelAppointmentResponse'/>
           </operation>
          
           <operation name='serviceCheck' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.serviceCheck'/>
           <output message='wsdlns:Schedule.serviceCheckResponse'/>
          
           </operation>
          
           <operation name='getCandidateScheduleData' parameterOrder='sRequest'>
           <input message='wsdlns:Schedule.getCandidateScheduleData'/>
           <output message='wsdlns:Schedule.getCandidateScheduleDataResponse'/>
           </operation>
          
           </portType>
          
           <binding name='RegistrationSoapBinding' type='wsdlns:RegistrationSoapPort' >
          
           <stk:binding preferredEncoding='UTF-8'/>
           <soap:binding style="document" transport='http://schemas.xmlsoap.org/soap/http'/>
          
           <operation name='register'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Registration.register'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
          
           <soap:body use="literal"/>
           </output>
           </operation>
          
           </binding>
          
           <binding name='ScheduleDataSoapBinding' type='wsdlns:ScheduleDataSoapPort' >
          
           <stk:binding preferredEncoding='UTF-8'/>
           <soap:binding style="document" transport='http://schemas.xmlsoap.org/soap/http'/>
          
           <operation name='getScheduleData'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/ScheduleData.getScheduleData'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
          
           </operation>
          
           </binding>
          
           <binding name='ScheduleSoapBinding'
           type='wsdlns:ScheduleSoapPort' >
          
           <stk:binding preferredEncoding='UTF-8'/>
           <soap:binding style="document" transport='http://schemas.xmlsoap.org/soap/http'/>
          
           <operation name='getVersion'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getVersion'/>
          
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='getSiteTitleList'>
          
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getSiteTitleList'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='setInactiveFlag'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.setInactiveFlag'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='getSiteName'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getSiteName'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
          
           </operation>
          
           <operation name='setSitesTitleFlag'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.setSitesTitleFlag'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='getStatesByTitleId'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getStatesByTitleId'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
          
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='getSitesBySiteNameTitleId'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getSitesBySiteNameTitleId'/>
           <input>
           <soap:body use="literal"/>
           </input>
          
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='getProctorStationIdsByStateTitle'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getProctorStationIdsByStateTitle'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='getProctorStationInfo'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getProctorStationInfo'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='getTestCenters'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getTestCenters'/>
          
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='getAvailableDays'>
          
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getAvailableDays'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='getAvailableAppointments'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getAvailableAppointments'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='scheduleAppointment'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.scheduleAppointment'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
          
           </operation>
          
           <operation name='cancelAppointment'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.cancelAppointment'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='serviceCheck'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.serviceCheck'/>
           <input>
           <soap:body use="literal"/>
           </input>
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           <operation name='getCandidateScheduleData'>
           <soap:operation soapAction='http://actcenters.com/ALMVTC/action/Schedule.getCandidateScheduleData'/>
           <input>
           <soap:body use="literal"/>
           </input>
          
           <output>
           <soap:body use="literal"/>
           </output>
           </operation>
          
           </binding>
          
           <service name='ALMVTC' >
           <port name='RegistrationSoapPort' binding='wsdlns:RegistrationSoapBinding' >
           <soap:address location='http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL'/>
          
           </port>
           <port name='ScheduleDataSoapPort' binding='wsdlns:ScheduleDataSoapBinding' >
           <soap:address location='http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL'/>
           </port>
           <port name='ScheduleSoapPort' binding='wsdlns:ScheduleSoapBinding' >
           <soap:address location='http://cwcdev.corporate.act.org/schedule/ALMVTC.WSDL'/>
           </port>
           </service>
          
          </definitions>
          


          • 2. Re: SoapFaultException using anyType
            g king Newbie

            looks like it's fixed in

            jbossws-native-2.0.0.GA

            and above

            • 3. Re: SoapFaultException using anyType
              g king Newbie

              Not so sure... Still can't get it to work...