Quantcast
Channel: SCN: Message List - SAP Business One Integration Technology
Viewing all articles
Browse latest Browse all 973

B1if: How to call PUT Http in json format

$
0
0

Hi,

I would like to perform an http call in json format to call an API that is exposed.

here is my http call method with PUT and i have an error message


com.sap.b1i.xcellerator.XcelleratorException: XCE212 Error performing the HTTP-call, HTTP-status is 404, Not Found


I use a httpCall atom :

<call xmlns="">

  <!--identifier-->

<query id="identifier" value="value"></query>

<!--optional - define your own query parameters - multiple elements allowed-->

<connect>

  <destProtocol>http</destProtocol>

  <destHost>urlmysebservice/</destHost>

  <destPort>80</destPort>

  <destPath>stocks/</destPath>

  <query>1004</query>

  <!--<proxyHost></proxyHost>

  <proxyPort></proxyPort>-->

  <method>PUT</method>

  <authentification>basic</authentification>

  <user>userws</user>

  <password>pwd</password>

<!-- <user2query> </user2query>

  <password2query> </password2query>

  <trustStoreURI>urlmysebservice</trustStoreURI>

  <keyStoreURI></keyStoreURI>-->

</connect>

<!--optional - document type definition-->

<!--<dtd>

</dtd>-->

<pltype>json</pltype>

  <!--optional - in case of POST request you specify here your request document-->

<payload>

  <xsl:value-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@id=&apos;atom3&apos;]/text()"></xsl:value-of>

</payload>

<htta>

  <!--optional-->

  <!--optional - you can specify here your own http header definitions - multiple elements allowed-->

   <!-- <par id="httpheader.xml" value="text/xml"></par>

  <par id="htta.returnpltypeforce" value="text/xml"></par>

  <par id="htta.returnpltypedefault" value="text/xml"></par>-->

  <par id="httpheader.???" value="">

  <par id="httpheader.Content-Type" value="application/json"></par>

  <!--optional - you can specify here your own http header definitions - multiple elements allowed-->

  </par>

  <par id="htta.returnpltypeforce" value="json"></par>

  <par id="htta.returnpltypedefault" value="json"></par>

</htta>

 

 

</call>

 

 

thanks

Regards,

Lamine


Viewing all articles
Browse latest Browse all 973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>