1 Reply Latest reply on Feb 23, 2005 8:41 AM by Thomas Diesler

    JBOSS WS serialization error

    Rajesh Kanderi Newbie

      I have a documentliteral webservice that i created following the examples on the http://www.jboss.org/wiki/Wiki.jsp?page=WSDOCServiceStepByStep

      I was able to install this service on the JBOSS server, but when i invoke it using a Jboss web client i get the following error :

      ERROR [org.apache.axis.providers.java.RPCInvocation] org.xml.sax.SAXException: Invalid eleme
      nt in com.xxx.webservice.OA.OAWebSvc_getAccount_RequestStruct - String_1
      org.xml.sax.SAXException: Invalid element in com.xxx.webservice.OA.OAWebSvc_getAccount_RequestStruct - String_1
      at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:407)
      at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1166)
      at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:244)


      in the wsdl i have the following entries :-

      import namespace="http://com.xxx.webservice/OA/types/arrays/java/lang"/
      complexType name="getAccount">
      sequence>
      element name="String_1" type="string" nillable="true"/>
      complexType name="getAccountResponse">
      sequence>
      element name="result" type="tns:accountDetail" nillable="true"/>
      complexType name="accountDetail">
      sequence>


      the class :-

      public class OAWebSvc_getAccount_RequestStruct {
      protected java.lang.String String_1;

      public OAWebSvc_getAccount_RequestStruct() {
      }

      public OAWebSvc_getAccount_RequestStruct(java.lang.String String_1) {
      this.String_1 = String_1;
      }

      public java.lang.String getString_1() {
      return String_1;
      }

      public void setString_1(java.lang.String String_1) {
      this.String_1 = String_1;
      }
      }