congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
QName.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
javax.xml.namespace.QName
constructor

Best Java code snippets using javax.xml.namespace.QName.<init> (Showing top 20 results out of 14,958)

Refine searchRefine arrow

  • Call.setOperationName
  • Call.invoke
  • Call.setProperty
  • Call.setEncodingStyle
  • Call.setSOAPActionURI
  • Call.setUseSOAPAction
origin: opentripplanner/OpenTripPlanner

RTcall.setOperationName(new QName("edc.usgs.gov", "processAOI"));
String response = (String) RTcall.invoke(new Object[] { payload });
origin: stackoverflow.com

 try {
  if (wsEndPoint == null || wsEndPoint.trim().length() == 0 || wsNAME == null || wsNAME.trim().length() == 0 ||
    id == null || id.trim().length() == 0 || code == null || code.trim().length() == 0) {
    retVal = "Error: mandatory parameter missing.";
  } else {
    Service  service = new Service();
    Call call = (Call)service.createCall();

    call.setTargetEndpointAddress(new java.net.URL(wsEndPoint));
    call.setOperationName(new QName("http://service.name.it/", wsNAME));
    call.addParameter(new QName("http://service.name.it/", "arg0"), new QName("http://www.w3.org/2001/XMLSchema", "string"), ParameterMode.IN);
    call.addParameter(new QName("http://service.name.it/", "arg1"), new QName("http://www.w3.org/2001/XMLSchema", "string"), ParameterMode.IN);
    call.setSOAPActionURI("");
    call.setEncodingStyle(null);
    call.setProperty(Call.SEND_TYPE_ATTR, Boolean.FALSE);
    call.setProperty(AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);

    retVal = ((String)call.invoke(new Object[] {id, code})).trim();
  }
} catch (Exception e) {
  retVal = String.format("Error: %s.", e.getMessage());
origin: stackoverflow.com

Call call = service.createCall();
   call.setPortTypeName(portQName);
   call.setOperationName(new QName(namespace, operation));
   call.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY, "http://schemas.xmlsoap.org/soap/encoding/"); 
   call.setProperty(Call.OPERATION_STYLE_PROPERTY, "rpc");
   call.addParameter("in0", org.apache.axis.Constants.XSD_STRING ,ParameterMode.IN);
   call.addParameter("in1", org.apache.axis.Constants.XSD_STRING ,ParameterMode.IN);
   call.setReturnType(serviceQName);
   String targetEndpoint = "http://113.160.19.218:8312/axis/services/WeatherForecastTest1";
   call.setTargetEndpointAddress(targetEndpoint);
   String result = (String) call.invoke(params);
   out.println(result);
origin: OpenNMS/opennms

public void ticketStateUpdate(org.opennms.integration.otrs.ticketservice.TicketStateUpdate ticketStateUpdate, org.opennms.integration.otrs.ticketservice.Credentials request_header) throws java.rmi.RemoteException {
  if (super.cachedEndpoint == null) {
    throw new org.apache.axis.NoEndPointException();
  }
  org.apache.axis.client.Call _call = createCall();
  _call.setOperation(_operations[5]);
  _call.setUseSOAPAction(true);
  _call.setSOAPActionURI("http://opennms.org/integration/otrs/ticketservice#TicketStateUpdate");
  _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
  _call.setOperationName(new javax.xml.namespace.QName("http://opennms.org/integration/otrs/ticketservice", "TicketStateUpdate"));
  setRequestHeaders(_call);
  setAttachments(_call);
  _call.invokeOneWay(new java.lang.Object[] {ticketStateUpdate, request_header});
}
origin: org.renci.condor/condor-wsdl

   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("urn:condor", "getFile"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(clusterId), new java.lang.Integer(jobId), name, new java.lang.Integer(offset), new java.lang.Integer(length)});
origin: mx4j/mx4j-tools

public void close() throws IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "close"));
 call.setReturnType(XMLType.AXIS_VOID);
 call.invoke(new Object[0]);
}
origin: org.renci.condor/condor-wsdl

   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("urn:condor", "declareFile"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(clusterId), new java.lang.Integer(jobId), name, new java.lang.Integer(size), hashType, hash});
origin: mx4j/mx4j-tools

public NotificationResult fetchNotifications(long clientSequenceNumber, int maxNotifications, long timeout) throws IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "fetchNotifications"));
 call.addParameter("sequence", XMLType.XSD_LONG, ParameterMode.IN);
 call.addParameter("maxNumber", XMLType.XSD_INT, ParameterMode.IN);
 call.addParameter("timeout", XMLType.XSD_LONG, ParameterMode.IN);
 call.setReturnType(new QName(SOAPConstants.NAMESPACE_URI, "NotificationResult"));
 NotificationResult result = (NotificationResult)call.invoke(new Object[]{new Long(clientSequenceNumber), new Integer(maxNotifications), new Long(timeout)});
 return result;
}
origin: org.renci.condor/condor-wsdl

   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("urn:condor", "sendFile"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(clusterId), new java.lang.Integer(jobId), name, new java.lang.Integer(offset), data});
origin: mx4j/mx4j-tools

public MBeanInfo getMBeanInfo(ObjectName objectName, Subject delegate) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "getMBeanInfo"));
 call.addParameter("objectName", qObjectName, ParameterMode.IN);
 call.addParameter("delegate", qSubject, ParameterMode.IN);
 call.setReturnType(new QName(SOAPConstants.NAMESPACE_URI, "MBeanInfo"));
 MBeanInfo info = (MBeanInfo)call.invoke(new Object[]{objectName, delegate});
 return info;
}
origin: org.renci.condor/condor-wsdl

   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("urn:condor", "createJobTemplate"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(clusterId), new java.lang.Integer(jobId), owner, type, cmd, args, requirements});
origin: mx4j/mx4j-tools

public void setAttribute(ObjectName objectName, Object attribute, Subject delegate) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException, IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "setAttribute"));
 call.addParameter("objectName", qObjectName, ParameterMode.IN);
 call.addParameter("attribute", new QName(SOAPConstants.NAMESPACE_URI, "Attribute"), ParameterMode.IN);
 call.addParameter("delegate", qSubject, ParameterMode.IN);
 call.setReturnType(XMLType.AXIS_VOID);
 call.invoke(new Object[]{objectName, attribute, delegate});
}
origin: com.aoindustries/ao-credit-cards-sagePayments

   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("https://www.sagepayments.net/web_services/wsVault/wsVault/DELETE_DATA");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("https://www.sagepayments.net/web_services/wsVault/wsVault", "DELETE_DATA"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {m_ID, m_KEY, GUID});
origin: mx4j/mx4j-tools

public AttributeList setAttributes(ObjectName objectName, Object attributes, Subject delegate) throws InstanceNotFoundException, ReflectionException, IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "setAttributes"));
 QName qAttributeList = new QName(SOAPConstants.NAMESPACE_URI, "AttributeList");
 call.addParameter("objectName", qObjectName, ParameterMode.IN);
 call.addParameter("attributeList", qAttributeList, ParameterMode.IN);
 call.addParameter("delegate", qSubject, ParameterMode.IN);
 call.setReturnType(qAttributeList);
 AttributeList list = (AttributeList)call.invoke(new Object[]{objectName, attributes, delegate});
 return list;
}
origin: com.aoindustries/ao-credit-cards-sagePayments

   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("https://www.sagepayments.net/web_services/wsVault/wsVault/UPDATE_DATA");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("https://www.sagepayments.net/web_services/wsVault/wsVault", "UPDATE_DATA"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {m_ID, m_KEY, GUID, DATA});
origin: mx4j/mx4j-tools

  public String connect(Object credentials) throws IOException, SecurityException
  {
   Call call = createCall();

   call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "connect"));
   call.addParameter("credentials", XMLType.XSD_ANY, ParameterMode.IN);
   call.setReturnType(XMLType.XSD_STRING);
//      call.addFault(new QName(SOAPConstants.NAMESPACE_URI, "SecurityException"), SecurityException.class, XMLType.XSD_ANY, true);

   connectionId = (String)call.invoke(new Object[]{credentials});
   return connectionId;
  }
 
origin: org.renci.condor/condor-wsdl

   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("urn:condor", "beginTransaction"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(duration)});
origin: mx4j/mx4j-tools

public AttributeList getAttributes(ObjectName objectName, String[] attributes, Subject delegate) throws InstanceNotFoundException, ReflectionException, IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "getAttributes"));
 call.addParameter("objectName", qObjectName, ParameterMode.IN);
 call.addParameter("attributeNames", XMLType.SOAP_ARRAY, ParameterMode.IN);
 call.addParameter("delegate", qSubject, ParameterMode.IN);
 call.setReturnType(new QName(SOAPConstants.NAMESPACE_URI, "AttributeList"));
 AttributeList list = (AttributeList)call.invoke(new Object[]{objectName, attributes, delegate});
 return list;
}
origin: org.renci.condor/condor-wsdl

   _call.setUseSOAPAction(true);
   _call.setSOAPActionURI("");
   _call.setEncodingStyle(null);
   _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
   _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
   _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
   _call.setOperationName(new javax.xml.namespace.QName("urn:condor", "extendTransaction"));
try {        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {transaction, new java.lang.Integer(duration)});
origin: mx4j/mx4j-tools

public Integer getMBeanCount(Subject delegate) throws IOException
{
 Call call = createCall();
 call.setOperationName(new QName(SOAPConstants.NAMESPACE_URI, "getMBeanCount"));
 call.addParameter("delegate", qSubject, ParameterMode.IN);
 call.setReturnType(XMLType.XSD_INT);
 Integer count = (Integer)call.invoke(new Object[]{delegate});
 return count;
}
javax.xml.namespaceQName<init>

Javadoc

QName constructor specifying the local part.

If the local part is null an IllegalArgumentException is thrown. A local part of "" is allowed to preserve compatible behavior with QName 1.0.

When using this constructor, the Namespace URI is set to javax.xml.XMLConstants#NULL_NS_URI and the prefix is set to javax.xml.XMLConstants#DEFAULT_NS_PREFIX.

In an XML context, all Element and Attribute names exist in the context of a Namespace. Making this explicit during the construction of a QName helps prevent hard to diagnosis XML validity errors. The constructors #QName(String namespaceURI,String localPart) and #QName(String namespaceURI,String localPart,String prefix)are preferred.

The local part is not validated as a NCName as specified in Namespaces in XML.

Popular methods of QName

  • getLocalPart
    Gets the Local part for this QName
  • getNamespaceURI
    Gets the Namespace URI for this QName
  • equals
    Tests this QName for equality with another object. If the given object is not a QName or is null the
  • getPrefix
    Gets the prefix for this QName
  • toString
    Returns a string representation of this QName
  • valueOf
    Returns a QName holding the value of the specified String. The string must be in the form returned b
  • hashCode
    Returns a hash code value for this QName object. The hash code is based on both the localPart and na

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now