Title: Message
Hi Folks,
            I'm fairly new to WSIF but I created a WSIf client for a JBOSS session bean. In the WSDL that describes the service it clearly indicates that the type is that of xsd:double.
Therefore I was expecting the type of the object to be of type java.lang.Double when I extracted it from the output message. Unfortunately it is extracted as type java.lang.String.
 

WSIFServiceFactory factory = WSIFServiceFactory.newInstance();

WSIFService wsifService = factory.getService(wsdlLocation,serviceNS,serviceName,portTypeNS, portTypeName);

WSIFPort wsifPort = wsifService.getPort(portTypeName);

WSIFOperation wsifOperation = wsifPort.createOperation(operation);

WSIFMessage input =wsifOperation.createInputMessage();

WSIFMessage output=wsifOperation.createOutputMessage();

WSIFMessage fault =wsifOperation.createFaultMessage();

input.setObjectPart("in0","0407114");

boolean successful = wsifOperation.executeRequestResponseOperation(input,output,fault);

Object nextObj = null;

if (successful){

Iterator outIter = output.getPartNames();

while (outIter.hasNext())

{

nextObj= outIter.next();

System.out.println(nextObj.getClass());

System.out.println(nextObj.toString());

}

}

Reply via email to