My xbean is:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:http="http://servicemix.mycompany.org/http/1.0";
       xmlns:soap="http://servicemix.apache.org/soap/1.0";
       xmlns:servicio="http://impl.mydomain.org/";>

<bean id="propertyPlaceholderConfigurer"
       
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="location" value="classpath:wsvdir.properties"/>
</bean>               
  <http:endpoint service="servicio:MyserviceImplService" 
                 endpoint="MyserviceSOAP"
                 role="provider"                 
                 locationURI="${servicio.myservice.locationURI}"
                 soap="true"
                 soapVersion="1.1"/>

  <http:endpoint service="servicio:MyserviceImplServicemix"
                 endpoint="MyserviceSOAPConsumer"
                 role="consumer"            
                 targetService="servicio:MyserviceImplService"    
                 targetEndpoint="MyserviceImplPort"                             
       
                 locationURI="${servicio.myservice.consumer.locationURI}"
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                 wsdlResource = "${servicio.myservice.wsdlResource}?wsdl"
                 soap="true"
                 soapVersion="1.1">
                <http:policies>
                        <soap:ws-addressing />
                        <soap:ws-security receiveAction="UsernameToken 
Signature">
                                <soap:crypto>
                                        <bean
                                                
class="org.apache.servicemix.soap.handlers.security.StandaloneCrypto">
                                                <property name="keyStoreUrl" 
value="classpath:truststore.jks" />
                                                <property name="keyStoreType" 
value="jks" />
                                                <property 
name="keyStorePassword" value="changeit" />
                                                <property name="keyPassword" 
value="changeit" />
                                        </bean>
                                </soap:crypto>
                                <property name="actor"
                                        
value="http://www.mycompany.org/Authentication/1.0"; />
                                <property name="domain" value="mycompany" />
                        </soap:ws-security>
                </http:policies>
  </http:endpoint>

  <http:endpoint service="servicio:OtherserviceImplService" 
                 endpoint="OtherserviceSOAP"
                 role="provider"                 
                 locationURI="${servicio.myotherservice.locationURI}"
                 soap="true"
                 soapVersion="1.1"/>

  <http:endpoint service="servicio:OtherserviceImplServicemix"
                 endpoint="OtherserviceSOAPConsumer"
                 role="consumer"            
                 targetService="servicio:OtherserviceImplService"    
                 targetEndpoint="OtherserviceImplPort"                          
          
                
locationURI="${servicio.myotherservice.consumer.locationURI}"
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
                 wsdlResource = "${servicio.myotherservice.wsdlResource}?wsdl"
                 soap="true"
                 soapVersion="1.1">
                <http:policies>
                        <soap:ws-addressing />
                        <soap:ws-security receiveAction="UsernameToken 
Signature">
                                <soap:crypto>
                                        <bean
                                                
class="org.apache.servicemix.soap.handlers.security.StandaloneCrypto">
                                                <property name="keyStoreUrl" 
value="classpath:truststore.jks" />
                                                <property name="keyStoreType" 
value="jks" />
                                                <property 
name="keyStorePassword" value="changeit" />
                                                <property name="keyPassword" 
value="changeit" />
                                        </bean>
                                </soap:crypto>
                                <property name="actor"
                                        
value="http://www.mycompany.org/Authentication/1.0"; />
                                <property name="domain" value="mycompany" />
                        </soap:ws-security>
                </http:policies>
  </http:endpoint>

</beans>


Error: Caused by:
org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized
xbean namespace mapping: http://servicemix.mycompany.org/http/1.0


Thanks






Freeman Fang wrote:
> 
> Hi,
> 
> Could you post your whole xbean.xml? Although I'm not sure what you  
> want, but post whole xbean.xml is easy for more help.
> Btw, where the namespace http://servicemix.myspace.org/http/1.0 from?
> 
> Freeman
> On 2010-3-11, at 下午9:23, jpepalmero wrote:
> 
>>
>> Thanks in advance. I'm working on a project and need to define an own
>> namespace. This is not how to do it, believing it unnecessary. When  
>> you
>> reference from my xbean service unit in I got the following error:
>>
>> Caused by:  
>> org.springframework.beans.factory.BeanDefinitionStoreException:
>> Unrecognized xbean namespace mapping:
>> http://servicemix.myspace.org/http/1.0
>> :working:
>> -- 
>> View this message in context:
>> http://old.nabble.com/%3Csmiley-image%3D%27anim_working.gif%27-text%3D%27%3Aworking%3A%27--%3E-Unrecognized-xbean-namespace-mapping%3A-mynamespace-in-xbean-tp27863383p27863383.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
> 
> 
> -- 
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/%3Csmiley-image%3D%27anim_working.gif%27-text%3D%27%3Aworking%3A%27--%3E-Unrecognized-xbean-namespace-mapping%3A-mynamespace-in-xbean-tp27863383p27863907.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to