Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, so here is a subset of what I am trying to do. The above example was extremely helpful, but I still am not able to create a JAXBElement:</p> <p>Base envelope can be found: <a href="http://www.iana.org/assignments/xml-registry/schema/netconf.xsd" rel="nofollow noreferrer">http://www.iana.org/assignments/xml-registry/schema/netconf.xsd</a></p> <p>Payload for rpcOperationType (I added the ** lines):</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dmi="http://xml.juniper.net/dmi" ** xmlns:netconf="urn:ietf:params:xml:ns:netconf:base:1.0" &gt; **&lt;xs:import schemaLocation="netconf.xsd" namespace="urn:ietf:params:xml:ns:netconf:base:1.0"/&gt; &lt;!-- get-failed-login-count --&gt; &lt;xs:complexType name="get-failed-login-count"&gt; **&lt;xs:complexContent&gt; ** &lt;xs:extension base="netconf:rpcOperationType"&gt; &lt;xs:annotation&gt; &lt;xs:appinfo&gt; &lt;dmi:rpc-info&gt; &lt;name&gt;Get failed login count for Authentication failure and Exceeded user&lt;/name&gt; &lt;description&gt; This command returns the Number of Logins refused due to exceeding allowed limits and Auth failure (24 hour moving window) &lt;/description&gt; &lt;rpc-reply-tag&gt;failed-login-count&lt;/rpc-reply-tag&gt; &lt;/dmi:rpc-info&gt; &lt;/xs:appinfo&gt; &lt;/xs:annotation&gt; &lt;xs:sequence&gt; &lt;xs:element name="reset" type="xs:boolean" minOccurs="0"&gt; &lt;xs:annotation&gt; &lt;xs:appinfo&gt; &lt;dmi:param-info&gt; &lt;name&gt;Reset Stats&lt;/name&gt; &lt;description&gt; This will govern the reseting of this statistics data. By default, the data is not reset. &lt;/description&gt; &lt;/dmi:param-info&gt; &lt;/xs:appinfo&gt; &lt;/xs:annotation&gt; &lt;/xs:element&gt; &lt;/xs:sequence&gt; ** &lt;/xs:extension&gt; **&lt;/xs:complexContent&gt; &lt;/xs:complexType&gt; </code></pre> <p>Now, the generated GetFailedLogin class extends RpcOperationType, but I am not sure how to set it in the RpcType object:</p> <pre><code> RpcType rpc = new RpcType(); rpc.setMessageId("123"); GetFailedLoginCount rpcOperation = new GetFailedLoginCount(); rpc.setRpcOperation(); // Expects JAXBElement&lt;? Extends RpcOperationType&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload