ashish.k.gupta
3rd May 2019, 10:02
Hi All,
I need an advice on Sending Sales Invoice data from Infor LnFP9 to 3rd party web services.
I have tried using soap.invoke function but i am geting error 60.
i have few doubt
I have already tried sample program which is working as per given in baan help guide. Also i have checked soap.action and method are correctly passed
1- How can we send credential to web services, because 3rd party web service need credential to access WS.
2- Do we have to create same XML structure as per web services require?
please find the attached files what i have tried and advice me if i missing anything.
Thanks in advance
oirfeodent
6th May 2019, 10:53
Hi All,
I need an advice on Sending Sales Invoice data from Infor LnFP9 to 3rd party web services.
I have tried using soap.invoke function but i am geting error 60.
i have few doubt
I have already tried sample program which is working as per given in baan help guide. Also i have checked soap.action and method are correctly passed
1- How can we send credential to web services, because 3rd party web service need credential to access WS.
2- Do we have to create same XML structure as per web services require?
please find the attached files what i have tried and advice me if i missing anything.
Thanks in advance
What was the response message(response node), in your debug screen?
Return code 60 seems to be Unsupported Protocol.
Regards,
ashish.k.gupta
6th May 2019, 13:30
Hi
Thanks for replying
in respondNode there is no message.please find screen shot
only on status variable error code 60 coming.if it is unsupported protocol issue how can we solve it.
I am thinking it may be because of authentication problem. because when i use WSDL in browser it asked for user name and password. but in LN coding we are not sending any user name password.
also i have seen in SoapUI tool i can not find user & password tags or provision in soap request XML in SoapUI tool.
so can can we pass user and password through LN in soap XML request as i dont know where to define it.
Regards
Ashish Kumar
oirfeodent
6th May 2019, 16:26
so can can we pass user and password through LN in soap XML request as i dont know where to define it.
Regards
Ashish Kumar
If you believe authentication is the issue, then you will be able to use
soap.addheader(msgNode, <authenticationNode>)
where the structure of <authenticationNode> depends on the service where the Soap service is loaded.
Regards,
ashish.k.gupta
6th May 2019, 17:01
Hi
Thanks I am just thinking it might be an issue but not sure.if this is the problem
I have seen this function but problem is , How would we know authentication Node. I have below information
1- web service URL (WSDL) and credential
2- from SoapUI tool i got to know required XML Request for web services but in SoapUI tool also i can not see any authentication node.
Do you know how can we know authentication node ? not sure that is the issue as well. any other suggestion
I have added my latest test script as well if you find any mistake i am doing
ashish.k.gupta
7th May 2019, 17:16
Hi Guys
Can any body help me on this?
I am thinking this issue with Authentication of HTTP post and not aware of how can we send authentication in soap request Invoke . in header section i have added Authentication node as well but it is not working.
also i got to know it may be certification issue but not sure or not aware.
while researching got some function like
Is any body know about below function if yes please share syntex and description of it or any sample code
id_service = SoapService.New( WEBSERVICE_METHOD, URI_SOAP11, WEBSERVICE_URL )
id_request = SoapElement.New( WEBSERVICE_METHOD, "kon", WEBSERVICE_NAMESP )
SoapService.SetCredentials(id_service, l.user, l.password )
|… set body
retval = SoapService.Invoke( id_service, id_request, id_response )
or
l.username.node = SoapService.CreateSoapHeader(id_service, "Username", "wsse", WEBSERVICE_NAMESP)
ret.l = XmlNewNode("", XML_DATA, l.username.node)
SoapElement.SetStringValue(l.username.node, "myUserName" )
SoapService.SetSoapHeaderField(id_service, "wsse_Username", l.username.node)
SoapService.UseSoapHeader(id_service, "wsse_Username", SOAP_HEADER_IN)
ashish.k.gupta
8th May 2019, 17:38
Hi All,
I have got the details about those function using session "ttstpbaandoc" session you can generate the library of ttstpsoapdll and can get the detials about that functions.
regarding soap error it will be certification issue so we have to import the certificate and then import it in to LN server. once it is done then i will update if it is working
thanks for your support
Regards
Ashish Kumar
Ashok_elgi
17th August 2021, 19:21
Hi Ashish,
Were you successful finally?
We are encountering same error - Request you to share the solution if you have resolved the authentication issue
Thanks
ashish.k.gupta
20th August 2021, 10:52
Hi yes ,
I have got the solution and implemented as well.
you can reach me in case you need any more information
at ashish.hcu06@gmail.com
oirfeodent
26th August 2021, 11:23
Hi yes ,
I have got the solution and implemented as well.
you can reach me in case you need any more information
at ashish.hcu06@gmail.com
Hi Ashish,
It will be good idea to put the details here, so that everyone will have access...
Instead of email discussion.
Thx for the understanding.
Regards,