Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Receiving SOAPFaultException: Error in the Username token. (8 Comments)

$
0
0

Topic by Bharath Duggirala4439

Hi. When I try to post the following SOAP request, I receive, 500 Internal server error.
The SOAP request looks like a valid one to me.

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
    <Header>
        <ClientInfoHeader xmlns="urn:messages.ws.rightnow.com/v1">
            <AppID>GetMeta Data</AppID>
        </ClientInfoHeader>
        <Security
            xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
            <UsernameToken>
                <Username>username</Username>
                <Password>password</Password>
            </UsernameToken>
        </Security>
    </Header>
    <Body>
        <GetMetaData xmlns="urn:messages.ws.rightnow.com/v1"/>
    </Body>
</Envelope>

Error message:

...Received Http Code:500 from castiron1005.rightnowdemo.com...
SEVERE: SOAP fault: <?xml version="1.0"?>
<SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">wsse:InvalidSecurityToken</faultcode>
<faultstring>Error in the Username token.</faultstring>
<detail><wsse:ProblemSecurityHeader xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">wsse:UsernameToken</wsse:ProblemSecurityHeader>
</detail>
</SOAP-ENV:Fault>
...SEVERE: faultData: <?xml version="1.0"?>
<wsse:ProblemSecurityHeader xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">wsse:UsernameToken</wsse:ProblemSecurityHeader>

When I loaded the RightNow wsdl into SOAP UI and create a sample request, for GetMetaData API call, the only difference I see is the soapenv namepsace prefix in the request. Appreciate any pointers.


Viewing all articles
Browse latest Browse all 2504

Trending Articles