Hello,
I’m struggling to get simple HTTP basic authentication be “tagged” to http endpoints (for outbound communications). I’m using 2.0
I followed this page:
http://mule.mulesource.org/display/MULE2USER/Mule+SecurityAnd ended up with
<http:endpoint name="WebServiceGateway" host="127.0.0.1" user="123" password="password" remoteSync="true" port="8080" path="/echo" method="POST">
<property key="Content-Type" value="text/xml"/>
<security-filter className="org.mule.extras.acegi.filters.http.HttpBasicAuthenticationFilter">
<properties>
<property name="realm" value="my-realm"/>
</properties>
</security-filter>
</http:endpoint>
I get a schema issue;
23/07 02:56:23:234 main DEBUG - insert org.mule.config.spring.factories.OutboundEndpointFactoryBean -> org.mule.routing.outbound.OutboundPassThroughRouter
23/07 02:56:23:234 main DEBUG - register ref:WebServiceGateway.17: org.mule.config.spring.factories.OutboundEndpointFactoryBean
23/07 02:56:23:328 main ERROR - Configuration with "org.mule.config.builders.WebappMuleXmlConfigurationBuilder" failed.
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 38 in XML document from profile/shared/environment-config.xml is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'security-filter'. One of '{"http://www.mulesource.org/schema/mule/core/2.0":abstract-transformer, "http://www.mulesource.org/schema/mule/core/2.0":transformers, "http://www.mulesource.org/schema/mule/core/2.0":response-transformers, "http://www.mulesource.org/schema/mule/core/2.0":abstract-transaction, "http://www.mulesource.org/schema/mule/core/2.0":abstract-filter, "http://www.mulesource.org/schema/mule/core/2.0":abstract-security-filter, "http://www.mulesource.org/schema/mule/core/2.0":property, "http://www.mulesource.org/schema/mule/core/2.0":properties}' is expected.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:389)
at
I have also tried to use
http-security-filter from acegi but with no success.
My question is; Is this is correct way to attach credential to http outbound packets via the http:endpoint? If so, it is simply a schema issue?
Any assistance would be greatly appreciated.
Thanks,
Ian.