Hi Wolfgang,
I am sending you an attachment with an example xml document that we output to
the client. I will send you the attachment to your personal account in Apache
has any restrictions on attachments.
I hope this will help you see what I am doing wrong.
I again thank you sincerely for taking the time out to look at this issue.
Raihan
--- On Mon, 6/30/08, WJ Krpelan <[EMAIL PROTECTED]> wrote:
> From: WJ Krpelan <[EMAIL PROTECTED]>
> Subject: Re: Questions regarding Axis1.4
> To: [email protected]
> Date: Monday, June 30, 2008, 5:17 AM
> Ahmed,
> its difficult to follow because I cant tell when are you
> speaking of the overall xml-document and when of an
> included xml-document. btw the xml-schema-datatype is named
> "base64Binary" and not base64. so whereever you
> use base64 data you should discover a
> "base64Binary" datatype within your
> xml-schema-document for your xml-instance-document.
> I assume here that your xml-documents are all
> xml-schema-based?
> Still I think an (anonymized) example document would say
> more than a thousand words,
> Wolfgang
>
>
> --- On Mon, 6/30/08, Raihan Ahmed
> <[EMAIL PROTECTED]> wrote:
>
> > From: Raihan Ahmed <[EMAIL PROTECTED]>
> > Subject: Re: Questions regarding Axis1.4
> > To: [email protected]
> > Date: Monday, June 30, 2008, 1:36 AM
> > 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]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
<?xml version="1.0" encoding="UTF-8"?>
<Booking>
<ActivityDate>2008-05-01</ActivityDate>
<ActivityTime>0900</ActivityTime>
<ActivityEndDate></ActivityEndDate>
<ActivityEndTime></ActivityEndTime>
<BookingSubject>
<PersonName>
<PersonGivenName>TEST</PersonGivenName>
<PersonMiddleName>TEST</PersonMiddleName>
<PersonSurName>TEST</PersonSurName>
</PersonName>
<PrimaryContactInformation>
<ContactTelephoneNumber>
<TelephoneNumberFullID>5555555555</TelephoneNumberFullID>
</ContactTelephoneNumber>
<ContactMailingAddress>
<LocationStreet>
<StreetFullText>THE DIRT ROAD</StreetFullText>
</LocationStreet>
<LocationCityName>SOMEWHERE</LocationCityName>
<LocationStateCode.fip5-2Alpha>GA</LocationStateCode.fip5-2Alpha>
<LocationPostalCodeID>
<ID>31313</ID>
</LocationPostalCodeID>
</ContactMailingAddress>
</PrimaryContactInformation>
<PersonBirthDate>1977-12-30</PersonBirthDate>
<PersonBirthLocation>S.C.</PersonBirthLocation>
<DriverLicense>
<DriverLicenseAuthorizationID.Detailed>
<ID>NONE</ID>
<IDIssueingAuthorityText></IDIssueingAuthorityText>
</DriverLicenseAuthorizationID.Detailed>
</DriverLicense>
<PersonAssignedIDDetails>
<PersonSSNID>
<ID>000000000</ID>
</PersonSSNID>
<PersonOtherID>
<ID>130150285</ID>
</PersonOtherID>
<PersonStateID>
<ID></ID>
</PersonStateID>
<PersonFBIID>
<ID></ID>
</PersonFBIID>
</PersonAssignedIDDetails>
<PersonPhysicalDetails>
<PersonHeightDescriptionText>510</PersonHeightDescriptionText>
<PersonWeightMeasue>160</PersonWeightMeasue>
<PersonHairColorText>BROWN</PersonHairColorText>
<PersonEyeColorText>BROWN</PersonEyeColorText>
<PersonSexText>Male</PersonSexText>
<PersonRaceText>WHITE/NON-HISP.</PersonRaceText>
<PersonPhysicalFeature>
<PersonPhysicalFeatureText>LEFT CHEEK</PersonPhysicalFeatureText>
</PersonPhysicalFeature>
</PersonPhysicalDetails>
<PersonBioMetricDetails>
<PersonDigitalImage>
<BinaryObject.Base64>/9j/4AAQSkZJRgABAA==</BinaryObject.Base64>
</PersonDigitalImage>
</PersonBioMetricDetails>
<SubjectSupervision>
<SupervisionFacility>
<OrganizationName>COMNETIX CO. SHERIFF'S OFFICE</OrganizationName>
<SupervisionAreaID>
<ID>2</ID>
</SupervisionAreaID>
<SupervisionCellID>
<ID>215</ID>
</SupervisionCellID>
</SupervisionFacility>
</SubjectSupervision>
<SubjectID>
<ID>12256</ID>
</SubjectID>
</BookingSubject>
<BookingEmployee>
<EnforcementOfficial>
<EnforcementOfficialActivityTypeText>BOOKINGOFFICER</EnforcementOfficialActivityTypeText>
<EnforcementOfficialBadgeID/>
<ID>99011</ID>
<PersonName>
<PersonFullName>J. BOGUS</PersonFullName>
</PersonName>
</EnforcementOfficial>
<EnforcementOfficial>
<EnforcementOfficialActivityTypeText>FINGERPRINTINGOFFICER</EnforcementOfficialActivityTypeText>
<EnforcementOfficialBadgeID>
<ID>222</ID>
</EnforcementOfficialBadgeID>
<PersonName>
<PersonFullName>A. AKIN</PersonFullName>
</PersonName>
</EnforcementOfficial>
</BookingEmployee>
<Arrest>
<ActivityDate>2008-05-01</ActivityDate>
<ActivityTime>0900</ActivityTime>
<ArrestAgency>
<OrganizationORIID>
<ID>0890000</ID>
</OrganizationORIID>
<OrganizationName>HARALSON COUNTY S.O.</OrganizationName>
<PrimaryContactInformation>
<ContactTelephoneNumber>
<TelephoneNumberFullID>7065551212</TelephoneNumberFullID>
</ContactTelephoneNumber>
<ContactMailingAddress>
<LocationStreet>
<StreetFullText>4 JAIL WAY</StreetFullText>
</LocationStreet>
<LocationCityName>ATLANTA</LocationCityName>
<LocationStateCode.fips5-2Alpha>GA</LocationStateCode.fips5-2Alpha>
<LocationPostalCodeID>
<ID>30117</ID>
</LocationPostalCodeID>
</ContactMailingAddress>
</PrimaryContactInformation>
</ArrestAgency>
<ArrestOfficial>
<EnforcementOfficialBadgeID>
<ID>435</ID>
</EnforcementOfficialBadgeID>
<PersonName>
<PersonFullName>N. ECKERT</PersonFullName>
</PersonName>
</ArrestOfficial>
<ArrestCharge id="Charge1">
<ActivityID>
<ID>2008-05-01</ID>
</ActivityID>
<ActivityDate>2008-05-01</ActivityDate>
<ActivityTime>0800</ActivityTime>
<ChargeStatute>
<StatuteCodeID>40-6-391(A)3</StatuteCodeID>
<StatuteDescriptionText>D.U.I./ALCOHOL & DRUGS </StatuteDescriptionText>
<ChargeSeverityText>FELONY</ChargeSeverityText>
</ChargeStatute>
<ChargeClassification>
<ChargeHighestIndicator>TRUE</ChargeHighestIndicator>
</ChargeClassification>
<ChargeCountQuantity></ChargeCountQuantity>
</ArrestCharge>
<ArrestCharge id="Charge2">
<ActivityID>
<ID>2008-05-01</ID>
</ActivityID>
<ActivityDate>2008-05-01</ActivityDate>
<ActivityTime>0800</ActivityTime>
<ChargeStatute>
<StatuteCodeID>16-14-5</StatuteCodeID>
<StatuteDescriptionText>CRIMINAL PENALTIES FOR VIOLATION OF CODE 16-14-4.</StatuteDescriptionText>
<ChargeSeverityText>FELONY</ChargeSeverityText>
</ChargeStatute>
<ChargeClassification>
<ChargeHighestIndicator>TRUE</ChargeHighestIndicator>
</ChargeClassification>
<ChargeCountQuantity></ChargeCountQuantity>
</ArrestCharge>
<ArrestWarrant id="Warrant1">
<ActivityID>
<ID>121234234234</ID>
</ActivityID>
<ActivityDate>2000-02-25</ActivityDate>
<ActivityEndDate></ActivityEndDate>
</ArrestWarrant>
<ArrestWarrant id="Warrant2">
<ActivityID>
<ID>12345</ID>
</ActivityID>
<ActivityDate>2000-06-19</ActivityDate>
<ActivityEndDate></ActivityEndDate>
</ArrestWarrant>
<ArrestSubjectCustodyTransfer id="HOLDFOR1">
<ActivityDate>2008-05-01</ActivityDate>
<ActivityTime>0900</ActivityTime>
<ActivityEndDate></ActivityEndDate>
<ActivityEndTime></ActivityEndTime>
<CustodyTransferReceivingEnforcementAgency>TEST AGENCY</CustodyTransferReceivingEnforcementAgency>
<ActivityReasonText>OUTSTANDING WARRANT</ActivityReasonText>
<CustodyTransferReceivingEnforcementOfficial>
<PersonName>
<PersonFullName>LT. JEFF WALKER</PersonFullName>
</PersonName>
</CustodyTransferReceivingEnforcementOfficial>
</ArrestSubjectCustodyTransfer>
<ArrestSubjectCustodyTransfer id="HOLDFOR2">
<ActivityDate>2008-05-01</ActivityDate>
<ActivityTime>0900</ActivityTime>
<ActivityEndDate></ActivityEndDate>
<ActivityEndTime></ActivityEndTime>
<CustodyTransferReceivingEnforcementAgency>ULT LAW</CustodyTransferReceivingEnforcementAgency>
<ActivityReasonText>OUTSTANDING WARRANT/PROBATION VIOLATION</ActivityReasonText>
<CustodyTransferReceivingEnforcementOfficial>
<PersonName>
<PersonFullName></PersonFullName>
</PersonName>
</CustodyTransferReceivingEnforcementOfficial>
</ArrestSubjectCustodyTransfer>
</Arrest>
<Bail id="Bail1">
<ActivityDate>2008-05-01</ActivityDate>
<BailRequirementText>CASH</BailRequirementText>
<BailSetAmount>2500</BailSetAmount>
<BailRequirementText>OTHER</BailRequirementText>
<BailSetAmount>5000</BailSetAmount>
<ActivityIssuingJudge>
<PersonName>
<PersonFullName>SMITH, ROBERT</PersonFullName>
</PersonName>
</ActivityIssuingJudge>
</Bail>
<Bail id="Bail2">
<ActivityDate>2008-05-01</ActivityDate>
<BailRequirementText>OTHER</BailRequirementText>
<BailSetAmount>2500</BailSetAmount>
<BailRequirementText></BailRequirementText>
<BailSetAmount></BailSetAmount>
<ActivityIssuingJudge>
<PersonName>
<PersonFullName>SMITH, ROBERT</PersonFullName>
</PersonName>
</ActivityIssuingJudge>
</Bail>
<Relationship name="Charge1_Warrant1" object="Warrant1" subject="Charge1"/>
<Relationship name="Charge2_Warrant2" object="Warrant2" subject="Charge2"/>
<Relationship name="Charge1_Bail1" object="Bail1" subject="Charge1"/>
<Relationship name="Charge2_Bail2" object="Bail2" subject="Charge2"/>
</Booking>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]