jax-ws

Where is WSIMPORT after JDK11

 ̄綄美尐妖づ 提交于 2020-12-09 09:58:35
问题 I've used wsimport and other Metro tools for many years but since the removal of Java EE modules from the JDK 11 I cant find the tools. Where can I find the wsimport executable? 回答1: The executables for WSIMPORT can be found at the main site https://javaee.github.io/metro-jax-ws/. They're no longer part of JDK. 来源: https://stackoverflow.com/questions/53192401/where-is-wsimport-after-jdk11

Error 404 while deploying a java web app on WildFly

徘徊边缘 提交于 2020-12-07 05:01:46
问题 I was following a tutorial on https://www.youtube.com/watch?v=dmMdLW92hBA. Everything was going fine until the last part where the index.xhtml was introduced in the project. I get a 404 error in the browser and in the wildfly console log I get the following error: 18:24:52,128 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 64) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./RestExample: org.jboss.msc.service.StartException in service

SpringBoot2调用WebService接口

走远了吗. 提交于 2020-10-28 11:50:40
最近在和WebService打交道,因为对方用的是比较老的版本还是 Apache Axis version: 1.4 的。 因为我们的项目都是SpringBoot2的,对方的意思是需要我们根据xml生成对应的客户端代码,但是SpringBoot的话根本不需要生成代码,直接调用WebService接口 其实几行代码就可以搞定。 我这里的SpringBoot版本是2.0.3的对应的cxf依赖: < dependency > < groupId > org.apache.cxf </ groupId > < artifactId > cxf-spring-boot-starter-jaxws </ artifactId > < version > 3.2.4 </ version > </ dependency > import com.alibaba.fastjson.JSONObject ; import org.apache.cxf.endpoint.Client ; import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory ; public class WsTest { public static void main( String [] args) { // 创建动态客户端

web项目使用cxf+spring搭建WebService,并部署到远程

◇◆丶佛笑我妖孽 提交于 2020-10-26 06:58:03
CXF方式 以下是项目的具体结构 先将jar包放到lib下 然后再去配置web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1"> <display-name>CXFWebservice</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome

jdk8以上会出现的JAXB问题

血红的双手。 提交于 2020-08-12 18:44:39
<!--解决JDK8以上版本 JAXB问题--> < dependency > < groupId > javax.xml.bind </ groupId > < artifactId > jaxb-api </ artifactId > < version > 2.3.0 </ version > </ dependency > < dependency > < groupId > com.sun.xml.bind </ groupId > < artifactId > jaxb-impl </ artifactId > < version > 2.3.0 </ version > </ dependency > < dependency > < groupId > com.sun.xml.bind </ groupId > < artifactId > jaxb-core </ artifactId > < version > 2.3.0 </ version > </ dependency > < dependency > < groupId > javax.activation </ groupId > < artifactId > activation </ artifactId > < version > 1.1.1 </ version > </ dependency

How to acheive servicegen behavior in jwsc task?

◇◆丶佛笑我妖孽 提交于 2020-07-31 04:45:36
问题 Migrating a java soap web service from 11g to 12c which has few operations. Used jwsc task to generate WSDL which generates all the input elements starting with uppercase and "ArrayOf" elements not coming along with wsdl. This behavior was good in 11g where wsdl generation happens through servicegen task, In 12c servicegen not available. Any suggestion to overcome this issue? 回答1: servicegen is from WLS 8.1 (this version had a proprietary webservices jax-rpc runtime). That runtime was removed

Replacing XmlType.namespace using jaxb bindings during type generation

≡放荡痞女 提交于 2020-06-27 08:40:51
问题 My web-services application is moving from Axis to JAX-WS and I'm having trouble doing some of the conversions. My primary issue is that I have several XSD's with the same types defined slightly differently, but with the same names. During my wsimport I'm able to use an external JAXB bindings file to resolve the packages, but the generated classes still end up with the same @XmlType annotations. V1: package com.service.v1.bill.request; @XmlType(name = "FileBillReqType", namespace = "http:/

Multiple WSDLs Configurations With Maven JAXWS

試著忘記壹切 提交于 2020-05-25 16:35:23
问题 I need to include more than one WSDL in my Maven JAXWS configuration and I need to specify different output directories for them since some of the method names in wsdlA conflict with method names in wsdlB. I'm using org.jvnet.jax-ws-commons and I need bindings to apply only to wsdlA, not wsdlB. This is what I have at the moment: <build> <pluginManagement> <plugins> <plugin> <groupId>org.jvnet.jax-ws-commons</groupId> <artifactId>jaxws-maven-plugin</artifactId> <version>2.1</version>