Soap API XML 使用 nusoap 的问题?

Soap API XML issue using nusoap?

我在 php.Everything 中使用 nusoap 创建了 SOAP API,工作正常。我有一个文件 service.php 当我点击这个文件时,我得到这样的文档。

如果我打这个 url:

Other Screenshot

我得到了不同类型的 xml 文档。

为什么会如此不同?

代码 service.php

<?php
require_once "lib/nusoap.php";
require_once "functions.php";
$server=new nusoap_server();
$server->configureWSDL("SOAP", "urn:SOAP");
$server->register("addRecord",
        array("fname"=>"xsd:string","lname"=>"xsd:string","buis_name"=>"xsd:string","phone_num"=>"xsd:int","city"=>"xsd:string","state"=>"xsd:string",           "zipcode"=>"xsd:int","email"=>"xsd:string"
        ,"w_store"=>"xsd:string","con_store"=>"xsd:string","ind_store"=>"xsd:string","gas_staion"=>"xsd:string","other"=>"xsd:string"),
        array("return" => "xsd:string"),
        "urn:SOAP",
       "urn:SOAPn#addRecord",
       "rpc",
       "encoded",
      "Add user information to database");
 $server->register("checkLogin",
        array("email"=>"xsd:string","password"=>"xsd:string"),
        array("return" => "xsd:string"),
        "urn:SOAP",
       "urn:SOAP#checkLogin",
       "rpc",
       "encoded",
      "Verify UserLogin"); 
$HTTP_RAW_POST_DATA=isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
$server->service($HTTP_RAW_POST_DATA);


?> 

每当您从 client.Then 发送 soap 请求时打印所有请求 & response.Then 您将获得所需的结果。