Loading ...
Sorry, an error occurred while loading the content.

697RE: [soaplite] Re: sending xml via soap::lite

Expand Messages
  • Paul Kulchenko
    Jul 30, 2001
    • 0 Attachment
      Hi, David!

      > Thanks for the help and information. Do you happen to know how
      > much larger the files (in general) would be with base64?
      base64 encodes 6 bits as 8, so encoded chunk is about 33% bigger than
      original.

      Best wishes, Paul.

      --- David Mullens <damullens@...> wrote:
      > Thanks for the help and information. Do you happen to know how
      > much larger
      > the files (in general) would be with base64?
      >
      > I'm not sure I understand all the encodingStyle stuff, so base64
      > seems like
      > it will be easier.....
      >
      > Thanks again,
      >
      > Dave.
      >
      > -----Original Message-----
      > From: soaplite@yahoogroups.com [mailto:soaplite@yahoogroups.com]
      > Sent: Monday, July 30, 2001 1:36 PM
      > To: soaplite@yahoogroups.com
      > Subject: Re: [soaplite] Re: sending xml via soap::lite
      > Importance: Low
      >
      >
      > Hi, Dave!
      >
      > The advantage of using base64 is encapsulation. Base64 preserves
      > encoding and doesn't require fragment to be valid XML (in SOAP
      > context). If you insert is as a fragment your code must not contain
      > processing instructions and document declarations, all namespaces
      > should be properly declared and resolved. Encoding as base64
      > doesn't
      > have those restrictions. There is no disadvantages, except larger
      > size and the fact that base64 preserves encoding :)). I can't tell
      > you what was wrong with ->xml type, but SOAP::Lite doesn't do any
      > validations and insert fragment as is, so it's quite possible to
      > generate invalid XML. If you can send/receive base64 you should be
      > ok.
      >
      > Best wishes, Paul.
      >
      > --- damullens@... wrote:
      > >> Hi,
      > >>
      > >> Well....I coudn't get it to work using type->xml, so I ended up
      > >> trying to send the info as a base64 (even though the docs at
      > >> interop.soaplite.com suggest that base64 from Soap::Lite to
      > apache
      > >> doesn't work). It did work and I was able to get the xml
      > document
      > >> sent over from soap::lite (not the soap part, but the xml I was
      > >> sending from my perl script).
      > >>
      > >> When I tried using the type->xml, my java client complained
      > about
      > >> encodingStyle attributes and some other things. Since _I_ am
      > not
      > >> the
      > >> one creating the XML part (someone else is doing that), I didn't
      > >> know
      > >> if the problem was what soap::lite was sending, receiving, or if
      > >> the
      > >> Java soap client was trying to parse the XML I was trying to
      > send
      > >> over.
      > >>
      > >> If there isn't any disadvantage to using base64, I might stick
      > with
      > >>
      > >> that. I'm new to perl and soap, so any suggestions are greatly
      > >> appreciated!
      > >>
      > >>
      > >>
      > >> Thanks,
      > >>
      > >> Dave.
      > >>
      > >> --- In soaplite@y..., Paul Kulchenko <paulclinger@y...> wrote:
      > >> > Hi, David!
      > >> >
      > >> > > Is this the 'correct' way to do it, or is there a
      > >> different/better
      > >> > > way?
      > >> > Yes, that's correct. You may also use custom serializer if you
      > >> have ,
      > >> > say, DOM object to serialize it into XML fragment. Example of
      > it
      > >> you
      > >> > may find in examples/getdom.pl file. It does pretty much the
      > >> same,
      > >> > but under the hood, so you don't need to write $dom->toString.
      > >> > Shortly, this is the correct way. Let me know if you think
      > about
      > >> > something else.
      > >> >
      > >> > Best wishes, Paul.
      > >> >
      > >> > --- David Mullens <damullens@l...> wrote:
      > >> > > Hi,
      > >> > >
      > >> > > I would like to send an XML object via soap::lite to a java
      > >> client.
      > >> > >
      > >> > > What is the correct way to send it out using soap::lite.
      > Right
      > >>
      > >> now
      > >> > > I send
      > >> > > it as:
      > >> > >
      > >> > > return SOAP::Data->type(xml =>
      > $xmlTest)->name('testingxml');
      > >> > >
      > >> > > Is this the 'correct' way to do it, or is there a
      > >> different/better
      > >> > > way?
      > >> > >
      > >> > > Thanks!
      > >> > >
      > >> > > Dave.
      > >> > >
      > >> > > Learning Assistant Technologies
      > >> > > 677-4504
      > >> > >
      > >> > >
      > >> > >
      > >> > > ------------------------ Yahoo! Groups Sponsor
      > >> > >
      > >> > > To unsubscribe from this group, send an email to:
      > >> > > soaplite-unsubscribe@y...
      > >> > >
      > >> > >
      > >> > >
      > >> > > Your use of Yahoo! Groups is subject to
      > >> > > http://docs.yahoo.com/info/terms/
      > >> > >
      > >> > >
      > >> >
      > >> >
      > >> > __________________________________________________
      > >> > Do You Yahoo!?
      > >> > Make international calls for as low as $.04/minute with Yahoo!
      > >> Messenger
      > >> > http://phonecard.yahoo.com/
      > >>
      > >>
      > >> ------------------------ Yahoo! Groups Sponsor
      > >>
      > >> To unsubscribe from this group, send an email to:
      > >> soaplite-unsubscribe@yahoogroups.com
      > >>
      > >>
      > >>
      > >> Your use of Yahoo! Groups is subject to
      > >> http://docs.yahoo.com/info/terms/
      > >>
      > >>
      >
      >
      > __________________________________________________
      > Do You Yahoo!?
      > Make international calls for as low as $.04/minute with Yahoo!
      > Messenger
      > http://phonecard.yahoo.com/
      >
      >
      > To unsubscribe from this group, send an email to:
      > soaplite-unsubscribe@yahoogroups.com
      >
      >
      >
      > Your use of Yahoo! Groups is subject to
      > http://docs.yahoo.com/info/terms/
      >
      >
      >
      >
      > ------------------------ Yahoo! Groups Sponsor
      >
      > To unsubscribe from this group, send an email to:
      > soaplite-unsubscribe@yahoogroups.com
      >
      >
      >
      > Your use of Yahoo! Groups is subject to
      > http://docs.yahoo.com/info/terms/
      >
      >


      __________________________________________________
      Do You Yahoo!?
      Make international calls for as low as $.04/minute with Yahoo! Messenger
      http://phonecard.yahoo.com/
    • Show all 6 messages in this topic