07-17-2008 12:16 PM
…
<property name="build.wcf.dir" location="DotNet/AlfrescoWS"/>
<property name="wsdl.dir" location="DotNet/AlfrescoWS/wsdl"/>
<property name="svcutil" location="C:/Program Files/Microsoft SDKs/Windows/v6.0A/Bin/SvcUtil.exe"/>
<target name="genall"
description="Using svcutil to generate stubs.">
<exec executable="${svcutil}" dir="${wsdl.dir}">
<arg value="/t:code" />
<arg value="*.wsdl" />
<arg value="*.xsd" />
<arg value="/language:cs" />
<arg value="/config:${build.wcf.dir}/output.config" />
<arg value="/d:${build.wcf.dir}" />
<arg value="/async" />
<arg value="/targetClientVersion:Version30" />
</exec>
</target>
07-18-2008 08:31 AM
UsernameToken userToken = new UsernameToken(AuthenticationUtils.UserName, AuthenticationUtils.Ticket, (PasswordOption)2);
service.RequestSoapContext.Security.Timestamp.TtlInSeconds = (long)300;
service.RequestSoapContext.Security.Tokens.Add(userToken);
<MessageLogTraceRecord
Time="2008-07-18T05:52:52.0781250-06:00" Source="TransportSend"
Type="System.ServiceModel.Security.SecurityAppliedMessage"
xmlns="http://schemas.microsoft.com/2004/06/ServiceModel/Management/MessageTrace">
<Addressing>
<Action>
http://www.alfresco.org/ws/service/repository/1.0/getStores
</Action>
<To>
https://localhost:8443/alfresco/api/RepositoryService
</To>
</Addressing>
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Security s:mustUnderstand="1"
xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="_0">
<u:Created>
2008-07-18T11:52:51.609Z
</u:Created>
<u:Expires>
2008-07-18T11:57:51.609Z
</u:Expires>
</u:Timestamp>
<o:UsernameToken
u:Id="uuid-8a9b624d-afb0-4efc-b29e-1fde338d91fc-2">
<o:Username><!–Removed–></o:Username>
<o:Password><!–Removed–></o:Password>
</o:UsernameToken>
</o:Security>
</s:Header>
<s:Body
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<getStores
xmlns="http://www.alfresco.org/ws/service/repository/1.0">
</getStores>
</s:Body>
</s:Envelope>
</MessageLogTraceRecord>
</DataItem>
</TraceData>
</ApplicationData>
</E2ETraceEvent>
<E2ETraceEvent
xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
<System
xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
<EventID>0</EventID>
<Type>3</Type>
<SubType Name="Information">0</SubType>
<Level>8</Level>
<TimeCreated SystemTime="2008-07-18T11:52:52.0937500Z" />
<Source Name="System.ServiceModel.MessageLogging" />
<Correlation
ActivityID="{00000000-0000-0000-0000-000000000000}" />
<Execution ProcessName="AlfrescoWS.vshost" ProcessID="368"
ThreadID="10" />
<Channel />
<Computer>CODENV-L3B3320</Computer>
</System>
<ApplicationData>
<TraceData>
<DataItem>
<MessageLogTraceRecord
Time="2008-07-18T05:52:52.0937500-06:00" Source="TransportReceive"
Type="System.ServiceModel.Channels.BufferedMessage"
xmlns="http://schemas.microsoft.com/2004/06/ServiceModel/Management/MessageTrace">
<HttpResponse>
<StatusCode>InternalServerError</StatusCode>
<StatusDescription>
Internal Server Error
</StatusDescription>
<WebHeaders>
<Transfer-Encoding>
chunked
</Transfer-Encoding>
<Connection>close</Connection>
<Content-Type>
text/xml;charset=utf-8
</Content-Type>
<Date>Fri, 18 Jul 2008 11:52:52 GMT</Date>
<Set-Cookie>
JSESSIONID=3B2228600B3AE4AEEBB2181E2E7864F7;
Path=/alfresco; Secure
</Set-Cookie>
<Server>Apache-Coyote/1.1</Server>
</WebHeaders>
</HttpResponse>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<s:Header
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
</s:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns="">
soapenv:Server.generalException
</faultcode>
<faultstring xmlns="">
WSDoAllReceiver: security processing
failed; nested exception is:
org.apache.ws.security.WSSecurityException:
General security error
(WSSecurityEngine: Callback supplied
no password for: tomcat)
</faultstring>
<detail xmlns="">
<ns1:hostname
xmlns:ns1="http://xml.apache.org/axis/">
CODENV-L3B3320
</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
</MessageLogTraceRecord>
07-18-2008 12:06 PM
System.ServiceModel.Security.MessageSecurityException: Security processor was un
able to find a security header in the message. This might be because the message
is an unsecured fault or because there is a binding mismatch between the commun
icating parties. This can occur if the service is configured for security and
the client is not using security.
Server stack trace:
at System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessa
geCore(Message& message, TimeSpan timeout)
at System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessa
ge(Message& message, TimeSpan timeout)
at System.ServiceModel.Security.SecurityProtocol.VerifyIncomingMessage(Messag
e& message, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStat
es)
07-18-2008 02:13 PM
System.ServiceModel.FaultException:
WSDoAllReceiver: security processing failed (actions number mismatch)
07-18-2008 07:56 PM
<handler name="WSSecurity"
type="java:org.apache.ws.axis.security.WSDoAllReceiver">
<!– parameter modified for WCF, was value="UsernameToken
Timestamp" />–>
<parameter name="action" value="UsernameToken"/>
</handler>
07-19-2008 09:43 PM
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
11-25-2008 02:10 PM
07-14-2010 05:57 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.