jax-ws

WebServiceContext is not injected using @Resource

风格不统一 提交于 2020-01-06 14:12:25
问题 I know that has been asked before, but none of the solutions worked for me. Probably because they were mostly using EE compliant application servers, which is NOT my case. I'm running my web service on jetty (through Eclipse) for development only. But even for deployment, I'll use Tomcat 7. So for either development or production, I won't be using a JavaEE compliant server. So is it still possible to inject WebServiceContext into my web services ? I've tried the following but it didn't work

WebServiceContext is not injected using @Resource

☆樱花仙子☆ 提交于 2020-01-06 14:09:12
问题 I know that has been asked before, but none of the solutions worked for me. Probably because they were mostly using EE compliant application servers, which is NOT my case. I'm running my web service on jetty (through Eclipse) for development only. But even for deployment, I'll use Tomcat 7. So for either development or production, I won't be using a JavaEE compliant server. So is it still possible to inject WebServiceContext into my web services ? I've tried the following but it didn't work

Can a jax-ws web service use an rpc type call and receive raw xml?

折月煮酒 提交于 2020-01-06 08:37:09
问题 I have a web service that I've been working on and it's wokrring fine so far by creating a port in the client and then calling a method on the port. However, I've just been told that a couple of the clients who will be using the web service plan on sending it raw xml based based off of the schemas used by the web service and I was wondering if this was possible. I think I may need to use the provider interface to make the web service capable of handling this type of request but I'm not sure.

Need to create a jar out of the web service client files

别说谁变了你拦得住时间么 提交于 2020-01-06 03:53:10
问题 I have the WSDL file for a JAX-WS web service. I have created a maven-archetype-quickstart project(simple java project) and imported it to Eclipse Kepler workspace using import->existing maven project. I copied the wsdl file to the project's src/main/resources folder(created resources newly). I generated the web service client using the maven plugin <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>2.7.11</version> <executions> <execution> <id

Sharing data between CXF interceptor and webservice

谁都会走 提交于 2020-01-06 02:20:08
问题 I'm using security interceptors with Apache CXF WSS4JInInterceptor . Is there any way to pass data from interceptor to webservice? I've been searching for that in WebServiceContext but I can't find it. 回答1: You can use the CXF Exchange Map to store arbitrary key/value pairs. The Exchange is available to both input and output messages. In your interceptor, add the object to the Exchange, e.g. Object value = ...; message.getExchange().put("key", value); Within your service, you can use

jaxws and EclipseLink refuses to use enums from lib

五迷三道 提交于 2020-01-05 14:04:09
问题 I have a maven multimodule project with a ejb with a webservice, a lib, and a batch app. The batch app and the ejb module shares some enums, which then is located in the lib module. When attempting to return one of these enums from the lib in a webservice method it claims that there are no valid ejbs in the ejb jar file. Also, when using another one of these enums as attributes in an JPA entity using @Enumerated(EnumType.STRING) I get an error saying "...is not a valid type for an enumerated

Mismatch between between client and server - Soap

南楼画角 提交于 2020-01-05 12:28:13
问题 Server is running on Content-Type : Text/xml(soap 1.1) while client is trying to communicate using application/soap+xml(soap 1.2) . This is throwing following http error HTTP/1.1 415 Unsupported Media Type Date: Thu, 24 Jul 2014 15:35:02 GMT Content-Length: 0 X-Powered-By: Servlet/3.0 JSP/2.2 So is there any way to resolve this issue? The webservice is jax-ws webservice deployed on weblogic server configuration. We would like the issue to be resolved with changing the client code. How can we

HTTP response '401: Unauthorized' using NTLM with Wildfly

与世无争的帅哥 提交于 2020-01-05 08:08:31
问题 When the SOAP request is too long we are getting '401: Unauthorized' as a response using JAX-WS in WildFly 11 (Apache CXF under the hood). We are calling a SOAP Web Service from WildFly to SharePoint, using NTLM protocol. If the request size is short it works fine, but if the request is "large" (SOAP messages with 1MB for example) it fails with error HTTP 401. We are using this web service to send images, but encoded as base64 binary. We tried to call the service using SOAP UI and it worked,

Read long value from webservice using SoapClient

二次信任 提交于 2020-01-05 07:37:11
问题 I'm writing a soap consumer in PHP for a ws written in Java (Jax ws). The webservice exports a function listRooms() that returns an array of the complex data type Room which contains an id (64 bit long) and a description (string). Now whenever I consume the webservice using SoapClient, the id is converted to float (as there are no 64 bit integers in PHP) and I want to avoid it. As I will need the room id to consume other web services I would rather avoid this implicit conversion to float,

inter-thread communication between java application and jax-ws web service

跟風遠走 提交于 2020-01-05 04:37:04
问题 my jax-ws web service (after it gets hit by the client request), sends a request to backend legacy platform (through a socket) and then waits for 20 seconds for the response. Before it makes that request it updates a table with its unique transaction number. A separate listener thread (standalone java application) is waiting on that socket for the responses, each response will have the transaction number in it to identify which request (previously sent) its associated with. how can this