anita punjabi

Hi,
We have created a web service and secured it using some policies of WSE 3.0.
Now on the client side, we need to apply the same policy to the proxy of service, that is generated. So the question is , how does the client come to know about policy used by the service

WSDL / or the proxy class generated does not have any information regarding policy used by service.

Any pointers to, how the client would come to know about this .

Thanks and Regards,
anita.


Re: ASMX Web Services and XML Serialization How will the client come to know about the WSE settings used by service at server ??

Pablo Cibraro

Hi Anita,

You are right. The WS-Security requeriments for a service can only be exposed by WS-Policy (it is not part of the WSDL definition). However, WSE does not implement that specification, so the client can not discover those requeriments at runtime. (In other words, the developers of the client application must know those requeriments).

For the moment, only WCF implements that specification.

Regards,

Pablo.






Re: ASMX Web Services and XML Serialization How will the client come to know about the WSE settings used by service at server ??

anita punjabi

hi,
thanks for your quick and helpful reply.
I would like to know, how would WCF convey the same information

regards and thanks,
anita.




Re: ASMX Web Services and XML Serialization How will the client come to know about the WSE settings used by service at server ??

Pablo Cibraro

Hi Anita,

WCF publishes all the service metadata (Security, Transport, Service WSDL, etc) in a specific URL using the protocol WS-MetadataExchange.

WCF also provides a tool svcutil.exe, which knows how to read that information from an specific URL and create the necessary classes (proxy classes) and configuration files to consume the service.

Regards,

Pablo.






Re: ASMX Web Services and XML Serialization How will the client come to know about the WSE settings used by service at server ??

anita punjabi

hi,
Thanks for your quick and useful reply.
regards,
anita.