473,395 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Handwriting WSDL Files


Hi guys. I'm trying to write a SOAP server in Perl and it seems I need
to handwrite the WSDL files. The good news is, I've already done some
samples and have it working but I'm trying to grow these samples into
something more complex and I'm having a little difficulty.

I have a SOAP Service, with a function which returns an array of type
"TreeObject". The hope is that the client can then invoke functions,
specifically on that instance of a TreeObject, such as "getId",
"getName", etc and what ever else I fancy but I'm having difficulties
writing a WSDL fileto do this.

This is basically what I have written so far:

<?xml version="1.0" encoding="UTF-8"?>

<definitions name="Customer"
targetNamespace="http://wwwpreview.#deleted#.co.uk/~ptaylor/
Customer.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://wwwpreview.#deleted#.co.uk/~ptaylor/Customer.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" >

<message name="StringParam">
<part name="retval" type="xsd:string" />
</message>

<message name="void">
</message>

<message name="getCustomersRetval">
<part name="retval" type="xsd:string" />
</message>

<portType name="customer_port_type">
<operation name="getCustomers">
<input message="tns:void" />
<output message="tns:getCustomersRetval" />
</operation>
</portType>

<binding name="customer_binding" type="tns:customer_port_type">

<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/
http" />

<operation name="getCustomers">
<soap:operation soapAction="urn:Customer#getCustomers" />
<input>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:Customer"
use="encoded" />
</input>
<output>
<soap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:Customer"
use="encoded" />

</output>
</operation>
</binding>

<service name="CustomerService">
<documentation>Service provides access to and from server side
customer functions</documentation>
<port binding="tns:customer_binding" name="customer_port">
<soap:address
location="http://wwwpreview.#deleted#.co.uk/cgi-bin/poc/
Customer.cgi" />
</port>
</service>

</definitions>

but I would like to say that getCustomers returns an array of
"TreeObject", and that a TreeObject has functions such as getId,
getName, setId, setName etc. (It currently returns a string)

I'd really appreciate any help I can get.

Thank you

Phillip Taylor
Jun 27 '08 #1
0 1180

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Howard | last post by:
I am having a devil of a time getting WSDL.EXE to consume a WSDL file that describes a web service (known as AXL) on a Cisco phone switch. The WSDL file references four schemas and (I believe) two...
0
by: Oleg Ogurok | last post by:
Hi all, One of my developers is having this problem. His asmx and asmx.cs files are good. However, when he launches the web service page in IE, he's not getting the list of web methods. His WSDL...
9
by: Nick Locke | last post by:
I have a fairly simple structure: - Simple Types in an XSD - Complex Types (one file) in another XSD, importing the Simple Types - More Complex Types (second file) in another XSD, again...
4
by: Ian Dickinson | last post by:
Hi My name is Ian Dickinson and I am a professional software developer working in the UK and reasonably familiar with Python. However a friend of mine who is a special educational needs teacher...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.