sawell
1st October 2012, 12:11
Hi,

we want to connect our Baan application to an other application (also from us). The other application is .NET and is using webservices.

Which options do Baan offer to communicate from Baan to webservices? Do we need to buy any additional modules? Since we have customers with ERP (5) and LN (6), we need to consider both Baan systems.
But it would also be interesting to know, if there is a solution that is only supported by LN.


Best regards
sawell

GrishinEV
3rd October 2012, 21:46
hello,
ln has a lot of special functions forworking with soap

looking for SOAP client overview

as an example

#include <bic_soap>

function main()
{
long msgNode
long requestNode
long responseNode
long methodNode
long status
long ns
string zip( 64 )
string result( 128 )

zip = "10001"

| Create a new SOAP message
msgNode = soap.newMessage( URI_SOAP11 )

| Define the method to call
requestNode = xmlNewNode( "GetInfoByZIP" )
| Declare and set the namespace
ns = xmlNewNamespace( requestNode, "", "http://www.webserviceX.NET" )
xmlSetNamespace( requestNode, ns )
xmlNewDataElementNs( ns, "USZip", zip, requestNode )

| Add the method to the SOAP envelope contained the in the SOAP message
soap.addMethod( msgNode, requestNode )

| Set the SOAP Action
soap.setAction( msgNode, "http://www.webserviceX.NET/GetInfoByZIP" )

| Invoke the SOAP request
status = soap.invoke( msgNode, "http://www.webservicex.net/uszip.asmx", responseNode )

| Check the response
if status = 0 then
| Get the method result
methodNode = soap.getMethod( responseNode )
result = xmlDataElement$( methodNode, "GetInfoByZIPResult" )
else
| Something went wrong...
message( "SOAP Error: %d", status )
endif

| Cleanup
soap.deleteMessage( msgNode )
soap.deleteMessage( responseNode )
}

sawell
4th October 2012, 09:41
Thanks!
Is that already possible in the "Standard" LN, or do I need an extra module for that?

Regards
sawell

JaapJD
4th October 2012, 10:00
LN's Application Studio has functionality to generate a 3GL proxy library based on the WSDL.

sawell
4th October 2012, 10:18
Sorry for the question, but since I am just a Baan newbie (I am more a .NET/C#/Webservie/SOAP-guy):
"LN's Application Studio" -->> does this belong to the "Standard" LN development tools? Or is this something special, something one need to buy separately?
I am collecting this info to get an idea of the possibilities. And then we will talk abou this with our Baan programmers. Thanks for the informations and I am looking forward for your answers. This forum is helpful!


Regards
Sawell

JaapJD
4th October 2012, 10:21
LN's Application Studio is an Eclipse based development platform. There is no additional fee for it. If you don't have a development license, its functionality is limited: no tables, domains and scripts can be developed then.

sawell
4th October 2012, 10:29
@JaapJD
Thanks!!

pcolombo
24th April 2013, 21:41
Hi , im using Infor ERP LN FP5 and FP6, but i can“t see bic_soap on $BSE/include6.2. Do i need an special version or a particular portingset to use SOAP methods you showed in your example or its mandatory to use Application Studio?

Thanks in advance

robertvg
19th February 2014, 14:44
Is this bic_soap library also available in BaaN IV ?

mark_h
19th February 2014, 20:43
I don't see it on any of the 4c4 systems i have access to, but check your $BSE/include6.1 directory.

robertvg
20th February 2014, 10:50
Anybody has another idea how to call webservices from within BaaN IV ?
Maybe there is another library we can use....