Hi All, Is it possible to add Basic Authentication details in the web service request? I am using the below code to invoke the web service without authentication. Where I have to add the authentication details to invoke the password protected web services? <!-- START: Request Processor Use: Other Processors can access the Request Parameters --> <p:processor name="oxf:request"> <p:input name="config"> <config> <include>/request/parameters</include> </config> </p:input> <p:output name="data" id="request"/> </p:processor> <!-- END: Request Processor --> <!-- START: xslt processor to make dynamic webservice Request --> <p:processor name="oxf:xslt"> <p:input name="data" href="#request"/> <p:input name="config"> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <delegation:execute service="calc" operation="get-user"> <ser:getUser xmlns:ser="http://service.user.ms"> <ser:username><xsl:value-of select="/request/parameters//value"/></ser:username> </ser:getUser> </delegation:execute> </xsl:template> </xsl:stylesheet> </p:input> <p:output name="data" id="getuser-request"/> </p:processor> <!-- END: xslt processor to make dynamic webservice Request --> <!-- START: Delegation Processor to invoke webservice --> <p:processor name="oxf:delegation"> <p:input name="interface" debug="interface-debug"> <config> <service id="calc" type="webservice" return-fault="true" style="document" endpoint="http://localhost:8080/mswebservice/services/UserDetail"> <operation name="get-user" soap-action="http://service.user.ms/getUser"/> </service> </config> </p:input> <p:input name="call" debug="call-debug" href="#getuser-request"/> <p:output name="data" id="getuser-response"/> </p:processor> <!-- END: Delegation Processor to invoke webservice --> Thanks & Regards, Kamalraj Yogarasa DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Hi Kamal,
No: the delegation processor doesn't support basic authentication. But the submission processor does, and this is what I would recommend you to use. Also, since there are often questions about the delegation processor, we adding the following explanatory note, as a preamble to the delegation processor documentation: This processor is deprecated. It still ships with Orbeon Forms for backward compatibility with existing applications using this processor. However, if you are writing new code, or changing code, you should instead look at the Submission processor, which allows you to call web and REST services, while reusing the <xforms:submission> construct, and providing you all the power of the XForms submission from XPL. This being said, you can find more about the submission processor on: http://wiki.orbeon.com/forms/doc/developer-guide/processors-xforms-submission Alex
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |