Questions tagged as 'jax-ws'

1
answer

Spring Beans Injection in JAX-WS / Tomcat 7 (@WebServices) - Does not work, returns NullPointerException (NPE)

I would like to inject ( @Autowired or @Resource ) beans created by Spring ( 3.x or 4.x ) into a class that implements a JAX-WS interface (reference implementation). I tested it on Tomcat 6 and it works, but on Tomca...
asked by 09.09.2014 / 20:42
1
answer

How does WebService SOAP / Rest work with JAX-WS?

I spent a whole day studying and finally I was able to authenticate with WebService SOAP using JAX-WS, using client generated by Eclipse. When you add the password and password to the SOAP message, how do you do this? Does it encode? Custo...
asked by 10.05.2014 / 18:43
0
answers

How to generate XSD that requires sending the contents of an XML element using JAX-WS

I'm creating a web service with JAX-WS. In an operation, I get an object that contains some attributes and I want these attributes to always come with value. @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class RequestConsultarMa...
asked by 31.03.2017 / 21:52
1
answer

When I use an "Endpoint" class to publish a Web Service, where is the WSDL created?

For example, I have 3 classes in my Web Service: 1 - An SEI (the Web Service Interface): package calc; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; @W...
asked by 21.04.2015 / 18:48
1
answer

Consume WebService passing object as parameter

I have the WebService and I send the object Cliente as a paramenter, I would like to know how I can make it work, and it create a WSDL that suits when I run the Server, so that I can make the call in a WebService Client. @WebService pub...
asked by 03.02.2016 / 13:55
1
answer

Error while deploying SOAP web service with Maven and Apache Tomcat

I build a JAX-WS application by Maven, but I'm not able to deploy it to the Tomcat application server. Here are my artifacts: pom.xml : <project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.or...
asked by 05.09.2015 / 15:02
1
answer

Error adding attribute name to @WebService

I am creating the class that implements the WS call and trying to include the name attribute, this error appears: "@WebService annotation contains an endpointInterface attribute. No name attribute allowed" Does anyone know why? If I remove...
asked by 22.09.2017 / 15:13
1
answer

Declaring namespaces in XML in classes imported by WSDL (jax-ws)

I'm developing a WebService application using jax-ws. In this model, after importing the WSDL, the IDE generates the classes that will be used in the information exchange. However when I create the object and pass as a parameter I get the messag...
asked by 18.07.2017 / 21:29
1
answer

How to read return from a java function

I use a third-party ged platform that provides web-services JAX-WS . There is a method called getInstanceCardData that returns the value of the form record fields of a request. Here's the method signature: Method:    getInst...
asked by 16.08.2016 / 13:48
1
answer

SimpleJaxWsServiceExporter - BaseAddress

I created a Web Service with JAX-WS and used Spring to put it online and also to decrease the use of XML. Problem is that when I declare the SimpleJaxWsServiceExporter in the Spring configuration file I have to put the baseAddress attribute that...
asked by 28.08.2014 / 15:35