Hi,
I tried by adding xdmp:quote for the data before passing through Url. But
getting same error .The url is correct.
regards,
Mano
________________________________
From: Geert Josten <[email protected]>
To: mano m <[email protected]>; General MarkLogic Developer Discussion
<[email protected]>
Sent: Monday, 28 November 2011 2:27 AM
Subject: RE: [MarkLogic Dev General] Access webservice ???
Hi Mano,
You have to xdmp:quote your post-data, like in the second example of the
documentation of xdmp:http-post:
http://developer.marklogic.com/pubs/5.0/apidocs/Ext-2.html#xdmp:http-post
But the error says there is something else going wrong. It says that the url
you pass in is not found. Are you sure the url you use is correct?
Kind regards,
Geert
Van:mano m [mailto:[email protected]]
Verzonden: maandag 28 november 2011 7:38
Aan: Geert Josten; General MarkLogic Developer Discussion
Onderwerp: Re: [MarkLogic Dev General] Access webservice ???
Hi all,
Thanks, Can you share a sample soap request accessed using http-post. For my
scenario I have to pass xml node to the webservice.
I tried in the following way . But I am getting error.
let $post-data := <s>mano soap request </s>
return xdmp:http-post("http://net16:8097/service.svc", <options
xmlns="xdmp:http">
<timeout>100000000</timeout>
<data>{$post-data}</data>
</options>)[2]
Error : SVC-SOCHN1.0-mlSocket hostname errorSVC-SOCHN: xdmp:http-post....
-- Socket hostname error: gethostbyname net16: The specified host is
unknown.falsexdmp:http-post
Regards,
Mano
________________________________
From:Geert Josten <[email protected]>
To: mano m <[email protected]>; General MarkLogic Developer Discussion
<[email protected]>
Sent: Thursday, 24 November 2011 7:33 AM
Subject: RE: [MarkLogic Dev General] Access webservice ???
Hi Mano,
Abishek asked a similar question. You can find the answer here:
http://markmail.org/message/44wzhqsswnczi2lj
Kind regards,
Geert
Van:[email protected]
[mailto:[email protected]] Namens mano m
Verzonden: donderdag 24 november 2011 12:08
Aan: [email protected]
Onderwerp: [MarkLogic Dev General] Access webservice ???
Hi
I have to access a web service from mark logic. Will it be possible via
xdmp:http-post method.Please let me know how to access webservice and pass
parameters to them?
Thanks in Advance.
regards,
Mano_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general