[ 
https://issues.apache.org/jira/browse/CXF-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527582
 ] 

Glen Mazza commented on CXF-945:
--------------------------------

Using Wireshark is showing that my CXF-based client is getting this error 
response from the EBAY server:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>411 Length Required</TITLE>
</HEAD><BODY>
<H1>Length Required</H1>
A request of the requested method POST requires a valid Content-length.<P>
chunked Transfer-Encoding forbidden: /shopping<P>
</BODY></HTML>

I'll check to see next why using the Metro instead of CXF doesn't have this 
problem.

It would be good if we could have the error stack in the previous comment 
include the above HTML error response message, instead of the present 
"Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space 
between public and system identifiers" message, which isn't very informative.  
I wonder if the woodstox folks would like to make such a change.

(*Many* thanks by the way to Dan K. for his suggestion to use Wireshark.  I did 
not know of this tool, it makes troubleshooting much easier!)


> Cannot run CXF-generated client with eBay WSDL
> ----------------------------------------------
>
>                 Key: CXF-945
>                 URL: https://issues.apache.org/jira/browse/CXF-945
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Glen Mazza
>         Attachments: ShoppingService.wsdl
>
>
> Following instructions here[1], accessing the eBay web service is working 
> with a Glassfish Metro-generated client but *not* Apache CXF-generated one.  
> I can generate the JAX-WS/JAXB classes and compile them, but the "run" target 
> is returning this stacktrace:
>      [java] INFO: Pre-instantiating singletons in [EMAIL PROTECTED]: defining 
> beans 
> [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,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.binding.xml.XMLBindingFactory,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.cxf.binding.http.HttpBindingFactory,org.apache.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.management.jmx.InstrumentationManagerImpl,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf.ws.policy.PolicyConstants,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.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory];
>  root of factory hierarchy
>      [java] 26.08.2007 10:44:54 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean 
> buildServiceFromWSDL
>      [java] INFO: Creating Service {urn:ebay:apis:eBLBaseComponents}Shopping 
> from WSDL: file:ShoppingService.wsdl
>      [java] 26.08.2007 10:44:58 org.apache.cxf.phase.PhaseInterceptorChain 
> doIntercept
>      [java] INFO: Interceptor has thrown exception, unwinding now
>      [java] org.apache.cxf.binding.soap.SoapFault: Error reading 
> XMLStreamReader.
>      [java]   at 
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:189)
>      [java]   at 
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:57)
>      [java]   at 
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
>      [java]   at 
> org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:395)
>      [java]   at 
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1959)
>      [java]   at 
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1806)
>      [java]   at 
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>      [java]   at 
> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:574)
>      [java]   at 
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>      [java]   at 
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
>      [java]   at 
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
>      [java]   at 
> org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205)
>      [java]   at 
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>      [java]   at 
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
>      [java]   at $Proxy33.findItems(Unknown Source)
>      [java]   at client.WSClient.main(WSClient.java:40)
>      [java] Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: 
> Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space 
> between public and system identifiers
>      [java]  at [row,col {unknown-source}]: [1,50]
>      [java]   at 
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623)
>      [java]   at 
> com.ctc.wstx.sr.BasicStreamReader.startDTD(BasicStreamReader.java:2482)
>      [java]   at 
> com.ctc.wstx.sr.BasicStreamReader.nextFromPrologBang(BasicStreamReader.java:2398)
>      [java]   at 
> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2058)
>      [java]   at 
> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>      [java]   at 
> com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1095)
>      [java]   at 
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:87)
>      [java]   ... 15 more
>      [java] Exception: Error reading XMLStreamReader.
> I don't think the blog instructions themselves are the problem, because the 
> same set of instructions works with CXF when accessing the Amazon E Commerce 
> Service[2].  (What *might* be unique about the eBay WSDL is that it requires 
> alteration of the default SEI URL in the WSDL, whereas Amazon's version 
> doesn't.)
> [1] http://www.jroller.com/gmazza/entry/using_the_ebay_shopping_api1
> [2] http://www.jroller.com/gmazza/entry/using_amazon_web_services_with
> If I have time, I will try to research this matter further.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to