Hi Wolfgang,
Thanks a bunch for your email.  I know it is very unusual having xml document 
inside xml document.  It was one of the requirement of the client that the 
output has to be in xml document.  It has data from multiple different sources 
and uses Justice xml for law enforcement agencies as its standard.  So far we 
have not run into any issues (as long as we didn't use base64 data) with this 
even though it seems weird considering that SOAP response itself is an xml 
document.  Can you think of any other way we could do this?
As far as the hard-coded base64 string goes, this is what is happening - 
after a client request, I query database with input data, and parse the query 
result and put them in the xml document.  During this process, I have to check 
if the record has an image associated with it.  If it does, then I get the 
image file, convert it into base64 and stick that base64 string into the image 
tag.  And it fails.  
I also print this xml document out for debugging purposes.  From this output, 
if I copy and paste the base64 string into the image tag (that is I am sending 
a hard-coded output), then it works.  That is, my output sent to client always 
has the same image data.
I am not sure if I was able to explain this at all.  Please let me know if you 
need any more info to help me out with this problem.
Thanks again!
Raihan


--- On Sun, 6/29/08, WJ Krpelan <[EMAIL PROTECTED]> wrote:

> From: WJ Krpelan <[EMAIL PROTECTED]>
> Subject: Re: Questions regarding Axis1.4
> To: [email protected]
> Date: Sunday, June 29, 2008, 5:32 PM
> Hi
> what you are doing (putting xml documents within xml
> documents as strings)
> is not considered usual practice. I'm not surprised
> that you are running into problems with AXIS 1 using this
> approach. 
> I dont understand exactly what you mean by putting it
> hardcoded vs generated into the response. could you provide
> an example?
> Cheers,
> Wolfgang
> 
> 
> --- On Sun, 6/29/08, Raihan Ahmed
> <[EMAIL PROTECTED]> wrote:
> 
> > From: Raihan Ahmed <[EMAIL PROTECTED]>
> > Subject: Questions regarding Axis1.4
> > To: [email protected]
> > Date: Sunday, June 29, 2008, 6:00 AM
> > Hello,
> > I am sorry to email in this manner.  But I have run
> into an
> > issue that I just can't figure out.  I have
> searched the
> > Internet without any luck.
> > I have a web service running under Axis1.4.  One of
> the
> > methods returns an array of string to the client. 
> Each
> > string in the array is actually an XML document with
> data
> > from database tables.  And each of these XML documents
> has
> > a node that has image data in Base64 string. 
> > Now the problem is this -
> > Without the Base64, it works fine.  But soon I add the
> > base64 data in the node, I get the SoapException on
> the
> > server side.  If I copy the base64 string and
> hard-code it
> > in the response, it works.  But when the base64 is
> > generated, it does not work.
> > I can't figure out the reason - base64 is simple
> ascii
> > characters.  Why can't I put a string like that in
> the
> > response?
> > I am desperate.  Please help!  If I am in the wrong
> place,
> > please point to the right people so that I can get an
> > answer.
> > Best Regards!
> > Raihan U. Ahmed
> > 
> > 
> >       
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> 
> 
>       
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


      

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to