cxf

I would like to add @XmlRoot annotation on CXF codegen

╄→尐↘猪︶ㄣ 提交于 2020-08-19 06:41:28
问题 I have a WSDL file which contains the following entry: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="urn:CP_Ablakido" xmlns:s0="urn:CP_Ablakido" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <xsd:schema elementFormDefault="qualified" targetNamespace="urn:CP_Ablakido"> <xsd:element name="GetList_11"

How to avoid XOP generation in CXF - behaviour changed between 3.3.2 and 3.3.4

岁酱吖の 提交于 2020-08-10 19:15:25
问题 This issue involves recent CXF change (3.3.2->3.3.4). We are sending a SOAP request to our partner with image contents On TomEE 8.0.0 (CXF 3.3.2), the SOAP request generated doesn't include XOP generation : <ns3:Picture> <ns6:Image> <ns6:StorageFormat>JPG</ns6:StorageFormat> <ns6:Length>13286</ns6:Length> <ns6:Buffer>/9j/4AAQSkZJRgABAAEAlgCWAAD//gAfTE (...) VBRCB=</ns6:Buffer> </ns6:Image> </ns3:Picture> <ns3:Signature> <ns6:Image> <ns6:StorageFormat>TIF</ns6:StorageFormat> <ns6:Length>700<

How to avoid XOP generation in CXF - behaviour changed between 3.3.2 and 3.3.4

痴心易碎 提交于 2020-08-10 19:15:07
问题 This issue involves recent CXF change (3.3.2->3.3.4). We are sending a SOAP request to our partner with image contents On TomEE 8.0.0 (CXF 3.3.2), the SOAP request generated doesn't include XOP generation : <ns3:Picture> <ns6:Image> <ns6:StorageFormat>JPG</ns6:StorageFormat> <ns6:Length>13286</ns6:Length> <ns6:Buffer>/9j/4AAQSkZJRgABAAEAlgCWAAD//gAfTE (...) VBRCB=</ns6:Buffer> </ns6:Image> </ns3:Picture> <ns3:Signature> <ns6:Image> <ns6:StorageFormat>TIF</ns6:StorageFormat> <ns6:Length>700<

How can I configure the JAX-RS base path in TomEE+?

假装没事ソ 提交于 2020-08-09 09:37:27
问题 I have a WAR with some JAX-RS services, deployed into TomEE Plus. Given a service annotated with @Path("myservice") , TomEE+ publishes it to localhost:8080/mywebapp/myservice . However, that also makes accessing a JSP at localhost:8080/mywebapp/index.jsp impossible - JAXRSInInterceptor complains that No root resource matching request path has been found, Relative Path: /index.jsp . So I would like to configure a path prefix api to all services, which changes the myservice URL to localhost

Web service request (>8KB) failed with apache cxf client on JBOSS - HTTP response '411: Length Required'

混江龙づ霸主 提交于 2020-07-22 22:20:58
问题 A web application is using the apache cxf client to send requests to a remote web service. When this web application is deployed on Tomcat everything is OK. The requests failed to be sent when this web application is deployed on JBOSS AND the size of the body (envelope) is greater than 8 KB; the error below got generated: 17:57:15,387 WARNING [org.apache.cxf.phase.PhaseInterceptorChain (ConnectorExecutor-21) Interceptor for xxx#{http://cxf.apache.org/jaxws/dispatch}Invoke has thrown exception

Web service request (>8KB) failed with apache cxf client on JBOSS - HTTP response '411: Length Required'

柔情痞子 提交于 2020-07-22 22:11:14
问题 A web application is using the apache cxf client to send requests to a remote web service. When this web application is deployed on Tomcat everything is OK. The requests failed to be sent when this web application is deployed on JBOSS AND the size of the body (envelope) is greater than 8 KB; the error below got generated: 17:57:15,387 WARNING [org.apache.cxf.phase.PhaseInterceptorChain (ConnectorExecutor-21) Interceptor for xxx#{http://cxf.apache.org/jaxws/dispatch}Invoke has thrown exception

How to close a Stream of a REST Service?

て烟熏妆下的殇ゞ 提交于 2020-05-15 14:16:20
问题 I need to make a java REST service that will return an inputstream as a response. My problem is that I don't know how to close the stream after the client receives the entire stream. I'm using Java and CXF. Thanks @GET @Path("/{uuid}") @Produces(MediaType.APPLICATION_OCTET_STREAM) public Response getAttachmentByUuid(@PathParam("uuid")String uuid) { //getting inputstream from AWS S3 InpputSream is=getStreamFromS3(uuid); return Response.status(Response.Status.OK).entity(is).build(); // will

How to close a Stream of a REST Service?

徘徊边缘 提交于 2020-05-15 14:15:38
问题 I need to make a java REST service that will return an inputstream as a response. My problem is that I don't know how to close the stream after the client receives the entire stream. I'm using Java and CXF. Thanks @GET @Path("/{uuid}") @Produces(MediaType.APPLICATION_OCTET_STREAM) public Response getAttachmentByUuid(@PathParam("uuid")String uuid) { //getting inputstream from AWS S3 InpputSream is=getStreamFromS3(uuid); return Response.status(Response.Status.OK).entity(is).build(); // will