JAX-WS MTOM Sample Code

I'm looking for a simple, working sample MTOM sample code (service + client) either using JAX-WS RI or Axis2-based. I googled the word only to find snippets and codes that don't simply work! I...

JAX-WS errors when SOAP body contains UTF-8 BOM

I have developed a Web Service using JAX-WS (v2.1.3 - Sun JDK 1.6.0_05) deployed on WebLogic 10.3 that works just fine when I use a Java client or SoapUI or other Web Services testing tools. I...

URL matrix parameters vs. query parameters

I'm wondering whether to use matrix or query parameters in my URLs. I found an older discussion to that topic not satisfying. Examples URL with query params:...

How to connect Java client to WCF service using clientCredentialType="Basic"

I have to connect from a Java client to a WCF Web Service which has the following binding configuration: <basicHttpBinding> <binding name="basicHttpBindingSecurity"> <security...

How to remove JAX-WS Web Services node in Eclipse Project Explorer?

For development I use Eclipse Helios. In one of my projects in the project explorer a new node showed up. It is called JAX-WS Web Services. I do NOT use webservices in my project. The node has two...

Java web service client generated in Netbeans - getting Http Status Code 307

I use Netbeans to generate web service client code, client-style JAX-WS, so i can invoke a web service API. However, when I invoke the web service API, I get the...

In a JAX-WS web service, how do I force a socket close after each Soap call is returned?

I am using com.sun.httpserver.HttpServer and javax.xml.ws.Endpoint to publish a JAX-WS web service, which was generated by running wsimport on an existing WSDL and implementing the genereated...

WebServices Calculator Example using Java

I have created an sample application of calculator for sum of two numbers using webservices in Java by using Jersey service. My code is : Calculator.java package p1; import...

Web Service Client (JAX-WS) in Weblogic(10.3) with 2 way SSL cannot complete the handshake

We have been looking for a soution to our problem for one week and after looking in a lot of similar posts and after reading all the available documentation we haven't got a solution. I'm going to...

wsimport fail with maven

I'm trying to create an ssl webservice client using maven and netbeans(7.2). The webservice is perfectly working and I test it using an ant project. When I try to build the project and generate...

tapestry5.3.7 t:grid not working with xmlgregoriancalendar

Imported ejb entity into tapestry project looks like this its in "generated sorces (jax-ws)" import javax.xml.bind.annotation.XmlAccessType; import...

jersey rest web Service with Activemq middleware integration

I have a Restful service API developed with JAX-RS and jersey. I have deployed the same in TOMCAT 7. Now I would like to implement Activemq so that I would keep all request in a queue and process...

Return custom object from Web services using JAX-WS

The question is a little bit long but I wanted to supply all the information in advance I have the following class: package test.api.soap.server; public class TestClassA { public...

JAX-RS sub resource @PathParam value does not match any @Path annotation template parameters of the java method and its enclosing java type

I have a class as a sub resource and when ran, everything works with no errors except for eclipse show red underline, how can I make eclipse "know" that the parent @Path is part of it. ex. in...

Howto run soap web service on jetty?

i am struggeling to have a soap webservice run on my embedded jetty server. I followed this german tutorial (which ofc didnt...

JAX-WS and Embedded Jetty - Error when publishing Endpoint at the provided HttpContext

We have a publish/subscribe WS application, on which we want to replace the existing Oracle’s Java HTTP Server implementation to an embedded Jetty one. Unfortunately, we are facing some troubles...

Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener Error

I am trying to implement Spring Security within my REST API. My project was working perfectly until I started to implement Spring. I believe the issue has something to do with Spring Boot in some...

File descriptor leak when getting response code. (cxf, ssl)

We have a problem in production for quite a while now... This is a follow up of: my other question but with way more specifics so I think posting it as a new question is justified (if not I'll...

Get default value if the object is null in Java

I am curious to know how I can write a shorter version of the following code in Java. I have the following Java class (belongs to JAX-RS): javax.ws.rs.core.Response I need back the int value of...

Mockito with Jersey Test and JAX-RS - UnsatisfiedDependencyException

Trying to test a fairly simple JAX-RS endpoint @ApplicationScoped @Path("mypath") public class MyRestService { @Inject private Logger logger; @Inject private EjbService...

JAX-RS (jersey implementation) ExceptionMapper<Throwable> aren't catching ConstraintViolationException

I have an ExceptionMapper as a @Provider for handling all of my exceptions. So it is obvious that my class implements ExceptionMapper<Throwable> and we as know, all exceptions are extended...

JDK 11; JAX-WS; Provider com.sun.xml.internal.ws.spi.ProviderImpl not found

I Need to access legacy SOAP webservices in JDK 11. But I am suffering "ProviderImpl not found." The JDK 11 implementation is: zulu11.2.3-jdk11.0.1-win_x64. In my build.gradle, I have the...

Detect the presence of Math to process in MathJax

I am using MathJax and I have the following scenario: I want to run some code when the page contains some Math that MathJax will process and render properly Consider this example: <p> This is a...

Download pdf from restful web services

I am writing a rest service which will download the pdf when user access this service on users machine. below is the code of my controller class. When I tried to access below url in browser, it is...

Add (custom) decoder to WebMVC endpoint

I have a WebMVC endpoint: @RequestMapping(path = "/execution/{id}", method = RequestMethod.POST) public ResponseEntity<...> execute(@PathVariable String id) { ... } Here, the provided id...

Why is this function slower in JAX vs numpy?

I have the following numpy function as seen below that I'm trying to optimize by using JAX but for whatever reason, it's slower. Could someone point out what I can do to improve the performance...

SEVERE: MessageBodyWriter not found for media type=application/xml

I know this may sound like a duplicate of this or some others, but bear with me. I have a very basic JAX-RS resource, have added all the required annotations that I saw in this tutorial I followed...

Jax, jit and dynamic shapes: a regression from Tensorflow?

The documentation for JAX says, Not all JAX code can be JIT compiled, as it requires array shapes to be static & known at compile time. Now I am somewhat surprised because tensorflow has...

Alphafold core dumped

I installed Alphafold algorithm as suggested by https://github.com/kuixu/alphafold However I am getting the following errors: I0826 12:08:54.630447 139693760276288 xla_bridge.py:236] Unable to...

How to accelerate my written python code: function containing nested functions

I have written the following NumPy code by Python: def inbox_(points, polygon): """ Finding points in a region """ ll = np.amin(polygon, axis=0) # lower limit ...