HttpApi


Click here for a complete list of operations.

JSOExecute

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /httpapi.asmx HTTP/1.1
Host: service.javascriptobfuscator.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/JSOExecute"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <JSOExecute xmlns="http://tempuri.org/">
      <proj>
        <Items>
          <JSOHttpFileItem>
            <FileName>string</FileName>
            <FileCode>string</FileCode>
          </JSOHttpFileItem>
          <JSOHttpFileItem>
            <FileName>string</FileName>
            <FileCode>string</FileCode>
          </JSOHttpFileItem>
        </Items>
        <APIKey>string</APIKey>
        <APIPwd>string</APIPwd>
        <Name>string</Name>
        <KeepComment>boolean</KeepComment>
        <JSFileHeader>string</JSFileHeader>
        <EncodeStrings>boolean</EncodeStrings>
        <EncryptStrings>boolean</EncryptStrings>
        <MoveStrings>boolean</MoveStrings>
        <ReplaceNames>boolean</ReplaceNames>
        <RenameGlobals>boolean</RenameGlobals>
        <DeepObfuscate>boolean</DeepObfuscate>
        <AddDeadCode>boolean</AddDeadCode>
        <SelfCompression>boolean</SelfCompression>
        <MoveNested>boolean</MoveNested>
        <ReorderCode>boolean</ReorderCode>
        <ReorderCodeEval>boolean</ReorderCodeEval>
        <ReorderCodeEvalAll>boolean</ReorderCodeEvalAll>
        <ReorderCodeObjectDeclare>boolean</ReorderCodeObjectDeclare>
        <ReorderCodeMinSize>int</ReorderCodeMinSize>
        <ReorderCodeEvalMinSize>int</ReorderCodeEvalMinSize>
        <SelfCompressionMinSize>int</SelfCompressionMinSize>
        <WriteFormats>boolean</WriteFormats>
        <WriteFormats_KeepIndent>boolean</WriteFormats_KeepIndent>
        <WriteFormats_LineNumbers>boolean</WriteFormats_LineNumbers>
        <MoveMembers>boolean</MoveMembers>
        <RenameMembers>boolean</RenameMembers>
        <MixedServer>boolean</MixedServer>
        <IdentityStyle>v1hex or v2abcd</IdentityStyle>
        <OptimizationMode>Auto or Web or Html5 or Game or Mobile or NodeJS</OptimizationMode>
        <CompressionRatio>Auto or Low or Medium or High or Best</CompressionRatio>
        <DeadcodeLevel>Low or Medium or High</DeadcodeLevel>
        <FlatTransform>boolean</FlatTransform>
        <LockDomain>boolean</LockDomain>
        <LockDomainSubs>boolean</LockDomainSubs>
        <LockDomainList>string</LockDomainList>
        <LockDomainMsg>string</LockDomainMsg>
        <LockDate>boolean</LockDate>
        <LockDateValue>dateTime</LockDateValue>
        <LockDateMsg>string</LockDateMsg>
        <GlobalMapping>string</GlobalMapping>
        <GlobalRegexp>string</GlobalRegexp>
        <GlobalSuffix>string</GlobalSuffix>
        <GlobalPrefix>string</GlobalPrefix>
        <MemberMapping>string</MemberMapping>
        <MemberRegexp>string</MemberRegexp>
        <MemberSuffix>string</MemberSuffix>
        <MemberPrefix>string</MemberPrefix>
      </proj>
    </JSOExecute>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <JSOExecuteResponse xmlns="http://tempuri.org/">
      <JSOExecuteResult>
        <Type>Error or Exception or SourceError or LoginFailed or Succeed</Type>
        <Items>
          <JSOHttpFileItem>
            <FileName>string</FileName>
            <FileCode>string</FileCode>
          </JSOHttpFileItem>
          <JSOHttpFileItem>
            <FileName>string</FileName>
            <FileCode>string</FileCode>
          </JSOHttpFileItem>
        </Items>
        <ErrorCode>string</ErrorCode>
        <Message>string</Message>
        <FileName>string</FileName>
        <LineNumber>string</LineNumber>
        <ExceptionToString>string</ExceptionToString>
      </JSOExecuteResult>
    </JSOExecuteResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /httpapi.asmx HTTP/1.1
Host: service.javascriptobfuscator.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <JSOExecute xmlns="http://tempuri.org/">
      <proj>
        <Items>
          <JSOHttpFileItem>
            <FileName>string</FileName>
            <FileCode>string</FileCode>
          </JSOHttpFileItem>
          <JSOHttpFileItem>
            <FileName>string</FileName>
            <FileCode>string</FileCode>
          </JSOHttpFileItem>
        </Items>
        <APIKey>string</APIKey>
        <APIPwd>string</APIPwd>
        <Name>string</Name>
        <KeepComment>boolean</KeepComment>
        <JSFileHeader>string</JSFileHeader>
        <EncodeStrings>boolean</EncodeStrings>
        <EncryptStrings>boolean</EncryptStrings>
        <MoveStrings>boolean</MoveStrings>
        <ReplaceNames>boolean</ReplaceNames>
        <RenameGlobals>boolean</RenameGlobals>
        <DeepObfuscate>boolean</DeepObfuscate>
        <AddDeadCode>boolean</AddDeadCode>
        <SelfCompression>boolean</SelfCompression>
        <MoveNested>boolean</MoveNested>
        <ReorderCode>boolean</ReorderCode>
        <ReorderCodeEval>boolean</ReorderCodeEval>
        <ReorderCodeEvalAll>boolean</ReorderCodeEvalAll>
        <ReorderCodeObjectDeclare>boolean</ReorderCodeObjectDeclare>
        <ReorderCodeMinSize>int</ReorderCodeMinSize>
        <ReorderCodeEvalMinSize>int</ReorderCodeEvalMinSize>
        <SelfCompressionMinSize>int</SelfCompressionMinSize>
        <WriteFormats>boolean</WriteFormats>
        <WriteFormats_KeepIndent>boolean</WriteFormats_KeepIndent>
        <WriteFormats_LineNumbers>boolean</WriteFormats_LineNumbers>
        <MoveMembers>boolean</MoveMembers>
        <RenameMembers>boolean</RenameMembers>
        <MixedServer>boolean</MixedServer>
        <IdentityStyle>v1hex or v2abcd</IdentityStyle>
        <OptimizationMode>Auto or Web or Html5 or Game or Mobile or NodeJS</OptimizationMode>
        <CompressionRatio>Auto or Low or Medium or High or Best</CompressionRatio>
        <DeadcodeLevel>Low or Medium or High</DeadcodeLevel>
        <FlatTransform>boolean</FlatTransform>
        <LockDomain>boolean</LockDomain>
        <LockDomainSubs>boolean</LockDomainSubs>
        <LockDomainList>string</LockDomainList>
        <LockDomainMsg>string</LockDomainMsg>
        <LockDate>boolean</LockDate>
        <LockDateValue>dateTime</LockDateValue>
        <LockDateMsg>string</LockDateMsg>
        <GlobalMapping>string</GlobalMapping>
        <GlobalRegexp>string</GlobalRegexp>
        <GlobalSuffix>string</GlobalSuffix>
        <GlobalPrefix>string</GlobalPrefix>
        <MemberMapping>string</MemberMapping>
        <MemberRegexp>string</MemberRegexp>
        <MemberSuffix>string</MemberSuffix>
        <MemberPrefix>string</MemberPrefix>
      </proj>
    </JSOExecute>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <JSOExecuteResponse xmlns="http://tempuri.org/">
      <JSOExecuteResult>
        <Type>Error or Exception or SourceError or LoginFailed or Succeed</Type>
        <Items>
          <JSOHttpFileItem>
            <FileName>string</FileName>
            <FileCode>string</FileCode>
          </JSOHttpFileItem>
          <JSOHttpFileItem>
            <FileName>string</FileName>
            <FileCode>string</FileCode>
          </JSOHttpFileItem>
        </Items>
        <ErrorCode>string</ErrorCode>
        <Message>string</Message>
        <FileName>string</FileName>
        <LineNumber>string</LineNumber>
        <ExceptionToString>string</ExceptionToString>
      </JSOExecuteResult>
    </JSOExecuteResponse>
  </soap12:Body>
</soap12:Envelope>