I am not the one to have written that code but unless I am mistaken, this should be done by setting the username and password properties on the javax.xml.rpc.Service object in DelegationProcessor. However this is not done at all.

I suspect it would be easy to fix. If you have any knowledge of Java and JAX-RPC, I encourage you to do so and we should be able to assist. I am just entering an RFE for this:

http://sourceforge.net/tracker/index.php?func=detail&aid=1089314&group_id=116683&atid=675663

-Erik

Summers, William V wrote:
I am trying to access a SOAP service using oxf:delegation.  The service uses
basic authentication and I cannot figure out how to send the username and
password.  My best guess was to add a config/header with the name set to
"Authorization: and the value set to "Basic bas64encoded_username:password".
This doesn't seem to work - my guess is that I have put the config block in
the wrong place.  Please help!  Also, the service works fine when I disable
authorization or if I use XMLSpy to test it.

Thanks!

Here is my model...

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";
xmlns:oxf="http://www.orbeon.com/oxf/processors";
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<p:param type ="output" name ="data" />
<p:processor name ="oxf:delegation" >


       <p:input name ="interface" >
          <config>
             <header>
                <name>Authorization</name>
                <value>Basic bas64encoded_username:password</value>
             </header>
             <service id="svc1" type="webservice" style="rpc"
endpoint="https://127.0.0.1/services " >
                <operation nsuri="urn:services" name="ping"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />
             </service>
          </config>
       </p:input>

       <p:input name ="call" >
          <delegation:execute service="svc1" operation="ping"
xmlns:delegation="http://orbeon.org/oxf/xml/delegation"/>
       </p:input>

       <p:output name="data" ref="data" />

   </p:processor>

</p:config>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to