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
WSIFService service = SOAPHelper.getWSIFService(SOAPHelper.TPAROLEAUTHORIZATION_SERVICE_NAME);
System.out.println("service="+service);
//Service service;//= SOAPHelper.getWSIFService(SOAPHelper.TPAROLEAUTHORIZATION_SERVICE_NAME);
//service.getPort(port, serviceEndpointInterface);
WSIFPort port = service.getPort();
System.out.println("port="+port);
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",
"
http://localhost:8080/TPAHomeAuthorization/iws/ws/TPARoleAuthorizationService?wsdl");
SOAPElement nameChild = soapfactory.createElement("in0");
nameChild.addTextNode("inputBean");
request.addChildElement(nameChild);
input.setObjectPart("parameters", request);
System.out.println("Sarmi4");
if (operation.executeRequestResponseOperation(input, output, fault))
{
System.out.println("Sarmi5");
// 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++)
{
results.add(objects[i]);
}
}
}