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/moviefunctions.asmx?wsdl
>
> <http://www.ignyte.com/webservices/ignyte.whatsshowing.webservice/moviefunctions.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@1e2befa
>>> :
>>> defining beans
>>>
>>> [cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.corba.CorbaBindingFactory,org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegister#0,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,org.apache.cxf.javascript.JavascriptQueryHandlerRegistry,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.management.InstrumentationManager,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cxf.binding.http.HttpBindingFactory,org.apache.cxf.jaxrs.JAXRSBindingFactory,org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry,org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuilder,org.apache.cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,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(DynamicClientFactory.java:253)
>>>   at
>>>
>>> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.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/moviefunctions.asmx?wsdl
>>> "]
>>>   at
>>>
>>> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:228)
>>>   at
>>>
>>> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java: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/moviefunctions.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:3200)
>>>   at
>>>
>>> com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2832)
>>>   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.java: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
>
>

Reply via email to