Hi Daniel,

I was using 2.2.9 version. Updated to 2.3.2 and apparently it works!!!!

I am going to make more tests, just in case, but the first one passed!

Many thanks for your support again

King regards,
Alex

2011/2/18 Daniel Kulp <[email protected]>

>
>
> I didn't ask what version of CXF you are using.  If you aren't using 2.3.2,
> definitely update and see if that helps.
>
> Second, I would try creating a config file
>    <http:conduit name="http://.*";>
>          <http:proxyAuthorization>
>             <sec:UserName>USER</sec:UserName>
>             <sec:Password>PWD</sec:Password>
>          </http:proxyAuthorization>
>    </http:conduit>
>
> and pass that in and see if that helps.   The name there is a wild card and
> should apply to all the http sites.
>
> Dan
>
>
> On Thursday 17 February 2011 3:27:44 AM Alex Labad wrote:
> > Hello Freeman,
> >
> > That was one of the services I tried (and indeed, it doesn't work), but
> > also tried with the following:
> > http://www.webservicex.net/airport.asmx?WSDL
> >
> http://ws.xwebservices.com/XWebEmailValidation/V2/XWebEmailValidation.wsdl
> >
> > with the same result and the same exception. In both I can access them
> from
> > outside our network but not through the proxy.
> >
> > PD: The proxy settings are set via system properties when running the
> code
> > from our network.
> >
> > King regards,
> > Alex
> >
> > 2011/2/16 Freeman Fang <[email protected]>
> >
> > > Hi,
> > >
> > > Try
> > >
> http://www.ignyte.com/webservices/ignyte.whatsshowing.webservice/moviefun
> > > ctions.asmx?wsdl
> > >
> > > <
> http://www.ignyte.com/webservices/ignyte.whatsshowing.webservice/moviefu
> > > nctions.asmx?wsdl>from your browser to see if
> > > you can access there should be a good start, if you can't access even
> > > from your browser, it's absolutely is a network issue on your machine.
> > > If
> > > browser works, check if you have anti-virus software which prevent
> > > unknown process to do network connection.
> > >
> > > Freeman
> > >
> > > On 2011-2-16, at 下午10:18, Alex Labad wrote:
> > >
> > > Sorry for being a newie in this.
> > >
> > > Could anybody tell me how to:
> > >
> > >
> > > 2011/2/15 Freeman Fang <[email protected]>
> > >
> > >> Hi,
> > >>
> > >> Given the error you encounter here, please refer to a related
> discussion
> > >> from CXF-3249[1],
> > >> The error you saw
> > >>
> > >> Caused by: com.ctc.wstx.exc.WstxParsingException: Unexpected close
> > >> tag</HEAD>; expected </META>.
> > >> is actually caused by when you try to access wsdl from your code, the
> > >> server just return you a error page.
> > >> I guess it could be a network configuration issue(like firewall or
> virus
> > >> scan software) on your machine.
> > >> [1]https://issues.apache.org/jira/browse/CXF-3249
> > >>
> > >> Freeman
> > >>
> > >> On 2011-2-9, at 下午11:36, Alex Labad wrote:
> > >>  Hi all,
> > >>
> > >>> I have the following error while trying to generate a dynamic client
> > >>> through
> > >>> a proxy:
> > >>>
> > >>> It happens with any web service we try to access, or even when we
> > >>> create a
> > >>> service and call it with a consumer generated with wsdl2java.
> > >>> Any idea?
> > >>>
> > >>> INFO: Pre-instantiating singletons in
> > >>>
> > >>>
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1e
> > >>> 2befa
> > >>>
> > >>> defining beans
> > >>>
> > >>>
> [cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bu
> > >>>
> s.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Js
> > >>>
> r250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcess
> > >>>
> or,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration
> > >>>
> .Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf
> > >>>
> .transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitIn
> > >>>
> itiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.Pha
> > >>>
> seManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.busl
> > >>>
> ifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org
> > >>>
> .apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.Cli
> > >>>
> entLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry
> > >>>
> ,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.header
> > >>>
> s.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.c
> > >>>
> xf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.corb
> > >>>
> a.CorbaBindingFactory,org.apache.cxf.binding.corba.wsdl.WSDLExtensionRe
> > >>>
> gister#0,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver
> > >>>
> ,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.bind
> > >>>
> ing.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFa
> > >>>
> ctory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf
> > >>>
> .binding.xml.XMLBindingFactory,org.apache.cxf.ws.addressing.policy.Addr
> > >>>
> essingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPo
> > >>>
> licyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddres
> > >>>
> singAssertionBuilder,org.apache.cxf.javascript.JavascriptQueryHandlerRe
> > >>>
> gistry,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.
> > >>>
> cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.tra
> > >>>
> nsport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.
> > >>>
> http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http
> > >>>
> .ClientOnlyHTTPTransportFactory,org.apache.cxf.management.Instrumentati
> > >>>
> onManager,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory
> > >>>
> ,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.bindin
> > >>>
> g.object.ObjectBindingFactory,org.apache.cxf.binding.http.HttpBindingFa
> > >>>
> ctory,org.apache.cxf.jaxrs.JAXRSBindingFactory,org.apache.cxf.ws.securi
> > >>>
> ty.policy.WSSecurityPolicyLoader,org.apache.cxf.ws.policy.AssertionBuil
> > >>>
> derRegistry,org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,
> > >>>
> org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderReg
> > >>>
> istry,org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDom
> > >>>
> ainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuilder,org.apache.
> > >>>
> cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.attachment.wsdl11.W
> > >>>
> sdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.attachment.Servi
> > >>>
> ceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilde
> > >>>
> r,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider,org.apach
> > >>>
> e.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorPr
> > >>> ovider,org.apache.cxf.ws.rm.RMAssertionBuilder]; root of factory
> > >>> hierarchy
> > >>> org.apache.cxf.service.factory.ServiceConstructionException: Failed
> to
> > >>> create service.
> > >>>
> > >>>   at
> > >>>
> > >>>
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java
> > >>> :69)
> > >>>
> > >>>   at org.apache.cxf.endpoint.ClientImpl.<init>(ClientImpl.java:152)
> > >>>   at
> > >>>
> > >>>
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynam
> > >>> icClientFactory.java:253)
> > >>>
> > >>>   at
> > >>>
> > >>>
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynam
> > >>> icClientFactory.java:178) (.......)
> > >>> Caused by: javax.wsdl.WSDLException: WSDLException:
> > >>> faultCode=PARSER_ERROR:
> > >>> com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </HEAD>;
> > >>> expected </META>.
> > >>> at [row,col,system-id]: [5,6,"
> > >>>
> > >>>
> http://www.ignyte.com/webservices/ignyte.whatsshowing.webservice/movief
> > >>> unctions.asmx?wsdl "]
> > >>>
> > >>>   at
> > >>>
> > >>>
> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.ja
> > >>> va:228)
> > >>>
> > >>>   at
> > >>>
> > >>>
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.jav
> > >>> a:161)
> > >>>
> > >>>   at
> > >>>
> > >>>
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java
> > >>> :67)
> > >>>
> > >>>   ... 7 more
> > >>>
> > >>> Caused by: com.ctc.wstx.exc.WstxParsingException: Unexpected close
> tag
> > >>> </HEAD>; expected </META>.
> > >>> at [row,col,system-id]: [5,6,"
> > >>>
> > >>>
> http://www.ignyte.com/webservices/ignyte.whatsshowing.webservice/movief
> > >>> unctions.asmx?wsdl "]
> > >>>
> > >>>   at
> > >>>
> > >>>
> com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:
> > >>> 630)
> > >>>
> > >>>   at
> > >>>
> > >>> com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
> > >>>
> > >>>   at
> > >>>
> > >>>
> com.ctc.wstx.sr.BasicStreamReader.reportWrongEndElem(BasicStreamReader.
> > >>> java:3258)
> > >>>
> > >>>   at
> > >>>
> > >>>
> com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:32
> > >>> 00)
> > >>>
> > >>>   at
> > >>>
> > >>>
> com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2
> > >>> 832)
> > >>>
> > >>>   at
> > >>>   com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
> > >>>   at
> > >>>
> > >>>
> org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:951)
> > >>>
> > >>>   at
> > >>>   org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:869)
> > >>>   at
> > >>>
> > >>>
> org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:911)
> > >>>
> > >>>   at
> > >>>   org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:869)
> > >>>   at
> > >>>
> > >>>
> org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:911)
> > >>>
> > >>>   at
> > >>>   org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:869)
> > >>>   at
> > >>>
> > >>>
> org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:911)
> > >>>
> > >>>   at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:798)
> > >>>   at
> > >>>
> > >>>
> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.ja
> > >>> va:219)
> > >>>
> > >>>   ... 9 more
> > >>>
> > >>> Just in case it helps: This is the client creation code:
> > >>> JaxWsDynamicClientFactory factory =
> > >>> JaxWsDynamicClientFactory.newInstance();
> > >>>
> > >>>           //POINTING AT THE CONFIGURAITON FILES.
> > >>>           List<String> bindingFiles = new ArrayList<String>();
> > >>>           bindingFiles.add("javabindings.xml");
> > >>>           return factory.createClient(url,
> > >>>
> > >>> Thread.currentThread().getContextClassLoader(), bindingFiles);
> > >>>
> > >>> Many thanks in advance!
> > >>> Alex
> > >>
> > >> --
> > >> Freeman Fang
> > >>
> > >> ------------------------
> > >>
> > >> FuseSource: http://fusesource.com
> > >> blog: http://freemanfang.blogspot.com
> > >> twitter: http://twitter.com/freemanfang
> > >> Apache Servicemix:http://servicemix.apache.org
> > >> Apache Cxf: http://cxf.apache.org
> > >> Apache Karaf: http://karaf.apache.org
> > >> Apache Felix: http://felix.apache.org
> > >
> > > --
> > > Freeman Fang
> > >
> > > ------------------------
> > >
> > > FuseSource: http://fusesource.com
> > > blog: http://freemanfang.blogspot.com
> > > twitter: http://twitter.com/freemanfang
> > > Apache Servicemix:http://servicemix.apache.org
> > > Apache Cxf: http://cxf.apache.org
> > > Apache Karaf: http://karaf.apache.org
> > > Apache Felix: http://felix.apache.org
>
> --
> Daniel Kulp
> [email protected]
> http://dankulp.com/blog
> Talend - http://www.talend.com
>

Reply via email to