Skip to Content.
Sympa Menu

mace-opensaml-users - SAXParseException in SOAP test

Subject: OpenSAML user discussion

List archive

SAXParseException in SOAP test


Chronological Thread 
  • From: Jorge Lorenzo <>
  • To:
  • Subject: SAXParseException in SOAP test
  • Date: Wed, 06 Aug 2003 12:26:07 +0200
  • Importance: Normal

Hi all,

I've tested the SOAPBindingTest of the opensaml package and I get the
following exception:

org.xml.sax.SAXParseException: cvc-elt.4.2: Cannot resolve
'typens:AttributeValueType' to a type definition for element
'AttributeValue'.
at org.opensaml.SAMLSOAPBinding.send(Unknown Source)
at org.opensaml.SOAPBindingTest.testSOAPBinding(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:392)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:276)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:167)

I've used the Axis TCP monitor to trace the SOAP messages, and apparently
these messages are correct (although I'm not sure). The request SOAP message
is:
POST /shibboleth/AA HTTP/1.1 Content-Type: text/xml; charset=UTF-8
User-Agent: Java1.4.0_01 Host: shib2.internet2.edu Accept: text/html,
image/gif, image/jpeg, *; q=.2, */*; q=.2 Connection: keep-alive
Content-length: 558 <Envelope
xmlns="http://schemas.xmlsoap.org/soap/envelope/";>
<Body>
<Request xmlns="urn:oasis:names:tc:SAML:1.0:protocol"
xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol"
IssueInstant="2003-08-06T08:14:46Z" MajorVersion="1" MinorVersion="1"
RequestID="a582bf3c2a8f0aa7762718b6bc967297">
<AttributeQuery Resource="http://www.foo.com/";>
<Subject xmlns="urn:oasis:names:tc:SAML:1.0:assertion">
<NameIdentifier
NameQualifier="shibdev.edu">foo</NameIdentifier>
</Subject>
</AttributeQuery>
</Request>
</Body></Envelope>

and the response is:
HTTP/1.1 200 OK Date: Wed, 06 Aug 2003 08:13:53 GMT Server: Apache/1.3.22
(Unix) (Red-Hat/Linux) mod_ssl/2.8.5 OpenSSL/0.9.6b mod_jk/1.1.0
Content-Type: text/xml; charset=UTF-8 Age: 89 Connection: close
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<soap:Body>
<Response xmlns="urn:oasis:names:tc:SAML:1.0:protocol"
xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol"
InResponseTo="a582bf3c2a8f0aa7762718b6bc967297"
IssueInstant="2003-08-06T08:13:53Z" MajorVersion="1" MinorVersion="1"
ResponseID="c7b419a1c25a84d60e5026e7f680c3da">
<Status>
<StatusCode Value="samlp:Success"></StatusCode>
</Status>
<Assertion xmlns="urn:oasis:names:tc:SAML:1.0:assertion"
AssertionID="d6b7af12bb8efa7e9e60381e8c41c8b2"
IssueInstant="2003-08-06T08:13:53Z" Issuer="shib2.internet2.edu"
MajorVersion="1" MinorVersion="1">
<Conditions NotBefore="2003-08-06T08:13:53Z">
<AudienceRestrictionCondition>
<Audience>urn:mace:inqueue</Audience>
</AudienceRestrictionCondition>
</Conditions>
<AttributeStatement>
<Subject>
<NameIdentifier
NameQualifier="shibdev.edu">foo</NameIdentifier>
</Subject>
<Attribute xmlns:typens="urn:mace:shibboleth:1.0"
AttributeName="urn:mace:dir:attribute-def:eduPersonScopedAffiliation"
AttributeNamespace="urn:mace:shibboleth:1.0:attributeNamespace:uri">
<AttributeValue Scope="shibdev.edu"
xsi:type="typens:AttributeValueType">member</AttributeValue>
</Attribute>
<Attribute xmlns:typens="urn:mace:shibboleth:1.0"
AttributeName="urn:mace:incommon:attribute-def:PersistentID"
AttributeNamespace="urn:mace:shibboleth:1.0:attributeNamespace:uri">
<AttributeValue
xsi:type="typens:AttributeValueType">eB9JH2BFuTno9Zf8eefH+jfFVH4=</Attribute
Value>
</Attribute>
</AttributeStatement>
</Assertion>
</Response>
</soap:Body></soap:Envelope>


Any suggestion to solve the problem?.

Apart from that, I'm interested in developing a SAML server. I've also
checked the Shibboleth project, where it is the servlet for this purpose,
but the code is not very good documented. Is there any documentation, guide,
... to use the opensaml API?.

Regards and thanks,
Jorge

---------------------------------------------------mace-opensaml-users-+
For list utilities, archives, subscribe, unsubscribe, etc. please visit the
ListProc web interface at

http://archives.internet2.edu/

---------------------------------------------------mace-opensaml-users--




Archive powered by MHonArc 2.6.16.

Top of Page