wood burning stoves
The moose likes Web Services and the fly likes java.lang.IllegalArgumentException: No Serializer found to serialize a 'com.sun.xml.messaging.saaj.s Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "java.lang.IllegalArgumentException: No Serializer found to serialize a Watch "java.lang.IllegalArgumentException: No Serializer found to serialize a New topic

java.lang.IllegalArgumentException: No Serializer found to serialize a 'com.sun.xml.messaging.saaj.s

sarmi ghosh

Joined: Nov 05, 2009
Posts: 1
Can anyone help me on this Please......
I am trying to use DOC-Literal Web service with WSIF tool .
Error as
java.lang.IllegalArgumentException: No Serializer found to serialize a 'com.sun.xml.messaging.saaj.soap.impl.ElementImpl' using encoding style 'literal'.
Error Line
if (operation.executeRequestResponseOperation(input, output, fault))

Total Code
// get the service
//Service service;//= SOAPHelper.getWSIFService(SOAPHelper.TPAROLEAUTHORIZATION_SERVICE_NAME);
//service.getPort(port, serviceEndpointInterface);
WSIFPort port = service.getPort();
WSIFOperation operation = port.createOperation("getUserTPAEntitlement");

// create the input, output and fault messages associated
// with this operation
WSIFMessage input = operation.createInputMessage();
WSIFMessage output = operation.createOutputMessage();
WSIFMessage fault = operation.createFaultMessage();

// input.setObjectPart("in0", inputBean);
SOAPFactory soapfactory = SOAPFactory.newInstance();
SOAPElement request = soapfactory.createElement("getUserTPAEntitlementElement", "ns0",
SOAPElement nameChild = soapfactory.createElement("in0");
input.setObjectPart("parameters", request);
if (operation.executeRequestResponseOperation(input, output, fault))
// Get the output
//returnVo = (BaseNetworkBean) output.getObjectPart("getPlanAuthorityReturn");
//returnCo = (Collection) output.getObjectPart("getUserTPAEntitlementReturn");
Object[] objects = (Object[]) output.getObjectPart("getUserTPAEntitlementReturn");
if (objects != null && objects.length > 0)
// Put into an array list
for (int i = 0; i < objects.length; i++)

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
First of all, having had a quick look at the WSIF web site, I notice that it seems like nothing has happened for more than 6 years.
This leads me to suspect that there will be problems using this tool to invoke a Document/Literal web service.
I see that you are trying to use parts from SAAJ (which, I also suspect, may cause problems when used with WSIF) - how about skipping the WSIF part and using only SAAJ to invoke the web service?
If you want an example on how to issue web service requests using SAAJ, take a look at page 199 in my document: http://faq.javaranch.com/content/Exam-Objectives-5.pdf
Best wishes!
I agree. Here's the link: http://aspose.com/file-tools
subject: java.lang.IllegalArgumentException: No Serializer found to serialize a 'com.sun.xml.messaging.saaj.s
It's not a secret anymore!