X4 Produktdokumentation

URL Encoding Converter

This adapter converts a URL or string to a URL and vice versa.

Properties

Operation

Operation executed by the adapter

Possible values:

  • Encode: Encrypts the specified URL

  • Decode: Decrypts the specified URL

  • EncodePlain: Encrypts the specified text

  • DecodePlain: Decrypts the specified text

Status values

1

The operation was successful.

-1

The operation could not be performed.

Input

The adapter expects an XML file with the string or URL to be converted as input.

  • Encode operation:

    Expected structure for the Encode operation

    XML
    <?xml version="1.0" encoding="UTF-8" ?>
    <URL>http://www.softproject.de/search?q=Hellö Wörld@X4$</URL>
    
  • Decode operation:

    Expected structure for the Decode operation

    XML
    <?xml version="1.0" encoding="UTF-8" ?>
    <URL>http://www.softproject.de/search?q=Hell%C3%B6%20W%C3%B6rld@X4$</URL
    
  • EncodePlain operation:

    Expected structure for the EncodePlain operation

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Text>Hellö Wörld@X4$</Text>
    
  • DecodePlain operation:

    Expected structure for the DecodePlain operation

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Text>Hell%C3%B6%20W%C3%B6rld@X4$</Text>
    

Output

The adapter returns an XML document with the converted URL.

  • Encode operation

    Sample output for the Encode operation

    XML
    <?xml version="1.0" encoding="UTF-8" ?>
    <URL>http://www.softproject.de/search?q=Hell%C3%B6%20W%C3%B6rld@X4$</URL
    
  • Decode operation

    Sample output for the Decode operation

    XML
    <?xml version="1.0" encoding="UTF-8" ?>
    <URL>http://www.softproject.de/search?q=Hellö Wörld@X4$</URL>
    
  • EncodePlain operation:

    Sample output for the EncodePlain operation

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Text>Hell%C3%B6%20W%C3%B6rld@X4$</Text>
    
  • DecodePlain operation:

    Sample output for the DecodePlain operation

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Text>Hellö Wörld@X4$</Text>