File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes org.xml.sax.SAXException: No deserializer for{http://DefaultNamespace}ARRAYNAME</faultstring> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "org.xml.sax.SAXException: No deserializer for{http://DefaultNamespace}ARRAYNAME</faultstring> " Watch "org.xml.sax.SAXException: No deserializer for{http://DefaultNamespace}ARRAYNAME</faultstring> " New topic
Author

org.xml.sax.SAXException: No deserializer for{http://DefaultNamespace}ARRAYNAME</faultstring>

Nagendra E Loli
Greenhorn

Joined: Feb 23, 2009
Posts: 12
Hi Everybody..

I am very New to Web service. And i developed a web service. the Java calss looks like below..


import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLDecoder;

import org.apache.log4j.Logger;
import org.apache.soap.encoding.Hex;
import utility.ArrayString;

public class CPServices implements Serializable
{
/**
*
*/

HttpURLConnection _oConn = null;

public void smsMo(java.lang.String service_id, java.lang.String source_mobtel, java.lang.String sub_id,
java.lang.String keyword, java.lang.String transaction_id, java.lang.String short_code_suffix_ind,
java.lang.String short_code_suffix, AdditionalInfo[] array_of_info, SMSContent[] sms_contents)
{
System.out.println("Control Inside the smsMo()");

}

public void mtResp(java.lang.String service_id, java.lang.String source_mobtel,
java.lang.String destination_mobtel, java.lang.String delivery_channel,
java.lang.String transaction_id, java.lang.String ref_id, int notification_ind,
java.lang.String error_code, java.lang.String success_list, java.lang.String error_list)
{
System.out.println("Control Inside the mtResp()");
}
}


the smsMo() contains 2 array parameters. the SMSContent & AdditionalInfo classes are as below




import java.io.Serializable;

public class SMSContent implements Serializable
{
public java.lang.String content;

public java.lang.String ucp_data_coding_id;

public java.lang.String ucp_msg_class;

public java.lang.String ucp_msg_type;

public SMSContent()
{
}

public SMSContent(java.lang.String content, java.lang.String ucp_data_coding_id,
java.lang.String ucp_msg_class, java.lang.String ucp_msg_type)
{
this.content = content;
this.ucp_data_coding_id = ucp_data_coding_id;
this.ucp_msg_class = ucp_msg_class;
this.ucp_msg_type = ucp_msg_type;
}

public java.lang.String getContent() {
return content;
}

public void setContent(java.lang.String content) {
this.content = content;
}

public java.lang.String getUcp_data_coding_id() {
return ucp_data_coding_id;
}

public void setUcp_data_coding_id(java.lang.String ucp_data_coding_id) {
this.ucp_data_coding_id = ucp_data_coding_id;
}

public java.lang.String getUcp_msg_class() {
return ucp_msg_class;
}

public void setUcp_msg_class(java.lang.String ucp_msg_class) {
this.ucp_msg_class = ucp_msg_class;
}

public java.lang.String getUcp_msg_type() {
return ucp_msg_type;
}

public void setUcp_msg_type(java.lang.String ucp_msg_type) {
this.ucp_msg_type = ucp_msg_type;
}
}













import java.io.Serializable;

public class AdditionalInfo implements Serializable
{
public java.lang.String name;

public java.lang.String value;

public AdditionalInfo()
{
}

public AdditionalInfo(java.lang.String name, java.lang.String value)
{
this.name = name;
this.value = value;
}

public java.lang.String getName() {
return name;
}

public void setName(java.lang.String name) {
this.name = name;
}

public java.lang.String getValue() {
return value;
}

public void setValue(java.lang.String value) {
this.value = value;
}


}









I generated a WSDL from these classes..

When i tried to send an array to the smsMo() i am getting the following Error :


- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Body>
- <soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXException: No deserializer for {http://DefaultNamespace}SMSContent</faultstring>
- <detail>
<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">sfjdev</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>


I don't what's this error is.. I really got wired up with this error.. I have a work to e completed within this tomorrow.. because of this error i got stuck.. Please anyone help me to solve this...


Thanks & Regards.
Nagendra E Loli
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.xml.sax.SAXException: No deserializer for{http://DefaultNamespace}ARRAYNAME</faultstring>