|
Thank you. This cleared up my confusion.
|
|
|
|
|
You are welcome. Vote if it helped.
|
|
|
|
|
Sorry if anyone gets annoyed by this question please don't mind i am just asking how can i provide good articles what should be the way of it & in which manner.
Please Suggest me something.
Thanks.
|
|
|
|
|
|
|
The first thing that you need to note is that a C# question answer forum.
This question is posted in the wrong forum.
Thus you should remember to write a well-formatted article that is properly categorized in its rightful place and has enough material to be classified as an article.
If you feel your article is too small or does not have enough material, write a tip / trick instead of an article.
|
|
|
|
|
here is my sample code
webservice code
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(Name = "TestService", ConformsTo = WsiProfiles.BasicProfile1_1)]
public class WebService : System.Web.Services.WebService {
// Add a member variable of the type deriving from SoapHeader.
public MyHeader timeStamp;
// Apply a SoapHeader attribute.
[WebMethod(Description = "A method that requires authentication")]
[SoapDocumentMethod(Binding = "TestService")]
[SoapHeader("timeStamp", Direction = SoapHeaderDirection.In)]
public string HelloWorld()
{
if (timeStamp == null)
timeStamp = new MyHeader();
timeStamp.MustUnderstand = true;
timeStamp.Expires = 60000;
timeStamp.Created = DateTime.UtcNow;
return "Hello World";
}
}
here is the client code
localhost.MyHeader header = new localhost.MyHeader();
// Populate the values of the SOAP header.
header.Expires = 60000;
header.Created = DateTime.UtcNow;
// Create a new instance of the proxy class.
localhost.WebService proxy = new localhost.WebService();
// Add the MyHeader SOAP header to the SOAP request.
proxy.MyHeaderValue = header;
// Call the method on the proxy class that communicates
// with your XML Web service method.
string results = proxy.HelloWorld();
i am getting result as "Hello World"
But i want it in format as
?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-; xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<MyHeader xmlns="http://tempuri.org/">
<Created>dateTime</Created>
<Expires>long</Expires>
</MyHeader>
</soap:Header>
<soap:Body>
<HelloWorld xmlns="http://tempuri.org/"
</soap:Body>
</soap:Envelope >
|
|
|
|
|
Don't cross post. Pick one forum and stick with it.
|
|
|
|
|
|
|
You're calling the service method. That means that you want to get the result of the service method. SOAP is a transport mechanism, it's as irrelevant to the service call as whether you use copper or fibre-optic cable to transfer the 1s and 0s.
If you want to see the transport XML for debugging purposes, point a browser at http://localhost/yourservice.svc. If you want to actually pass XML from the service to service clients, you need to return XML from your service methods.
|
|
|
|
|
hi dear
i draw a circle c# with GDI+ function
i set timer on my form
how can i move this circle in my form with this timer
???
thx
|
|
|
|
|
Create a function that you'll call with Invoke via a delegate .
That function (if called via invoke) should have access to the UI thread to update (redraw) the circle.
V.
|
|
|
|
|
can you write this code for me??
thx
![Rose | [Rose]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
Sure !
I charge about 400 € / day.
Does that sound reasonable to you?
V.
|
|
|
|
|
OOpsss ....
y are joking ?
this is jus sample ...
good luck !
|
|
|
|
|
yes I was joking, but I will not give you code. Please read the guidelines for posting in a forum.
V.
|
|
|
|
|
sorry
i dont know anything about rules !!
can u give me a test for this program ??
|
|
|
|
|
The answer to that is: no.
Here are the rules, they're on top of this forum:
For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside
tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
V.
|
|
|
|
|
thx so muhc![Rose | [Rose]](https://codeproject.freetls.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
This is Vishal Post at 2.01pm
|
|
|
|
|
|
|
thx dear
i start working on !!
![Rose | [Rose]](https://codeproject.freetls.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
Dear Friends,
I need help in my project, please kindly help me out..
I am having 2 application
Application 1:
database( MY SQL ) which will updating as per events occurring in it.
Application 2:
Database ( SQL SERVER) which is working in co-ordination with its hardware.
now i want to take data from 1 application and push it in application 2.. and from application 2 i will be sending request to its hardware.
Doubts i have
1. How to keep track of latest update in application 1. ( data is continuously getting updated).
So for this in my application i will using connection and other classes to connect it. but how to keep it running( using windows services / Timer or what ?) as whenever there is new entry in the database of 1st application i want to retrieve it in my application.
so that i can send it to the second application.
Thanks in advance.
|
|
|
|