Call Web service

Hi,
Within VS project

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApp1._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>

Open in new window

how can I refer to web service below
按一下這裡以取得完整的作業清單。

CO_ValidateNum

測試
測試表單只適用於來自本機電腦的要求。 
SOAP 1.1
下列是 SOAP 1.1 要求與回應的範例。預留位置顯示之處必須代入實際的值。

POST /vango_web_services/CO.asmx HTTP/1.1
Host: 10.2.3.108
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://CO-express.com/CO_ValidateNum"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CO_ValidateNum xmlns="http://CO-express.com/">
      <storeDescKey>string</storeDescKey>
      <Num_no>string</Num_no>
      <storeRcvTime>dateTime</storeRcvTime>
    </CO_ValidateNum>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CO_ValidateNumResponse xmlns="http://CO-express.com/">
      <CO_ValidateNumResult>
        <storeDescKey>string</storeDescKey>
        <Num_no>string</Num_no>
        <recordIsValid>boolean</recordIsValid>
        <failureReason>string</failureReason>
      </CO_ValidateNumResult>
    </CO_ValidateNumResponse>
  </soap:Body>
</soap:Envelope>

Open in new window

to call the above?
LVL 12
HuaMin ChenProblem resolverAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HuaMin ChenProblem resolverAuthor Commented:
while the web service is under this
http://10.20.3.138/cus_web_services/SF.asmx
0
Daniel Van Der WerkenIndependent ConsultantCommented:
Right-click on the project and select Add Service Reverence.
Add Service Reference
Then use the URL you referenced in the box as shown and give it a usable name also as shown.

URL for Reference
When complete, you simply reference this service reference just like any other reference.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.