longkai / lab

广西大学 - 雨无声实验室开放平台
4 stars 6 forks source link

Message 10 Could not find schema information for the element 'http://schemas.xmlsoap.org/ws/2004/09/policy:All'. D:\Documents\Visual Studio 2008\WebSites\WCFService1\App_WebReferences\ServiceReference3\Service.wsdl 5 8 D:\...\WCFService1\ #23

Open neemo26 opened 10 years ago

neemo26 commented 10 years ago

@Test public void testCreate() throws Exception { assertEquals(_u.getId(), 0L); authService.create(_u, _u.getPassword()); assertTrue(_u.getId() > 0L); }

@Test
public void testResetPassword() throws Exception {
    AuthorizedUser user = authService.find(id);
    if (user.isBlocked()) {
        return;
    }
    String newPwd = "_newpwd";

// all the string params password are plain text. authService.resetPassword(user, newPwd, newPwd, null); AuthorizedUser u = authService.login(user.getAccount(), newPwd, null); assertNotNull(u); }

@Test
public void testUpdate() throws Exception {
    AuthorizedUser user = authService.find(id);
    String newContact = "10086";
    user.setContact(newContact);
    authService.update(user, "123456");
    assertEquals(newContact, authService.find(id).getContact());
}
neemo26 commented 10 years ago

@Test public void testToggleBlock() throws Exception { AuthorizedUser user = authService.find(id); if (user.isBlocked()) { authService.toggleBlock(user); assertEquals(false, authService.find(id).isBlocked()); } else { authService.toggleBlock(user); assertEquals(true, authService.find(id).isBlocked()); } }

@Test
@Rollback(false)
public void testFind() throws Exception {
    AuthorizedUser user = authService.find(id);
    L.debug("u: {}", user);
    assertNotNull(user);
}

@Test
public void testLogin() throws Exception {
    AuthorizedUser user = authService.find(id);
    if (user.isBlocked()) {
        return;
    }
    AuthorizedUser u = authService.login(user.getAccount(), "123456", null);
    assertNotNull(u);
}
neemo26 commented 10 years ago

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Untitled Page ```
neemo26 commented 10 years ago

<?xml version="1.0" encoding="utf-8"?>

wsp:ExactlyOne wsp:All wsp:Policy sp:ProtectionToken wsp:Policy wsp:Policy sp:BootstrapPolicy wsp:Policy sp:SignedParts /sp:SignedParts sp:EncryptedParts /sp:EncryptedParts
neemo26 commented 10 years ago
                    <sp:SymmetricBinding>
                      <wsp:Policy>
                        <sp:ProtectionToken>
                          <wsp:Policy>
                            <sp:SpnegoContextToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
                              <wsp:Policy>
                                <sp:RequireDerivedKeys />
                              </wsp:Policy>
                            </sp:SpnegoContextToken>
                          </wsp:Policy>
                        </sp:ProtectionToken>
                        <sp:AlgorithmSuite>
                          <wsp:Policy>
                            <sp:Basic256 />
                          </wsp:Policy>
                        </sp:AlgorithmSuite>
                        <sp:Layout>
                          <wsp:Policy>
                            <sp:Strict />
                          </wsp:Policy>
                        </sp:Layout>
                        <sp:IncludeTimestamp />
                        <sp:EncryptSignature />
                        <sp:OnlySignEntireHeadersAndBody />
                      </wsp:Policy>
                    </sp:SymmetricBinding>
                    <sp:Wss11>
                      <wsp:Policy>
                        <sp:MustSupportRefKeyIdentifier />
                        <sp:MustSupportRefIssuerSerial />
                        <sp:MustSupportRefThumbprint />
                        <sp:MustSupportRefEncryptedKey />
                      </wsp:Policy>
                    </sp:Wss11>
neemo26 commented 10 years ago
                    <sp:Trust10>
                      <wsp:Policy>
                        <sp:MustSupportIssuedTokens />
                        <sp:RequireClientEntropy />
                        <sp:RequireServerEntropy />
                      </wsp:Policy>
                    </sp:Trust10>
                  </wsp:Policy>
                </sp:BootstrapPolicy>
              </wsp:Policy>
            </sp:SecureConversationToken>
          </wsp:Policy>
        </sp:ProtectionToken>
        <sp:AlgorithmSuite>
          <wsp:Policy>
            <sp:Basic256 />
          </wsp:Policy>
        </sp:AlgorithmSuite>
        <sp:Layout>
          <wsp:Policy>
            <sp:Strict />
          </wsp:Policy>
        </sp:Layout>
        <sp:IncludeTimestamp />
        <sp:EncryptSignature />
        <sp:OnlySignEntireHeadersAndBody />
      </wsp:Policy>
    </sp:SymmetricBinding>
    <sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
      <wsp:Policy>
        <sp:MustSupportRefKeyIdentifier />
        <sp:MustSupportRefIssuerSerial />
        <sp:MustSupportRefThumbprint />
        <sp:MustSupportRefEncryptedKey />
      </wsp:Policy>
    </sp:Wss11>
neemo26 commented 10 years ago
    <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
      <wsp:Policy>
        <sp:MustSupportIssuedTokens />
        <sp:RequireClientEntropy />
        <sp:RequireServerEntropy />
      </wsp:Policy>
    </sp:Trust10>
    <wsaw:UsingAddressing />
  </wsp:All>
</wsp:ExactlyOne>

/wsp:Policy

wsp:ExactlyOne wsp:All /sp:SignedParts /sp:EncryptedParts /wsp:All /wsp:ExactlyOne /wsp:Policy
neemo26 commented 10 years ago
wsp:ExactlyOne wsp:All /sp:SignedParts /sp:EncryptedParts /wsp:All /wsp:ExactlyOne /wsp:Policy wsp:ExactlyOne wsp:All /sp:SignedParts /sp:EncryptedParts /wsp:All /wsp:ExactlyOne /wsp:Policy
neemo26 commented 10 years ago
wsp:ExactlyOne wsp:All /sp:SignedParts /sp:EncryptedParts /wsp:All /wsp:ExactlyOne /wsp:Policy wsdl:types /xsd:schema /wsdl:types
neemo26 commented 10 years ago
/wsdl:message /wsdl:message /wsdl:message /wsdl:message /wsdl:operation /wsdl:operation /wsdl:portType
neemo26 commented 10 years ago
wsdl:input /wsdl:input wsdl:output /wsdl:output /wsdl:operation wsdl:input /wsdl:input wsdl:output /wsdl:output /wsdl:operation /wsdl:binding
neemo26 commented 10 years ago
wsa10:EndpointReference wsa10:Addresshttp://localhost:4891/WCFService1/Service.svc/wsa10:Address localhost /wsa10:EndpointReference /wsdl:port /wsdl:service /wsdl:definitions