Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Open World, Portal & Decision Manager

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 24th May 2017, 13:59
lfhaddix lfhaddix is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
lfhaddix is on a distinguished road
Baan: ERP LN - DB: db2 - OS: aix
Current Middleware options
Baan: ERP LN 6.1 FP3

When we installed Baan we chose wbi adapters and IBM Websphere MQ Series. As MQ Series is no longer supported by IBM, we are looking to use another method to transfer data into LN. How do I find the options that are available? I would like to focus on web services if that is possible.
Reply With Quote
  #2  
Old 29th June 2017, 14:01
sasikanth's Avatar
sasikanth sasikanth is offline
Senior Member
 
Join Date: Jul 2009
Location: Hyderabad, Andhra Pradesh, India
Posts: 123
sasikanth is on a distinguished road
Baan: L.N 6.1 FP7, 10.3, 10.4 & 10.5 - DB: SQL Server - OS: Windows
Hi,

If you don't have ION in your Environment, indeed Web Services is the best possible way to Synchronize the Data from any Third Party Application to Infor ERP LN.

Connect with me if you would like to know more about how to develop/deploy/use Web Services on LN Side. I will be happy to help you out!
__________________
Sasi Kanth V
Infor ERP LN Solution Architect

Reach Me Out on LinkedIn | Never Miss an Update from LN Campus YouTube Channel
Reply With Quote
Sponsored Links
  #3  
Old 29th June 2017, 14:40
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,287
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
You can go for C4WS for integration purpose using Webservices. C4WS related guides are available on InforXtreme for downloading. You can get them and check if you can use them to build your requirement.
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #4  
Old 24th July 2017, 20:29
Daniel66 Daniel66 is offline
Newbie
 
Join Date: Aug 2010
Posts: 2
Daniel66 is on a distinguished road
Baan: IV - DB: Oracle - OS: AIX5.3
WebServices

Hi,

if you are using WebServices, you have to be careful with the Transaction handling. The WebServices has its own Transaction handling (commitments). We use them al lot and have sometimes Problems with Error 201.

If someone knows this Problems and has a Workaround, please contact me. You are Welcome!


Daniel
Reply With Quote
  #5  
Old 13th September 2017, 13:42
lfhaddix lfhaddix is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
lfhaddix is on a distinguished road
Baan: ERP LN - DB: db2 - OS: aix
Need help with C4WS Client

Could someone post a working java client for C4WS web service?

I have the below wsdl and have generated the java classes using 1.8 java wsimport. I cannot figure out how to put values into the 3 attributes (order, login, user). It is using the complex type and I cannot find a jax-ws example using complex types.

The wsdl is attached as a .txt file.

Thank you for any help you can give me.

Linda
Attached Files
File Type: txt AssemblyLineScans.txt (9.9 KB, 6 views)
Reply With Quote
  #6  
Old 13th September 2017, 20:53
lfhaddix lfhaddix is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
lfhaddix is on a distinguished road
Baan: ERP LN - DB: db2 - OS: aix
I have gotten as far as sending the AddScan successfully but now I am trying to add Error handling. jax-ws shows that it is returning a AddScanResponseType but when I look at the actual logs, it is returning a Result. How do I get access to the <Result> object so that I can check messages?

<code>
public String addScan(String poNumber, String login, String userId) {
StringBuffer responseMsg = new StringBuffer("");
System.out.println("AddScan order:"+poNumber +" login:"+login +" user: "+userId);
List<InformationMessage> responseMessages = null;
String message = "Scan not attempted";
try {
String serverName = BarcodeUtil.getLN_Server(BarcodeConstants.COMPANY_NUMBER); // 09-07-17
String c4wsServerName = BarcodeUtil.getC4WS_Server( ); // 09-07-17
String url = String.format(BarcodeConstants.C4WS_FORMAT, c4wsServerName, serverName); // 09-07-17
System.out.println(url);
URL newWsdlLocation = new URL(url);
AssemblyLineScansService service = new AssemblyLineScansService(newWsdlLocation);
AssemblyLineScans serviceReq = service.getAssemblyLineScansSoapPort();
ObjectFactory factory = new ObjectFactory();
AddScanRequestType params = factory.createAddScanRequestType();
ControlArea controlArea = factory.createAddScanRequestTypeControlArea();
params.setControlArea(controlArea);
DataArea dataArea = factory.createAddScanRequestTypeDataArea();
infor.erpln.c4ws.web.wsdl.client.AddScanRequestType.DataArea.AssemblyLineScans scan = new infor.erpln.c4ws.web.wsdl.client.AddScanRequestType.DataArea.AssemblyLineScans( );
scan.setOrder(poNumber);
scan.setLogin(login);
scan.setUser(userId);
dataArea.getAssemblyLineScans().add(scan);
params.setDataArea(dataArea);
AddScanResponseType response = serviceReq.addScan( params );
if (response == null) {
System.out.println("response is null" );
} else {
if ((response.getInformationArea() == null) || (response.getInformationArea().getMessage() == null)) {
System.out.println("InformationArea or Message is null" );
message = "";
} else {
responseMessages = response.getInformationArea().getMessage();
InformationMessage tempMsg = null;
for (int m = 0; m < responseMessages.size(); m++) {
tempMsg = (InformationMessage)responseMessages.get(m);
message = tempMsg.getMessageText();
System.out.println(tempMsg.getMessageText());
break;
}
}

}
} catch (Exception ex) {
message = ex.getMessage();
ex.printStackTrace();
}
return message;
}


</code>

<code>
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (270): JCA Daemon starts -trace
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (273): Bshell Name='ftvbaant2.bb.local', BSE Release='6.2', Bshell pid=13435030, Process pid=1
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (273): BSE directory='/new_test_a01/app/bse'
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (2411): Enter: handleInitDsEvent()
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (2659): Enter: handleInitRequest(clientProtocolVersion: 3, company: 150)
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (2672): switch.to.company() returned: 1
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (2686): Leave: handleInitRequest() return value: 1, serverProtocolVersion: 3, productname: ERP LN, productversion: 8.4, username: lfhaddix
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (2432): Leave: handleInitDsEvent()
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (2447): Enter: handleBdeOpenDsEvent()
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (2470): Leave: handleBdeOpenDsEvent()
[14:12:46]lfhaddix: ottstpbdeman (3), pttstpbdeman0 (105): BDE Manager starts
[14:12:46]lfhaddix: ottstpbdeman (3), pttstpbdeman0 (108): Bshell Name='ftvbaant2.bb.local', BSE Release='6.2', Bshell pid=13435030, Process pid=3
[14:12:46]lfhaddix: ottstpbdeman (3), pttstpbdeman0 (108): BSE directory='/new_test_a01/app/bse'
[14:12:46]lfhaddix: ottstpbdeman (3), pttstpbdeman0 (342): Enter: handleDsBdeRequest()
[14:12:46]lfhaddix: ottstpbdeman (3), pttstpbdeman0 (469): handleBdeRequest for: AssemblyLineScans, invoke: AddScan, request:
[14:12:46]lfhaddix: ottstpbdeman (3) {150}, pttstpbdeman0 (488) :
<?xml version="1.0"?>
<AddScanRequest>
<ControlArea/>
<DataArea>
<AssemblyLineScans>
<order>P2200000FC1071212</order>
<login>fc1op080</login>
<user>P2200000001704</user>
</AssemblyLineScans>
</DataArea>
</AddScanRequest>
[14:12:46]lfhaddix: ottstpbdeman (3), pttstpbdeman0 (509): handleBdeRequest returns: -12
[14:12:46]lfhaddix: ottstpbdeman (3) {150}, pttstpbdeman0 (522) :
<?xml version="1.0"?>
<Result>
<messageCode>tlbcts0074</messageCode>
<messageType>Error</messageType>
<messageText>Request validation; Attr. &apos;order&apos;, Value &apos;P2200000FC1071212&apos;: the value is too long.</messageText>
<messageSource>Application</messageSource>
</Result>

[14:12:46]lfhaddix: ottstpbdeman (3), pttstpbdeman0 (365): Leave: handleDsBdeRequest()
[14:12:46]lfhaddix: ottstpbdeman (3), pttstpbdeman0 (747): handleCloseRequest()
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (2624): Enter: handleConnectorClose()
[14:12:46]lfhaddix: ottstpjcadaemon (1), pttstpjcadaemon0 (1005): doExit JCA Daemon

</code>
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Question mr_suleyman Tools Development 37 11th November 2016 08:14
Sigma Chemnitz & ION middleware patvdv Pages and Stories 0 10th April 2013 15:50
to trace variable priyanka pawar Tools Development 1 15th April 2012 11:02
debugging code smusba Tools Development 4 16th June 2008 15:10


All times are GMT +2. The time now is 19:42.


©2001-2017 - Baanboard.com - Baanforums.com