Call to Web Service works on 4.02, but not on 4.0.1SP1
jpkresho Jun 8, 2005 4:10 PMI have a web service that runs fine when it is deployed using the JBOSS 4.0.2 default installation. I have a requirement to also deploy this web service in a JBOSS 4.0.1sp1 installation.
When I try to call the writeHashResults method, I receive the following error:
Invalid Element in hash_receiver.Hash_ReceiverSEI_WriteHashResults_RequestStruct - HashHolder_1
Again, when I deploy the exact same WAR file, everything works in JBOSS 4.0.2. WSDL is below. WSDL was created using WSCOMPILE from Sun.
Thanks for the help.
------------------WSDL BELOW-------------------------
<?xml version="1.0" encoding="UTF-8"?> <definitions name="Results_WriterService" targetNamespace="http://atc.hash_receiver.org" xmlns:tns="http://atc.hash_receiver.org" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <types> <schema targetNamespace="http://atc.hash_receiver.org" xmlns:tns="http://atc.hash_receiver.org" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema"> <complexType name="WriteFileIDResults"> <sequence> <element name="ATC_FileID_Results_1" type="tns:ATC_FileID_Results" nillable="true"/></sequence></complexType> <complexType name="ATC_FileID_Results"> <sequence> <element name="GUID" type="string" nillable="true"/> <element name="fileID" type="int"/> <element name="fileID_Text" type="string" nillable="true"/></sequence></complexType> <complexType name="WriteFileIDResultsResponse"> <sequence/></complexType> <complexType name="WriteHashResults"> <sequence> <element name="HashHolder_1" type="tns:HashHolder" nillable="true"/></sequence></complexType> <complexType name="HashHolder"> <sequence> <element name="guid" type="string" nillable="true"/> <element name="md5" type="string" nillable="true"/> <element name="sha1" type="string" nillable="true"/></sequence></complexType> <complexType name="WriteHashResultsResponse"> <sequence/></complexType> <element name="WriteFileIDResults" type="tns:WriteFileIDResults"/> <element name="WriteFileIDResultsResponse" type="tns:WriteFileIDResultsResponse"/> <element name="WriteHashResults" type="tns:WriteHashResults"/> <element name="WriteHashResultsResponse" type="tns:WriteHashResultsResponse"/></schema></types> <message name="Hash_ReceiverSEI_WriteFileIDResults"> <part name="parameters" element="tns:WriteFileIDResults"/></message> <message name="Hash_ReceiverSEI_WriteFileIDResultsResponse"> <part name="result" element="tns:WriteFileIDResultsResponse"/></message> <message name="Hash_ReceiverSEI_WriteHashResults"> <part name="parameters" element="tns:WriteHashResults"/></message> <message name="Hash_ReceiverSEI_WriteHashResultsResponse"> <part name="result" element="tns:WriteHashResultsResponse"/></message> <portType name="Hash_ReceiverSEI"> <operation name="WriteFileIDResults"> <input message="tns:Hash_ReceiverSEI_WriteFileIDResults"/> <output message="tns:Hash_ReceiverSEI_WriteFileIDResultsResponse"/></operation> <operation name="WriteHashResults"> <input message="tns:Hash_ReceiverSEI_WriteHashResults"/> <output message="tns:Hash_ReceiverSEI_WriteHashResultsResponse"/></operation></portType> <binding name="Hash_ReceiverSEIBinding" type="tns:Hash_ReceiverSEI"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <operation name="WriteFileIDResults"> <soap:operation soapAction=""/> <input> <soap:body use="literal"/></input> <output> <soap:body use="literal"/></output></operation> <operation name="WriteHashResults"> <soap:operation soapAction=""/> <input> <soap:body use="literal"/></input> <output> <soap:body use="literal"/></output></operation></binding> <service name="Results_WriterService"> <port name="Hash_ReceiverSEIPort" binding="tns:Hash_ReceiverSEIBinding"> <soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>