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

4536Re: [soaplite] re: Stubmaker & namespace

Expand Messages
  • Byrne Reese
    Apr 4 7:21 AM
    • 0 Attachment
      > perl stubmaker.pl foo.wsdl

      #!/usr/bin/perl

      use foo;
      $foo = foo->new;
      $foo->use_prefix(0);
      $foo->someMethod(...);

      The package created by stubmaker is a subclass of SOAP::Lite - so you
      should be able to use all the same methods on it that you would on a
      client you build from scratch.

      edders2005 wrote:

      >
      > I used the stubmaker.pl script to create stubs for a service I'm using.
      >
      > I need to set the namespace as below:
      >
      > ...
      > <SOAP-ENV:Body>
      > <CheckAndAuthorise xmlns="http://my.namespace">
      > <TransactionAmount xsi:type="xsd:string">1</TransactionAmount>
      > </CheckAndAuthorise>
      > </SOAP-ENV:Body>...
      >
      > However, when I modify the uri field in the stubmaker generated perl
      > module (in the my methods section), I end up with a message like this:
      >
      > ...
      > <SOAP-ENV:Body>
      > <namesp2:CheckAndAuthorise xmlns:namesp2="http://my.namespace">
      > <TransactionAmount xsi:type="xsd:string">1</TransactionAmount>
      > </namesp2:CheckAndAuthorise>
      > </SOAP-ENV:Body>
      > </SOAP-ENV:Envelope>
      >
      > How do I prevent this namesp2 business? I can't seem to set the
      > default namespace and am a bit stuck. Can anyone point out what I'm
      > missing?
      >
      > Thanks in advance
      > Steve
      >
      >
      >
      >
      > ------------------------------------------------------------------------
      > *Yahoo! Groups Links*
      >
      > * To visit your group on the web, go to:
      > http://groups.yahoo.com/group/soaplite/
      >
      > * To unsubscribe from this group, send an email to:
      > soaplite-unsubscribe@yahoogroups.com
      > <mailto:soaplite-unsubscribe@yahoogroups.com?subject=Unsubscribe>
      >
      > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
      > Service <http://docs.yahoo.com/info/terms/>.
      >
      >
    • Show all 2 messages in this topic