cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-945) Cannot run CXF-generated client with eBay WSDL
Date Sun, 16 Sep 2007 02:11:32 GMT

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

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

Thanks, but I'm not using Spring (although I can move to that if indeed necessary).  Is there
a way to turn off chunking within a simple Java class (bullet (7) of here: http://www.jroller.com/gmazza/date/20070817)?

Once I make this change, I will check to make sure that with chunking turned off, the Content-Length
header is set instead (as it apparently should be, right?)

Glen


> 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 org.springframework.beans.factory.support.DefaultListableBeanFactory@16df84b:
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.


Mime
View raw message