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;
}
}
I might have seen this issue. If it is related to case sensitivity you could try the current Branch_4_0 codebase, it should be fixed targeted for jboss-4.0.2
cvs co -r Branch_4_0 jboss-4.0