You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2008/09/25 09:27:52 UTC
[jira] Resolved: (SMX4-120) change SOAPFactory and MessageFactory
name in saaj-impl bundle
[ https://issues.apache.org/activemq/browse/SMX4-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved SMX4-120.
-------------------------------
Fix Version/s: 4.0-m2
Resolution: Fixed
svn commit . -m "[SMX4-120]change SOAPFactory and MessageFactory name in saaj-impl bundle"
Sending saaj-impl-1.3/src/main/resources/META-INF/services/javax.xml.soap.MessageFactory
Sending saaj-impl-1.3/src/main/resources/META-INF/services/javax.xml.soap.SOAPFactory
Transmitting file data ..
Committed revision 698846.
> change SOAPFactory and MessageFactory name in saaj-impl bundle
> --------------------------------------------------------------
>
> Key: SMX4-120
> URL: https://issues.apache.org/activemq/browse/SMX4-120
> Project: ServiceMix 4
> Issue Type: Improvement
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 4.0-m2
>
>
> the saaj-impl bundle specify some meta-data under META-INFO/services like
> javax.xml.soap.SOAPFactory and javax.xml.soap.MessageFactory
> currently in javax.xml.soap.SOAPFactory we use the the abstract facade factory class com.sun.xml.messaging.saaj.soap.SOAPFactoryImpl
> and in javax.xml.soap.MessageFactory we use the abstract facade com.sun.xml.messaging.saaj.soap.MessageFactoryImpl
> But generally when we use saaj api to create soap mesasge, we use some code like
> if (version.getVersion() == 1.1) {
> factory = MessageFactory.newInstance();
> } else {
> factory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
> }
> if we create soap 11 message factory, we always don't specify the soap protocol name, in this case the current metadate for saaj-impl bundle would cause OperationNotSupported exception since we specify abstract facade factory class now.
> we should use com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl and com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl instead to make this bundle more tolerable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.