Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to call WS with complex type using fox pro
Message
From
22/02/2008 15:56:26
 
 
To
22/02/2008 15:15:33
General information
Forum:
Visual FoxPro
Category:
Web Services
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
01295493
Message ID:
01295508
Views:
12
I don't think you can do it from VFP as the complex type isn't supported. You could try using a COM-enabled WCF client. See http://www.craigberntson.com/Articles/kb020.pdf

>Hi all,
>
>I'm a VFPro rookie.
>I need to call a WS (axis engine based), that has an array.
>For calling the array it is used a Documentquerybean class.
>
>If we generate a proxy for .net the class specification is there and the call is easy to do using the following code:
>DocumentQueryBean d = new DocumentQueryBean();
>d.columnList = new string[] {"external_id","label"}
>object[] columns = new object[2];
>d.data = new object[3][];
>d.data[0] = new object[2];
>d.data[0][0] = "121";
>d.data[0][1] = "label121";
>d.data[1] = new object[2];
>d.data[1][0] = "122";
>d.data[1][1] = "label122";
>d.data[2] = new object[2];
>d.data[2][0]= "123";
>d.data[2][1]= "label123";
>mapitem[] errors = es.insertOperatorQuery(user,pwd,d,"2","2008-02-21");
>XmlDocument _doc = XmlSerializerHelper.SerializeToXml(errors);
>Response _response = ResponseBuilder.BuildResponseFromXml(_doc);
>
>But in FoxPro I can't generate this proxy! How can I do it?!?!?!?!?
>
>The proxy has too much info but a part of it is DocumentQueryBean info:
>"
>[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
> [System.SerializableAttribute()]
> [System.Diagnostics.DebuggerStepThroughAttribute()]
> [System.ComponentModel.DesignerCategoryAttribute("code")]
> [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://rpc.xml.coldfusion")]
> public partial class DocumentQueryBean
> {
>
> private string[] columnListField;
>
> private object[][] dataField;
>
> ///
> [System.Xml.Serialization.XmlArrayAttribute(IsNullable = true)]
> [System.Xml.Serialization.XmlArrayItemAttribute("item", IsNullable = false)]
> public string[] columnList
> {
> get
> {
> return this.columnListField;
> }
> set
> {
> this.columnListField = value;
> }
> }
>
> ///
> [System.Xml.Serialization.XmlArrayAttribute(IsNullable = true)]
> [System.Xml.Serialization.XmlArrayItemAttribute("item", IsNullable = false)]
> [System.Xml.Serialization.XmlArrayItemAttribute("item", IsNullable = false, NestingLevel = 1)]
> public object[][] data
> {
> get
> {
> return this.dataField;
> }
> set
> {
> this.dataField = value;
> }
> }
> }
>"
>I would really apreciate some help from you.
>Thanks in advance!
>Bruno
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform