tag:blogger.com,1999:blog-6220586.post651011462393621794..comments2024-02-16T18:40:13.266+08:00Comments on Tardate 2016: Complex SOAP::Lite requests - my rules for SOAP::Sanity!Anonymoushttp://www.blogger.com/profile/14028723940654655284noreply@blogger.comBlogger32125tag:blogger.com,1999:blog-6220586.post-33847188370179445822012-05-24T11:22:56.583+08:002012-05-24T11:22:56.583+08:00Dear Sir,
Your guide is very useful to a newbie l...Dear Sir,<br /><br />Your guide is very useful to a newbie like me!<br /><br />I wish to know how to encode the following if I have some attributes in XML tag?<br /><br /><br /> <br /> You have good luck today<br /> <br /> <br /> Yellow is your lucky color today<br /> <br /><br /><br />Besides, how to i 'decode' the coding into XML format in order to check I have formed the XML correctly?yungheehttps://www.blogger.com/profile/10321885745895879561noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-43493830357202652392012-02-17T14:47:54.311+08:002012-02-17T14:47:54.311+08:00Thanks. good rules... helped me alot.Thanks. good rules... helped me alot.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-12719870041329513942011-06-07T09:14:36.492+08:002011-06-07T09:14:36.492+08:00Nice article. 1 question:
How to escape a URI wit...Nice article. 1 question:<br /><br />How to escape a URI with something like this:<br /><br />service endpoint:<br />http://blah.com/Search?text=<br /><br />web service = Search<br /><br />because when I run SOAP::Lite it will complain Error 404 web service cannot be found.<br /><br />I check the debug the the URI will be concatenate up to http://blah.com/Search<br /><br />ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-54004401858860168112011-03-23T16:21:00.139+08:002011-03-23T16:21:00.139+08:00And one more question (they never end, do they?!?)...And one more question (they never end, do they?!?)<br /><br />How do I encode this envelope?<br /><br />Many, many Thanks!Theo Knoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-52391764674109031712011-03-19T22:00:09.669+08:002011-03-19T22:00:09.669+08:00Hello. Great job. I did not expect this on a Wedne...Hello. Great job. I did not expect this on a Wednesday. This is a great story. Thanks!Andre Foddrillhttp://jreneesandals.co.ccnoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-54058627301074228232010-07-26T03:02:13.248+08:002010-07-26T03:02:13.248+08:00@lstandish, happy to hear it helped. Good luck wit...@lstandish, happy to hear it helped. Good luck with it!Anonymoushttps://www.blogger.com/profile/14028723940654655284noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-89963944210872066322010-07-25T09:01:27.751+08:002010-07-25T09:01:27.751+08:00Thanks very much for this very clear and useful in...Thanks very much for this very clear and useful information. I'm just learning Soap:Lite and this is the first documentation I found.Unknownhttps://www.blogger.com/profile/17736363633744148642noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-86056875432766452102009-07-03T08:52:11.152+08:002009-07-03T08:52:11.152+08:00Thanks adverickThanks adverickAnonymoushttps://www.blogger.com/profile/14028723940654655284noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-67699654019815809222009-07-02T03:28:38.366+08:002009-07-02T03:28:38.366+08:00Thank you, very helpful.Thank you, very helpful.advericknoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-15770530925536117512008-09-17T08:29:00.000+08:002008-09-17T08:29:00.000+08:00Thanks for the comments anonymous. I'm amazed how ...Thanks for the comments anonymous. I'm amazed how much traffic this post still gets .. I even use the post to remind <B>myself</B> of how to do stuff with SOAPLite!<BR/><BR/>It is obviously a 'hot' topic, and the suggestion of getting this kind of information into the docs is a good one. I'll look into that..Anonymoushttps://www.blogger.com/profile/14028723940654655284noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-78776388487517699842008-09-17T03:42:00.000+08:002008-09-17T03:42:00.000+08:00Very helpful post. Thank you. I was totally perple...Very helpful post. Thank you. I was totally perplexed on how to force nested items and couldn't find any examples in the POD.<BR/><BR/>Maybe you can get this document into the distribution and/or the SOAP::Lite site?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-40543352225731125362008-08-19T06:52:00.000+08:002008-08-19T06:52:00.000+08:00better yet, is there a tool that would convert a g...better yet, is there a tool that would convert a given XML payload to an appropriate perl data structure?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-46081391188304885632008-08-19T06:51:00.000+08:002008-08-19T06:51:00.000+08:00Paul,wanted to thank you for the package, first of...Paul,<BR/><BR/>wanted to thank you for the package, first of all. Very difficult endeavor!<BR/><BR/>I've a question. How do I encode this XML envelope:<BR/><BR/><?xml version = "1.0" encoding = "UTF-8"?><BR/><inputMessage><BR/> <ns0:Order_Status_Input_Root xmlns:ns0 = "http://www.tibco.com/schemas/MER_OTC_GetCustomerAccountInfo/SharedResources/Schemas/Schema.xsd"><BR/> <ns0:Order_Status_Input_Row><BR/> <ns0:Customer_Id>92214</ns0:Customer_Id><BR/> </ns0:Order_Status_Input_Row><BR/> </ns0:Order_Status_Input_Root><BR/></inputMessage><BR/><BR/><BR/>?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-33927918648654516042008-08-19T06:31:00.000+08:002008-08-19T06:31:00.000+08:00I need some serious help here. I'm going crazz...I need some serious help here. I'm going crazzzzzzyyyyyyyy.<BR/><BR/>WSDL file says ...<BR/><'complexType name="ArrayOfString"><BR/> <'sequence><BR/> <'element maxOccurs="unbounded" name="string" nillable="true" type="xsd:string" /> <BR/> <'/sequence><BR/> <'/complexType><BR/><BR/>How do I create an object that will satisfy this on the client side?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-21308864755451743912008-05-03T12:20:00.000+08:002008-05-03T12:20:00.000+08:00@The Tink: sure, but no primoses! you can find my ...@The Tink: sure, but no primoses! you can find my email contact on my blogger profileAnonymoushttps://www.blogger.com/profile/14028723940654655284noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-2670434673434861492008-05-03T12:18:00.000+08:002008-05-03T12:18:00.000+08:00@anonymous: "how do you output the generated SOAP...@anonymous: "how do you output the generated SOAP?"<BR/><BR/>For debugging:<BR/><BR/>use SOAP::Lite +trace => 'debug';<BR/><BR/>This will dump to console all the details of the request and response messages.<BR/><BR/>There are also some other tricks for inspecting and dumping SOAP objects that I've played with in a little tester called <A HREF="http://paulg.homelinux.com:8000/sources/debugSoapData.pl" REL="nofollow">debugSoapData.pl</A>Anonymoushttps://www.blogger.com/profile/14028723940654655284noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-89734966887438498402008-05-03T12:11:00.000+08:002008-05-03T12:11:00.000+08:00@benny: just saw your question about generating Tr...@benny: just saw your question about generating TrafficClassifier data. Try this for size:<BR/><BR/>use strict;<BR/>use SOAP::Lite +trace => 'debug';<BR/><BR/>my $soap = SOAP::Lite<BR/> ->proxy( 'http://localhost/blah/DummyService' );<BR/><BR/><BR/># define TrafficClassifier<BR/>my $TrafficClassifier = <BR/> SOAP::Data->name('TrafficClassifier'<BR/> => \SOAP::Data->value(<BR/> SOAP::Data->name("value" => '127.0.0.1')->type('xsd:string'),<BR/> SOAP::Data->name("type" => 'IPV4')->type('impl:NetworkAddressType')<BR/> )<BR/>);<BR/><BR/>my $som = $soap->call( <BR/> SOAP::Data<BR/> ->name('thisfunction')<BR/> ->attr({'xmlns:tns' => 'http://TrafficClassifier/'})<BR/> => $TrafficClassifier<BR/>);<BR/><BR/>exit;<BR/><BR/><BR/>The generated SOAP message:<BR/><BR/><?xml version="1.0" encoding="UTF-8"?><BR/><SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" <BR/>xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" <BR/>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" <BR/>xmlns:xsd="http://www.w3.org/1999/XMLSchema" <BR/>SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><BR/><SOAP-ENV:Body><BR/><thisfunction xmlns:tns="http://TrafficClassifier/"><BR/><TrafficClassifier><BR/><value xsi:type="xsd:string">127.0.0.1</value><BR/><type xsi:type="impl:NetworkAddressType">IPV4</type><BR/></TrafficClassifier></thisfunction><BR/></SOAP-ENV:Body><BR/></SOAP-ENV:Envelope>Anonymoushttps://www.blogger.com/profile/14028723940654655284noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-19550208016819565562008-05-02T06:03:00.000+08:002008-05-02T06:03:00.000+08:00Paul,Sorry to barge in on you like this. I'm main...Paul,<BR/><BR/>Sorry to barge in on you like this. I'm maintaining a piece of perl-code that so far only needed to grab information from a proprietary application and populate and LDAP directory with additions/modifications, which works quite well. Now I've been tasked to push some of that information into an identity management solution via JMS, wrapping SPML into soap over http. Your blog-posts are about as close as it gets to useful information about using perl & SOAP::Lite for the type of thing I think I need. Realistically I had no previous experience with SOAP <B>or</B> JMS, so am stabbing in the dark. Would you mind if I contacted you via e-Mail to try and understand a few basics that I can't gather from SOAP::Lite's docu?<BR/>It's quite terse.<BR/><BR/><BR/>CheersThe Tinkhttps://www.blogger.com/profile/14260493484081578878noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-57625345295155809802008-05-01T10:24:00.000+08:002008-05-01T10:24:00.000+08:00Totally new to all of this, and reading with great...Totally new to all of this, and reading with great interest in the hope to find enlightenment - how do you output the generated SOAP?<BR/><BR/><BR/>CheersAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-88975597942726657722008-03-11T17:05:00.000+08:002008-03-11T17:05:00.000+08:00possible to help me build this complexType "Traffi...possible to help me build this complexType "TrafficClassifer" ?<BR/><BR/><xsd:complexType name="TrafficClassifier"><BR/><xsd:sequence><BR/><xsd:element name="networkAddress" nillable="false"<BR/>type="impl:NetworkAddress"><BR/></xsd:element><BR/></xsd:sequence><BR/></xsd:complexType><BR/><BR/><xsd:complexType name="NetworkAddress"><BR/><xsd:sequence><BR/><xsd:element name="value" nillable="false" type="xsd:string"><BR/></xsd:element><BR/><xsd:element name="type" nillable="false" type="impl:NetworkAddressType"><BR/></xsd:element><BR/></xsd:sequence><BR/></xsd:complexType><BR/><BR/><xsd:simpleType name="NetworkAddressType"><BR/><xsd:restriction base="xsd:string"><BR/><xsd:enumeration value="IPV4"><BR/></xsd:enumeration><BR/><xsd:enumeration value="IPV6"><BR/></xsd:enumeration><BR/></xsd:restriction><BR/></xsd:simpleType>TeamFS7https://www.blogger.com/profile/01575183968573511146noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-39737991901836306792007-12-20T23:51:00.000+08:002007-12-20T23:51:00.000+08:00What good astrology websitesdo you know?What good <A HREF="http://allwomenstalk.com/dir/Cool_Stuff/Astrology/" REL="nofollow">astrology websites</A>do you know?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-56089691731369545612007-10-01T21:16:00.000+08:002007-10-01T21:16:00.000+08:00I'm sorry but I haven't done anything specifically...I'm sorry but I haven't done anything specifically with .NET <-> SOAP::Lite.<BR/><BR/>But since it sounds like you have the Perl script running ok on one system but not another, I'd recommend the usual basics - particularly checking the Perl and SOAP::Lite versions you are using in each place.<BR/><BR/>Feel free to post a more complete description of the problem (with code and error messages) here or on the SOAP::Lite mailing list if still a problem..Anonymoushttps://www.blogger.com/profile/14028723940654655284noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-52344102679145181442007-09-30T06:17:00.000+08:002007-09-30T06:17:00.000+08:00I've been trying to get a script of mine to talk t...I've been trying to get a script of mine to talk to a .NET server and am not having much luck. I'm new to SOAP and .NET so I've been doing a lot of fiddling and cutting/pasting. I can get the script to successfully run from my CLI (Win2K) but not from a *nix server, which is where it needs to be. Have you some experience with the .NET <-> SOAP interoperability?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6220586.post-73002728542353375472007-06-03T19:41:00.000+08:002007-06-03T19:41:00.000+08:00Hi Chris,Try something like this...my $soap = SOAP...Hi Chris,<BR/><BR/>Try something like this...<BR/><BR/>my $soap = SOAP::Lite<BR/> ->proxy( 'http://localhost/blah/DummyService' );<BR/><BR/>my $serializer = $soap->serializer();<BR/>$serializer->register_ns( 'http://service.openreports.efs.org', 'ser' );<BR/>$serializer->register_ns( 'sabrixreports', 'sab' );<BR/><BR/># define user data<BR/>my $UserData = SOAP::Data<BR/>->name('in0' =><BR/>\SOAP::Data->value(<BR/>SOAP::Data->name("password" => 'asdfkjaslfj')->prefix('ser'), <BR/>SOAP::Data->name("user" => 'admin')->prefix('ser') <BR/>)<BR/>)->prefix('sab');<BR/><BR/>my $som = $soap->call( <BR/> SOAP::Data<BR/> ->name('sab:getReportGroups')<BR/> => $UserData<BR/>);Anonymoushttps://www.blogger.com/profile/14028723940654655284noreply@blogger.comtag:blogger.com,1999:blog-6220586.post-76434228838166268892007-05-31T00:56:00.000+08:002007-05-31T00:56:00.000+08:00Hi Paul- Thank you so much for your help.I am now ...Hi Paul- Thank you so much for your help.<BR/><BR/>I am now very close. I think that user and password have to be attached to a particular namespace. This xml below works in Soap UI. I just need to convert this to a SOAP::Lite friendly format. Any ideas? TIA -CK<BR/><BR/><?xml version="1.0" encoding="UTF-8"?><BR/><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ser="http://service.openreports.efs.org" xmlns:sab="sabrixreports" 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/"><BR/><soap:Body><BR/><sab:getReportGroups><BR/><sab:in0><BR/><ser:password>asdfkjaslfj</ser:password><BR/><ser:user>admin</ser:user><BR/></sab:in0><BR/></sab:getReportGroups><BR/></soap:Body><BR/></soap:Envelope>Unknownhttps://www.blogger.com/profile/07663909385415015137noreply@blogger.com