spring-ws

Spring web service: easy way to un-marshall a bean to XML client side?

I am utilizing spring to do all of the marshalling/unmarshalling of my bean objects (via jaxb2Marshaller/WebServiceTemplate). For debugging purposes, I would like to be able to spit out the request/response XML. Does anyone know if this is possible? Thanks. ...

Is it common practice to specify security policy info in the WSDL?

Our team is implementing SOAP-based web services using Spring-WS and XWSS. So far we've been relying on Spring-WS to generate the WSDL from our XSDs. We're now considering whether to document the security requirements in the WSDL using WS-SecurityPolicy or conveying them in a separate document. Here are the questions we're pondering: ...

setting a custom http header dynamically with spring ws client

how do you set a custom http header (not soap header) dynamically on the client side when using spring-ws? ...

How can a Spring Soap interceptor modify the contents of a message?

I'm trying to write an interceptor for a web service that will modify the contents of the Soap message before is sent on to the endpoint. If a client sent a message where the value of some element is 1, I want to be able to alter that element to a 2 so that, when the message arrives at the endpoint, it looks as if the client submitted a...

How to generate a wsdl without a default request / response suffix in Spring?

The definitions for the methods of a web service have been provided to me by a 3rd party, i've created the java classes and maven schemagen plugin generates the xsd brilliantly from the classes. I then set up a spring-ws-servlet etc to publish the wsdl, only the WSDL11Definition classes require a request and responsesuffix.... I don't h...

Can Spring-WS 1.5 be used with Spring 3?

Spring-ws 1.5.9 depends on Spring 2.5 (based on the pom). Can it be used with Spring 3 without running into any classloading issues. I know that some of the packages match between the two, can I just not include those Spring 3 jars? I cant seem to find any official word on this. ...

Spring-WS: SimpleWsdl11Definition with a multi-node taxonomy for WSDL

Spring-WS 1.5: Using SimpleWsdl11Definition, exposing a WSDL is straightforward (from Spring-WS doc) in XML configuration: <bean id="orders" class="org.springframework.ws.wsdl.wsdl11.SimpleWsdl11Definition"> <constructor-arg value="/WEB-INF/wsdl/Orders.wsdl"/> </bean> Yields a URL exposing the WSDL at: http://localhost:8080/spri...

Castor XML Marshalling - XSD Contains Choice

I have a schema element that reads as follows: <xs:complexType name="day-hours"> <xs:choice> <xs:element name="twentyfourhours"/> <xs:element name="closed"/> <xs:element name="hours" type="smm:hours"/> </xs:choice> </xs:complexType> <xs:compl...

Spring Web Services - Exception Skipping ExceptionResolver

I have a SOAP service, the request and responses work as expected with good input, if I specify bad input for an XML element in request body: ... <ns:myIntegerElement>asdf</ns:myIntegerElement> ... my exception resolver is invoked, this resolver is just an implementation of the exception resolver, so it doesn't have exception mapping...

Spring WS Osgi samples

We are currently researching OSGI at work and I need to provide a proof of concept on its use with spring dm and spring-ws in the appropriate application server(tomcat / jetty).Does anyone have a example or a tutorial or any links that can help in my research? I have for the past dew days been looking for some samples on how to implemen...

thread safety when using spring WebServiceTemplate and Jaxb2Marshaller

I am using spring WebServiceTemplate as a web service client programmatically i.e. without instantiating a spring container. I am using Jaxb2Marshaller for marshaling/unmarshaling. In my application, I create a single instance of the SaajSoapMessageFactory and one instance of Jaxb2Marshaller. I also create a single instance of the WebSer...

Spring-WS WebServiceTemplate to communicate via SSH/SSL?

Does anyone know if there is the ability to send POX over and SSL connection built into spring? I have used WebServiceTemplate/Jaxb2Marshaller/DomPoxMessageFactory to send POX over HTTP, but have a new endpoint that communicates via SSH/SSL (not https). If not - which is I think the case - what class would I want to implement in order t...

Spring-WS user interceptors to modify request and response?

Is it possible to use Interceptors to modify a request/response payload? The NETCONF over SSH protocol (http://tools.ietf.org/html/rfc4742) requires the XML payload to terminate with a special string : "]]>]]>". This needs to be stripped from a response before passed to JAXB unmarshaller, as well as inserted to the XML payload on a requ...

No endpoint mapping found

Hi I created my first web service. It work fine but now I need to solve some special situation. First situation is mention here http://stackoverflow.com/questions/3441183/spring-web-services-exception-skipping-exceptionresolver but there isnt solution which can help me. Second situation is the client send me correct SOAP message but mak...

Spring ws : how to access to the size of an AxiomAttachment

Hi, In order to get an attachment i have the following code in an endpoint : @PayloadRoot(localPart = REQUEST_ELEMENT, namespace = MODELES_V1_0_URI) @ResponsePayload public Source saveFile(MessageContext argo) throws Exception { (AxiomSoapMessage)MessageContextHolder.getMessageContext().getRequest(); AxiomSoapMessage request = (Axiom...

JAX-WS return empty lists

I'm new in web services. I have faced some problem. At the server side i'm using spring-ws. At the client side i'm using jax-ws. With wsimport tool i have generated java classes according to my wsdl. Everything works fine, but for some reason jax-ws does not parse arrays and list correctly, all lists are empty I'm absolutely sure, that...

SL3 to Java Spring-ws project - .net experts out there?

Hi, I'm new to Silverlight and am trying to connect my SL3 client to a Java Spring-ws(Web Service) project. The Spring-ws project I'm using specifically is the sample tutorial. I'm having trouble when I want my Spring Web Service project to return a value. The generated Service Reference classes use System.ServiceModel.DuplexClientBa...

Cannot read the token from the 'SignatureConfirmation' element..(Java-WCF)

Hi, I have a WCF(3.5) client talking to a Java Web Service (Spring-WS, WSS4J), the client fails while recieving the response from server giving the following exception message Cannot read the token from the 'SignatureConfirmation' element with the 'http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd' namespace for Binary...

Spring-WS SecurityInterceptor operation level

Hello, I have a Spring-WS service using PayloadRootAnnotationMethodEndpointMapping that has several interceptors: <bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping"> <property name="interceptors"> <list> <ref local="loggingInterceptor"/> <r...

Spring Webservices : What should be good starting point ?

Hi, I am totally new to Spring Web Services and so what concept should I start concentrating on and where should I be looking for them and in general what steps would you recommend to get to speed with Spring Webservices Module. Note: I have an requirement to build Web Service for and consume Web Service from different application an...