Jump to content

Search the Community

Showing results for tags 'syntax scriptmaster wslite'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Community Forums

  • The New FileMaker Platform
  • Community Resources
    • Community Articles, Tips, & Techniques
    • FileMaker Marketplace Discussions
  • FileMaker Platform
    • FileMaker Interface Features
    • FileMaker Schema & Logical Functions
    • FileMaker Go for iPad and iPhone
    • FileMaker and the Internet
    • FileMaker Pro Advanced 18
    • FileMaker Pro Advanced 17
    • Legacy FileMaker Platform Discussions
  • FileMaker Server Administration
    • FileMaker Server 18
    • Zabbix Server Monitoring
    • FileMaker Server 17
    • FileMaker Cloud
    • FileMaker Custom SSL Certificates
    • oAuth and External Server Authentication
  • Brain Food
    • Security Concepts
    • The Left Brain
    • Upgrading & Migration
    • Data Analysis
    • Development Standards
    • The Separation Model
    • Relational Database Theory
    • Damaged / Corrupt File Problems
    • Bar Codes (Printer, Scanners, Software)
    • Hardware & Networking
    • OS Level Database Automation
    • Product Ideas
  • JavaScript Integration
  • FMForums Affiliates & Sponsors
  • FileMaker Classifieds
  • FM Forums Operations
  • FileMaker Friday Night Chat's Topics

Blogs

There are no results to display.

There are no results to display.

Categories

  • White Papers
  • Infographics
  • Samples
  • Solutions
  • FMGo
  • Plug-Ins
  • Tutorials

Product Groups

  • Workplace Innovation Platform
  • Site Advertising
  • Development & Hosting

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Title


Industry


Location


Interests


Website URL


Skype


MSN


Yahoo


OS Version

Found 1 result

  1. Hi all I'm writing this script: ​import wslite.soap.SOAPClient import groovy.xml.StreamingMarkupBuilder import groovy.xml.XmlUtil client = new SOAPClient(Server + '?wsdl') list = client.send(SOAPAction:Server + '.TimbradoHttpSoap11Endpoint/HTTP/1.1') { body{ buscar('xmlns':'http://utilerias.timbrado.ws.cfdi.solucionfactible.com') { usuario(Usuario) password(Password) parametros{ cancelada(cancelada) emisorNombre(emisorNombre) emisorRFC(emisorRFC) fechaEmisionFin(fechaEmisionFin) fechaEmisionInicio(fechaEmisionInicio) fechaTimbradoFin(fechaTimbradoFin) fechaTimbradoInicio(fechaTimbradoInicio) folio(folio) offset(offset) receptorNombre(receptorNombre) receptorRFC(receptorRFC) serie(serie) uuid(uuid) } } } } x = list.getBody().buscarResponse // uncomment each of these in turn to see the specific result m = x.return.toString() me = x.return.mensaje.toString() st = x.return.status.toString() cancelado = x.return.cfdis.cancelado.toString() emisorNombre = x.return.cfdis.emisorNombre.toString() emisorRFC = x.return.cfdis.emisorRFC.toString() fechaCancelacion = x.return.cfdis.fechaCancelacion.toString() fechaEmision = x.return.cfdis.fechaEmision.toString() fechaTimbrado = x.return.cfdis.fechaTimbrado.toString() folio = x.return.cfdis.folio.toString() receptorNombre = x.return.cfdis.receptorNombre.toString() receptorRFC = x.return.cfdis.receptorRFC.toString() selloDigital = x.return.cfdis.selloDigital.toString() selloSAT = x.return.cfdis.selloSAT.toString() serie = x.return.cfdis.serie.toString() total = x.return.cfdis.total.toString() uuid = x.return.cfdis.uuid.toString() smb = new StreamingMarkupBuilder() smb.encoding = 'UTF-8' def req = { mkp.xmlDeclaration() result{ mensaje(me) status(st) cancelado(cancelado) emisorNombre(emisorNombre) emisorRFC(emisorRFC) fechaCancelacion(fechaCancelacion) fechaEmision(fechaEmision) fechaTimbrado(fechaTimbrado) folio(folio) receptorNombre(receptorNombre) receptorRFC(receptorRFC) selloDigital(selloDigital) selloSAT(selloSAT) serie(serie) total(total) uuid(uuid) } } xms = smb.bind(req) //uncomment this to see as XML return XmlUtil.serialize(xms) START = '$' JOIN = ' = "' MID = '" ;n$' END = '" ;n' return START + 'mensaje' + JOIN + me + MID + 'status' + JOIN + st + '"' + MID + 'cancelado' + JOIN + cancelado + '"' + MID + 'emisorNombre' + JOIN + emisorNombre + '"' + MID + 'emisorRFC' + JOIN + emisorRFC + '"' + MID + 'fechaCancelacion' + JOIN + fechaCancelacion + '"' + MID + 'fechaEmision' + JOIN + fechaEmision + '"' + MID + 'fechaTimbrado' + JOIN + fechaTimbrado + '"' + MID + 'folio' + JOIN + folio + '"' + MID + 'receptorNombre' + JOIN + receptorNombre + '"' + MID + 'receptorRFC' + JOIN + receptorRFC + '"' + MID + 'selloDigital' + JOIN + selloDigital + '"' + MID + 'selloSAT' + JOIN + selloSAT + '"' + MID + 'serie' + JOIN + serie + '"' + MID + 'total' + JOIN + total + '"' + MID + 'uuid' + JOIN + uuid + '"' ​ And not matter what i do, during runtime I get this error: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script1.groovy: 10: unexpected char: 0xA0 @ line 10, column 1. buscar('xmlns':'http://utilerias.timbrado.ws.cfdi.solucionfactible.com') ^ 1 error Can you please tell me where the error is?. Thanks in advance. Ibrahim
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.