The namespace associated with the prefix 'xsi' could not be resolved
--------------------------------------------------------------------
Key: XFIRE-999
URL: http://jira.codehaus.org/browse/XFIRE-999
Project: XFire
Issue Type: Bug
Components: Castor
Environment: All Operating systems, all Java versions
Reporter: Amit Karandikar
Assignee: Dan Diephouse
Attachments: CastorType.java
The following response from a web service results in an error on an xfire
client using Castor for binding -
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<Header xmlns="www.aaa.com/webservices">
<Test>false</Test>
<ServiceVersion>1</ServiceVersion>
<RequestorId>ABC</RequestorId>
<RequestorKey xsi:nil="true"/>
<RequestGUID xsi:nil="true"/>
<RequestSentDateTime>2007-05-15T11:27:01.9050000-04:00</RequestSentDateTime>
<RequestReceivedDateTime>2007-05-15T11:27:05.5506184-04:00</RequestReceivedDateTime>
<ResponseSentDateTime>2007-05-15T11:27:05.6912362-04:00</ResponseSentDateTime>
<ResponseReceivedDateTime>2007-05-15T11:27:01.9050000-04:00</ResponseReceivedDateTime>
</Header>
</soap:Header>
<soap:Body>
<PerformActionResponse xmlns="www.aaa.com/webservices">
<Data>
<Status>Error</Status>
<Errors>
<Error>
<Code>CC00</Code>
<Text>The Client Certificate
was was missing or invalid</Text>
</Error>
</Errors>
<Extensions xsi:nil="true"/>
</Data>
</PerformActionResponse>
</soap:Body>
</soap:Envelope>
Even though xsi namespace has been declared, it does not get resolved on the
"Extensions" node that has a nil value. The error from xfire was:
The namespace associated with the prefix 'xsi' could not be resolved.
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:614)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:760)
at org.codehaus.xfire.castor.CastorType.readObject(CastorType.java:139)
at
org.codehaus.xfire.aegis.AegisBindingProvider.readParameter(AegisBindingProvider.java:162)
at
org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:206)
at
org.codehaus.xfire.service.binding.DocumentBinding.readMessage(DocumentBinding.java:32)
at
org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Client.onReceive(Client.java:387)
at
org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at
org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
at org.codehaus.xfire.client.Client.invoke(Client.java:335)
at
org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
This issue also has been referenced in a Castor forum with a fix:
http://hypermail.linklord.com/castor-dev/2004/Mar/3440.html
The fix to the CastorType class is attached to resolve this issue.
Thanks
Amit Karandikar
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email