Blogs

Creating Web Services with B1if and Consuming by DotNet
Yatsea Li SAP Employee Active Contributor Bronze: 250-499 points
Business Card
Company: SAP
Posted on Jan. 09, 2012 06:49 PM in SAP Business One, Interoperability .NET

Subscribe.Subscribe
Print. Print
Permalink Permalink
Share

Integration framework for SAP Business One (B1if) provides comprehensive supports of Web Services and RESTful interfaces (HTTP+JSON, HTTP+XML) as a service provider and consumer. It can work as a Web Server for SAP Business One, exposing and wrapping the backend functions of SAP Business One with B1DI and SQL call as web service and light-weight HTTP interfaces, evolving SAP Business One into platform with sorts of interfaces, which can be easily consumed with DotNet, Java and Mobile clients etc. Even more than just SAP Business One, it also can expose the backend functions of SAP Business Suite with RFC/BAPI call all web services and light-weight HTTP interfaces as PI/XI in a lean model.

 

In the following sessions, You'll learn:
Topic 1: Creating new Web Services with B1if
This video guides you through how to create a new web service function with B1if, getting the document list from SAP Business One by type, status and sale employee. 

 

Topic 2:Consuming the B1if Web Services  by DotNet project
Step 1: Server - B1if
-Generate the inbound and outbound XSD for SOAP request and response
-Generate the WSDL based on the XSD

 

Step 2: Client - .Net Application
-Generate a .Net Project consuming the B1if web service
-Add the Service Reference to the WSDL URL in B1if
-Invoking the web service
-Modify App.Config settings

 

Security Settings
1.HTTP+No Authentication: HTTP as communication, no user name and passowrd required to invoke the web service.
Server-B1if: Authentication of B1if Scenario Package as No authentication

 

Client-.Net:  setup the secuirty mode as "None" in App.config
<!---Yatsea: HTTP+No Authentication-->
<security mode="None">
 <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
</security>

 

2.HTTP+Basic Authentication: HTTP as communicaiton protocol, but requires user name and password to call the web service
Server-B1if : Authentication of B1if Scenario Package as Basic authentication

 

Client-.Net: setup the secuirty mode as "TransportCredentialOnly" and the credentialtype as "Basic" in App.config
<!---Yatsea: HTTP+Basic Authentication-->
<security mode="TransportCredentialOnly">
 <transport clientCredentialType="Basic" proxyCredentialType="Basic" realm="" />
 <message clientCredentialType="UserName" algorithmSuite="Default" />
</security>

 

In my next blog, I'll show you the following topic with the same scenario.

-Creating RESTful interfaces(HTTP+JSON, HTTP+XML) with B1if
-Consuming the B1if RESTful interfaces by DotNet

Yatsea Li  Active Contributor Bronze: 250-499 points is a Solution Architect for SAP Business One


Comment on this article
Comment on this weblog
Showing messages 1 through 2 of 2.

Titles Only Main Topics Oldest First


Showing messages 1 through 2 of 2.