如何创建基本SOAP请求页面

时间:2014-10-29 11:06:45

标签: javascript html soap

我需要创建一个基本的html页面来捕获一些用户信息,名字,姓氏,价值和电子邮件地址以及商品说明等。 然后需要将此作为基本SOAP请求发送到example.com(如下)

这将是一个简单的注册表单。用户将手动输入数据并在提交时将信息传递给" http://www.example.com/"。我想知道,如何创建一个HTML页面来完成这项工作。

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SubmitNewApplicationShort xmlns="http://www.example.com/">
  <newApplicationDataShort>
    <UserCredentials>
      <LoginName>xxxxx_icet1</LoginName>
      <Password>XXXXXXX</Password>
    </UserCredentials>
    <ProposalShort>
      <ClientReference>3692</ClientReference>
      <CashPrice>1700</CashPrice>
    </ProposalShort>
    <Goods Type="HI0">
      <Description>boiler</Description>
      <Quantity>1</Quantity>
    </Goods>
    <Customer>
      <Title>MR</Title>
      <Forename>TEST</Forename>
      <Initial xsi:nil="true" />
      <Surname>SIX</Surname>
      <EmailAddress>xxxxxxx@xxxxxx.com</EmailAddress>
    </Customer>
    <Address>
      <HouseNumber />
      <HouseName />
      <Flat />
      <Street />
      <District />
      <Town />
      <County />
      <Postcode />
    </Address>
  </newApplicationDataShort>
</SubmitNewApplicationShort>
 </s:Body>
 </s:Envelope>

0 个答案:

没有答案