IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  problem updating data with an xquery

    Posted 04/11/05 05:07 PM

    I have problem updating data with an xquery .
    update replace input()/Peticiones[/Correo_Electronico=“mirizarry@gmail.com”]/status with no

    I will like to now if I have syntax error.

    Thanks

    Scheme

    <?xml version = "1.0" encoding = "UTF-8"?>

    <xs:schema xmlns:tsd = “http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition” xmlns:xs = “XML Schema”>
    xs:annotation
    xs:appinfo
    <tsd:schemaInfo name = “Peticion_de_informacion”>
    <tsd:collection name = “WebSite”></tsd:collection>
    <tsd:doctype name = “Peticiones”>
    tsd:logical
    tsd:contentclosed</tsd:content>
    </tsd:logical>
    </tsd:doctype>
    tsd:adminInfo
    tsd:server4.1.4.1</tsd:server>
    tsd:modified2005-03-14T08:25:34.875-04:00</tsd:modified>
    tsd:created2005-03-14T08:25:34.875-04:00</tsd:created>
    tsd:versionTSD4</tsd:version>
    </tsd:adminInfo>
    </tsd:schemaInfo>
    </xs:appinfo>
    </xs:annotation>
    <xs:element name = “Peticiones”>
    xs:complexType
    xs:sequence
    <xs:element name = “Nombres” type = “xs:string”></xs:element>
    <xs:element name = “Correo_Electronico” type = “xs:string” minOccurs = “0”></xs:element>
    <xs:element name = “Telefono” type = “xs:string”></xs:element>
    <xs:element name = "Empresa_o_Compa


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: problem updating data with an xquery

    Posted 04/12/05 10:17 AM

    Hi,
    The Correo_Electronico node is not the root node of the returned document, it is a child of the root, so to address it you do not need the leading slash in your XPath expression. Try this instead:

    update replace input()/Peticiones[Correo_Electronico="mirizarry@gmail.com"]/status with <status>no</status>

    #API-Management
    #Tamino
    #webMethods