servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: Configuring proxy server for new HTTP Provider/CXF BC
Date Tue, 22 Jul 2008 15:27:58 GMT
looks like you miss
cxf-rt-transports-http-${cxf.version}.jar for your project

Freeman
Lukasz L. wrote:
> Thank you for the answer,
> I tried that but it's not working yet. 
> Should the http-conf:conduit element be used in xbean.xml of in cxf.xml
> configuration file?
> I tried to use it in xbean.xml but it seems to be ignored (I still got
> UnknownHostException).
> When I put that in conf/cxf.xml file I got parsing error.
>
> here's my configuration:
> cxf bc xbean.xml:
>
> <beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
> 	xmlns:wsx="http://www.webserviceX.NET">
> 	<cxfbc:provider wsdl="classpath:airport.wsdl"
> 		endpoint="wsx:airportSoap" service="wsx:airport"
> 		interfaceName="wsx:airportSoap" busCfg="classpath:cxf.xml" 
> 		useJBIWrapper="false"/>
> </beans>
>
> cxf.xml:
> <beans xmlns="http://www.springframework.org/schema/beans"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
> 	   xmlns:conf-sec="http://cxf.apache.org/configuration/security"
> 		xsi:schemaLocation="http://cxf.apache.org/transports/http/configuration
> http://cxf.apache.org/schemas/configuration/http-conf.xsd 
>   
http://cxf.apache.org/transports/http/configuration
           http://cxf.apache.org/schemas/configuration/http-conf.xsd

> 		http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
> 	<http-conf:conduit
> name="{http://www.webserviceX.NET}airportSoap.http-conduit">
> 		<http-conf:client ProxyServer="proxyServerAddres" ProxyServerPort="80"/> 
> 		<http-conf:proxyAuthorization>
> 			<conf-sec:UserName>user</conf-sec:UserName>
> 			<conf-sec:Password>password</conf-sec:Password>
> 		</http-conf:proxyAuthorization>
> 	</http-conf:conduit>
> </beans>
>
> the error I get is:
>
> WARNING: Failed to create application context.
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
> 11 in XML document from class path resource [cxf.xml] is invalid; nested
> exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The
> matching wildcard is strict, but no declaration can be found for element
> 'http-conf:conduit'.
> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The
> matching wildcard is strict, but no declaration can be found for element
> 'http-conf:conduit'.
> 	at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
> 	at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
>          ...
>
> (when I have xsd referenced like above I also get error in finding that
> schema + the above one,
> when I don't have xsd referenced then only above error)
>
>
> Manuel EVENO wrote:
>   
>> I don't know if it is possible with http endpoint but with CXF you may
>> have
>> a look at the documentation here
>> http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html
>>
>> On Mon, Jul 21, 2008 at 5:36 PM, Lukasz L. <Lukasz.Lichota@sabre.com>
>> wrote:
>>     
>>> How can I specify proxy server for new HTTP endpoints (http:producer). I
>>> need
>>> to access external web service from behind a firewall. Old HTTP endpoints
>>> (http:endpoint) allowed proxy server configuration. How do it on new
>>> ones?
>>> Is it also possible to specify that on CXF provider?
>>>       
>
>   


Mime
View raw message