Link to home
Start Free TrialLog in
Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on

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?
Avatar of Peter Chan
Peter Chan
Flag of Hong Kong image

ASKER

while the web service is under this
http://10.20.3.138/cus_web_services/SF.asmx
ASKER CERTIFIED SOLUTION
Avatar of Daniel Van Der Werken
Daniel Van Der Werken
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial