Link to home
Create AccountLog in
ASP.NET

ASP.NET

--

Questions

--

Followers

Top Experts

Avatar of Peter Chan
Peter Chan🇭🇰

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?

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Peter ChanPeter Chan🇭🇰

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 WerkenDaniel Van Der Werken🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

ASP.NET

ASP.NET

--

Questions

--

Followers

Top Experts

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