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

Re: Consume Webservice in B1iF

$
0
0

Hi Cameron,

 

To define the expected return of the web service (default is xml), please compare B1i online help "Call HTTP Atom":

  • If non xml needs to be handed over, please especially fill segment <pltype>.
  • In segment<payload> put complete soap Envelope (execpt <? ....?>) copied from SOAPUI (including soapenv:Header and soapenv:Body).
  • For the return values check segment <htta>, where you can explicitly define to handover SOAPAction and the returned data, see example below:   

 

...<pltype>        <!--optional - default is xml-->      </pltype>      <payload>                 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsrm="http://docs.oasis-open.org/ws-rx/wsrm/200702"                       <soapenv:Header>                              ...                      </soapenv:Header>                      <soapenv:Body>                              ...                              </soapenv:Body>         </soapenv:Envelope>      </payload>      <htta>                       <!--<par id="httpheader.SOAPAction" value="SOAPAction"/>-->        <!--<par id="httpheader.Content-Type" value="text/xml;charset=UTF-8"/>-->        <par id="httpheader.SOAPAction" value="http://sap.com/xxx/ReplicateMaterialRequest"/>                <par id="htta.returnpltypeforce" value="">          <!--optional-->        </par>        <par id="htta.returnpltypedefault" value="">          <!--optional-->        </par>      </htta>
...

 

 


Best regards

Bastian


Viewing all articles
Browse latest Browse all 973

Trending Articles



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