That had occurred to me as a temporary solution; however, our usernames take the form "domain/username" and the plaintext slash causes the uri to parse incorrectly.
Thanks for response though. - Bill -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Jones Sent: Tuesday, December 21, 2004 3:18 PM To: [EMAIL PROTECTED] Subject: RE: [orbeon-user] SOAP and authentication The way I have got this to work is to encode the username/password in the URL of the endpoint attribute of the service element: <service id="svc1" type="webservice" style="rpc" endpoint="https://username:[EMAIL PROTECTED]/services"> <operation nsuri="urn:services" name="ping" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </service> It would be nice, though, to be able to do it as part of the delegation pipeline configuration. Hope this helps, Regards, Greg Jones Jacus - SoftwareWorks -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Bruchez Sent: Wednesday, 22 December 2004 6:44 AM To: [EMAIL PROTECTED] Subject: Re: [orbeon-user] SOAP and authentication 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=11 6683&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 ------------------------------------------------------- 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 ------------------------------------------------------- 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
