[Xml-compile] Any reason not to do this?

2015-09-16 Thread Kit Peters
I'm developing a SOAP client Moose Role for my job that uses XML::Compile::WSDL11 under the hood. If I use multiple WSDL's, which will happen in at least one module consuming this Role, I get the error "explicit selection required". At first, I was going to require the consuming class to spec

[Xml-compile] Logging requests

2015-09-16 Thread Kit Peters
Suppose I wanted to log all the requests / responses made with an instance of XML::Compile::WSDL11. Would I use a transport hook for that, or is there another way? I don't want the logging hook to clobber any existing transport hook the caller might define. __

Re: [Xml-compile] Logging requests

2015-09-16 Thread Kit Peters
Thanks. I just found that, five minutes after asking. Goes to show I should RTFM. ;) On 9/16/15, 16:49, "Mark Overmeer" wrote: >* Kit Peters (kit.pet...@broadbean.com) [150916 21:45]: >> Suppose I wanted to log all the requests / responses made with an >> instanc

[Xml-compile] Output SOAP request to file

2015-10-27 Thread Kit Peters
I’d like to take a SOAP envelope generated with XML::Compile::WSDL11 and output it to a file. How would I go about that? KP ___ Xml-compile mailing list Xml-compile@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile

Re: [Xml-compile] Output SOAP request to file

2015-10-27 Thread Kit Peters
Never mind that – I neglected to read the documentation sufficiently thoroughly. For the record: my ($response, $trace) = $wsdl->call($operation); $trace->printRequest( pretty_print => 1 ); From: Kit Peters mailto:kit.pet...@broadbean.com>> Date: Tuesday, October 27, 2015 at

[Xml-compile] How do I format this request?

2015-10-27 Thread Kit Peters
I’m attempting to make use of the “findEntities” operation defined in this WSDL: http://paste.scsys.co.uk/500528 When I try and “explain” this operation using XML::Compile::WSDL11, it doesn’t outline anything inside the “query” (see lines 17858, 3810, and 1121) element. Says it’s “probably a r

Re: [Xml-compile] Converting WSDL to Perl classes?

2015-10-30 Thread Kit Peters
I think you want XML::Compile::Dumper: https://metacpan.org/pod/XML::Compile::Dumper. From: Bill Moseley mailto:mose...@hank.org>> Date: Friday, October 30, 2015 at 11:31 To: "xml-compile@lists.scsys.co.uk" mailto:xml-compile@lists.scsys.co.uk>> Subject: [Xm

[Xml-compile] Proper way to insert arbitrary XML Node in SOAP call

2016-03-23 Thread Kit Peters
’s available upon request. Kit Peters ___ Xml-compile mailing list Xml-compile@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile

Re: [Xml-compile] Proper way to insert arbitrary XML Node in SOAP call

2016-03-24 Thread Kit Peters
Fixed it. I was doing XML::LibXML::parse_balanced_chunk (this is a sketch) and it was generating a DocumentFragment, not an Element. Once I turned the DocumentFragment into an element, the problem went away. KP Kit Peters Doer of Things, ATS Integrations D: 8162000279 M: 8162000279 On

[Xml-compile] What to do when the WSDL namespaces are wrong

2016-03-31 Thread Kit Peters
However, when I change the namespaces with prefix “ns2011_05” and “tns”, the server accepts the request. At present, I’m modifying the namespaces in the transport_hook, but is there a better / more elegant way to handle this? KP Kit Peters Doer of Things, ATS Integrations

Re: [Xml-compile] What to do when the WSDL namespaces are wrong

2016-04-01 Thread Kit Peters
ss="Candidate" alias="Query-Candidate-2F52C01E-E25D-11E5-B311-DF6053E18CB9" preventDuplicates="false"> 28423

[Xml-compile] XML::LibXML::Simple - "Unrecognized option: HookNodes"

2016-04-04 Thread Kit Peters
nrecognized option: HookNodes" Kit Peters Doer of Things, ATS Integrations Broadbean 610 Newport Center Dr #1400, Newport Beach, CA 929660, United States D: 949.793.8208 M: 816.200.0279 broadbean.com <http://www.broadbean.com/> | LinkedIn <https://www.linkedin.com/compa

[Xml-compile] element not processed

2016-04-06 Thread Kit Peters
Is there an easy way to ignore any elements not processed in a SOAP response, or do I need to go and eliminate them in a transport hook? Kit Peters Doer of Things, ATS Integrations [https://cb-design.s3.amazonaws.com/logos/broadbean/broadbean-withoutstrap-lime-rgb-signature.png] Broadbean 610

[Xml-compile] Format of return from call()

2016-04-15 Thread Kit Peters
Suppose I have a SOAP method foo, defined in some WSDL. I’ve already compiled the call. When I do my ($res, $trace) = $soap->call(‘foo’, parameters => $params); Is it guaranteed that $res will always be a hashref or undef? ___ Xml-compile mailing lis

[Xml-compile] Including WSDL in module

2016-04-29 Thread Kit Peters
How do you recommend I include a particular WSDL in a module? In the __DATA__ section, or in a separate file? KP ___ Xml-compile mailing list Xml-compile@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile

[Xml-compile] Handling XOP/MTOM responses

2016-05-06 Thread Kit Peters
I'm calling a SOAP method that returns MTOM via XML::Compile::WSDL11. $wsdl->call('MethodName') produces an empty response an an error (in the trace object) that says "use XML::Compile::XOP". Do I just put that at the top of my code and things are automagically han

Re: [Xml-compile] Handling XOP/MTOM responses

2016-05-06 Thread Kit Peters
What do you know? It worked! :) -- Kit Peters Doer of Things, ATS Integrations D: +1 949 793 8208 M: +1 816 200 0279 On 5/6/16, 17:30, "Mark Overmeer" wrote: >* Kit Peters (kit.pet...@broadbean.com) [160506 21:25]: >> I'm calling a SOAP method that returns

Re: [Xml-compile] Handling XOP/MTOM responses

2016-05-09 Thread Kit Peters
So is there a way to then pass the XOP attachment back to the parser? -- Kit Peters Doer of Things, ATS Integrations D: +1 949 793 8208 M: +1 816 200 0279 On 5/6/16, 17:49, "Kit Peters" wrote: >What do you know? It worked! :) >-- >Kit Peters >Doer of Things, ATS I

[Xml-compile] Decoding XOP content?

2016-08-17 Thread Kit Peters
Is there a quick and easy way to decode an XOP attachment? Basically I’d like the Unicode characters therein to come out as characters, not code points. KP -- Kit Peters Doer of Things, ATS Integrations [https://cb-design.s3.amazonaws.com/logos/broadbean/broadbean-withoutstrap-lime-rgb

Re: [Xml-compile] Decoding XOP content?

2016-08-17 Thread Kit Peters
Similar behavior to HTTP::Request->decoded_content would be sufficient to my needs. So perhaps XML::Compile::XOP::Include->decoded_content ? Basically, instead of “新規”, I’d like to see “新規”. KP -- Kit Peters Doer of Things, ATS Integrations D: +1 949 793 8208 M: +1 816 200 0279 On 8

Re: [Xml-compile] Decoding XOP content?

2016-08-17 Thread Kit Peters
I'll have a look and let you know. Get Outlook for Android<https://aka.ms/ghei36> On Wed, Aug 17, 2016 at 5:37 PM -0500, "Mark Overmeer" mailto:m...@overmeer.net>> wrote: * Kit Peters (kit.pet...@broadbean.com) [160817 22:22]: > Similar behavior to HTTP::Req

Re: [Xml-compile] Decoding XOP content?

2016-08-17 Thread Kit Peters
XOP contains “Content-Type” header. Example: BEGIN --=_Part_1150_203811333.1471469593274 Content-Type: text/xml; charset=UTF-8 Content-Transfer-Encoding: binary Content-ID: <147146959327375771429562229@http://www.w3.org/2001/XMLSchema> END -- Kit Peters Doer of Things, ATS Integrat

[Xml-compile] XOP with XML::Compile::WSDL11

2016-10-14 Thread Kit Peters
How do I make an XOP request using XML::Compile::WSDL11? I’ve seen the XOP unit test in XML::Compile::SOAP, but I’m not sure how to adapt that to a compiled call with XML::Compile::WSDL11. KP -- Kit Peters Doer of Things, ATS Integrations [https://cb-design.s3.amazonaws.com/logos/broadbean

Re: [Xml-compile] XOP with XML::Compile::WSDL11

2016-10-17 Thread Kit Peters
Am I doing the XOP right, and if so, how do I put this into MTOM, rather than just base64 encoding the XML fragment? Do I need to fiddle the WSDL somehow? KP -- Kit Peters Doer of Things, ATS Integrations D: +1 949 793 8208 M: +1 816 200 0279

Re: [Xml-compile] XOP with XML::Compile::WSDL11

2016-10-18 Thread Kit Peters
What do your @request_params look like there? Because I’m not seeing anywhere that your request is being formatted as XOP/MTOM. KP -- Kit Peters Doer of Things, ATS Integrations D: +1 949 793 8208 M: +1 816 200 0279 From: Christopher Taranto Date: Monday, October 17, 2016 at 18:55 To: Kit

Re: [Xml-compile] XOP with XML::Compile::WSDL11

2016-10-18 Thread Kit Peters
That would indicate that the Document is being base64 encoded because the schema is telling it to, right? KP -- Kit Peters Doer of Things, ATS Integrations D: +1 949 793 8208 M: +1 816 200 0279 On 10/18/16, 03:50, "Mark Overmeer" wrote: Hi Kit, (Of

Re: [Xml-compile] XOP with XML::Compile::WSDL11

2016-10-18 Thread Kit Peters
Ah! My question was not how to *get* the base64 encoding, but how to *avoid* same. ☺ -- Kit Peters Doer of Things, ATS Integrations D: +1 949 793 8208   M: +1 816 200 0279 From: Christopher Taranto Date: Tuesday, October 18, 2016 at 09:58 To: Kit Peters Cc: Mark Overmeer , "xml-co

Re: [Xml-compile] XOP with XML::Compile::WSDL11

2016-10-18 Thread Kit Peters
::Compile::SOAP distro, or do I need to do some sort of jiggery pokery on my end? KP -- Kit Peters Doer of Things, ATS Integrations D: +1 949 793 8208 M: +1 816 200 0279 On 10/18/16, 09:35, "Kit Peters" wrote: Changing “type => ‘text/xml’” to “extends => ‘text/xml’” in