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

Re: [soaplite] prebuilded XML

Expand Messages
  • Paul Kulchenko
    Nick, You can use the pseudotype xml : return SOAP::Data- type(xml = bar ); The XML fragment will be inserted as is with no checks and
    Message 1 of 4 , Jul 7, 2003
    • 0 Attachment
      Nick,

      You can use the pseudotype 'xml':

      return SOAP::Data->type(xml => '<foo>bar</foo>');

      The XML fragment will be inserted as is with no checks and
      validation.

      Best wishes, Paul.

      --- Nick Potemkin <nick@...> wrote:
      > On Mon, Jun 30, 2003 at 09:19:55PM +0400, Nick Potemkin wrote:
      >
      > Hi, all. I'm trying to write server with help of SOAP::Lite (Linux,
      > Apache 1.3, SOAP::Lite 0.55).
      > I've got query to my server with parameter 'registrationXml' for
      > method Microsoft.Search.Registration
      > which realized on my side.
      > This parameter is prebuilded XML passed to me as string from client
      > (see below).
      > It contains call of another method.
      >
      > Can I pass this string to SOAP-server for execution?
      > In other words - can i pass prebuilded XML to SOAP server with help
      > of SOAP::Lite methods?
      >
      > It's very important for me.
      >
      >
      ====================================================================================
      > Query is:
      >
      > <?xml version="1.0" encoding="utf-8" ?>
      > <s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'
      > xmlns:xsd='http://www.w3.org/2001/XMLSchema'
      > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
      > <s:Body>
      > <Registration xmlns='urn:Microsoft.Search'>
      > <registrationXml xsi:type='xsd:string'>
      > <RegistrationRequest revision="1"
      > xmlns="urn:Microsoft.Search.Registration.Request">
      > <SystemInformation>
      > <SkuLanguage>en-us</SkuLanguage>
      > <LanguagePack>en-us</LanguagePack>
      > <InterfaceLanguage>en-us</InterfaceLanguage>
      > <Location>RU</Location>
      > </SystemInformation>
      > </RegistrationRequest>
      > </registrationXml>
      > </Registration>
      > </s:Body>
      > </s:Envelope>
      >
      > Debug output of server:
      > (eval): <RegistrationRequest revision='1'
      >
      xmlns='urn:Microsoft.Search.Registration.Request'><SystemInformation><SkuLanguage>e
      >
      n-us</SkuLanguage><LanguagePack>en-us</LanguagePack><InterfaceLanguage>en-us</InterfaceLanguage><Location>RU</Location></Syst
      > emInformation></RegistrationRequest>
      >
      >
      =====================================================================================
      >
      > Thank you.
      >
      > --
      > Nick Potemkin
      > Eniro Rus-M
      > http://www.eniro-m.ru
      > ::: Yellow Pages Moscow
      > http://www.yellowpages.ru
      > phone: +7 (095) 799-55-55
      > fax: +7 (095) 799-55-09
      >
      >
      >
      > ------------------------ 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/
      >
      >
    • Byrne Reese
      This blog entry may be of help to you... http://www.majordojo.com/archives/2003_05.html#000017 ... -- Byrne Reese Developer Program Manager Grand Central
      Message 2 of 4 , Jul 7, 2003
      • 0 Attachment
        This blog entry may be of help to you...

        http://www.majordojo.com/archives/2003_05.html#000017

        On Mon, 2003-07-07 at 04:52, Nick Potemkin wrote:
        > On Mon, Jun 30, 2003 at 09:19:55PM +0400, Nick Potemkin wrote:
        >
        > Hi, all. I'm trying to write server with help of SOAP::Lite (Linux, Apache 1.3, SOAP::Lite 0.55).
        > I've got query to my server with parameter 'registrationXml' for method Microsoft.Search.Registration
        > which realized on my side.
        > This parameter is prebuilded XML passed to me as string from client (see below).
        > It contains call of another method.
        >
        > Can I pass this string to SOAP-server for execution?
        > In other words - can i pass prebuilded XML to SOAP server with help of SOAP::Lite methods?
        >
        > It's very important for me.
        >
        > ====================================================================================
        > Query is:
        >
        > <?xml version="1.0" encoding="utf-8" ?>
        > <s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
        > <s:Body>
        > <Registration xmlns='urn:Microsoft.Search'>
        > <registrationXml xsi:type='xsd:string'>
        > <RegistrationRequest revision="1" xmlns="urn:Microsoft.Search.Registration.Request">
        > <SystemInformation>
        > <SkuLanguage>en-us</SkuLanguage>
        > <LanguagePack>en-us</LanguagePack>
        > <InterfaceLanguage>en-us</InterfaceLanguage>
        > <Location>RU</Location>
        > </SystemInformation>
        > </RegistrationRequest>
        > </registrationXml>
        > </Registration>
        > </s:Body>
        > </s:Envelope>
        >
        > Debug output of server:
        > (eval): <RegistrationRequest revision='1' xmlns='urn:Microsoft.Search.Registration.Request'><SystemInformation><SkuLanguage>e
        > n-us</SkuLanguage><LanguagePack>en-us</LanguagePack><InterfaceLanguage>en-us</InterfaceLanguage><Location>RU</Location></Syst
        > emInformation></RegistrationRequest>
        >
        > =====================================================================================
        >
        > Thank you.
        --
        Byrne Reese
        Developer Program Manager
        Grand Central Communications
      Your message has been successfully submitted and would be delivered to recipients shortly.