Questions tagged [soaphandler]
56 questions
1
vote
1 answer
MTOM not working when using SOAPHandler
I try to transfer file with Mtom and it is working pretty good until i use SoapHandler to verify client signature. SoapHandler keeps all message and changes it to base64 encoded. So when i try to get huge file, Jvm throws heap size exception. Do you…

cenkhiz
- 11
- 4
0
votes
0 answers
java.util.ConcurrentModificationException when iterating over ((SOAPMessageContext) mc).getMessage().getMimeHeaders().getAllHeaders()
I have a
public class LoggingHandler implements SOAPHandler {
and in the
public boolean handleMessage(SOAPMessageContext context)
I have the below processing of the message headers
LOGGER.trace("Starting processing…

Eljah
- 4,188
- 4
- 41
- 85
0
votes
0 answers
how to trace api output request for a soap request?
I am working on implementing a REST api in java that is going to wrap a soap web service request,
what I have done is unmarshaled the WSDL of the soap request using jax_WS way in eclipse
through the unmarsheling process I got classes of binding ans…

kikicoder
- 383
- 3
- 16
0
votes
0 answers
Create parent element in SOAPBody response using SOAPHandler
I am using SOAPHandler and I need to modify my SOAPMessage in SOAPNHandler:
The message i get:
210520
1156
…

Alex Danilov
- 27
- 1
- 7
0
votes
0 answers
SoapHeader and problems with non-unicode characters
I created
public class ExceptionHandler implements SOAPHandler
I want to create soap header with non-ascii characters.
MessageFactory factory = MessageFactory.newInstance();
SOAPMessage soapMsg =…

zerocool
- 103
- 1
- 7
0
votes
0 answers
SOAP request message header is can not logging
I have a working soap client code sends requests and gets response. But when I tried to log my requests with soap handler to DataBase, the header parts does not appears and I get the following message.

Ahmet Orhan
- 304
- 3
- 12
0
votes
1 answer
Error when replacing body element from SOAP request in SOAPHandler
I use a velocity template to create a soap request.
I use the jax-ws framework to implement a web service client.
I have wired a SOAP Handler to intercept outbound messages.
I am trying to replace the body content by a new body computed.
I use the…

Joel
- 669
- 7
- 25
0
votes
1 answer
resource annotation in soapHandler implemantation
I have read few tutorials about soap handlers and some of them uses only handler chain but some of them use both @resource annotation and handler chain xml. I am confused if @resource is needed to use or not. If yes why exactly I need to use it?

user1474111
- 1,356
- 3
- 23
- 47
0
votes
0 answers
How to throw valid service SOAP response instead of very ambiguous Server 500 error from SOAP handler
I am sending SOAPException from my SOAP handler class (Java class) when ever there is a unauthorized user, but in my client it is giving 500 Internal Server Error.
Can any body help me how to throw specific code instead of 500.
Thanks in advance.
0
votes
0 answers
JAVA+ Spring Edit SOAP request Message
i'm developing soap app using Spring + SOAP+JAXB+XSD
i want to add the namespace to the soap request xml
My Existing request
…

senthil raja
- 79
- 1
- 1
- 5
0
votes
0 answers
jax-ws soaphandler get response data value
I am pretty new with JAX-WS, I would like to get a value in the Response Data of my Soap Handler but I do not know how.
Below is the soap response in XML:

Borgy Manotoy
- 1,960
- 5
- 27
- 42
0
votes
1 answer
Thread Safety in Jax-WS Request-Response Payload Logging
I am working on a SoapHandler implementation. Basically my aim is to get both request and response payloads and insert them to the database.
Although I can get the request and response payloads, I couldn't make sure if my code is working…

Hüseyin Kılıç
- 3
- 3
0
votes
0 answers
Retrieving credentials from SOAP header
This a sample SOAP request I'm sending to a WS which is deployed in WAS 8.5

Kaliyug Antagonist
- 3,512
- 9
- 51
- 103
0
votes
0 answers
How to get SOAPHandler handleFault method to distinguish request and response
I am trying to use SOAPHandler to intercept the service call and I need to distinguish between request and response inside the handleFault method. The problem is that when either request or response is invalid and the handleFault method is called, I…

Dilini Rajapaksha
- 2,610
- 4
- 30
- 41
0
votes
1 answer
JAX-WS - multiple web services - SOAP handlers not working
I am working on a project that requires connecting to two different web services, so I have two web clients as dependencies (as JARs).
My problem is that only the handlers from one of the services are being called, the handlers from the other one…

Radu Bompa
- 1,594
- 1
- 15
- 21