Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP message

 
Madhu Sudhana
Ranch Hand
Posts: 127
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we convert String object to SOAP message?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Madhusudhana E:
How can we convert String object to SOAP message?


I do not know whether it can be done or not.
Just curious to know whether the string that you are talking about contains a XML formatted SOAP envelop ?
 
Madhu Sudhana
Ranch Hand
Posts: 127
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes........the String object contains a XML formatted SOAP envelop.
 
karthikeyan kalyanasundaram
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U never get reply for this.better luck next time
 
Peer Reynders
Bartender
Posts: 2939
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Convert the String to a javax.xml.transform.stream.StreamSource and use that to set the content of the javax.xml.soap.SOAPMessage with javax.xml.soap.SOAPPart.setContent.
 
karthikeyan kalyanasundaram
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Rahul,
I have done the same thing but im facing the following error.

com.sun.xml.messaging.saaj.soap.SOAPPartImpl lookForEnvelope
SEVERE: SAAJ0514: Unable to create envelope from given source because the root element is not named Envelope
Jul 31, 2007 12:13:01 PM com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
SEVERE: SAAJ0511: Unable to create envelope from given source
Jul 31, 2007 12:13:01 PM com.sun.xml.messaging.saaj.soap.SOAPPartImpl getContentAsStream
SEVERE: SAAJ0547: Error while trying to externalize
Jul 31, 2007 12:13:01 PM com.sun.xml.messaging.saaj.soap.MessageImpl saveChanges
SEVERE: SAAJ0539: Unable to get header stream in saveChanges
Jul 31, 2007 12:13:01 PM com.sun.xml.messaging.saaj.soap.MessageImpl saveChanges
SEVERE: SAAJ0540: Error during saving a multipart message
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Error during saving a multipart message
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1104)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to get header stream in saveChanges:
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1074)
... 14 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: SOAP exception while trying to externalize:

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to get header stream in saveChanges:
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1074)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: SOAP exception while trying to externalize:

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: SOAP exception while trying to externalize:
at com.sun.xml.messaging.saaj.soap.SOAPIOException.<init>(SOAPIOException.java:38)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:290)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:95)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
... 16 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
... 19 more

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:95)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
... 19 more

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to get header stream in saveChanges:
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1074)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: SOAP exception while trying to externalize:

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: SOAP exception while trying to externalize:
at com.sun.xml.messaging.saaj.soap.SOAPIOException.<init>(SOAPIOException.java:38)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:290)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:95)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
... 16 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
... 19 more

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:95)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
... 19 more

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: SOAP exception while trying to externalize:
at com.sun.xml.messaging.saaj.soap.SOAPIOException.<init>(SOAPIOException.java:38)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:290)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:95)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
... 16 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
... 19 more

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:95)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
... 19 more

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:95)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
... 19 more

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:132)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:99)
at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:85)
at com.sun.xml.messaging.saaj.soap.ver1_2.SOAPPart1_2Impl.createEnvelopeFromSource(SOAPPart1_2Impl.java:52)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:106)
at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:285)
at com.sun.xml.messaging.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:923)
at com.sun.xml.messaging.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:1071)
at com.sun.xml.messaging.saaj.soap.MessageImpl.writeTo(MessageImpl.java:1196)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:111)
at client.SOAPclientHandler.handleMessage(SOAPclientHandler.java:1)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:614)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:429)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:359)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.callHandlersOnRequest(SOAPMessageDispatcher.java:651)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:201)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)




Note : Im having the encrypted Xml file in my string.Im giving the same here.



<?xml version="1.0" encoding="UTF-8"?>

<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Id="Test" Type="http://www.isi.edu/in-notes/iana/assignments/media-types/text/xml">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
<ds:KeyInfo xmlns s="http://www.w3.org/2000/09/xmldsig#">
<KeyName>theKey</KeyName>
</ds:KeyInfo>
<CipherData>
<CipherValue>XCkToVQKu8sJolm265tn+VHnREKEQCcA4vcEK/iGmJGYzM1SkzXPAvgaqstm/2ygY9tYaE5HaJCd
v2OtczSyXHmn6vb/3cq+QBZwlf8YHPCmOrUsLaU6VGCHHYGt1FXF906U1Sqj8x4L/Xq4dtgLb4Aa
9QsmfOJVx5Av5Wq18UxTtVo+BVMpYmDoORb8qvHocPrOs5lTKQBaYO800HRGbmclWJJq0WewD7cl
5QKtG/xfWS28TQB64rNIAnQ1k6Iyt4gE6I9V6eTTV2jL0Y+/LjzTQSiz5IDSQpOsUJLD0XUuEbU3
/H9jbmlHN+gOIx1Ys/0FiaNyzFuqm2IflGt9RvkDW1SQyufV5LgcAo4utk1u2dkJD1TgTQSrt7zH
hDuWkM7BdNpjmRLWJp2fdjZkNtf7haRdiGVgJlF9opCPqyACfxA6UckbeuZaUlzh+neI96Z0F5hI
ohM=
</CipherValue>
</CipherData>
</EncryptedData>


Karthick
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi karthikeyan,

I have no much idea about SOAP api's.Anyways the response is not given by me.
 
Peer Reynders
Bartender
Posts: 2939
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A quick google for "Java SOAPMessage String" lead to this link:
How to Convert to SOAPMessage to String.

Which leads to this example (compiled and run with Java 1.5.0_04 and axis (1.3) saaj.jar)
 
karthikeyan kalyanasundaram
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Reynders, I can able to convert the String to SOAPMessage.In my case im having the handlers on both client and server side.In client handler im getting the SOAPMessage and converting this in to a String message and i encrypt this message after that againg i am convert this string back to SOAPMessage.Now i have to send this encrypted message to the server side handler.But my request is not hitting the sever side handler.Im using the following code to add the encrypted SOAPMessage to SOAPMessageContext

context.setMessage(message);
context - Incoming SOAPMessageContext
message - encrypted SOAPMessage

I am facing the following exception.Can you just help me to solve this problem.


Thanks Karthick
 
Peer Reynders
Bartender
Posts: 2939
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unable to create envelope from given source because the root element is not named Envelope.


I suspect that your encryption strategy is faulty. Sounds like you encrypted the entire SOAP envelope rather than the contents of the body (depending on the style of encryption you may also need to set some SOAP headers).

Have a look at Message (XML) Level Security.

Did you have a look at your encrypted message text?
 
karthikeyan kalyanasundaram
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the exception i am facing.

HTTP Status-Code 400: Bad Request
at com.sun.xml.ws.transport.http.client.HttpClientTransport.checkResponseCode(HttpClientTransport.java:300)
at com.sun.xml.ws.transport.http.client.HttpClientTransport.getHeaders(HttpClientTransport.java:153)
at com.sun.xml.ws.util.SOAPConnectionUtil.getSOAPMessage(SOAPConnectionUtil.java:57)
at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder.toSOAPMessage(SOAPXMLDecoder.java:97)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:456)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:288)Error

at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
javax.xml.ws.WebServiceException: HTTP Status-Code 400: Bad Request
at com.sun.xml.ws.util.SOAPConnectionUtil.getSOAPMessage(SOAPConnectionUtil.java:81)
at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder.toSOAPMessage(SOAPXMLDecoder.java:97)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:456)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:288)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105)
at $Proxy17.sayHello(Unknown Source)
at client.Calc.main(Calc.java:27)
Caused by: HTTP Status-Code 400: Bad Request
at com.sun.xml.ws.transport.http.client.HttpClientTransport.checkResponseCode(HttpClientTransport.java:300)
at com.sun.xml.ws.transport.http.client.HttpClientTransport.getHeaders(HttpClientTransport.java:153)
at com.sun.xml.ws.util.SOAPConnectionUtil.getSOAPMessage(SOAPConnectionUtil.java:57)
... 9 more
 
karthikeyan kalyanasundaram
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can able to encrypt and decrypt the message successfully without any exception.But at the client program i am getting the result as null.
In SOAPclient handler response, i can able to see the original message coming from webservice.Can anyone tell me whats the problem on my application.Also i want to know the flow of soap message after the client handler response.


Karthick
 
Yellaiah Gopireddy
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
karthik,

Why can't you use Axis as SOAP Engine for you?
I am not much aware about SOAP API, but i am using Axis in my project to implement webservices.

Thanks,
Yella
 
karthikeyan kalyanasundaram
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks friend. but i don't know much about Axis
 
Ashfaq Framewala
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to do the same thing as in converting String object to SOAP message. However in my case, my string object has an attachment.

I am able to create the SOAPPart but when I try to access any details about the attachments from the SOAPMessage, it fails.

Can anyone help me out?

Thanks and regards,
Ashfaq
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic