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

RE: [soaplite] Doc/literal support

Expand Messages
  • Eric Bridger
    You haven t provided much information. I can t say that I m sure I understand all the issues re: Document/literal vs. RPC/literal, etc. but I thoght this
    Message 1 of 4 , Feb 17, 2006
    • 0 Attachment
      You haven't provided much information.

      I can't say that I'm sure I understand all the issues re:
      Document/literal vs. RPC/literal, etc. but I thoght this primarily
      affects WSDLs?

      My first SOAP::Lite client accessed a Systinet Java service which used
      the Document/literal. It was a difficult learning experience but I did
      succeed, both rolling my own requests using SOAP::Data objects and then
      in using stubmaker.pl on the WSDL and then modifying the resulting
      SERVER.pm, adding the needed namespaces and filling out the method
      signatures.

      So it can be done.

      Eric

      P.S. Here's some code from that effort to give you the idea.
      ==========================
      my $service = SOAP::Lite
      ->proxy('http://...');

      # Use $service->call() method so we can put the 'api' namespace in the
      ENVELOPE body
      my $method = SOAP::Data
      ->name($method_name)
      ->prefix('tns')
      ->uri('http://systinet.com/wsdl/gov/nwis/api/');

      # Use SOAP::Data as params to prefix the paramter name siteNoString with
      the proper namespace prefix.
      # a) We have a simple type <siteNoString>'siteNo_string'</p0> of string.
      # c) Make sure the paramter names use the right namespace prefix.
      my $params =
      SOAP::Data
      ->name( 'tns:siteNoString' => $site_no)
      ->type('string')
      ;

      # Pass the both method and params to the service.
      my $response = $service->call($method
      => $params
      );

      ...

      On Fri, 2006-02-17 at 14:31, Colin Magee wrote:
      > Any news or views on this? Are there any known workarounds?
      >
      > It's the third time I've asked the question on this list with no reply.
      > Is it a stupid question?
      >
      > -----Original Message-----
      > From: soaplite@yahoogroups.com [mailto:soaplite@yahoogroups.com] On
      > Behalf Of Colin Magee
      > Sent: 14 February 2006 13:16
      > To: soaplite@yahoogroups.com
      > Subject: [soaplite] Doc/literal support
      >
      > I am unable to access a commercial service that just upgraded and now
      > uses Doc/literal.
      >
      > When will this be supported?
      >
      > SPONSORED LINKS
      >
      > Protocol
      > <http://groups.yahoo.com/gads?t=ms&k=Protocol+analyzer&w1=Protocol+analy
      > zer&w2=Ssl+protocol&w3=Protocol+converter&w4=Sip+protocol&w5=Protocol+an
      > alysis&w6=Protocol&c=6&s=120&.sig=-vNi0F9sGxz3wJiUypOlsA> analyzer
      > Ssl
      > <http://groups.yahoo.com/gads?t=ms&k=Ssl+protocol&w1=Protocol+analyzer&w
      > 2=Ssl+protocol&w3=Protocol+converter&w4=Sip+protocol&w5=Protocol+analysi
      > s&w6=Protocol&c=6&s=120&.sig=QcUDWIbIdXkmz4QSFhqszw> protocol
      > Protocol
      > <http://groups.yahoo.com/gads?t=ms&k=Protocol+converter&w1=Protocol+anal
      > yzer&w2=Ssl+protocol&w3=Protocol+converter&w4=Sip+protocol&w5=Protocol+a
      > nalysis&w6=Protocol&c=6&s=120&.sig=8MMcEvfzdk5saYSJv-2g3g> converter
      >
      > Sip
      > <http://groups.yahoo.com/gads?t=ms&k=Sip+protocol&w1=Protocol+analyzer&w
      > 2=Ssl+protocol&w3=Protocol+converter&w4=Sip+protocol&w5=Protocol+analysi
      > s&w6=Protocol&c=6&s=120&.sig=X7aZ6IACnEQUtAC57u829w> protocol
      > Protocol
      > <http://groups.yahoo.com/gads?t=ms&k=Protocol+analysis&w1=Protocol+analy
      > zer&w2=Ssl+protocol&w3=Protocol+converter&w4=Sip+protocol&w5=Protocol+an
      > alysis&w6=Protocol&c=6&s=120&.sig=SI1LEHwb69y6gddZAv_Fuw> analysis
      > Protocol
      > <http://groups.yahoo.com/gads?t=ms&k=Protocol&w1=Protocol+analyzer&w2=Ss
      > l+protocol&w3=Protocol+converter&w4=Sip+protocol&w5=Protocol+analysis&w6
      > =Protocol&c=6&s=120&.sig=aCiMFP0b3kFn96wqrZacGA>
      >
      > _____
      >
      > YAHOO! GROUPS LINKS
      >
      > * Visit your group "soaplite
      > <http://groups.yahoo.com/group/soaplite> " on the web.
      >
      > * 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!
      > <http://docs.yahoo.com/info/terms/> Terms of Service.
      >
      > _____
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.