Questions tagged [jax-ws-customization]

JAX-WS customization allows to setup WSDL to Java mapping (override endpoint interface and exception class name, method names, parameter names, package name) and to control certain features (wrapping style, asynchronous calls).

66 questions
1
vote
1 answer

JAXB wsimport binding files is it possible (Implements interface). Told it was

I have a wsdl that I am generating classes from using wsimport. I have a need for some of the classes to implement an interface that is defined in another framework. I was told by a Java developer that this was possible using a wsimport option. I…
John
  • 203
  • 2
  • 7
1
vote
2 answers

Web Service exception - link without "?wsdl", HTTP GET PATH_INFO

I have simple web service : I have the same problem. when I don't append "?wsdl" I have soap faylt. how can I avoid this exception? @WebService @SOAPBinding(style = Style.RPC) public interface TimeServer { @WebMethod @WebResult(partName =…
grep
  • 5,465
  • 12
  • 60
  • 112
1
vote
1 answer

Binding File type conversions in jaxws being ignored

I'm trying to convert XMLGregorianCalendar to java.util.Date using an external binding file, but it's not converting, it remaind XMLGregorianCalendar instead of java.util.Date, can anyone spot what I'm doing wrong? I'm suspecting something is not…
Jan Vladimir Mostert
  • 12,380
  • 15
  • 80
  • 137
1
vote
2 answers

Problems getting an external JAXB/JAXWS binding file to work. XPath evaluation of results in empty target node

I'm at my wits' end and am hoping someone can help. I'm trying to generate a WSClient using Gradle 1.6, CXF 2.7.5, Oracle JDK 1.6.0_33 and and WSDLToJava The WSDL I am consuming results in static nested Java classes which I can't figure out how to…
Edd Grant
  • 774
  • 2
  • 10
  • 22
1
vote
0 answers

jaxb:bindings, Separating classes from wsdls (the same location, and different target namespaces). What about wsdlLocation attribute?

I have two wsdls: ServiceA.wsdl(with targetNamespace='targetA'), and ServiceB.wsdl(with targetNamespace='targetB'). Both of them, are located in the same location, but each of them belongs to different target namespace. I'd like to separate java…
1
vote
1 answer

Disable special treatment of a List implementor during JAXB marshaling

I have a @XmlTransient class called ListBase which implements List. I then subclass that list into @XmlType StringList, @XmlType PersonList, etc. It seems that JAXB treats such classes in a special way, such as when an instance of that class…
Boris B.
  • 4,933
  • 1
  • 28
  • 59
1
vote
1 answer

How to return SOAPFault from XMLAdapter?

I'm developing a SOAP based WebService (JAX-WS) and dates come with specific format "yyyymmdd". My WSDL defines the date as string but I would like to return a SOAP fault response when the expected format is not followed by the element value. I've…
Fernando M
  • 397
  • 5
  • 9
1
vote
2 answers

Server-side schema validation with JAX-WS

I have JAX-WS container-less service (published via Endpoint.publish() right from main() method). I want my service to validate input messages. I have tried following annotation: @SchemaValidation(handler=MyErrorHandler.class) and implemented an…
no id
  • 1,642
  • 3
  • 24
  • 36
1
vote
2 answers

Programmatically obtain a Servlet instance for a JAX-WS WebService implementation?

I'm working on a web service using the top-down approach, generating service types and interfaces from a WSDL using JAX-WS' wsimport. This provides a port type interface as follows, which I implement. /** * This class was generated by the JAX-WS…
Anthop
  • 138
  • 8
1
vote
1 answer

jaxws complex type package

Say I have a WCF service consumed by jaxws soap generated client using wsimport. Service SEI looks like @WebMethod(operationName = "DoSomething", action = "http://mydomain.com/PersonService/Dosomething") @WebResult(name = "DoSomethingResult",…
Yuan
  • 2,690
  • 4
  • 26
  • 38
1
vote
1 answer

How to plug SOAPHandler (JAX-WS)?

I want to process SOAP headers with SOAPHandler, i.e. I have created SOAPHandler, but how to plug it to specified service ? In other words to say that this handler should handle messages for this service.. Probably I need to use some annotation or…
0
votes
1 answer

Where are the Web Service Interfaces?

I'm working on a medium-size project using JBoss Developer Studio (based on Eclipse). We have 2 Web Projects, 1 of them to contain/manage Web Services using JAX-WS with JBossWS. My boss was updating the software architecture document and asked me…
Luiggi Mendoza
  • 85,076
  • 16
  • 154
  • 332
0
votes
1 answer

Spring-boot 2.7.0 with jax-ws 1.9 WSServletContextListener Unable to start embedded Tomcat

What do I do wrong with JAX-WS and SPRING-BOOT? I use jaxws-spring v1.9, spring-boot-starter-parent v2.7.0. I don`t have web.xml. I have @WebService() @SOAPBinding() My problem is org.springframework.boot.web.server.WebServerException: Unable to…
Andrew Niken
  • 606
  • 2
  • 8
  • 18
0
votes
1 answer

How to achieve servicegen behavior in jwsc task?

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…
learner
  • 3,092
  • 2
  • 21
  • 33
0
votes
1 answer

JAX-WS Intercepting Runtime Exceptions for logging

We are running are a series JAX-WS webservices and I'm currently trying to improve the applications logging. I am currently failing to find a way to capture Runtime exceptions so they can be logged with stacktrace etc. With the hope that we don't…