dsm0688 2011-09-22 16:38
浏览 28

RPG消耗的PHP SOAP Web服务是否需要WSDL?

I have a very basic, beginners PHP web service:

<?php

function EchoText($text){
    return "ECHO: ".$text;
}

$server = new SoapServer(null,
                         array('uri' => "urn://tyler/res"));
$server->addFunction('EchoText');
$server->handle();

?>

I understand some basics about WSDL's... that they "explain" how to access a web service, what functions it has, what parameters that function contains, and what the return value could be.

Question 1) do I need to create a WSDL for an RPG program which will call my web service?

Question 2) if yes to #1 -> do I need to manually do this by creating a new .xml document?

Question 3) if yes to #2 -> could someone provide me a sample WSDL for such a simple web service (my example above)? I could then build my code and expand off the example.


Thanks in advance for any help, suggestions or links!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 BP神经网络控制倒立摆
    • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
    • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
    • ¥30 Unity接入微信SDK 无法开启摄像头
    • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
    • ¥20 cad图纸,chx-3六轴码垛机器人
    • ¥15 移动摄像头专网需要解vlan
    • ¥20 access多表提取相同字段数据并合并
    • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
    • ¥20 Java-Oj-桌布的计算