This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Encoding style not supported  RSS feed

Amol Desai
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!