You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by rajla <ra...@yahoo.com> on 2009/06/16 21:16:21 UTC

javax.xml.ws.soap.SOAPFaultException: No such Localname for SOAP URI

Hello, I am getting the exception 
"javax.xml.ws.soap.SOAPFaultException: No such Localname for SOAP URI" when
implementing signature secruity with WS-Security in CXF.  

Honestly, I don't remember this being so difficult to implement in older CXF
and I don't think I have ever seen this error before.  I tried to to google
it a lot today and by the looks of it, not many other people have seen this
before either.  I am on version 2.2 now.  

Could anyone please describe to me what this error means?  What process do I
need to resolve it?  P.S.  The web service works fine without the
interceptors when I don't try and use WS-security.  I followed the
WS-Security instructions listed here:
http://cwiki.apache.org/CXF20DOC/ws-security.html

That is, I generated a keystore for my server side, generated a public key
for my client.  Imported the public key for my client into the keystore.  

Any assistance anyone can give me in regards to resolving this issue is
greatly appreciated.

Below is the whole exception:

INFO: Inbound Message
----------------------------
ID: 3
Address: /teamsws/EATeamsWS
Encoding: UTF-8
Content-Type: text/xml; charset=UTF-8
Headers: {Content-Length=[1858], Host=[teams-rwsdv:9019], User-Agent=[Apache
CXF 2.2.2], connection=[keep-alive], SOAPAction=[""], Pragma=[no-cache],
Content-Type=[text/xml; charset=UTF-8], content-type=[text/xml;
charset=UTF-8], Cache-Control=[no-cache], Accept=[*/*]}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
soap:mustUnderstand="1"><ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-1">
<ds:SignedInfo>
<ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"
/>
<ds:Reference URI="#id-2">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>9ugq2OUuSZq3m5dk2pchTf+XSNA=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
ntGCqu+lVsS5LWvKr2Bovba2xkOrIH7uOVwPk2GzEDVBUd6hdWY1Cw/l/DXH2MtFgokwNrJ2q74o
2wkjiZ+Tc2ak13ccUGAFWFuc0YmVoSZgYtRRZY/phhj7SHREQiodCeMQ7/4j8IZxZDf+JpGy3dwd
js2fRIuc9g7AvpC7KX0=
</ds:SignatureValue>
<ds:KeyInfo Id="KeyId-666174F82CAAB0A4C212451739947932">
<wsse:SecurityTokenReference
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="STRId-666174F82CAAB0A4C212451739947933"><ds:X509Data>
<ds:X509IssuerSerial>
<ds:X509IssuerName>CN=teams</ds:X509IssuerName>
<ds:X509SerialNumber>1245171677</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data></wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature></wsse:Security></soap:Header><soap:Body
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="id-2"><ns1:retrieveAllFields
xmlns:ns1="http://teams.ea.com/"><username>sysadmin</username><password>booyah</password></ns1:retrieveAllFields></soap:Body></soap:Envelope>
--------------------------------------
16589396@qtp-7839582-0 2009-06-16 10:46:13,833 | INFO  | session=       |
user=           | STDOUT                              | Jun 16, 2009
10:46:13 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
-- 
View this message in context: http://www.nabble.com/javax.xml.ws.soap.SOAPFaultException%3A-No-such-Localname-for-SOAP-URI-tp24061003p24061003.html
Sent from the cxf-user mailing list archive at Nabble.com.