Thanks for the info. I'm trying to look into this but I can't seem to get any of the interop sample from
https://wsit.dev.java.net/source/browse/wsit/wsit/samples/ws-trust/interop/to function period.
The glassfish targets seem specific to v2 so just to seeif I could get something working I backed up to v2
The src/mutual-certificate-10 contains a readme.txt that seems unrelated to it. I followed those instructions to run the /wsit/wsit/samples/ws-trust/src/fs example and that one seems to work fine (but it's not in the interop directory and doesn't use an STS)
After doing the install/configure trying 'ant s-s-s' in each of the src directories (figuring Sun Across the board would be the most likely to function, though I get similar failures with my desired 'ant m-s-s') I get:
mutual-certificate-10:
SEVERE: WST0017:Could not obtain STS metadata. MEX call to STS
http://localhost:8080/jaxws-trust-interop-mutual-certificate10-sts/sts failed.
(everything seemed to deploy fine, the failure is in the run-glassfish target)
mutual-certificate-11:
[java] Run Scenario: Scenario_5_IssuedTokenForCertificate_MutualCertificate11
[java] STS_Endpoint_Address:
http://127.0.0.1:8080/jaxws-trust-interop-mutual-certificate11-sts/sts [java] Service_Endpoint_Address:
http://127.0.0.1:8080/jaxws-trust-interop-mutual-certificate11/simple [java] Service_Endpoint_ConfigName:Scenario_5_IssuedTokenForCertificate_MutualCertificate11
[java] Result: FAIL
[java] Debuglog: Getting test parameters
[java] FederatedService_Endpoint_Address =
[java] SecurityTokenService_Endpoint_Address =
[java] System.ArgumentNullException: Value cannot be null.
[java] Parameter name: uriString
[java] at System.Uri..ctor(String uriString)
[java] at XwsInterop.HostedClient.HostedClientSoapImpl.SetCredentials(ChannelFactory channelFactory, String scenarioName, String stsUrl)
[java] at XwsInterop.HostedClient.HostedClientSoapImpl.RunTest(String configName, String stsUrl, String serviceUrl)
[java]
secureconversation-mutual-certificate-11 (using the Sun STS uncommented from etc/client-config/wsit-client.xml)
generate-client:
[wsimport] Consider using <depends>/<produces> so that wsimport won't do unnecessary compilation
[wsimport] command line: wsimport -d /home/padams/misc_srcs/metro/samples/ws-trust/interop/src/build/classes -extension -g -keep -verbose
http://localhost:8080/jaxws-trust-interop-secureconversation-mutual-certificate11/simple?wsdl -b /home/padams/misc_srcs/metro/samples/ws-trust/interop/src/secureconversation-mutual-certificate-11/etc/custom-client.xml -b /home/padams/misc_srcs/metro/samples/ws-trust/interop/src/secureconversation-mutual-certificate-11/etc/custom-schema-client.xml
[wsimport] [failed to localize] wsimport.ParsingWSDL()
[wsimport] [failed to localize] wsimport.ErrorMessage([failed to localize] internalizer.XPathEvaluatesToNoTarget(/xs:schema))
[wsimport] [failed to localize] ConsoleErrorReporter.LineXOfY(49, file:/home/padams/misc_srcs/metro/samples/ws-trust/interop/src/secureconversation-mutual-certificate-11/etc/custom-client.xml)
[wsimport]
[wsimport] [failed to localize] wsimport.WarningMessage([failed to localize] wsdlmodeler.warning.port.SOAPBinding12(Scenario_6_IssuedTokenForCertificateSecureConversation_MutualCertificate11))
[wsimport] [failed to localize] ConsoleErrorReporter.LineXOfY(249,
http://localhost:8080/jaxws-trust-interop-secureconversation-mutual-certificate11/simple?wsdl)
[wsimport]
[wsimport] [failed to localize] Parsing.ParseFailed()
I can open that WSDL fine in the browser.
If I could get any one of these running I could see if they might be useful from a C# client but I can't and none seem to illustrate SAML interoperability. The real use case I need to prove out is an SSO scenario where the server trusts the client via certificate exchange and the client asserts a username without the need to supply a password (like SAML SV). Though any other interoperability with .NET where WS-Security/Trust is involved I'd like to see actually functioning.
As for interoperability do these samples/tests simply emulate a .NET client? There's no .NET/C# or VB code involved here?
As for writing an STS myself via Netbeans it's a bit of a pain since my final target platform is tomcat but the wizard for writing an STS requires glassfish (won't even allow me to create one until I set my server to glassfish even though the base classes are just part of metro).
Is there any decent documentation on what an STS should do? All of the examples I find on-line seem identical and simply extend com.sun.xml.ws.security.trust.sts.BaseSTSImpl and do nothing themselves internally. I guess I can go find the source for BaseSTSImpl and try to understand what it's doing. If I need to write one of these to interoperate with a .NET client this is hardly very useful however...
I've bought books on these J2EE/.NET interop but of course with how fast things move they're now hardly too useful since they talk about JWSDP and earlier versions of WCF.
[Message sent by forum member 'adamspe' (adamspe)]
http://forums.java.net/jive/thread.jspa?messageID=353649---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...