• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Regarding the Soap Message  RSS feed

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to know if the Soap message is simply a string that is converted into a byte array and sent across the Http or is it a SOAP Object which is then serialized into a Byte array. Lets say for instance, I have the following code.



This returns me the complete SOAP Message. For example
<SOAP-ENV:Envelope..
...
><SOAP-ENV:Envelope/>
and I convert the String to a byte array,



I have sent this byte message to a Web service consumer using a http connection and seen a proper response coming back. So I assume the message can simple be a string which then gets converted into a byte array.
We don't really have to convert the message to a SOAPMessage ??.

Please let me know if my understanding is correct.
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A "SOAP message" is just an XML-based group of text characters organized in a specifc way. It is not a Java object.
A programmer can create a "SOAP message" with shell script commands, a text editor, COBOL code, Java code, Perl code, etc.
When a "SOAP message" is sent it is converted to bytes. The XML-based text is converted to bytes, not a Java object.



These statements are code that help create "SOAP messages." They are not the required for anything and simply present one option for generating a "SOAP message" with an object-oriented program.

 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
Enterprise Java integration with Delphi and Free Pascal applications - new release 2019.02
https://coderanch.com/t/705708/Enterprise-Java-integration-Delphi-Free
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!