Quoting Aditya Rao <aditya83@xxxxxxxxx>:
> i am working on a project to implement Mobile Message Access
> Protocol. MMAP is essentially based on SOAP framework . my objective
> is to send messages from a client program running on a web server to a
> MMAP server. for this i found some .xsd files. can i use these files
> as wsdl files. if not how do i use them in order to develope the
> service. my application requires me to send messages defined by the
> MMAP format. the format has specified the messages (request/response
> messages) but i do not know how to use them in PHP. in short i want to
> develope a client-server in php which will enable me to send messages
> between them. can anyone help me out.
nusoap can either generate a wsdl by itself, or use a ready-made
wsdl file. It may be possible that you need a wsdl with certain
characteristics. What you've got (.xsd) are probably Schema files,
which are similar in purpose to DTD. They define the rules to be
respected when writing an XML document. WSDL documents are XML,
and apparently yours will need to respect the specs in those .xsd
files.
As to how you can write that WSDL... writing it by hand can be
tedious. Since you say MMAP is a subset of SOAP, I'm guessing
those specs take a regular WSDL and add some constrains. Perhaps
you need certain method and/or parameter names.
As a wild guess, you can try: reading the .xsd or the MMAP
specification and see what those special method/param names must
be; and then try to have nusoap generate the wsdl for you
using those names. You may just get lucky. There's a good
starter tutorial here:
http://www.scottnichol.com/soap.htm
--
Ciprian Popovici
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
|