Thanks Darin, got it working! Just what I needed.. On Monday, June 13, 2011 at 4:38 PM, [email protected] wrote:
> Send General mailing list submissions to > [email protected] (mailto:[email protected]) > > To subscribe or unsubscribe via the World Wide Web, visit > http://developer.marklogic.com/mailman/listinfo/general > or, via email, send a message with subject or body 'help' to > [email protected] > (mailto:[email protected]) > > You can reach the person managing the list at > [email protected] > (mailto:[email protected]) > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of General digest..." > > > Today's Topics: > > 1. Re: Soap Call (Eric Bloch) > 2. Re: Soap Call (Eric Bloch) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 13 Jun 2011 13:15:44 -0700 > From: Eric Bloch <[email protected] (mailto:[email protected])> > Subject: Re: [MarkLogic Dev General] Soap Call > To: General MarkLogic Developer Discussion > <[email protected] (mailto:[email protected])> > Message-ID: <[email protected] > (mailto:[email protected])> > Content-Type: text/plain; charset="us-ascii" > > When we transitioned the site to its current incantation in 2010, we decided > to drop this one because it seemed to be low value. I should be able to > locate it if anyone really wants it. Let me know. > > E > > Eric Bloch > Director, Community > MarkLogic Corporation > > desk +1 650 655 2390 | mobile +1 650 339 0376 > email [email protected]<mailto:[email protected]> > web developer.marklogic.com<http://developer.marklogic.com/> > twitter @eedeebee > > On Jun 13, 2011, at 12:44 PM, Darin McBeath wrote: > > My bad ... goes to show you my memory is not the best. Anyway, here is an > example which I use to access a service using SOAP. > > > let $searchPayload := > > <soapenv:Header> > <!-- Add any headers here that you might need to add ... would be specific to > the service you are invoking. --> > </soapenv:Header> > <soapenv:Body> > > <search xmlns="Would be the namespace of the operation/method you are > invoking ... this is wrapped document literal approach ... In this case, I'm > invoking a method called 'search' "> > <!-- Now, you would include the XML payload for the operation/method you are > invoking --> > </search> > </soapenv:Body> > </soapenv:Envelope> > > let $results := (xdmp:http-post("this would be the endpoint for the service", > <options xmlns="xdmp:http"> > <data>{xdmp:quote($searchPayload)}</data> > <headers> > <SOAPAction>""</SOAPAction> > </headers> > </options>) )[2] > > let $soapFaultCheck := if (exists($results//soapenv:Fault)) then > error((), concat("Problems with Search Service: Fault = '", > $results//faultstring/text(),"'")) > else > () > > ________________________________ > From: Dean Krueger <[email protected]<mailto:[email protected]>> > To: [email protected]<mailto:[email protected]> > Sent: Mon, June 13, 2011 3:35:26 PM > Subject: Re: [MarkLogic Dev General] Soap Call > > Hi Darin, > Thanks for the info, would it be possible for you to dig up a example? I did > look over the soap router project, it seems to be a server for receiving > soap. I need to act as the client and send the request. Maybe I am wrong... > > Thanks > Dean > > On Monday, June 13, 2011 at 3:00 PM, > [email protected]<mailto:[email protected]> > wrote: > > Send General mailing list submissions to > [email protected]<mailto:[email protected]> > > To subscribe or unsubscribe via the World Wide Web, visit > http://developer.marklogic.com/mailman/listinfo/general > or, via email, send a message with subject or body 'help' to > [email protected]<mailto:[email protected]> > > You can reach the person managing the list at > [email protected]<mailto:[email protected]> > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of General digest..." > > > Today's Topics: > > 1. Soap (Dean Krueger) > 2. Re: Soap (Darin McBeath) > > > ----------------------------------------------------------------------- > > Message: 1 > Date: Mon, 13 Jun 2011 14:06:48 -0400 > From: Dean Krueger <[email protected]<mailto:[email protected]>> > Subject: [MarkLogic Dev General] Soap > To: [email protected]<mailto:[email protected]> > Message-ID: > <[email protected]<mailto:[email protected]>> > Content-Type: text/plain; charset="utf-8" > > Hi, > Does anyone have an example of doing a call from Xquery? I need to get xml > back from another non Marklogic server that supports soap. > > Thanks > Dean Krueger > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://developer.marklogic.com/pipermail/general/attachments/20110613/e9b92601/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Mon, 13 Jun 2011 11:13:27 -0700 (PDT) > From: Darin McBeath <[email protected]<mailto:[email protected]>> > Subject: Re: [MarkLogic Dev General] Soap > To: General MarkLogic Developer Discussion > <[email protected]<mailto:[email protected]>> > Message-ID: > <[email protected]<mailto:[email protected]>> > Content-Type: text/plain; charset="us-ascii" > > There was at one time a project called 'soaprouter' in the xqzone. You might > want to take a look at this (at least as a starting point). This code is > probably 5 or 6 years old ... it assumed the literal style of soap (and not > rpc > encoding). If you can't find this on the zone, let me know and I can dig up an > example I use pretty regularly. > > Darin. > > > > > ________________________________ > From: Dean Krueger <[email protected]<mailto:[email protected]>> > To: [email protected]<mailto:[email protected]> > Sent: Mon, June 13, 2011 2:06:48 PM > Subject: [MarkLogic Dev General] Soap > > > Hi, > Does anyone have an example of doing a call from Xquery? I need to get xml > back > from another non Marklogic server that supports soap. > > Thanks > Dean Krueger > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://developer.marklogic.com/pipermail/general/attachments/20110613/17746025/attachment-0001.html > > ------------------------------ > > _______________________________________________ > General mailing list > [email protected]<mailto:[email protected]> > http://developer.marklogic.com/mailman/listinfo/general > > > End of General Digest, Vol 84, Issue 40 > *************************************** > > _______________________________________________ > General mailing list > [email protected]<mailto:[email protected]> > http://developer.marklogic.com/mailman/listinfo/general > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://developer.marklogic.com/pipermail/general/attachments/20110613/20c4d1e5/attachment-0001.html > > > ------------------------------ > > Message: 2 > Date: Mon, 13 Jun 2011 13:37:15 -0700 > From: Eric Bloch <[email protected] (mailto:[email protected])> > Subject: Re: [MarkLogic Dev General] Soap Call > To: General MarkLogic Developer Discussion > <[email protected] (mailto:[email protected])> > Message-ID: <[email protected] > (mailto:[email protected])> > Content-Type: text/plain; charset="us-ascii" > > Actually, we didn't drop it. http://developer.marklogic.com/code/soaprouter > > <http://developer.marklogic.com/code/soaprouter>Sorry, Darin! > > E > > > On Jun 13, 2011, at 1:15 PM, Eric Bloch wrote: > > When we transitioned the site to its current incantation in 2010, we decided > to drop this one because it seemed to be low value. I should be able to > locate it if anyone really wants it. Let me know. > > E > > Eric Bloch > Director, Community > MarkLogic Corporation > > desk +1 650 655 2390 | mobile +1 650 339 0376 > email [email protected]<mailto:[email protected]> > web developer.marklogic.com<http://developer.marklogic.com/> > twitter @eedeebee > > On Jun 13, 2011, at 12:44 PM, Darin McBeath wrote: > > My bad ... goes to show you my memory is not the best. Anyway, here is an > example which I use to access a service using SOAP. > > > let $searchPayload := > > <soapenv:Header> > <!-- Add any headers here that you might need to add ... would be specific to > the service you are invoking. --> > </soapenv:Header> > <soapenv:Body> > > <search xmlns="Would be the namespace of the operation/method you are > invoking ... this is wrapped document literal approach ... In this case, I'm > invoking a method called 'search' "> > <!-- Now, you would include the XML payload for the operation/method you are > invoking --> > </search> > </soapenv:Body> > </soapenv:Envelope> > > let $results := (xdmp:http-post("this would be the endpoint for the service", > <options xmlns="xdmp:http"> > <data>{xdmp:quote($searchPayload)}</data> > <headers> > <SOAPAction>""</SOAPAction> > </headers> > </options>) )[2] > > let $soapFaultCheck := if (exists($results//soapenv:Fault)) then > error((), concat("Problems with Search Service: Fault = '", > $results//faultstring/text(),"'")) > else > () > > ________________________________ > From: Dean Krueger <[email protected]<mailto:[email protected]>> > To: [email protected]<mailto:[email protected]> > Sent: Mon, June 13, 2011 3:35:26 PM > Subject: Re: [MarkLogic Dev General] Soap Call > > Hi Darin, > Thanks for the info, would it be possible for you to dig up a example? I did > look over the soap router project, it seems to be a server for receiving > soap. I need to act as the client and send the request. Maybe I am wrong... > > Thanks > Dean > > On Monday, June 13, 2011 at 3:00 PM, > [email protected]<mailto:[email protected]> > wrote: > > Send General mailing list submissions to > [email protected]<mailto:[email protected]> > > To subscribe or unsubscribe via the World Wide Web, visit > http://developer.marklogic.com/mailman/listinfo/general > or, via email, send a message with subject or body 'help' to > [email protected]<mailto:[email protected]> > > You can reach the person managing the list at > [email protected]<mailto:[email protected]> > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of General digest..." > > > Today's Topics: > > 1. Soap (Dean Krueger) > 2. Re: Soap (Darin McBeath) > > > ----------------------------------------------------------------------- > > Message: 1 > Date: Mon, 13 Jun 2011 14:06:48 -0400 > From: Dean Krueger <[email protected]<mailto:[email protected]>> > Subject: [MarkLogic Dev General] Soap > To: [email protected]<mailto:[email protected]> > Message-ID: > <[email protected]<mailto:[email protected]>> > Content-Type: text/plain; charset="utf-8" > > Hi, > Does anyone have an example of doing a call from Xquery? I need to get xml > back from another non Marklogic server that supports soap. > > Thanks > Dean Krueger > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://developer.marklogic.com/pipermail/general/attachments/20110613/e9b92601/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Mon, 13 Jun 2011 11:13:27 -0700 (PDT) > From: Darin McBeath <[email protected]<mailto:[email protected]>> > Subject: Re: [MarkLogic Dev General] Soap > To: General MarkLogic Developer Discussion > <[email protected]<mailto:[email protected]>> > Message-ID: > <[email protected]<mailto:[email protected]>> > Content-Type: text/plain; charset="us-ascii" > > There was at one time a project called 'soaprouter' in the xqzone. You might > want to take a look at this (at least as a starting point). This code is > probably 5 or 6 years old ... it assumed the literal style of soap (and not > rpc > encoding). If you can't find this on the zone, let me know and I can dig up an > example I use pretty regularly. > > Darin. > > > > > ________________________________ > From: Dean Krueger <[email protected]<mailto:[email protected]>> > To: [email protected]<mailto:[email protected]> > Sent: Mon, June 13, 2011 2:06:48 PM > Subject: [MarkLogic Dev General] Soap > > > Hi, > Does anyone have an example of doing a call from Xquery? I need to get xml > back > from another non Marklogic server that supports soap. > > Thanks > Dean Krueger > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://developer.marklogic.com/pipermail/general/attachments/20110613/17746025/attachment-0001.html > > ------------------------------ > > _______________________________________________ > General mailing list > [email protected]<mailto:[email protected]> > http://developer.marklogic.com/mailman/listinfo/general > > > End of General Digest, Vol 84, Issue 40 > *************************************** > > _______________________________________________ > General mailing list > [email protected]<mailto:[email protected]> > http://developer.marklogic.com/mailman/listinfo/general > > _______________________________________________ > General mailing list > [email protected]<mailto:[email protected]> > http://developer.marklogic.com/mailman/listinfo/general > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://developer.marklogic.com/pipermail/general/attachments/20110613/d6e317be/attachment.html > > > ------------------------------ > > _______________________________________________ > General mailing list > [email protected] (mailto:[email protected]) > http://developer.marklogic.com/mailman/listinfo/general > > > End of General Digest, Vol 84, Issue 42 > ***************************************
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
