Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Error in consuming webservices

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Error in consuming webservices
 Login/Join
 
Member
posted
I have 2 webservices, where i'm generating a token using the 1st webservices and passing the same to the 2nd, i'm able to genertate the token without any problem but am getting the error when i'm trying the read the 2nd webservices, as mentioned below

(FOC44540) SOAP Request got error. Response Status : 500 ; Reason: Internal
Server Error
(FOC44541) Faultcode : soap:Client
(FOC44542) Faultstring: Missing parameter
(FOC44544) Faultdetail: 6020100
(FOC44544) Faultdetail: Error
(FOC44544) Faultdetail: tokn

Question:
Can you please let me know what could be wrong?

I'm using the connectio as mentioned below

ENGINE SOAP SET CONNECTION_ATTRIBUTES
CON01/zzzz,101F722A0C3C0DEA:'https://server.com/abcd https://server.com/abcd_nc/?wsdl'
ENGINE SOAP SET CONNECTION_ATTRIBUTES
CON02/zzzz,101F722A0C3C0DEA:'https://server.com/abcd/sa/train_core/finance
https://server.com/abcd_nc/sa/...n_core/finance/?wsdl'

I have created the MFD/ACX without any problem using server console

This message has been edited. Last edited by: Kerry,


WF 7.6.4
Windows
HTML/PDF/Excel
 
Posts: 5 | Location: Bangalore | Registered: September 09, 2011Report This Post
Expert
posted Hide Post
I'm by no means an expert in Web Services, but does the error Missing parameter give any clues ?

Have you made sure that you have all the parms needed.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Yes, i'm passing all the required parameters. I was told that this could be something to do with SOAP error, does any one know how to troubleshoot the SOAP error.

Thanks,


WF 7.6.4
Windows
HTML/PDF/Excel
 
Posts: 5 | Location: Bangalore | Registered: September 09, 2011Report This Post
Member
posted Hide Post
I'm reposting my issue, pls help...

I have 2 webservices, where i'm generating a token using the 1st webservices and passing the same to the 2nd, i'm able to genertate the token without any problem but am getting the error when i'm trying the read the 2nd webservices, as mentioned below

(FOC44540) SOAP Request got error. Response Status : 500 ; Reason: Internal
Server Error
(FOC44541) Faultcode : soap:Client
(FOC44542) Faultstring: Missing parameter
(FOC44544) Faultdetail: 6020100
(FOC44544) Faultdetail: Error
(FOC44544) Faultdetail: tokn

Question:
Can you please let me know what could be wrong?

I'm using the connection as mentioned below

ENGINE SOAP SET CONNECTION_ATTRIBUTES
CON01/zzzz,101F722A0C3C0DEA:'https://server.com/abcd https://server.com/abcd_nc/?wsdl'
ENGINE SOAP SET CONNECTION_ATTRIBUTES
CON02/zzzz,101F722A0C3C0DEA:'https://server.com/abcd/sa/train_core/finance
https://server.com/abcd_nc/sa/...n_core/finance/?wsdl'

I have created the MFD/ACX without any problem using server console

I'm passing the necessary parameters to get the data, i was told that i'm not able to communicate to the 2nd webservice server atall. Is there something i need to do with the SOAP connection. Pls let me know.


WF 7.6.4
Windows
HTML/PDF/Excel
 
Posts: 5 | Location: Bangalore | Registered: September 09, 2011Report This Post
Expert
posted Hide Post
Are you able to test this outside WebFOCUS. i.e. is it a WebFOCUS issue, or something else.

You may have to put in a case with Techsupport.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
I'm able to access the webservices from outside with out any problem, i feet this is something to do with our webfocus settings. Any idea on this would be greatly appreciated.

Thanks,


WF 7.6.4
Windows
HTML/PDF/Excel
 
Posts: 5 | Location: Bangalore | Registered: September 09, 2011Report This Post
Expert
posted Hide Post
The only thing that I can think of is that the parameter isn't missing, but WebFOCUS isn't accepting it for some reason.

Have you looked at doing some tracing to find a better reason, such as what its having a problem with.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Gold member
posted Hide Post
Hello KKRR,

maybe your problem is related to a case I opened with IBI (# 71852515).

It seems that multiple WebServices can currently not be consumed in one request when they are hosted on the same server.

From different servers you have no problem but if you have two conntections to different services but on the same URL the second will fail as WF is still trying to use the first WSDL.

You may try the following (eventhough it is a little crazy):

between your two WebService calls something like:

ENGINE SOAP SET CONNECTION_ATTRIBUTES CON02:'https//invalid.server.com https://invalid.wsdl.com'
TABLE FILE CON02
PRINT *
END
-RUN
-TYPE An error should occur here - but this is intended
-* continue with your second engine statement
ENGINE SOAP SET CONNECTION_ATTRIBUTES
CON02/zzzz,101F722A0C3C0DEA:'https://server.com/abcd/sa/train_core/finance
-RUN

The invalid connection string seem to force WF to loose the prev. connection. If you then change CON02 back to the correct server (but different service instance) it should work again.

Hope this might be of help - worked for me on 7.7.01

Cheers
Linne


WebFOCUS 7.7.03
 
Posts: 67 | Registered: January 05, 2011Report This Post
Member
posted Hide Post
Hi Linnex,

Can you please give me an example of how to go about this.

I have something like this

-SET &ECHO=ALL;
ENGINE SOAP SET CONNECTION_ATTRIBUTES
CON01/zzzz,101F722A0C3C0DEA:'https:///abcdef https:///abcdef_nc/?wsdl'
ENGINE SOAP SET CONNECTION_ATTRIBUTES
CON02/au00,101F722A0C3C0DEA:'https:///abcdef/sa/train_c-
ore/crncy https:// -*
SET ALL=ON
TABLE FILE CREATESESSION
PRINT TOKN
WHERE USRD EQ '***k'
ON TABLE HOLD AS TMP1 FORMAT ALPHA
END
-RUN
-*
-READ TMP1 &TOKEN.A193.
-TYPE &TOKEN
-*

TABLE FILE GET
PRINT
A
B
C
D
E
F
WHERE tokn EQ '&TOKEN'
ON TABLE HOLD AS XMLTMP FORMAT ALPHA
END
-*
-EXIT


I tried with the option what you mentioned me, it gives me the same error.

Pls let me know if you think different.

Thanks,


WF 7.6.4
Windows
HTML/PDF/Excel
 
Posts: 5 | Location: Bangalore | Registered: September 09, 2011Report This Post
Gold member
posted Hide Post
Hi KKRR,

an example is very difficult to produce, as no example WebService comes with WF AFAIK.
Assuming "TABLE FILE CREATESESSION" comes from CON01 and "TABLE FILE GET" from CON02 you could try the following in your code (copied and adjusted - remark: e.g. you have URLS like https:/// with three / which is already invalid):

 

-SET &ECHO=ALL;
ENGINE SOAP SET CONNECTION_ATTRIBUTES
CON01/zzzz,101F722A0C3C0DEA:'https:///abcdef https:///abcdef_nc/?wsdl'

SET ALL=ON
TABLE FILE CREATESESSION
PRINT TOKN
WHERE USRD EQ '***k'
ON TABLE HOLD AS TMP1 FORMAT ALPHA
END
-RUN
-*
-READ TMP1 &TOKEN.A193.
-TYPE &TOKEN
-*

-* here an example invalidating the first Connection, you may also try the same thing with the second:
ENGINE SOAP SET CONNECTION_ATTRIBUTES
CON01/zzzz,101F722A0C3C0DEA:'https://invalid.com https:///invalid.com/?wsdl'
TABLE FILE CREATESESSION
PRINT TOKN
WHERE USRD EQ '***k'
ON TABLE HOLD AS TMP1a FORMAT ALPHA
END
-RUN
-* this will surely fail!! but should not crash

-* continue with the second WS on the same server
ENGINE SOAP SET CONNECTION_ATTRIBUTES
CON02/au00,101F722A0C3C0DEA:'https:///abcdef/sa/train_c-
ore/crncy https:// -*

TABLE FILE GET
PRINT 
A
B
C
D
E
F
WHERE tokn EQ '&TOKEN'
ON TABLE HOLD AS XMLTMP FORMAT ALPHA
END
-*
-EXIT

 


I hope this can help you, though it may of course have nothing to do with the problem you face.

Regards
Linne


WebFOCUS 7.7.03
 
Posts: 67 | Registered: January 05, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Error in consuming webservices

Copyright © 1996-2020 Information Builders