BizTalk Server Orchestration - Problem in invoking web service with basic authentication

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > January 2006 > Problem in invoking web service with basic authentication





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem in invoking web service with basic authentication
vinzy

2005-12-30, 3:30 am

Hi,

I have to call a Java based web service having basic authentication from my orchestration. I have added a web reference of the web service and created a request-response port for the same and given static bindings for the port. I deployed the orchestration and in the send port created, the adapter is soap and i have set the authentication type as basic and gave the necessary credentials required for the web service i need to call.

The web service is throwing an error that the user does not have proper credentials. But the credentials i gave are perfect. I saw the http headers going to the web service and in the HTTP headers, the authorization tag is missing. The http header should contain the authorization tag with authentication type as basic.

I have tested the same with a .net application with the same credentials i have given earlier. i'm able to invoke the web service and my http header contains the authorization tag.

Can some one suggest me how to get the authorization tag in the http header?

thanks in advance!!!!!

Regards
Vinay
bvin

2006-01-13, 9:54 pm

I am experiencing the same issue. I have scoured the web but haven't found
any helpful information on this. You would assume that if you set the
authentication to basic and set the user id / password on a SOAP port it
would send it as an HTTP header. Either it's a bug or I am missing something
obvious.

Anyway, the work around I use is to build the SOAP request manually and send
it out using a dynamic HTTP port. Not very elegant, but it works.

"vinzy" wrote:

>
> Hi,
>
> I have to call a Java based web service having basic authentication
> from my orchestration. I have added a web reference of the web service
> and created a request-response port for the same and given static
> bindings for the port. I deployed the orchestration and in the send
> port created, the adapter is soap and i have set the authentication
> type as basic and gave the necessary credentials required for the web
> service i need to call.
>
> The web service is throwing an error that the user does not have proper
> credentials. But the credentials i gave are perfect. I saw the http
> headers going to the web service and in the HTTP headers, the
> authorization tag is missing. The http header should contain the
> authorization tag with authentication type as basic.
>
> I have tested the same with a .net application with the same
> credentials i have given earlier. i'm able to invoke the web service
> and my http header contains the authorization tag.
>
> Can some one suggest me how to get the authorization tag in the http
> header?
>
> thanks in advance!!!!!
>
> Regards
> Vinay
>
>
>
> --
> vinzy
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message1340607.html
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com