Question about SOAP::Lite

Discussion in 'Perl Misc' started by Henry, Jun 27, 2007.

  1. Henry

    Henry Guest

    I want to send raw xml with SOAP and have something like this:

    my $ns1 = "http://www.vrom.nl/wkpb/stuf";
    my $ns2 = "http://www.egem.nl/StUF/StUF0205";
    my $ns3 = "http://www.vrom.nl/wkpb0102";

    my $method = SOAP::Data
    -> attr ({'xmlns:StUF' => $ns2, 'xmlns:wkpb' => $ns3})
    -> prefix ('wkpb-stuf')
    -> uri ($ns1)
    ;

    my $soap = SOAP::Lite
    -> readable (1)
    -> proxy ($ep)
    -> uri ($ns1)
    -> on_action ( sub { return '""';} )
    -> call ($method => SOAP::Data->type('xml' => $aanvraag))
    ;

    $aanvraag is the file containing the raw xml.

    When I do this I get an SOAP-call:

    <soap:Envelope
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <wkpb-stuf:c-gensym2 xmlns:wkpb-stuf="http://www.vrom.nl/wkpb/stuf" xmlns:StUF="http://www.egem.nl/StUF/StUF0205"
    xmlns:wkpb="http://www.vrom.nl/wkpb0102"> <StUF:stuurgegevens>
    <StUF:berichtsoort>Lk02</StUF:berichtsoort>

    How can I get rid of the c-gensym elements?

    --
    Henry
    Henry, Jun 27, 2007
    #1
    1. Advertising

  2. Henry

    Henry Guest

    Hello,

    As a supplement to my previous message:

    I want to create something like this:

    <soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:wkpb-stuf="http://www.vrom.nl/wkpb/stuf"
    xmlns:StUF="http://www.egem.nl/StUF/StUF0205"
    xmlns:wkpb="http://www.vrom.nl/wkpb0102"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    ...................content of xml file...................
    </soapenv:Body>
    </soapenv:Envelope>

    --
    Henry
    Henry, Jun 27, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Saqib Ali

    SOAP:Lite Limitations re: https??

    Saqib Ali, Sep 12, 2003, in forum: Perl
    Replies:
    1
    Views:
    3,028
    Serge Dubrouski
    Sep 16, 2003
  2. Blaine Everingham

    SOAP::Lite

    Blaine Everingham, Dec 9, 2003, in forum: Perl
    Replies:
    0
    Views:
    715
    Blaine Everingham
    Dec 9, 2003
  3. Aaron Brady

    SQL, lite lite lite

    Aaron Brady, Dec 29, 2008, in forum: Python
    Replies:
    15
    Views:
    745
    Aaron Brady
    Jan 1, 2009
  4. soap lite question.

    , Oct 15, 2005, in forum: Perl Misc
    Replies:
    1
    Views:
    167
  5. droesler
    Replies:
    2
    Views:
    488
    droesler
    Aug 31, 2010
Loading...

Share This Page