aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes How would the client know what kind WS-security to use to access the secured service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "How would the client know what kind WS-security to use to access the secured service" Watch "How would the client know what kind WS-security to use to access the secured service" New topic
Author

How would the client know what kind WS-security to use to access the secured service

Helen Ge
Ranch Hand

Joined: May 24, 2005
Posts: 68
Hello,

I got a lot of valuable help from this forum early this year to pass my exam. Thanks for all the help!

Now I am doing my first real web service project now. I know quite a lot people in this forum has good real experience and I hope they do not mind helping me here again even though this is not directly exam related.

I implemented a webservice using WS-Security of digital certificate. I am using the WebSphere 5.1 studio wizard so I see the generated ibm-webservices-bnd.xmi and ibm-webservices-ext.xmi two files contain this security integrity configuration. However the WSDL file itself seems has no change compared with the webservice with no-security.

I am wondering how would the webservice client know what kind WS-security he should enable and configure in his side to access my secured web service successfully? Since from WSDL, client won't see WS-security information.

I tried to create two seperate clients. One is with no security at all and the client won't be able to get any thing back from my digital signature enabled webservice. By monitoring with the TCP/IP server, I saw the client get the SOAP Fault with the FaultCode - FailedCheck and FaultString - The SOAP Body is not signed.

The other client I created with WS-Security of digital signature. I monitored this client and see it can successfully access my web service.

Should client just check the fault code to decide which WS-Security to implement at his side to match the webservice endpoint security? Or is there other standard way that the client know from?


-Helen

SCJD, SCWCD, SCDJWS

[ July 11, 2006: Message edited by: Helen Li ]
[ July 11, 2006: Message edited by: Helen Li ]

SCJP,SCWCD,SCDJWS,SCBCD
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Have a look over at the Web Services forum:
How would the client know what kind WS-security to use to access the secured service
 
Consider Paul's rocket mass heater.
 
subject: How would the client know what kind WS-security to use to access the secured service