You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Glen Mazza (JIRA)" <ji...@apache.org> on 2007/08/26 16:55:30 UTC

[jira] Created: (CXF-945) Cannot run CXF-generated client with eBay WSDL

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


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.


[jira] Commented: (CXF-945) Cannot run CXF-generated client with eBay WSDL

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ 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 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.


[jira] Commented: (CXF-945) Cannot run CXF-generated client with eBay WSDL

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527779 ] 

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

This may not be a CXF bug after all.  The eBay web service requires the Content-Length header to be set.

Using Wireshark, I see that, for client requests, Metro always sets the Content-Length but not the Transfer-Encoding; while CXF does the exact opposite.  
But according to the HTTP 1.1 standard[1], that should be fine--either the Content-Length or the Transfer-Encoding should be set but not both, and a HTTP 1.1 compliant server must be able to accept Transfer-Encoding.  So perhaps eBay is wrong in requiring Content-Length.

Can we manually set the Content-Length from client code?  I guess I would have to also remove Transfer-Encoding to be compliant with the HTTP 1.1 spec.

At any rate, my next step is to take this issue to one of the eBay help forums.

[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4

> 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.


[jira] Commented: (CXF-945) Cannot run CXF-generated client with eBay WSDL

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530051 ] 

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

Problem fixed!  I just needed to switch off chunking, which causes the Content-Length header to get sent instead, and the eBAY WSDL to work fine with CXF.

Here is the cxf.xml file that needs to be placed in the classpath:

<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"
       xsi:schemaLocation="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.xsd">

  <http-conf:conduit name="{urn:ebay:apis:eBLBaseComponents}Shopping.http-conduit">
      <http-conf:client AllowChunking="false"/>
  </http-conf:conduit>
</beans>

This issue can be closed as "invalid".


> 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.


[jira] Updated: (CXF-945) Cannot run CXF-generated client with eBay WSDL

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Glen Mazza updated CXF-945:
---------------------------

    Attachment: ShoppingService.wsdl

eBay sample WSDL (version 527)

> 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.


[jira] Commented: (CXF-945) Cannot run CXF-generated client with eBay WSDL

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ 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.


Re: Client-side configuration using Spring?

Posted by Daniel Kulp <dk...@apache.org>.
There are a couple in the systests.   For example:
systests/src/test/java/org/apache/cxf/systest/outofband/header/cxf.xml

For what you would need, you would add the AllowChunking attribute to the 
http:client element.

You could also do it programatically.   I think you can do something 
like:

Client client = ClientProxy.getClient(port);
HTTPConduit cond = (HTTPConduit)client.getConduit();
cond.getClient().setAllowChunking(false);

That may need to be done before the first hit.   Not really sure though.


Dan






On Monday 17 September 2007, Glen Mazza wrote:
> Do we have any documentation (or examples) on client-side
> configuration using Spring?  I can't seem to find it anywhere.
>
> Thanks,
> Glen
>
> Am Samstag, den 15.09.2007, 18:50 -0700 schrieb Daniel Kulp (JIRA):
> > Daniel Kulp commented on CXF-945:
> > ---------------------------------
> >
> >
> > Glen,
> >
> > In the client side spring config, you can set the client side to set
> > "AllowChunking=false" for the client http config.  That's definitely
> > slower (cannot do full streaming), but should work.



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Client-side configuration using Spring?

Posted by Glen Mazza <gl...@verizon.net>.
Do we have any documentation (or examples) on client-side configuration
using Spring?  I can't seem to find it anywhere.

Thanks,
Glen

Am Samstag, den 15.09.2007, 18:50 -0700 schrieb Daniel Kulp (JIRA):
> Daniel Kulp commented on CXF-945:
> ---------------------------------
> 
> 
> Glen,
> 
> In the client side spring config, you can set the client side to set "AllowChunking=false" for the client http config.  That's definitely slower (cannot do full streaming), but should work.
> 



[jira] Commented: (CXF-945) Cannot run CXF-generated client with eBay WSDL

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527809 ] 

Daniel Kulp commented on CXF-945:
---------------------------------


Glen,

In the client side spring config, you can set the client side to set "AllowChunking=false" for the client http config.  That's definitely slower (cannot do full streaming), but should work.

> 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.


[jira] Commented: (CXF-945) Cannot run CXF-generated client with eBay WSDL

Posted by "willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536143 ] 

willem Jiang commented on CXF-945:
----------------------------------

 You can write java code to set the client policy
      
       SOAPService service = new SOAPService(wsdl, serviceName);
       Greeter greeter = service.getPort(bethalQ, Greeter.class);

       Client client = ClientProxy.getClient(greeter);
        HTTPConduit http =  (HTTPConduit) client.getConduit();        
        HTTPClientPolicy httpClientPolicy = http.getClient();
        httpClientPolicy.setAllowChunking(false);

> 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.


[jira] Commented: (CXF-945) Cannot run CXF-generated client with eBay WSDL

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12527788 ] 

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

I just asked a question on the eBay developer forum on this issue:
http://dev-forums.ebay.com/thread.jspa?threadID=500003939&tstart=0&mod=1189892458577


> 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.


[jira] Closed: (CXF-945) Cannot run CXF-generated client with eBay WSDL

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

maomaode closed CXF-945.
------------------------

    Resolution: Invalid

> 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.