mace-opensaml-users - Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml.
Subject: OpenSAML user discussion
List archive
Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml.
Chronological Thread
- From: "Michael Lausch" <>
- To:
- Subject: Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml.
- Date: Wed, 1 Oct 2008 17:18:15 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=pOkC2hJudM3zszJkkEnTqSOnz7gPw6aHHlOUXM+itxPDVt2Ptf/EAJ7HzMQSOiBmSC o3HRA9BLI3ZfXQDW7Ud4zrS6Tg5K1hMgMIVYzRbGI0S1AqPrgjq4FWQE/73MmEKe/CY7 keMmX2LlVPyfPnm6THQ7BReGpMVEQ7voE2mO4=
On Wed, Oct 1, 2008 at 4:27 PM, Håkon Sagehaug
<>
wrote:
> Hi
>
> Again my little example
>
> <plb:Element xmlns:plb="http://plb.bccs.uib.no"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:type="xs:string">test</plb:Element>
>
> for unmarshalling it to a java object I did this
>
> Unmarshaller unMarshaller = unMarshallerFactory.getUnmarshaller(doc
> .getDocumentElement());
>
with my test code and a fake SOAP request which looks like this:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<sessionId id="1718"/>
<authToken>AUTH TOKEN</authToken>
</context>
</soap:Header>
<soap:Body>
<SetPasswordRequest xmlns="urn:zimbraAdmin">
<id>ACCOUNT ID</id>
<newPassword>NEWPASS</newPassword>
</SetPasswordRequest>
</soap:Body>
</soap:Envelope>
i don't get an unmarshaller. The reason is that no Unmarshaller for
the QName(http://www.w3.org/2003/05/soap-envelope, Envelope, soap) is
registered.
therefore the unMarshaller variable is null. Your example works,
because the element you use for unmarshalling has an XSI type defined,
which i don't have
for my SOAP request.
- Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml., Michael Lausch, 10/01/2008
- Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml., Håkon Sagehaug, 10/01/2008
- Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml., Michael Lausch, 10/01/2008
- Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml., Michael Lausch, 10/01/2008
- RE: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml., Scott Cantor, 10/01/2008
- Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml., Brent Putman, 10/01/2008
- Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml., Michael Lausch, 10/02/2008
- Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml., Håkon Sagehaug, 10/01/2008
Archive powered by MHonArc 2.6.16.