cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Source File in SAP CC's HTTP_Client

0 Kudos
251

Hi SAP CC Experts,

I'm currently searching on a way we can export SAP CC object to an XML file without using the core tool and find this HTTP_Client. Upon checking the related document for HTTP_Client, we need a source file which in a text file but can't find sample template to look to. Do you know how this HTTP_Client can be use or at least a sample source file?

Accepted Solutions (1)

Accepted Solutions (1)

francois_thimon
Product and Topic Expert
Product and Topic Expert

Hi Stephen,

Yes, http_client does roughly the same job as any third-party HTTP client you can find (it lets you send text to an HTTP destination and shows you the server's reply).

Each text file you send must contain one "HCI envelope". HCI is the protocol used between Core tool and the CC servers, so you can find valid examples by running the desired operation manually in Core tool, after having enabled the HCI debug traces (either in the updater, or just by enabling the XML logs in Core tool's preferences).

The only pitfall is that Core tool uses sessions (each with an identifier which stays valid as long as you're logged in), while http_client has to repeat the credentials in each query. Because of this, if you copy an HCI envelope from Core tool's logs, you must change its header to add your password, as follows:

<envelope>
  <header transaction="all">
    <originator name="$YOUR_LOGIN$">
      <auth scheme="simple">$YOUR_PASSWORD$</auth>
    </originator>
  </header>
  <body>
    <export code="$YOUR_OBJECT_ID$" type="$OBJECT_TYPE$"/>
  </body>
</envelope>

The detailed explanations and the list of valid object types are given in the Javadoc of the export operation (you can also invoke it using custom Java code):

https://help.sap.com/doc/d847860d561a47568a936d5f3cbeb9da/5.0/en-US/core_javadoc/com/highdeal/pnr/hc...

Finally, please keep in mind that http_client is no longer really a standard tool. If you need advanced export features, you may be interested in deploying and using CTS+ instead.

Best regards.

François
SAP Convergent Charging Support

Answers (0)