Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

B1WS 9.0 xml request error

$
0
0

Good day mentors,

 

I'm new into using B1WS, so please be patient.

 

I tried retrieving data via B1WS and the standard way of doing it is by using "GetByParams".

 

I always get an error, and can't seem to retrieve the data(querying BP and Item).

 

Debugging B1WSHandler, the XML request brought out by B1WS was different from the documentation.

Below is the XML request by B1WS

<?xml version="1.0" encoding="utf-8" ?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xmlns:xsd="http://www.w3.org/2001/XMLSchema">  <soap:Header>     <MsgHeader xmlns="http://www.sap.com/SBO/DIS">        <SessionID>A1D7CDBC-4C23-4F1D-9689-6D5DC6A4D023</SessionID>         <ServiceName>ItemsService</ServiceName>       </MsgHeader>   </soap:Header>  <soap:Body>     <GetByParams xmlns="ItemsService">       <ItemParams xmlns="http://www.sap.com/SBO/DIS">        <ItemCode>A00001</ItemCode>         </ItemParams>     </GetByParams>  </soap:Body></soap:Envelope>

While the one from the documentation is:

<?xml version="1.0" encoding="UTF-16UCS-4"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header>  <SessionID>F46EDCE6-3F79-1F9F-1D1E-DC6226D04FA7</SessionID>   </env:Header>   <env:Body>      <dis:GetByParams xmlns:dis="http://www.sap.com/SBO/DIS">         <Service>ItemsService</Service>         <ItemParams>            <ItemCode>TestItem</ItemCode>         </ItemParams>      </dis:GetByParams>   </env:Body></env:Envelope>

So currently, I'm not sure if there is an error in my setup of B1WS or I'm doing something wrong.

 

If anyone happen to know a post inside the forum whereby this same case been resolved, please do post the link.

 

Development Environment:

-SAP B1 9.0 PL5

-Windows 8.1

-IIS 8

-VS2013

 

Thanks in advance!

Sean Yu


Viewing all articles
Browse latest Browse all 8950

Trending Articles



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