[
https://issues.apache.org/jira/browse/CXF-8281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17155215#comment-17155215
]
Colm O hEigeartaigh commented on CXF-8281:
------------------------------------------
Please check the attached project, I get:
"Non-resolvable parent POM for
com.cisco.ariba.invoice:invcreateariba-container:0.0.1-SNAPSHOT: Could not
transfer artifact
org.springframework.boot:spring-boot-starter-parent:pom:2.0.2.RELEASE from/to
public-repository (http://repo1.maven.org/maven2): Transfer failed for
http://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.0.2.RELEASE/spring-boot-starter-parent-2.0.2.RELEASE.pom
501 HTTPS Required and 'parent.relativePath' points at no local POM @ line 14,
column 10 -> [Help 2]"
Also please give full instructions about how to start the project and use
SOAP-UI with it.
> Issue with attachment Chines file name
> ---------------------------------------
>
> Key: CXF-8281
> URL: https://issues.apache.org/jira/browse/CXF-8281
> Project: CXF
> Issue Type: Bug
> Components: Bus, JAX-WS Runtime, WS-* Components
> Affects Versions: 3.2.4
> Reporter: Rajesh
> Priority: Major
> Attachments: CustomDataHandler.java, POAttachmentInterceptor.java,
> POHeaderInterceptor.java, POInvokeHandler.java, POSwAInInterceptor.java,
> attachment-soap.zip, invoice-testing.rar, payloadRequest.txt,
> screenshot-1.png, soap ui- payload and properties .png, soapui.png
>
>
> 0
> I'm using apache CXF for exposing the webservice. While reading chinese file
> name from upstream (SOAP UI in local), unable to read exact chinese
> characters. It's giving file name as '°U'°U123.pdf . I have tried with all
> encodings but no luck. For other English name attachments no issues, able to
> read properly.
> {quote}From soap ui i'm sending UTF-8 encoding , while reading in java I have
> used same.
> byte[] b = attachmentName.getBytes(StandardCharsets.UTF_8);
> String attachName = new String(b, StandardCharsets.UTF_8.name());
> `Below is my interceptor code.
> {quote}
> public void handleMessage(SoapMessage message) throws Fault {
> logger.info("Handle Message for attachments ");
> BindingOperationInfo bop =
> message.getExchange().getBindingOperationInfo();
> if (bop == null) {
> return;
> }
> logger.info("binding info "+bop.getBinding());
> if (bop.isUnwrapped()) {
> bop = bop.getWrappedOperation();
> }
> if (null == message.getAttachments() ||
> message.getAttachments().isEmpty() ){
> return;
> }
> Iterator<Attachment> iter = message.getAttachments().iterator();
> Collection<Attachment> attchments = message.getAttachments();
> logger.info("message get attachments size :
> "+attchments.size());
> int attachmentCount=0;
> Map<String, DataHandler> attachmentMap=
> AttachmentUtil.getDHMap(attchments);
> logger.info("Map<String, DataHandler> "+attachmentMap.size());
> try{
> while (iter.hasNext()){
> Attachment attachment = iter.next();
> attachmentCount++;
> }
> }
> }
--
This message was sent by Atlassian Jira
(v8.3.4#803005)