473,756 Members | 8,132 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the correct WSDL snippet for this XML SOAP Message?

I have a Perl SOAP Server which returns this SOAP Message when
invoked:

<?xml version="1.0" encoding="UTF-8"?><soap:Envel ope xmlns:xsi="http ://
www.w3.org/2001/XMLSchema-instance" xmlns:soapenc=" http://
schemas.xmlsoap .org/soap/encoding/" xmlns:xsd="http ://www.w3.org/2001/
XMLSchema" soap:encodingSt yle="http://schemas.xmlsoap .org/soap/
encoding/" xmlns:soap="htt p://schemas.xmlsoap .org/soap/
envelope/"><soap:Body><G etActiveUserLis tResponse
xmlns="AMSessio n"><listretv al xsi:type="xsd:s tring">test</
listretval><lis tretval xsi:type="xsd:s tring">again</listretval></
GetActiveUserLi stResponse></soap:Body></soap:Envelope>

The body of the SOAP message returns 1 value (named
GetActiveUserLi stResponse) which is an array of strings, each one
defined inside <listretval>.

What would be the correct WSDL text to tell clients about that this is
the return type?

Just as a helper I have pasted my WSDL file below, as an attempt. The
function is called GetActiveUsersL ist and takes no arguments. Feel
free to ignore it if it isn't relevent to answering the question.

Any help would be really appreciated.

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

<definitions name="AMSession "
targetNamespace ="http://wwwpreview.###D ELETED###.co.uk/
~ptaylor/poc2/AMSession.wsdl"
xmlns="http://schemas.xmlsoap .org/wsdl/"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:tns="http ://wwwpreview.###D ELETED###.co.uk/~ptaylor/poc2/
AMSession.wsdl"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsd1="htt p://wwwpreview.###D ELETED###.co.uk/~ptaylor/
poc2/AMSession.wsdl"
>
<types>
<schema targetNamespace ="http://www.w3.org/2001/XMLSchema">
<complexType name="ArrayOfst ring">
<complexContent >
<restriction base="soapenc:A rray">
<!--
<sequence>
<element name="listretva l"
type="xsd:strin g"
minOccurs="0"
maxOccurs="unbo unded" nillable="true"/>
</sequence-->
<attribute ref="soapenc:ar rayType"
wsdl:arrayType= "xsd:string[]"
xmlns:wsdl="htt p://
schemas.xmlsoap .org/wsdl/"/>
</restriction>
</complexContent>
</complexType>
</schema>
</types>

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

<message name="loginPara ms">
<part name="username" type="xsd:strin g" />
<part name="password" type="xsd:strin g" />
</message>

<message name="sessionKe y">
<part name="sessionke y" type="xsd:strin g" />
</message>

<message name="getVersio nRetval">
<part name="retval" type="xsd:strin g" />
</message>

<message name="GetActive UserListRetval" >
<part name="GetActive UserListRespons e"
type="xsd:Array Ofstring" />
</message>

<portType name="amsession _port_type">
<operation name="Login">
<input message="tns:lo ginParams" />
<output message="tns:se ssionKey" />
</operation>
<operation name="Logout">
<input message="tns:se ssionKey" />
<output message="tns:vo id" />
</operation>
<operation name="GetActive UserList">
<input message="tns:vo id" />
<output message="tns:Ge tActiveUserList Retval" />
</operation>
<operation name="GetServer Version">
<input message="tns:vo id" />
<output message="tns:ge tVersionRetval" />
</operation>
</portType>

<binding name="amsession _binding" type="tns:amses sion_port_type" >
<soap:binding style="rpc" transport="http ://
schemas.xmlsoap .org/soap/http" />

<operation name="Login">
<soap:operati on soapAction="urn :AMSession#Logi n" />
<input>
<soap:body
encodingStyle=" http://schemas.xmlsoap .org/soap/
encoding/"
namespace="urn: AMSession"
use="encoded" />
</input>
<output>
<soap:body
encodingStyle=" http://schemas.xmlsoap .org/soap/
encoding/"
namespace="urn: AMSession"
use="encoded" />
</output>
</operation>

<operation name="Logout">
<soap:operati on soapAction="urn :AMSession#Logo ut" />
<input>
<soap:body
encodingStyle=" http://schemas.xmlsoap .org/soap/
encoding/"
namespace="urn: AMSession"
use="encoded" />
</input>
<output>
<soap:body
encodingStyle=" http://schemas.xmlsoap .org/soap/
encoding/"
namespace="urn: AMSession"
use="encoded" />
</output>
</operation>

<operation name="GetActive UserList">
<soap:operati on soapAction="urn :AMSession#GetA ctiveUserList" /
>
<input>
<soap:body
encodingStyle=" http://schemas.xmlsoap .org/soap/
encoding/"
namespace="urn: AMSession"
use="encoded" />
</input>
<output>
<soap:body
encodingStyle=" http://schemas.xmlsoap .org/soap/
encoding/"
namespace="urn: AMSession"
use="encoded" />
</output>
</operation>
<operation name="GetServer Version">
<soap:operati on soapAction="urn :AMSession#GetS erverVersion" />
<input>
<soap:body
encodingStyle=" http://schemas.xmlsoap .org/soap/
encoding/"
namespace="urn: AMSession"
use="encoded" />
</input>
<output>
<soap:body
encodingStyle=" http://schemas.xmlsoap .org/soap/
encoding/"
namespace="urn: AMSession"
use="encoded" />
</output>
</operation>
</binding>

<service name="SessionSe rvice">
<documentation> Allows users to validate and get session keys
for accessing subsystems</documentation>
<port binding="tns:am session_binding " name="amsession _port">
<soap:address
location="http://wwwpreview.###D ELETED###.co.uk/cgi-
bin/poc2/AMSession.cgi" />
</port>
</service>
</definitions>
Jun 27 '08 #1
0 2697

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

Similar topics

0
1351
by: Craig | last post by:
We have a customer who sent us a WSDL containing the following snippet: <message name="PP6000.Execute"> <part name="Xmlreaderlvcaux" type="xsd:string"/> </message> We imported this into our tool (webMethods) and had problems invoking a call to the other. Installing a sniffer, I noted the following being sent:
5
4735
by: relaxedrob | last post by:
Hi All! I ran the following w3c example through my WSDL parser (SOA Editor from Cape Clear): http://www.w3.org/TR/wsdl#_rpcexample It told me that there were a bunch of erros about no timeInstant or float defined in the xsd namespace: "http://www.w3.org/2000/10/XMLSchema".
0
1566
by: Sonna Nach | last post by:
Hi All, I am writing a doc/lit web services, in which the elements under SOAPBody is unknown. That is, these two message are acceptable. 1. <SOAP-ENV:Body><Tag1>It is ok</Tag1></SOAP-ENV:Body> 2. <SOAP-ENV:Body><Tag2><Tag3>It is also ok</Tag3></Tag2></SOAP-ENV:Body> The question is, if I write the wsdl as below, it defines the
1
2428
by: easoft | last post by:
Hi I have a problem, I have a wsdl file, I try this import(c#) -> error. but this file is good in wsdl to php, and wsdl to java
2
4200
by: Ryan Folstad | last post by:
Hello, I have been provided a wsdl file for a webservice that i would like to call with .net. Everything works fine however if the method throws an exception (fault) no SoapException is thrown and no response is visible from the generated class. 2 questions. 1. From within the wsdl generated class file how do i see the actually soap
0
1691
by: Elhanan | last post by:
hi.. i have a small Web Service which is consumed by dotnet application the webservice is located in 2 places. the first is my local tomcat, and the second is in websphere server. problems is that if i generate a proxy from the wsdl in websphere, i can't get the databean if refer the proxy's url my tomcat's (i simply recive null). this is my tomcats's wsdl:
6
7207
by: Naveed Anwar | last post by:
how a tcp server running on given uri like "soap:tcp://localhost:8080/MyReceiver" will return wsdl. In normal web service case which runs on http returns wsdl by simply appending '?wsdl' in url, but I am confused how a tcp server will do the same. plzzzzzzzzz reply :((!! thanks:) in advance
3
3147
by: GT | last post by:
I have a .NET client that consumes an Axis web service. A change was made recently to the AXIS web service, and ever since then my .NET proxy class has been throwing an InvalidCastException. The proxy class was auto-generated by Visual Studio from WSDL provided by people who provide the Axis service, and I have not modified it (except to add code for a build that includes a SOAP trace). The only difference I see in the messages is that...
0
1418
by: Andrew Brook | last post by:
Hi everyone, I've been going through an article i found on MSDN (http://msdn.microsoft.com/msdnmag/issues/02/12/WebServicesDesign/) concerning designing the messages for a webservice in a schema (xsd) first and then writing a .wsdl file that imports the schema. Following this i have used wsdl.exe (that comes with framework 1.1) to generate an abstract class which my webservice inherits from. All has gone well with this until i...
0
10040
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9873
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9846
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.