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     WebFocus through .NET

Read-Only Read-Only Topic
Go
Search
Notify
Tools
WebFocus through .NET
 Login/Join
 
Member
posted
Hi
I am in the process of coding a .NET C# application. It is a Windows application.
Can I invoke a WebFocus report from it.
When it encounters the code that tries to logon to WebFocus I am getting this error message

"Client found response content type of 'text/html; "
The code is as follows

WebReference.WebFocus wfs = new WebReference.WebFocus();
WebReference.LogOnInfo logon = new WebReference.LogOnInfo();
WebReference.WebFocusReturn ret = new WindowsApplication2.WebReference.WebFocusReturn();
WebReference.FexInfo report = new WindowsApplication2.WebReference.FexInfo();
WebReference.ValuesArrayEntry parm1 = new WindowsApplication2.WebReference.ValuesArrayEntry();

string newOutput = "";
string tempFile = "";

string[] parms = new string[2];

parm1.name = "CASETYPE";
parm1.val = "EXTERNAL";

try
{
report.server = "EDASERVE";
report.app = "ic001w03_cases15daysold";
report.name = "ic001w03_cases15daysold";


logon = wfs.WebFocusLogOn("a76243","ramesh21","","");
ret = wfs.WebFocusRunFex(logon, report);

newOutput = ret.output;

if (ret.mime == "application/vnd.ms-excel" )
tempFile = "c:\\temp\\cases_out.xls";
else
tempFile = "c:\\temp\\cases_out.pdf";


wfs.WebFocusRunFex(logon,report);
}
catch (Exception ex)
{
System.Diagnostics.Debug.Write(ex.ToString());
throw ex;
}

Any help will be appreciated


rs
 
Posts: 11 | Location: Raleigh, North Carolina | Registered: November 21, 2005Report This Post
Platinum Member
posted Hide Post
this is .net code in vb change the synatx for c#.

Sub SubmitBtn_Click(sender As Object, e As EventArgs)
'Message.Text = "First ASPNET Page "
Dim webFocus As New WebFocus
Dim logon As New LogOnInfo
Dim returnVal As New WebFocusReturn
Dim Report As New FexInfo
Dim newOutput As String =""
Dim tempfile As String


logon = webFocus.WebFocusLogOn("","","","")
Report.Server = "EDASERVE"
Report.app = "rv_allocation"
Report.name = "TestWSDL"

returnVal = webFocus.WebFocusRunFex(logon, Report)
'Message.text = returnval.output

newOutput = returnVal.output

Message.text = newOutput


WF 7.6.2/ OS WIN2003.
DM 7.6.2
 
Posts: 103 | Registered: September 08, 2006Report This Post
Member
posted Hide Post
Thanks lot Viral.
After making changes to my code and when I run
I am getting this message
"Client found reponse content type of 'text/html; charset=iso-8859-1', but expected text/xml "
at this line
logon = webFocus.WebFocusLogOn("","","","")
I am getting this message even if I supply UserId and Password.

Also please note that mine is a Windows Application. Does it have to be a Web App


rs
 
Posts: 11 | Location: Raleigh, North Carolina | Registered: November 21, 2005Report 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     WebFocus through .NET

Copyright © 1996-2020 Information Builders