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?
C#Microsoft DevelopmentASP.NET

Avatar of undefined
Last Comment
Daniel Van Der Werken
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo