Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Help! - Using literal encoding with SaaJ

Thread Tools

Help! - Using literal encoding with SaaJ

M. Turner
Posts: n/a
**** Post for FREE via your newsreader at ****


I have had a search around this and other groups but have not seen the
answer to my question, so I would really appreciate it if anyone could
give me any advice:

Basically I am using SaaJ to create, send and receive XML documents
using HTTP over SOAP between java clients and servlets. When I return a
document from a saaj service where the SOAP message includes a complex
type that is repeated i.e. several records from a database, like so:

child elements
child elements

It seems to encode it as an array using SOAP multiref encoding. I want
to be able to create an XML schema for the documents and use literal
encoding for it (i.e, for Saaj to not automatically encode it using

Is there a way to set the encoding style for Saaj to literal? Or for it
to not automatically encode my data as an array at least? If not, does
anyone know of a better way to do this at all? Is there another java API
I should be using for document style messaging? I need to be able to
create and parse the XML SOAP documents manually, rather than send the
information as method calls and parameters as in JAX-RPC.

I'm a relative newbie at saaj and I am coming to the conclusion that I
am probably trying to do something that is not possible with the current
version of the API...

Any information at all would be a great help,



*** - The #1 Usenet Newsgroup Service on The Planet! ***
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SAAJ's DOM error Son KwonNam Java 2 04-12-2011 09:25 AM
Soap with attachments SAAJ question frank Java 0 04-16-2005 12:38 AM
What's wrong with rpc-literal? Why use doc-literal? Anonieko Ramos ASP .Net Web Services 0 09-27-2004 09:06 AM
SAAJ XML SOAP and element parameters Jannar Molden Java 1 09-03-2004 07:16 PM
to saaj or not to saaj Sunil Java 0 01-12-2004 08:53 AM