SOAP delegation and Basic Authentication

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SOAP delegation and Basic Authentication

wreeder
I am trying to access a SOAP service that is protected through Basic Authentication. I have read in previous posts that you can encode the username and password into the service endpoint URL for the oxf:delegation processor in the format <protocol>://username:password@<server>[:port]/[path]
I have tried this but I still get a "(401)Unauthorized" error.

Here is what my interface looks like:
<config >
    <service id="dtiService" type="webservice" style="document" endpoint="http://username:password@localhost:7011/ows/soap/dti-core">
        <operation name="TestInquiry"/>
    </service>
</config>

Should this technique still work?

Are there plans to support a username and password specifically defined in the delegation processor?

Thanks,
Bill

Reply | Threaded
Open this post in threaded view
|

Re: SOAP delegation and Basic Authentication

Alessandro Vernet
Administrator
Bill,

On Jan 19, 2009, at 12:06 PM, Bill Reeder wrote:

> I am trying to access a SOAP service that is protected through Basic
> Authentication. I have read in previous posts that you can encode the
> username and password into the service endpoint URL for the  
> oxf:delegation
> processor in the format
> <protocol>://username:password@<server>[:port]/[path]
> I have tried this but I still get a "(401)Unauthorized" error.


Instead of using the Delegation processor, can you do this with an  
XForms submission? If your XPL is called from XForms, then you can do  
it in XForms directly, and otherwise you can use the XForms submission  
processor, as shown in:

http://www.orbeon.com/ops/doc/processors-xmldb#rest

I recommend you use the XForms submission mechanism instead of the  
Delegation processor, as the XForms engine is actively maintained and  
constantly improved, in contrast with the Delegation processor.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
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