|
Can a java application call a WCF service?If Yes can any one help me how to do it?
I have created a WCF service in .net .
I have simple java application.
I want to use WCF service in Java application..
|
|
|
|
|
It should be possible based on how you are exposing the WCF service. If you expose it over HTTP, you should be able to consume it from any application/any platform.
|
|
|
|
|
Thank you for replying.
But I want to know how to read WCF service in Java application.
|
|
|
|
|
When you expose your WCF service over HTTP you will be able to extract WSDL and Reference map for your service. You can use it in your JAVA application just like any other classic web service's WSDL and configure it to consume the same.
My experience is close to 0 on JAVA so I'm not in a position to help you with the details.
|
|
|
|
|
Make your WCF service able to return a wsdl and confirm that on the Java application side.
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 8:50am.
|
|
|
|
|
Hi!
I have a Gridview that contains a TextBox that displays a Date and a Button. How can I get the Date from the TextBox and Assign it to a DateTime Property so that I can pass that to another function?
Illegal Operation
|
|
|
|
|
You need to use Casting.
Get that textbox by FindControl() method of GridView, cast it, you'll get its text property.
|
|
|
|
|
I have fixed the issue.
Basically I changed the DateTime Property to static.
Thanks for the reply's...
Illegal Operation
|
|
|
|
|
Its good that you fixed the issue.
But IMO, static variables are not too good in web applications. If possible, try to use something else, maybe a Session Variable.
|
|
|
|
|
Thanks for that tip. I will look into using session variables in the future. I did add this variable to my Data Access Layer so its not in my web application at the moment.
Illegal Operation
|
|
|
|
|
I have an ASP.Net Page using C# and I am getting this error:
No value given for one or more required parameters.
Here is my code. Any help would be appreciated.
<asp:HiddenField ID="hidfld1" runat="server" />
<br />
<asp:HiddenField ID="hidfld2" runat="server" />
<br />
<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/App_Data/mail.mdb"
DeleteCommand="DELETE FROM Email WHERE ((Email = ?) OR (Email IS NULL AND ? IS NULL))"
InsertCommand="INSERT INTO Email (Email) VALUES (?)"
SelectCommand="SELECT Email FROM Email WHERE (Email = ?)">
<SelectParameters>
<asp:Parameter Name="Email" Type="String" />
</SelectParameters>
<DeleteParameters>
<asp:Parameter Name="Email" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="Email" Type="String" />
</InsertParameters>
</asp:AccessDataSource>
Code:
protected void Page_Load(object sender, EventArgs e)
{
hidfld1.Value = Request.QueryString["Email"].ToString();
hidfld2.Value = Request.QueryString["ACT"].ToString();
if (hidfld2.Value == "S") AddRec();
else DelRec();
}
protected void AddRec()
{
try
{
AccessDataSource1.InsertParameters["Email"].DefaultValue = hidfld1.Value;
AccessDataSource1.Insert();
}
catch (Exception ex)
{
lblError.Text = ex.Message;
}
}
protected void DelRec()
{
try
{
AccessDataSource1.DeleteParameters["Email"].DefaultValue = hidfld1.Value.ToString();
AccessDataSource1.Delete();
}
catch (Exception ex)
{
lblError.Text = ex.Message;
}
}
}
|
|
|
|
|
|
Hi all
I use two RequiredFilledValidator and a button in LoginPage .
When i press the button an error occured that the message is:
"Microsoft JScript runtime error: 'WebForm_PostBackOptions' is undefined"
What is your ideas about this problem?
|
|
|
|
|
|
Ive created a pretty big ASP.NET app which does financial calculations and the like. It worked fine all the way through development. What I failed to try during dev though was what would happen with more than one set of values. It breaks down to a treacle like speed. Now up till now, the dedicated server that I tested it on, ran it MUCH faster than running it in VS2008. But then it all changed, and now its slow as hell. Its a set of 5 AJAX update panels which each run according to what you press. Now as far as I can tell, the code is executing pretty speedily, but what slows it all down is the transfer of that to the client browser(maybe why it runs faster locally?).
So, is it possible that every time one of my updatepanels(all set to conditional with children as triggers) is updating, that it is also resending all the data in the others?
Thanks.
P.S. I know this is very vague, but theres far too many factors to be able to post one block of code :-/
Strive to be humble enough to take advice, and confident enough to do something about it.
|
|
|
|
|
If you are using the Microsoft AJAX UpdatePanel, or any derived from it, then yes, it is sending far to much data in the postback. Although only the one portion of the page is being refreshed, it still follows the typical page lifecycle, to a certain extent at least.
You can try using PageMethods or other more direct Ajax methods.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I think if you use updatepanel everything else in the page will need to send back to the server doesn't matter they are in the same update panel or not. use web service to refresh data will be better?
Still a newbie.. learning
|
|
|
|
|
|
Hi,
I am trying to add a validator callout extender programtically within a control class.
The textbox and submit button are showing, but no callout appears when the textbox is left blank.
Any ideas?
Thanks, James
//add textbox
TextBox textbox = new TextBox();
textbox.Text = (string)value;
textbox.ID = "NameField";
Controls.add(textbox);
//add required field validator to textbox
RequiredFieldValidator req = new RequiredFieldValidator();
req.ErrorMessage = "Please enter a name";
req.ControlToValidate = textbox.ClientID;
req.Display= ValidatorDisplay.None;
req.ID = Guid.NewGuid().ToString();
Controls.Add(req);
//add update panel
UpdatePanel updatePanel = new UpdatePanel();
updatePanel.UpdateMode = UpdatePanelUpdateMode.Conditional;
//add submit button into update panel
Button button = new Button();
button.Text = "Save";
button.ID = "SubmitButton";
updatePanel.ContentTemplateContainer.Controls.Add(button);
// add trigger into updatepanel that is fired from button
AsyncPostBackTrigger trigger = new AsyncPostBackTrigger();
trigger.ControlID = button.ClientID;
updatePanel.Triggers.Add(trigger);
Controls.Add(updatePanel);
|
|
|
|
|
Hi
I have gridview, which compares a value from a field in the gridview. If in the comparison, the values are not the same, it inserts a new row along with a label, i.e. it makes a group. All this works fine. Now, I need to show the number of rows for group. I have achieved part of goal by creating a hashtable.
The problem I have is that a new row can only be inserted when a new group has been identified in the comparison, therefore I am struggling to find a way to add my count, because the insertion comes before the count has completed. Is there away in which after the row has been added and all of the rows that belong to that group have been identified to then to go back to that header and add to the total before go onto the next group?
I have had ago but I am struggling on this and in desparate need of expert help?
|
|
|
|
|
Hi,
How to open document in asp.net ??
document fetch from server location and i want edit tat document and update it.
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
|
|
|
|
|
You can only create a link to the document and allow the registered application for the document type to open. ASP.NET itself can't be used to directly edit the document.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
then any alternatice solution is there???
Please help me
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
|
|
|
|
|
Alterative? Yes, you could give up this career.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hello,
I am using the Visual Studio Web Developer 2008 for programming in VB.NET and i have some problems:
1. Sometimes it stops highlighting the text.
2. Is there an option to refresh the Intellisense of the page?
3. When i am including files to my page, its say variable undefined.
Global information:
* I am not using the *.cs files.
* I am not using any .net button (example: asp:input...)
* I am using the include file. (example: include virtual=...)
If someone have any idea on how to fix this problem it will help me.
If not, Maby someone can suggest another program (with Intellisense)?
Thanks,
Roy Shoa.
|
|
|
|