From: "Ravi Singh (UCSD)" <
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
Subject: Re: Array Of Arrays - Cape Generated WSDL with .NET
Date: 21 Dec 2004 14:28:30 -0800
Organization:
http://groups.google.com
Lines: 232
Message-ID: <
[email protected]>
References: <
[email protected]>
<
[email protected]>
NNTP-Posting-Host: 207.158.8.111
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1103668115 1270 127.0.0.1 (21 Dec 2004 22:28:35 GMT)
X-Complaints-To: (e-mail address removed)
NNTP-Posting-Date: Tue, 21 Dec 2004 22:28:35 +0000 (UTC)
In-Reply-To: <
[email protected]>
User-Agent: G2/0.2
Complaints-To: (e-mail address removed)
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=207.158.8.111;
posting-account=EUJs7Q0AAACyTsH6KpSCUAH9IXc46sAi
Path: cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
sfeed1.ip.tiscali.net!news.glorb.com!postnews.google.com!f14g2000cwb.googleg
roups.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet.webservices:27341
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
Below is the code generated
//
// This source code was auto-generated by Microsoft.VSDesigner, Version
1.1.4322.2032.
//
namespace MyTestApplication.MultiArray {
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="MultiArray",
Namespace="
http://localhost/1.0/MultiArray.wsdl")]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(Property))]
public class MultiArray :
System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public MultiArray() {
this.Url =
"
http://bryce.safe-med.com:1999/safemed/MultiArray";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("getProperties",
RequestNamespace="
http://localhost/1.0/MultiArray/binding",
ResponseNamespace="
http://localhost/1.0/MultiArray/binding")]
[return:
System.Xml.Serialization.SoapElementAttribute("properties")]
public PropertyList[] getProperties(Property[] request) {
object[] results = this.Invoke("getProperties", new
object[] {
request});
return ((PropertyList[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BegingetProperties(Property[]
request, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getProperties", new object[] {
request}, callback, asyncState);
}
/// <remarks/>
public PropertyList[] EndgetProperties(System.IAsyncResult
asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((PropertyList[])(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapRpcMethodAttribute("getList",
RequestNamespace="
http://localhost/1.0/MultiArray/binding",
ResponseNamespace="
http://localhost/1.0/MultiArray/binding")]
[return:
System.Xml.Serialization.SoapElementAttribute("response")]
public PropertyList getList(PropertyList request) {
object[] results = this.Invoke("getList", new object[] {
request});
return ((PropertyList)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BegingetList(PropertyList request,
System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("getList", new object[] {
request}, callback, asyncState);
}
/// <remarks/>
public PropertyList EndgetList(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((PropertyList)(results[0]));
}
}
/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("Property",
"
http://localhost/1.0/MultiArray.sm")]
public class Property {
/// <remarks/>
public string key;
/// <remarks/>
public string value;
}
}
--------------------------------------------------------------------AND
here is the
WSDL----------------------------------------------------------------------- -----
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="
http://www.w3.org/2001/XMLSchema"
xmlns:s0="
http://localhost/1.0/MultiArray.sm"
xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="
http://localhost/1.0/MultiArray.wsdl"
xmlns:tm="
http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="
http://localhost/1.0/MultiArray.wsdl"
name="MultiArray" xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/">
<wsdl:documentation
xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/">Ravi Singh. Copyright
2004</wsdl:documentation>
<wsdl:types>
<s:schema xmlns:SM="
http://localhost/1.0/MultiArray.sm"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
targetNamespace="
http://localhost/1.0/MultiArray.sm">
<xsd:complexType name="Property">
<xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="1" name="key"
type="xsd:string" />
<xsd:element minOccurs="1" maxOccurs="1" name="value"
type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PropertyList">
<xsd:complexContent mixed="false">
<xsd:restriction base="soapenc:Array">
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="unbounded"
name="item" type="SM
roperty" />
</xsd:sequence>
<xsd:attribute wsdl:arrayType="SM
roperty[]"
ref="soapenc:arrayType" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Properties">
<xsd:complexContent mixed="false">
<xsd:restriction base="soapenc:Array">
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="unbounded"
name="item" type="SM
ropertyList" />
</xsd:sequence>
<xsd:attribute wsdl:arrayType="SM
ropertyList[]"
ref="soapenc:arrayType" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="PropertyListRequest">
<wsdl
art name="request" type="s0
ropertyList" />
</wsdl:message>
<wsdl:message name="MultiArrayFault">
<wsdl
art name="why" type="s:string" />
</wsdl:message>
<wsdl:message name="PropertiesResponse">
<wsdl
art name="properties" type="s0
roperties" />
</wsdl:message>
<wsdl:message name="PropertyListResponse">
<wsdl
art name="response" type="s0
ropertyList" />
</wsdl:message>
<wsdl
ortType name="MultiArray">
<wsdl
peration name="getProperties">
<wsdl:input message="tns
ropertyListRequest" />
<wsdl
utput message="tns
ropertiesResponse" />
<wsdl:fault name="fault1" message="tns:MultiArrayFault" />
</wsdl
peration>
<wsdl
peration name="getList">
<wsdl:input message="tns
ropertyListRequest" />
<wsdl
utput message="tns
ropertyListResponse" />
<wsdl:fault name="fault1" message="tns:MultiArrayFault" />
</wsdl
peration>
</wsdl
ortType>
<wsdl:binding name="MultiArray" type="tns:MultiArray">
<soap:binding transport="
http://schemas.xmlsoap.org/soap/http"
style="rpc" />
<wsdl
peration name="getProperties">
<soap
peration soapAction="getProperties" />
<wsdl:input>
<soap:body use="encoded"
namespace="
http://localhost/1.0/MultiArray/binding"
encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdl
utput>
<soap:body use="encoded"
namespace="
http://localhost/1.0/MultiArray/binding"
encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl
utput>
<wsdl:fault name="fault1">
<soap:fault use="literal" namespace="" encodingStyle="" />
</wsdl:fault>
</wsdl
peration>
<wsdl
peration name="getList">
<soap
peration soapAction="getList" />
<wsdl:input>
<soap:body use="encoded"
namespace="
http://localhost/1.0/MultiArray/binding"
encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdl
utput>
<soap:body use="encoded"
namespace="
http://localhost/1.0/MultiArray/binding"
encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl
utput>
<wsdl:fault name="fault1">
<soap:fault use="literal" namespace="" encodingStyle="" />
</wsdl:fault>
</wsdl
peration>
</wsdl:binding>
<wsdl:service name="MultiArray">
<wsdl
ort name="MultiArrayPort" binding="tns:MultiArray">
<soap:address location="
http://localhost:1999/safemed/MultiArray"
/>
</wsdl
ort>
</wsdl:service>
</wsdl:definitions>
I really do appreciate your help on this matter.
Thanks
-Ravi.