Assalam Alakum Wa Rahmatullah,

As per my understanding you are looking to do some calculation in your web
service and your values are passed to the web service. If that is correct;
you can follow the following steps;


   - you need a web method in your asmx file; which should be able to
   receive the values which you want to process;
   - this web method should have a proper return type which you want to send
   back to your calling environment.
   - when you will run this web service in debug mode on your local machine;
   it will show you the list of all web methods exposed in your .asmx file (or
   any other interface file if using --- not a good practice)
   - If your web method is getting one parameter; when you will click on the
   method name it will show you the box to input value and will show you the
   result in same screen.
   - Please find the attached sample project in vs 2008 and its a simple web
   service having on web method helloword and it will return the sum of the two
   as integer.


In case i missunderstood your question/ or you have any further question you
can ask the question directly on this email or you can call me at
[EMAIL PROTECTED]

May Allah bless you

On Fri, Sep 26, 2008 at 2:23 PM, Brock <[EMAIL PROTECTED]> wrote:

>
> I had to repost this again as the subject thread was chabged to
> something totally different than my OP. Please provide any feedback on
> this problem I'm working on... Thanks:
>
> Thanks in advance... I have a client .asmx that I feel is constructed
> correctly (anyone know a way to test without wrinting a client?).
> What
> this service is designed to do is to take two values from the
> client's
> textboxes (paper size width and length), multiply those two (on the
> server side's .asmx) and have the result displayed as the paper's
> area
> on a client: e.g 20"x26" = 520"^2. I have a much more complicated
> progect in reality as far as the math goes so I rally need to keep
> the
> calculations on the .asmx side rather than the code behind of
> the .aspx client. Thus the server .asmx is:
>
>    <System.Web.Services.WebMethod()> _
> Public Function Area(ByVal Weight As Integer, _
>      ByVal Length As Integer, ByVal Width As Integer) As Integer
>        Return (Area = (Length * Width))
>    End Function
>
>
> Then on the client side's .aspx I have:
>
>
>    <asp:Button ID="AreaButton" runat="server"
>        <asp:TextBox ID="TextBoxPaperSizeA" runat="server"
> Width="50px"></asp:TextBox>
>        <asp:TextBox ID="TextBoxPaperSizeB" runat="server"
> Width="50px"></asp:TextBox>
>        <asp:Label ID="lblArea" runat="server" style="font-weight:
> 700">Area</asp:Label>
>
>
> With this incomplete code-behind that has me puzzled... any clues?:
>
>
>    Protected Sub AreaButton_Click(ByVal sender As Object, ByVal e As
> System.EventArgs) _
>      Handles AreaButton.Click
>
>
>        Dim wsConvert As New com.Widget.aWebService2
>
>
>        Dim paperArea As Integer
>
>
>        Dim                                       '??????
>
>
>        lblArea.Text = "Paper area = " & _
>
>
>            wsConvert.Area(paperArea).ToString    '??????
>    End Sub
>
>
> >
>


-- 
Oh Allah bestow us Thine blessings and bestow us with what is good for
us as we know nothing what is good for us and what is bad. It's thy
virtue to foresee and it's thy strength to protect us.
Oh Allah Help us to offer our prayers Regulary and bless all of us with your
blessings
Take Care & Allah Hafiz
Iftikhar Qamar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
 <p><a href="http://feeds.feedburner.com/DotNetDevelopment";><img 
src="http://feeds.feedburner.com/~fc/DotNetDevelopment?bg=99CCFF&amp;fg=444444&amp;anim=1";
 height="26" width="88" style="border:0" alt="" /></a></p>
-~----------~----~----~----~------~----~------~--~---

Attachment: TestService.rar
Description: application/download

Reply via email to