File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Encoding style not supported Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Encoding style not supported" Watch "Encoding style not supported" New topic

Encoding style not supported

Amol Desai
Ranch Hand

Joined: Jan 29, 2003
Posts: 82
I am using DII(jaxrpc1.0) to invoke a web service running at
wsdl file is available there.
Following are the exceptions I get.
encoding style: "" not supported
at com.sun.xml.rpc.client.dii.BasicCall.getRequestSerializer(
at com.sun.xml.rpc.client.dii.BasicCall.invoke(
at otndeptclient.main(
Code to invoke web service is as below:

import javax.xml.rpc.Call;
import javax.xml.rpc.Service;
import javax.xml.rpc.JAXRPCException;
import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.ParameterMode;
public class otndeptclient {
private static String qnameService = "OTNDeptEmp";
private static String qnamePort = "OTNDeptEmpPort";
private static String BODY_NAMESPACE_VALUE =
private static String ENCODING_STYLE_PROPERTY =
private static String NS_XSD =
private static String URI_ENCODING =
public static void main(String[] args) {
try {
String endpoint= "";
ServiceFactory factory = ServiceFactory.newInstance();
Service service =factory.createService(new QName(qnameService));
QName port = new QName(qnamePort);
Call call = service.createCall(port);
new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
QName QNAME_TYPE_STRING = new QName(NS_XSD, "string");
call.setOperationName(new QName(BODY_NAMESPACE_VALUE,
String[] params = { };
String result = (String)call.invoke(params);
} catch (Exception ex) {
How do I overcome this problem, please let me know.
I agree. Here's the link:
subject: Encoding style not supported
It's not a secret anymore!