SOAP 1 « Web Service « Spring Q&A





1. Usage of SoapActionEndpointMapping in Spring-ws    stackoverflow.com

I'm trying to create a WS based on a WSDL that defines one Request and one Response. The incoming request should be mapped to an endpoint depending on the SOAPAction defined ...

2. How to retrieve header values from SOAP Envelope in Spring WS    stackoverflow.com

I am getting some values in SOAPHeader in a Spring Webservice. I would like to retrieve those values .

3. Add SoapHeader to org.springframework.ws.WebServiceMessage    stackoverflow.com

How can I add an object into the soap header of a org.springframework.ws.WebServiceMessage This is the structure I'm looking to end up with:

 <soap:Header>
    <credentials xmlns="http://example.com/auth">
    ...

4. How can a Spring Soap interceptor modify the contents of a message?    stackoverflow.com

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 ...

5. Spring Web Services - Exception Skipping ExceptionResolver    stackoverflow.com

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 ...

6. How to extract attachments from a Soap Message in Spring    stackoverflow.com

The soap message successfully comes across, and I can print out the envelope just fine, but the attachments are always zero. Even though I put the exact request through SoapUI, and ...

7. Spring returning custom soap faults    stackoverflow.com

I am using spring webservices to expose my services as web services. I defined my Soap fault element like this

<xsd:element name="systemFault">
        <xsd:complexType>
    ...

8. How to create custom soap fault message using spring web service    stackoverflow.com

I'm trying to write a web service using spring web service library. I'm able to configure my endpoints successfully and it is working fine, but I'm facing some issues with the ...

9. Exposing Spring services as SOAP webservice    stackoverflow.com

I have a quite extensive Spring 3.0 service architecture (the typical architecture; a bunch of model objects and a bunch of services that do stuff with these objects). I would like ...





10. How to use direct streaming for SOAP with Spring-WS?    stackoverflow.com

We want to enable direct streaming of our payload in webservice endpoints. We have to process a large amount of data and want to stream the data while processing. We use spring-ws-core, ...

11. SimpleMappingExceptionResolver does not resolve exceptions that are caught locally    stackoverflow.com

I'm having an issue with Java Spring Exception Resolving. I need to write a custom detail to a SoapFaultClientException in the webservice provider. This customized SoapFaultClientException will be caught in the ...

12. Way how to develop a Cloud Application    stackoverflow.com

We start a new project which should be a cloud scalable application. The prefered Ways is right now Java, Tomcat as a Application Server to be able to deploy it into ...

13. Can we use multiple message factories in Spring WS?    stackoverflow.com

I recently solved the problem of the direct streaming with Spring WS, thanks to Arjen for the fast response. The trick was to disable payload caching in the Axiom ...

14. Sending SOAP attachment with Camel+Spring WS?    stackoverflow.com

i have been trying to send SOAP attachment using Camel+SpringWS. Following is code inside my RouteBuilder class, endpoint is working properly i have already got empty SOAP response :

from("spring-ws:rootqname:{http://www.lala.org/Bean}GetBookRequest?endpointMapping=#endpointMapping").process(new Processor() ...

15. how to change request to     stackoverflow.com

I am using Spring webservicetemplate to genrate the Soap request. Here request is generated in the format <env:Envelope> but it is required to generate request in <soapenv:Envelope>. I am unable to understand what to ...

16. Problem with SOAP Header not being set    forum.springsource.org

Problem with SOAP Header not being set Hi all... question: any reason why the following code is not setting the apiKey SOAP Header? Code: package com.hoovers.webservice.springdemo; import java.io.IOException; import javax.xml.namespace.QName; import ...





17. Adding Soap Header using web service outbound adapter    forum.springsource.org

Adding Soap Header using web service outbound adapter I was wondering if there's any way of adding a custom soap header before invoking a webservice using spring integration webservice outbound adapter. ...

18. soap action    forum.springsource.org

Hi, I'm using gateway and ws:outbound-gateway in the spring integration context xml for web service calls. How to mention Soap Action? Is chain-filter the only way to use it? Sample Code: ...

19. Spring WS: Add custom SOAP header    forum.springsource.org

Spring WS: Add custom SOAP header Hey there, What's my goal? I'm rather new to Spring WS, although I have created a few webservices with it. Only this time it is ...

20. How to use direct streaming for SOAP with Spring-WS?    forum.springsource.org

How to use direct streaming for SOAP with Spring-WS? We want to enable direct streaming of our payload in webservice endpoints. We have to process a large amount of data and ...

21. Serving requests without soap envelope    forum.springsource.org

Serving requests without soap envelope We have a fully configured and fully functional spring-ws app that handles SOAP requests. Now, we'd also like to configure an endpoint or a listener or ...

22. help on parsing soap message without webservice    forum.springsource.org

I have a case need to parse the soap message not though web service. what is the simple way to do that? I googled and not answer found. the business case ...

23. use complete soap with spring-ws-test    forum.springsource.org

use complete soap with spring-ws-test I want to switch from javacrumbs spring-ws-test to spring ws 2.0's spring-ws-test due to upgrade from 1.5.9 to 2.0.1. After changing parts of my code I ...

24. Cannot create message: incorrect content-type for SOAP version    forum.springsource.org

Cannot create message: incorrect content-type for SOAP version Hi there, A question relating to soap1.2 bindings, I have created a web service that dynamically creates the wsdl for me. I am ...

25. Help with simple SpringWS SOAP Client (after GroovyWS/soapUI brain rot)    forum.springsource.org

Help with simple SpringWS SOAP Client (after GroovyWS/soapUI brain rot) I'm trying to use SpringWS in order to have a Java client access the services at http://www.webservicex.com/stockquote.asmx?WSDL (this is just an ...

26. handling soap notifications    forum.springsource.org

handling soap notifications hi, As part of business work flow, one of our processors sends a SOAP xml over http to us. THe problem is we dont have a wsdl provided. ...

27. change prefix in SOAP envelope    forum.springsource.org

change prefix in SOAP envelope Hi all, I'm stuck at trying to change the prefix part of my SOAP envelope from "soapenv" to "soap". The other server is not accepting my ...

28. SAAJ0533: Cannot create message: incorrect content-type for SOAP version    forum.springsource.org

SAAJ0533: Cannot create message: incorrect content-type for SOAP version I have a Java Spring client with a .Net Web Services. The client contact with the server, but when receive the respond ...

29. How to extract the Soap Header?    forum.springsource.org

Hi, I'm trying to follow this page http://static.springsource.org/sprin...ml/server.html, which says I can define my endpoint handler method to have a signature like this: Code: public void handle(@RequestPayload MyJaxb2Object requestObject, @RequestPayload Element ...

30. Invoke SOAP web service    forum.springsource.org

Hi, I need to invoke SOAP web service using spring. Can anybody tell me how to do that? I looked up some documents and seems that we can either use org.springframework.remoting.jaxws ...

31. How to add attachment to SOAP Message    forum.springsource.org

How to add attachment to SOAP Message I am extending EndpointInterceptorAdapter to intercept response in handleresponse method and adding pdf doc as a Soap attachment. made the following configuration changes ...

32. Web Service with soap issue    forum.springsource.org

Web Service with soap issue Hi guys, I've an unsolved problem and I'm getting crazy working on it. Therefore if someone could help doing me this favor, just check what is ...

33. Interceptor Wss4jSecurityInterceptor and SOAP Fault    forum.springsource.org

Interceptor Wss4jSecurityInterceptor and SOAP Fault Hi, I use spring-ws 2.0 for my webservices, with the ws-security interceptor (wss4j), for checking the authentification and timestamp in the request, and adding a timestamp ...

34. Convert Soap message to Java object    forum.springsource.org

Convert Soap message to Java object I will receive a soap message from MQ.I want to convert it in a java object which will contain two properties storeId and correlationId.Than i ...

35. org.springframework.ws.soap.client.SoapFaultClient Exception: Server Error    forum.springsource.org

org.springframework.ws.soap.client.SoapFaultClient Exception: Server Error Hi, I am trying to integrate my webservices using Spring Integration. Currently i am using the jaxws and it is working fine. This is my wsdl service ...

36. "rmi over soap"    forum.springsource.org

Hello, I've a requirement to acces my business tier using soap/http. My business service methods don't have to be exposed to other apps : this is only a security constraint (firewall). ...

37. howto wrap exceptions to soap faults    forum.springsource.org

Hi, i'm using a web service (xfire) to call my business methods. My business methods invoke DAOs to retrieve data. I want to put execptions from my business logic and my ...

38. howto return exceptions as soap faults    forum.springsource.org

Originally Posted by res1st Hi, i'm using a web service (xfire) to call my business methods. My business methods invoke DAOs to retrieve data. I want to put execptions from my ...

39. add soap header    forum.springsource.org

hello, i try to create a web service with AbstractDomPayloadEndpoint. i need to sign the payload with xmldsig and add the signature to a soap header. how access to MessageContext? have ...

40. Does Spring-WS include a SOAP stack or does it use the J2EE containers stack?    forum.springsource.org

Does Spring-WS include a SOAP stack or does it use the J2EE containers stack? Ok, before I start I will point out that I have not read the documentation in any ...

41. Wanting to return the message from a custom Exception as a SOAP Fault string    forum.springsource.org

Wanting to return the message from a custom Exception as a SOAP Fault string I have wired the bean ... Code: RECEIVER,Server error ...

42. Content-Id in soap attachment    forum.springsource.org

Hi, I want to set "Content-Id" to an attachment when using Spring WS API (and SAAJ). But, there is no method to set "id" in method "addAttachment". How to do it ...

43. Axis-Spring question. Sending a SOAP message from server    forum.springsource.org

Axis-Spring question. Sending a SOAP message from server I have an Axis server working in Spring using JAX-RPC as described in the reference documentation (Chapter 17.5.1 Web services, Exposing services using ...

44. Reading SOAP header element values using SoapHeaderElement    forum.springsource.org

Reading SOAP header element values using SoapHeaderElement Hey, I'm confused as how to read the element values in the SOAP header using the SoapHeaderElement interface. What I have so far is ...

45. JMXClient using SOAP    forum.springsource.org

JMXClient using SOAP Hi all, I was wondering if anyone had any luck using the MBeanServerConnectionFactoryBean class to connect to a remote JMX server. I'd be particularly interested in finding out ...

46. add attribute to soap body    forum.springsource.org

That's not supported right now, because I don't recommend putting an attribute on the body itself. Not all SOAP engines can deal with that. Why do you need it?

47. Axis2 and raw soap message    forum.springsource.org

Hi There, I am currently using Axis2 to impement a Web Service. I am using the org.apache.axis2.extensions.spring.receivers.Sprin gAppContextAwareObjectSupplier To make my pojo objects spring aware, Is there anyway for me to ...

48. Handle large file attachment with SOAP    forum.springsource.org

Jul 6th, 2007, 01:36 PM #1 asbuet View Profile View Forum Posts Private Message Junior Member Join Date Jun 2007 Posts 2 Handle large file attachment with SOAP Hi I am ...

49. A custom soap fault implementation    forum.springsource.org

A custom soap fault implementation I've just finished a cut at a custom soap fault implementation. I'm very interested in any comments or suggestions that forum members might have. A snippet ...

50. need suggestion about specification and encoding of SOAP    forum.springsource.org

Hi, Im working in a famous software company. They gave me a project on simple object access protocol (soap). This is my first project so; I was little confused with this ...

51. SOAP action header crux    forum.springsource.org

SOAP action header crux I would like to try out the AxiomSoapMessageFactory with payloadCaching disabled. The Javadoc suggests using an endpoint mapping that does not consume the payload: eg SoapActionEndpointMapping My ...

52. new to soap,please help    forum.springsource.org

i am new to soap,but i am familiar with spring framework.I want to access web service provided by .net server application.Although i read through the reference and understand it,i fail to ...

53. Handling Soap Header on Server side    forum.springsource.org

Handling Soap Header on Server side Hello, I am trying to create one webservice... the client sends soap header with user details to the server.. and at the endpoint i need ...

54. How to control style/use of Soap binding ?    forum.springsource.org

55. Getting the exception if I am sending the request with soap header    forum.springsource.org

Getting the exception if I am sending the request with soap header Hi, I am getting following exception if I am adding the soap header in the webservice message. otherwise it ...

56. Getting SOAP header from EndpointInterceptorAdapter    forum.springsource.org

Getting SOAP header from EndpointInterceptorAdapter Hi, I would like to intercept a request and extract SOAP header from MessageContext. I have already added EndpointInterceptorAdapter to the list of interceptors of my ...

57. SOAP Message Header and WS-Addressing attributes    forum.springsource.org

Hi, The documentation is very good but does not go in detail about specific issues. So I have another question: I need to analze SOAP messag header contents. Concretly WS-Addressing attributes. ...

58. Soap staatus code    forum.springsource.org

Hi, We have a client asking us to send soap status code 0/1 .If the record that client is searching for using webservice not found in the database they want soap ...

59. Special characters in soap request    forum.springsource.org

Whenever i try to pass a special character like in my soap request the server throws an error instead of processing the request.Can anyone tell me how to resolve this ...

60. Soap envelope prefix?    forum.springsource.org

Soap envelope prefix? I think this should be fairly simple, but I can't seem to find a way to do it looking through the API. I'm using the WebServiceTemplate to send ...

61. Unable to create message factory for SOAP: Provider org.apache.axis.soap.MessageFacto    forum.springsource.org

Unable to create message factory for SOAP: Provider org.apache.axis.soap.MessageFacto Hello, I got a new problem. Everything is working fine on my local test server but when I deploy I get the ...

62. Can I send broadcast SOAP message with incoming info?    forum.springsource.org

One of my services have to: 1 - to get incoming info message from Oracle service 2 - to process this message 3 - to send response message to another remote ...

63. Trying to sign a SOAP message in WebServiceMessageCallback    forum.springsource.org

Trying to sign a SOAP message in WebServiceMessageCallback Guys, I am writing a SOAP client which must sign its messages. The idea is to have the signature information in the SOAP ...

64. How to set Content-ID of soap message?    forum.springsource.org

How to set Content-ID of soap message? Hello, I want to set Content-ID of my soap message, but I cannot find method of how to do so. There is method of ...

65. Removing empty SOAP header    forum.springsource.org

I have issues with my webservice client library (Nokia JSR 172) because the XML parser seems to have issues handling the empty . Since I can't change anything on the client ...

66. Handling xmlns="" in Soap Envelope    forum.springsource.org

Handling xmlns="" in Soap Envelope Hi All, I am writing a web service interface and my user are sending me xmlns="" all over the place. They claim it is valid and ...

67. SOAP Fault issue    forum.springsource.org

hey, I have 2 interceptors in my project. The PayloadValidatingInterceptor and a custom interceptor to only accept characters that are conform to the CP500 encoding. While developing I use the Eclipse-Tomcat ...

68. Signing a SOAP message    forum.springsource.org

Feb 9th, 2008, 06:28 AM #1 dmadunic View Profile View Forum Posts Private Message Junior Member Join Date Jan 2007 Posts 5 Signing a SOAP message My first question is: does ...

69. Invoking a WS using WebServiceClient with a different soap:address location    forum.springsource.org

I am trying to invoke a web service using the WebServiceTemplate but I think I am running into an issue because the WSDL has an invalid value. The reason ...

70. Creating a SOAP message/Beginners help    forum.springsource.org

Mar 3rd, 2008, 11:18 AM #1 cnosal View Profile View Forum Posts Private Message Junior Member Join Date Mar 2008 Posts 5 Creating a SOAP message/Beginners help I'm new to WS ...

71. Problem with SOAP Header    forum.springsource.org

Mar 12th, 2008, 09:04 PM #1 harshi View Profile View Forum Posts Private Message Senior Member Join Date Nov 2007 Posts 120 Problem with SOAP Header Hi, This is the header ...

72. Responding with an empty SOAP body    forum.springsource.org

Returning null responds with a 202 Accepted HTTP message, zero content length. What I'm looking to achieve is a 200 OK message with an empty SOAP message, eg.

73. setting the soap body in a custom EndpointExceptionResolver    forum.springsource.org

I don't want to rely on SOAP faults to communicate error to the client, so I have an error section in my schema for the SOAP message body which is used ...

74. SOAP Attachment.    forum.springsource.org

75. Capturing SOAP faults and handling exceptions    forum.springsource.org

Capturing SOAP faults and handling exceptions I am hoping that someone can help me understand the Spring Web Services implementation a little better, as I feel like I have been running ...

76. Soap envelope header and WebServiceMessageCallback    forum.springsource.org

Soap envelope header and WebServiceMessageCallback I am trying to add a customised header to my soap message and I use a WebServiceMessageCallback.soWithMessage to add it. I've tried several things, influenced by ...

77. Specifiy soap 1.2 on server side message factory    forum.springsource.org

I ve problems processing soap 1.2 messages.. How can i specify to use SOAP 1.2 on the server-side message factory when using an AbstractMarshallingPayloadEndpoint? Thanks...

78. Client - SOAP Header    forum.springsource.org

Use a ClientInterceptor this way: 1)Define a request scoped bean and inject it both in the interceptor and your WS client; 2)in the interceptor read the SOAP Header and unmarshal it ...

79. Elegant way to handle soap error when calling as client    forum.springsource.org

Elegant way to handle soap error when calling as client Hi, I have read some of the articles and doc, and I am still not sure about the best way to ...

80. Help to get soap message from Spring service...    forum.springsource.org

Help to get soap message from Spring service... I am trying to setup a UserService via Spring that takes a userId, and returns a User object. I setup a LoggingInterceptor, and ...

81. Processing SOAP header    forum.springsource.org

Processing SOAP header We are trying create an interceptor to process a custom soap header that contains authentication information. The header is always logged out as an empty string when we ...

82. [Apache SOAP client] Holiday turorial - urgent    forum.springsource.org

[Apache SOAP client] Holiday turorial - urgent Hello, I'm trying to use my old Apache Soap Client to access HolidayService tutorial (deployed on my local Tomcat). My problems is on passing ...

83. Spring WS and SOAP UI    forum.springsource.org

Spring WS and SOAP UI I wrote a contract first web service using Spring 2.5.4, Spring WS 1.5.2, deployed on WebLogic 8.1.6 under JDK 1.4.2_11. When I bring up WebLogic, I ...

84. incorrect content-type for soap version    forum.springsource.org

Jun 5th, 2008, 02:47 PM #1 darrell.pittman View Profile View Forum Posts Private Message Junior Member Join Date Feb 2007 Posts 28 incorrect content-type for soap version Hello, I'm having a ...

85. Add SOAP header to incoming msg w/no header    forum.springsource.org

I need to add an element to an incoming SOAP header. But when no SOAP header is present, how do you add one? I am using an interceptor and am OK ...

86. Performance with 1Mbyte Soap messages    forum.springsource.org

Performance with 1Mbyte Soap messages Hi, in my project I have to process large soap messages up to 1 Mbyte size. I use Spring WS-API 1.5.1 with a MessageEndpoint., but the ...

87. Support for SOAP 1.2    forum.springsource.org

Are there any plans to migrate to SOAP 1.2 (my understanding: Spring WS is currently at SOAP 1.1 level)? If no, any reasons that the dev team might like to share? ...

88. Spring-ws Internationalization Support - SOAP Header    forum.springsource.org

Spring-ws Internationalization Support - SOAP Header I am working on a web service design that must be internationalized. I'm trying to figure out how best to put the client locale/timezone ...

89. Soap binding issue    forum.springsource.org

I get the following error The 'EquipmentInformationServicePort' port has an invalid binding - 'EquipmentInformationServiceSoapBinding'. Check that the 'EquipmentInformationServiceSoapBinding' binding is defined. but I have the binding defined .. any idea what ...

90. Generating a SOAP-ENV:Client error    forum.springsource.org

Generating a SOAP-ENV:Client error When I throw an exception in my web service due to a client error I get the following exception. Code:

95. Signing SOAP Faults    forum.springsource.org

Signing SOAP Faults Hello, I'm currently successfully using Spring-WS to sign SOAP Responses (only signing, no encryption), using an interceptor configuration as such: ...

96. Sending Large SOAP Requests    forum.springsource.org

Hello, I am attempting to send larges soap requests ~40mb. I know that DOM parsing is probably not the way to go (in memory creation of object tree). That being said ...

97. Web Services Soap Issues    forum.springsource.org

Web Services Soap Issues Im having issues sending a soap request i have tried multiple soap xml files some that i know work in other places this is the error i ...

98. How do I get hold of the SOAP Header    forum.springsource.org

How do I get hold of the SOAP Header I currently have an endpoint that extends AbstractJDomPayloadEndpoint and deals with my request/response just fine. However, I have just been asked to ...

99. org.springframework.ws.soap.client.SoapFaultClient Exception:    forum.springsource.org

org.springframework.ws.soap.client.SoapFaultClient Exception: Hi, Im getting the following exception:Im using saaj 1.3 version and also have added xecres 2.8.1 and xalan 2.7.0 to my pom.xml. Iwonder if it has to do with ...

100. SOAP Exception during redeploy    forum.springsource.org

Dec 27th, 2008, 11:46 AM #1 -FoX- View Profile View Forum Posts Private Message Senior Member Join Date Mar 2005 Posts 135 SOAP Exception during redeploy Hi, I'm getting following exception ...