Hi Guys,
                  I posted this one before but did not get any help.I can
send any files u want to look at ?.
thx
pradeep.

Why the response is not in the same name space as request.
The request
<?xml version="1.0" encoding ="UTF-8"?>
<soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema";
       xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <soapenv:Body>
<addMember xmlns="http://beans";>
    <AliasType xmlns="http://beans";><AliasValue xmlns="">After all its an
alias</AliasValue><AliasCode xmlns="">1234</AliasCode></AliasType>
</addMember>
 </soapenv:Body>
</soapenv:Envelope>

<?xml version="1.0" encoding ="UTF-8"?>
<soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema";
       xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <soapenv:Body>
<addMemberResponse xmlns="http://beans";>
    <AliasType ><AliasValue >After all its an alias</AliasValue><AliasCode
>1234</AliasCode></AliasType>
</addMemberResponser>
 </soapenv:Body>
</soapenv:Envelope>


           I'm having castor serialization problems because response and
request are not in the same name space. Due to this when i try to
unmarshell the response i get
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Unable to
marshall between XML and Castor Objects :unable to find FieldDescriptor for
'AliasValue' in ClassDescriptor of AliasType
at
org.apache.axis.encoding.ser.castor.CastorDeserializer.onEndElement(CastorDeserializer.java:108)
      at
org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:544)
      at
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1094)
      at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:204)
      at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:856)
      at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:235)
      at org.apache.axis.message.RPCElement.getParams(RPCElement.java:349)
      at org.apache.axis.client.Call.invoke(Call.java:2379)
      at org.apache.axis.client.Call.invoke(Call.java:2278)
      at org.apache.axis.client.Call.invoke(Call.java:1772)
      at
stubs1.CastorServiceSoapBindingStub.addMember(CastorServiceSoapBindingStub.java:145)
      at client.TestClient.main(TestClient.java:36)

The server code is in the directory stubs1 and serverconfig.wsddd in
web-inf folder.





thx
pradeep



----------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------





Reply via email to