cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
787
Views
0
Helpful
0
Replies

WSSE header missing in WSMA request

Dear all
 
we are using WSMA for configuring Cisco 800er series router. The WSMA listener as well as the agents are set up and running, having WSSE enabled. Unfortunately, for every request we get the same response saying that the user login information is missing, although we provide a complete WSSE header.
 
Subsequently you find an exemplary request and the response we get:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        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">
	<soapenv:Header>
	   <wsse:Security soapenv:mustUnderstand="1">
	      <wsse:UsernameToken wsu:Id="UsernameToken-A08...">
	         <wsse:Username>username</wsse:Username>
	         <wsse:Password>password</wsse:Password>
		 <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">nonce</wsse:Nonce>
	         <wsu:Created>date</wsu:Created>
	      </wsse:UsernameToken>
	   </wsse:Security>
	</soapenv:Header>
	<soapenv:Body>
	   <request xmlns="urn:cisco:wsma-exec" correlator="01">
	      <execCLI><cmd>ping oz-dirt</cmd></execCLI>
	   </request>
	</soapenv:Body>
</soapenv:Envelope>

<?xml version="1.0" encoding="UTF-8"?>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:xml="http://www.w3.org/XML/1998/namespace">
	<SOAP:Body>
		<SOAP:Fault>
			<faultcode>SOAP:Client</faultcode>
			<faultstring>An expected XML tag or sequence is missing</faultstring>
			<detail>
				<WSMA-ERR:error xmlns:WSMA-ERR="urn:cisco:wsma-errors">
					<WSMA-ERR:details>Must have user login information</WSMA-ERR:details>
				</WSMA-ERR:error>
			</detail>
		</SOAP:Fault>
	</SOAP:Body>
</SOAP:Envelope>
So what is missing in the request to avoid the error?
 
Thank you very much in advance!
 
Regards
Christian
0 Replies 0