jax-ws

Maven 2 build Java web services? Help

Has anyone built Java web services using Maven-2. I've read about the jax-ws plugin, but I haven't found any clear documentation or examples on how to use it. I tried building a few following instructions of some bloggers, but most instructions seem old or incomplete. Does anyone have any advice on using Maven to build Java web servic...

Glassfish JAX-WS side by side SSL / insecure EJB webservice

Is it possible to run a single @WebService bean as both secure and insecure at the same time, preferably using the same URL except for the http/https protocol difference? I am able to run the service either secure or insecure using: <transport-guarantee>CONFIDENTIAL</transport-guarantee> or <transport-guarantee>NONE</transport-guara...

Using PHP SoapClient with Java JAX-WS RI (Webservice)

For a new project, we want to build a web service in JAVA using JAX-WS RI and for the web service client, we want to use PHP. In a small tutorial about JAX-WS RI I found this example web service: package webservice; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; @WebService @SO...

How do I inject @WebServiceRef resources through Glassfish JNDI?

My web application is a consumer of some internal web services provided by the organisation. I have seen a couple of examples where a web service reference is injected using something like: @WebServiceRef(name="services/MyService") MyService myService; But I have no idea how to define the services/MyService JNDI object in Glassfish v...

interface com.sun.xml.ws.developer.WSBindingProvider is not visible from class loader

In tomcat web container spring listens to session and executes a destroy-method on a "session-scoped" bean, that invokes a web-service. sometimes this strange exception is raised: interface com.sun.xml.ws.developer.WSBindingProvider is not visible from class loader What can this mean? ...

How to properly generate nodes with default values in Web Service requests using JAX-WS and Weblogic 10.3?

Hi, I am trying to use a Web Service that defines a type with some mandatory fields having a default value: <complexType name="DocumentRegistrationRequest"> <sequence> <element name="title" type="string"> <annotation> <documentation>Title/subject of the document</documentation> </anno...

Mapping java.util.Date to xs:date instead of xs:dateTime in JAX-WS

Hi all, We hav an EJB, jws-anotated as a web service. It has a pretty complex pojo-model that generates an equally complex xsd. The pojos contain numerous java.util.Date. These all map to xs:dateTime. This service is used as "business service" in Oracle(BEA) OSB(AquaLogic). We also have a "proxy service" which we map to the BS with XQ...

How do I customise date/time bindings using JAXWS and APT?

Im using JAXWS 2.1.7, using some classes to run through JAXWS's 'apt' to generate the WSDL. For dates, I use @XmlSchemaType(name="time") private Date wakeupTime; and this generates a schema with xs:time, but when this all comes out in XML, the value is something like <wakeupTime>1901-01-01T01:00:00 +10</wakeupTime> I want JUS...

Jax-ws, spring and SpringBeanAutowiringSupport

although in my @Webservice class I extend SpringBeanAutowiringSupport, autowiring simply does not work for Spring 2.5, tomcat6. nothing is injected. I tested those beans autowiring in main method, using classpathcontext, everything is injected fine. But not for jax-ws endpoint. do you have ideas? ...

cxf ws-security: securing web-services & interoperability with .NET and other languages

I wonder how to use the means that CXF provides us to secure web-services and BE SURE THAT THERE'LL BE NO PROBLEM for anyone who wants to generate a non-java client from a cxf wsdl file? What do you recommend? ...

Access Authentication from Javax-jws web service

I have implemented a web service using JAX-JWS. I would like this web service to authenticate the incoming request or atleast be able to access the username - password information sent in the Soap request. What is the best way to do this? ...

easiest tutorial how to secure cxf+spring web service running on tomcat6?

I use java-first approach to make a web - service. I looked into other such questions & replies and didn't see any clear explanation, step-by-step tutorial. It would be great if you could point a way to make such a secure service so that any client could use the GENERATED by cxf WSDL file. easiest tutorial how to secure cxf+spring web...

how can i send resultset in JAX-WS

i am building a web service in java and my client is .net for example my table contains String "name",String "surname", and Integer "id" and i want to send all of them my question is, which type should the method return? ...

Can JAX-WS host "web" service in desktop program?

Can Java (JAX-WS) host "web" service in desktop program? For example .net wcf can host services anywhere. Tnx all. ...

Apache Axis web service clients vs plain SOAP requests.

I'm looking for the best way to consume a Java web service that returns rather large and complex objects. I am currently using Apache Axis clients generated from the wsdl, (using eclipse "generate web service client" tool). We have concerns about performance of this. The service proxy objects are not thread safe, and they are rather h...

Connection details & timeouts in a java web service client

Hello fellow Coders, I have to implement a webservice client to a given WSDL file. I used the SDK's 'wsimport' tool to create Java classes from the WSDL as well as a class that wrap's the webservice's only method (enhanceAddress(auth, param, address)) into a simple java method. So far, so good. The webservice is functional and returning...

JAX-WS, Weblogic interoperability problem - No start attachment specified in the Multipart/Related document

Hi all! I'm trying to use JAX-WS on WebLogic 10.3 as a WS Client consuming a Web Service on a WebLogic 9.2 server. The problem I have is that when I add an attachment part in a SOAPHandler, the JAX-WS implementation does not include a Start parameter in the Content-Type header. Apparently this should not be needed, but the WS implement...

Are there any OSGi web service / SOAP clients out there?

I'm looking for any webservice client that can be run inside an OSGi container and connect to a simple web service using SOAP, doesn't sound so hard does it? Oh, and it has to work under Java 1.5, so the JRE jax-ws wont be present. The problem is I've tried a few solutions now, and although each solution works in standard Java using i...

NTLM Authentication fails when behind Proxy server

Hi All, I've seen a number of post about consuming Web Services from behind a proxy server, but none that seams to address this problem. I'm building a desktop application, using Java, JAX-WS in NetBeans. I have a working prototype, that can query the server for authentication mode, successfully authenticate and retrieve a list of web ...

Jaxws notifications

Hi, Could you please help in the following? Is there an acceptable design guideline to implement WS Notification Messaging in java? My scenario is the following: a web service client makes a web service call to a web service. After that, the web service should be able to send asynchronous notifications to the web client (as a result of...