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 unexpected encoding style: jax rpc  dii error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "unexpected encoding style: jax rpc  dii error " Watch "unexpected encoding style: jax rpc  dii error " New topic

unexpected encoding style: jax rpc dii error

samrat.barve samrat.barve

Joined: Apr 16, 2003
Posts: 2
hi i am accessing dot net web service from java client using jax rpc dii .
my dot net web service has a method which reeturn an int and it takes no parameters .
when i run my code i am getting following error :
unexpected encoding style: expected=, actual= at com.sun.xml.rpc.encoding.SOAPDeserializationContext.verifyEncodingStyle(
at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(
at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(
at com.sun.xml.rpc.client.dii.CallInvokerImpl._readFirstBodyElement(
at com.sun.xml.rpc.client.StreamingSender._send(
at com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(
at com.sun.xml.rpc.client.dii.BasicCall.invoke(
at dpclient.main(
From the error above it seems that dot net web service does not encode response as required by jax rpc dii .
any help on this appreciated !!
agilan palani

Joined: Jun 10, 2003
Posts: 11
I too have the same problem. Please reply if you have solved the problem
I agree. Here's the link:
subject: unexpected encoding style: jax rpc dii error
Similar Threads
Passing Credentials to Web service
Error while Calling createService in DII Client
Invoking WebService Implemented using VB 6.0 from a Java/J2EE Client
Setting WEb services credentials
deserialization error: XML reader error: unexpected character content: "<?xml version='1.0' ?>