Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Windows 7 Forum Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

SOAP security negotiation

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 04-25-2007   #1 (permalink)
Alhambra Eidos Kiquenet
Guest


 

SOAP security negotiation


Hi misters, I'm a newbie to WCF and I am trying to run an application web
that calls to a service WCF and I am having a bit of trouble. The client of
service WCF is an application web.

I finally got my service up and running and it is hosted on IIS - WCF
service hosting in IIS.

I get WDSL like this
http://localhost:2121/TINSA.Tareas/service.svc?wsdl, and it's right.

Aftwer I got my service up and running I proceeded to create my proxy
classes with svcutil.exe

svcutil.exe http://localhost:2121/TINSA.Tareas/service.svc?wsdl

and that created the proxy class and another config file which I copied
into application web (rename output.config to web.config).


I try to connect to service from Client application, it fail with exception.
The error message is the following:

SOAP security negotiation with
'http://localhost:2121/TINSA.Tareas/service.svc' for target
'http://localhost:2121/TINSA.Tareas/service.svc' failed


I don't know what happened it.

Any help will be appreciated, thanks in advance.

Greetings.

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net


My System SpecsSystem Spec
Old 04-28-2007   #2 (permalink)
Ron
Guest


 

RE: SOAP security negotiation

Check this post out:
http://forums.microsoft.com/MSDN/Sho...88288&SiteID=1

Which I'll quote a potential solution from:

<snip>
If you're running your service in a console or winform app (which you are)
then you need to set your UserPrincipalName on your client to the username
running the server. If the service is running as either the System or
NetworkService account then this is not necessary as it will use the default
SPN (host\machine).

The config for this on the client would look something like this:

<endpoint address="http://localhost:8001/dvdcollection/service"
binding="wsHttpBinding" bindingConfiguration="MyWSHttpBinding"
contract="IMyContract" name="MyWSHttpBinding">
<identity>
<userPrincipalName value="smason@redmond.corp.microsoft.com" />
</identity>
</endpoint>

This is not necessary on the local machine as it will use NTLM to
authenticate.
</snip>

Ron

"Alhambra Eidos Kiquenet" wrote:

>
> Hi misters, I'm a newbie to WCF and I am trying to run an application web
> that calls to a service WCF and I am having a bit of trouble. The client of
> service WCF is an application web.
>
> I finally got my service up and running and it is hosted on IIS - WCF
> service hosting in IIS.
>
> I get WDSL like this
> http://localhost:2121/TINSA.Tareas/service.svc?wsdl, and it's right.
>
> Aftwer I got my service up and running I proceeded to create my proxy
> classes with svcutil.exe
>
> svcutil.exe http://localhost:2121/TINSA.Tareas/service.svc?wsdl
>
> and that created the proxy class and another config file which I copied
> into application web (rename output.config to web.config).
>
>
> I try to connect to service from Client application, it fail with exception.
> The error message is the following:
>
> SOAP security negotiation with
> 'http://localhost:2121/TINSA.Tareas/service.svc' for target
> 'http://localhost:2121/TINSA.Tareas/service.svc' failed
>
>
> I don't know what happened it.
>
> Any help will be appreciated, thanks in advance.
>
> Greetings.
>
> --
> http://www.alhambra-eidos.es/web2005/index.html
> www.kiquenet.net
>

My System SpecsSystem Spec
Old 05-03-2007   #3 (permalink)
Alhambra Eidos Kiquenet
Guest


 

RE: SOAP security negotiation

Thanks, mister.

Now, it's works fine.

I have commented this line in web.config

<identity>
<userPrincipalName value="user@group..." />
</identity>

I guest if there was problems with KDC (Kerberos)...I'm not expert in
security...

Thanks. Greetings

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net



"Ron" wrote:

> Check this post out:
> http://forums.microsoft.com/MSDN/Sho...88288&SiteID=1
>
> Which I'll quote a potential solution from:
>
> <snip>
> If you're running your service in a console or winform app (which you are)
> then you need to set your UserPrincipalName on your client to the username
> running the server. If the service is running as either the System or
> NetworkService account then this is not necessary as it will use the default
> SPN (host\machine).
>
> The config for this on the client would look something like this:
>
> <endpoint address="http://localhost:8001/dvdcollection/service"
> binding="wsHttpBinding" bindingConfiguration="MyWSHttpBinding"
> contract="IMyContract" name="MyWSHttpBinding">
> <identity>
> <userPrincipalName value="smason@redmond.corp.microsoft.com" />
> </identity>
> </endpoint>
>
> This is not necessary on the local machine as it will use NTLM to
> authenticate.
> </snip>
>
> Ron
>
> "Alhambra Eidos Kiquenet" wrote:
>
> >
> > Hi misters, I'm a newbie to WCF and I am trying to run an application web
> > that calls to a service WCF and I am having a bit of trouble. The client of
> > service WCF is an application web.
> >
> > I finally got my service up and running and it is hosted on IIS - WCF
> > service hosting in IIS.
> >
> > I get WDSL like this
> > http://localhost:2121/TINSA.Tareas/service.svc?wsdl, and it's right.
> >
> > Aftwer I got my service up and running I proceeded to create my proxy
> > classes with svcutil.exe
> >
> > svcutil.exe http://localhost:2121/TINSA.Tareas/service.svc?wsdl
> >
> > and that created the proxy class and another config file which I copied
> > into application web (rename output.config to web.config).
> >
> >
> > I try to connect to service from Client application, it fail with exception.
> > The error message is the following:
> >
> > SOAP security negotiation with
> > 'http://localhost:2121/TINSA.Tareas/service.svc' for target
> > 'http://localhost:2121/TINSA.Tareas/service.svc' failed
> >
> >
> > I don't know what happened it.
> >
> > Any help will be appreciated, thanks in advance.
> >
> > Greetings.
> >
> > --
> > http://www.alhambra-eidos.es/web2005/index.html
> > www.kiquenet.net
> >

My System SpecsSystem Spec
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot log onto Vista Ultimate: key negotiation process failed Sam Vista security 5 12-07-2007 04:26 PM
SOAP webclient Neil Chambers PowerShell 5 10-11-2007 04:40 AM
Wireless connection negotiation Sabian Smith Vista General 1 09-19-2007 10:06 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51