Hi, I am getting soap faults sending soap xmls to xfire. I don't get any problems passing AbstractReferenceData object as the only parameter, but the moment I add the ReferenceDataType parameter I get a fault.
My soap contents is as follows: <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Body> <createNewReferenceData xmlns="http://facade.common.business.casemgmt.corpsys.barcap.com"> <AbstractReferenceData xmlns="com.barcap.corpsys.casemgmt"> <active>true</active> <createdAt>2006-04-25T20:15:30.608Z</createdAt> <description>a</description> <domain> <active>true</active> <code xsi:nil="true"/> <createdAt>2006-04-25T20:15:30.608+08:00</createdAt> <id xsi:nil="true"/> <logicallyDeleted>false</logicallyDeleted> <updatedAt>2006-04-25T20:15:30.608+08:00</updatedAt> <updatedBy>undefined</updatedBy> <updatedVersion>0</updatedVersion> </domain> <id>-1</id> <logicallyDeleted>false</logicallyDeleted> <name>a</name> <parentId xsi:nil="true"/> <parentName xsi:nil="true"/> <shortcode>a</shortcode> <updatedAt>2006-04-25T20:15:30.608+08:00</updatedAt> <updatedBy>undefined</updatedBy> <updatedVersion>0</updatedVersion> <caseDomain> <active>true</active> <code>Test Domain</code> <createdAt>2006-04-06T12:33:59.216+08:00</createdAt> <id>404</id> <logicallyDeleted>false</logicallyDeleted> <updatedAt>2006-04-06T12:33:59.216+08:00</updatedAt> <updatedBy>SaveOrUpdateEventListener!</updatedBy> <updatedVersion>0</updatedVersion> </caseDomain> </AbstractReferenceData> <ReferenceDataType xmlns="">country</ReferenceDataType> <---tried xmlns="com.barcap.corpsys.casemgmt" but no diff </createNewReferenceData> </Body> </Envelope> And the web service is is as follows: @WebMethod() @WebResult(name = "AbstractReferenceData", targetNamespace = "com.barcap.corpsys.casemgmt") public AbstractReferenceData updateReferenceData( @WebParam(name = "AbstractReferenceData", header = false) AbstractReferenceData p_data, @WebParam(name = "ReferenceDataType", header = false) String p_referenceDataType) throws BusinessException; I'm getting the ClassCastException Fault (Earlier on I get type mismatch fault but it later became Class Cast Exception...I didn't seem to have changed anything much...): <?xml version='1.0' encoding='UTF-8'?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <soap:Fault> <faultcode>soap:Client</faultcode> <faultstring>Illegal argument invoking 'com.barcap.corpsys.casemgmt.business.common.facade.CommonWebService.cre ateNewReferenceData(com.barcap.corpsys.casemgmt.data.common.model.Abstra ctReferenceData, java.lang.String)': [EMAIL PROTECTED]</faultstring> </soap:Fault> </soap:Body> </soap:Envelope> I've verified that the AbstractReferenceData Object is correctly composed in the soap by passing it as a single parameter. Regards, Peh, Choon Whee IT AP - Corporate Systems > Barclays Capital Tel: +65 68285292 Mobile: +65 93884536, +65 90095952 e-mail: [EMAIL PROTECTED] ------------------------------------------------------------------------ For more information about Barclays Capital, please visit our web site at http://www.barcap.com. Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message. Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group. Replies to this email may be monitored by the Barclays Group for operational or business reasons. ------------------------------------------------------------------------
