Questions tagged [java-ws]

87 questions
11
votes
2 answers

How to exclude method from CXF WebService - strange behavior

Can someone explain to me the following behavior of CXF? I have simple WebService: import javax.jws.WebMethod; public interface MyWebService { @WebMethod String method1(String s); @WebMethod String method2(String s); …
Betlista
  • 10,327
  • 13
  • 69
  • 110
9
votes
2 answers

Tweak loading times of Jersey over AppEngine

my application service is not able to start or respond to even warmup requests as the time taken by Jersey to scan the libraries is inordinate. I have created application and hardcoded all the paths of the Resources for jersey. Jersey…
cloudpre
  • 1,001
  • 2
  • 15
  • 28
8
votes
1 answer

XSD and WSDL in different directories

At my work used jaxws-maven-plugin for code generation. I have two projects are "common" and'' client ". Structure roughly as follows: app/   common/    resource/     some.xsd   client/    resource/     some.wsdl How can I generate classes…
Anthony Tsivarev
  • 881
  • 3
  • 13
  • 25
7
votes
2 answers

How can I get JAXB2 to emit CamelCase bindings?

I'm generating Java classes from a WSDL using the jaxws-maven-plugin's wsimport goal. Out of the box, this generates hideous classes and methods from the XML schema; e.g., a class called MYOBJECT from an XML element named MY_OBJECT. I've found that…
Lyle
  • 3,724
  • 3
  • 25
  • 25
7
votes
0 answers

How to add two different paths to the same endpoint in swagger?

Using javaws we can have multiple endpoints leading to the same method. Example: @Path("/menus") public class MenuResource { @Path("/{menuId}/sections") @Timed @ExceptionMetered public MenuSectionResource getSections(@InjectParam…
caiocpricci2
  • 7,714
  • 10
  • 56
  • 88
7
votes
3 answers

How to log SOAP messages on client side?

Good day. I'm learning how to write a connector to external SOAP RCP styled service. I'm using jaxws-maven-plugin plugin to generate Java classes from the WSDL file. And I'm using Spring to create the web service client bean: @Configuration public…
Vojtech
  • 2,533
  • 9
  • 34
  • 65
5
votes
1 answer

Java Webservice Client UsernameToken equivalent to PHP

I have a webservice build in PHP that uses UsernameToken as authentification mechanism. I have PHP client side code that can access this web service. Now I need to do this in Java. Maybe you can help me! This service can be accessed using the…
cb0
  • 8,415
  • 9
  • 52
  • 80
5
votes
1 answer

Java Webstart "javaws -open" flag doesn't work with multiple arguments

I'm trying to make a call to Java Webstart that uses the "-open" run time option to send arguments to the webstart application. I have referenced the question: Passing command line arguments to javaws (Java WebStart) executable, but this syntax…
Tacitus86
  • 1,314
  • 2
  • 14
  • 36
4
votes
2 answers

what is the Difference between the "/com/sun/xml/ws/" package in jaxws-rt.jar and "/com/sun/xml/internal/ws/" package inside rt.jar

i do not understand the use of an "internal" implementation of jax-ws packages inside rt.jar when they are already available through jaxws-rt.jar. Why would Sun/Oracle take such a decision to integrate jax-ws inside jdk...I dont know if the changes…
AD.
  • 389
  • 1
  • 5
  • 20
4
votes
1 answer

How to cache a WSDL with Java-WS

I've created an app that interacts with a SOAP service using java WS. I generate classes and manage the WSDL using the built in netbeans functions. Every time I run the application, it has to download the WSDL and parse it again. The WSDL is…
Cogsy
  • 5,584
  • 4
  • 35
  • 47
4
votes
1 answer

namespace issue on web service with Apache CXF

I'm using Apache CXF 2.7.3, and running into a namespace issue that I really don't understand. I've tried extensively to search on this, but most of the results that I find are for different behaviors. The issue is when invoking the web service, it…
Aaron T
  • 151
  • 2
  • 2
  • 9
3
votes
0 answers

How to generate swagger spec from Javadocs on JDK 14?

Does anyone know the analog of swagger-doclet but which works with JDK 14? This doclet generates swagger spec by javax.ws.rs annotations and javadocs and it doesn't require swagger annotations For example, I have such endpoint: /** * Receives sync…
Max Grigoriev
  • 1,021
  • 2
  • 13
  • 29
3
votes
1 answer

Java Web Start deprecation

I'm little worrying about the removal of Java web Start from Java 11. Any special reason behind javaws removal ? And share the best alternatives for javaws.
Krupa
  • 193
  • 2
  • 23
3
votes
0 answers

how to create the same WebService endpoint on many ports?

I have a Web Service (classes generated from WSDL), i need to publish the same service on many ports (like on localhost:10000,10001,10002,10003 etc., more than one thousand!), every port represents one 'device'. If i use Endpoint.publish();…
razor
  • 2,727
  • 6
  • 33
  • 45
3
votes
2 answers

.NET client calling HTTPS Java web service

I have a HTTPS Java Web Service, I am trying to access the web service with .NET[.NET 2.0 style client / WCF client]. I am getting back this error from WS. "HTTP Status 401 - This request requires HTTP authentication ()." How do I find out what…
iraSenthil
  • 11,307
  • 6
  • 39
  • 49
1
2 3 4 5 6