Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

WebServices (c#,asp.net)

  Asked By: Dale    Date: Mar 14    Category: Asp.net    Views: 1154
  

I am trying to create n consume a webservice.

-- created a /test/math.asmx file.
-- then used wsdl.exe /out:math.cs http://localhost/test/math.asmx
-- then used
csc.exe /t:library /out:math.dll math.cs /r:System.dll,System.Web.dll

now when i tried in math.aspx, <%@import namespace="math" %>, which
is givin an error------
"The type or namespace name 'math' could not be found (are you
missing a using directive or an assembly reference?)"

1)What should i do to consume the service.
2)Is it that the service provider provides .asmx file and the other 2
steps wsdl.exe and csc.exe should be done by the consumer?
3)how can a asp.net page consume a webservice not written in asp.net

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on WebServices (c#,asp.net) Or get search suggestion and latest updates.




Tagged: