473,771 Members | 2,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Soap Envelope not what expected.

I am trying to create a proxy and soap from a sample file and it won't
create multiple dimensional arrays for some reason. I am getting the same
results if "Line" is not a Multidimensiona l array. Why is "Line" not there?

I have the following Class that I compile and put into my Bin directory as:

vbc /t:library NewsItem.vb
copy NewsItem.dll bin

*************** *************** *******
Namespace myComponents

Public Class NewsItem
Public Headline As String
Public Posted As Date
Public URL As String
Public Line As String ()()
End Class

End Namespace
*************** *************** ************

I then have an .asmx file that uses this class:

*************** *************** *************** *********
<%@ WebService Class="BetterNe wsService" %>

Imports System
Imports System.Web.Serv ices
Imports myComponents

<WebService( Namespace:="htt p://yourdomain.com/webservices" )> _
Public Class BetterNewsServi ce : Inherits WebService

<WebMethod( CacheDuration:= 30 )> Public Function GetNews() As NewsItem()
Dim arrNews( 2 ) As NewsItem

arrNews( 0 ) = New NewsItem
arrNews( 0 ).Headline = "Visit superexpert.com for ASP.NET News!"
arrNews( 0 ).Posted = #12/12/2002#
arrNews( 0 ).URL = "http://www.superexpert .com"

arrNews( 1 ) = New NewsItem
arrNews( 1 ).Headline = "Visit ASPWorkshops for ASP.NET Training!"
arrNews( 1 ).Posted = #2/1/2002#
arrNews( 1 ).URL = "http://www.AspWorkshop s.com"

arrNews( 2 ) = New NewsItem
arrNews( 2 ).Headline = "Visit superexpertCont rols.com for ASP.NET
Controls!"
arrNews( 2 ).Posted = #2/14/2002#
arrNews( 2 ).URL = "http://www.superexpert Controls.com"

Return arrNews
End Function

End Class
*************** *************** *************** *********
This compiles fine as:

wsdl /l:vb http://localhost/hello/BetterNewsService.asmx?WSDL

The soap envelop is:
*************** *************** *************** **********
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelop e xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:soap="htt p://schemas.xmlsoap .org/soap/envelope/">
<soap:Body>
<GetNewsRespons e xmlns="http://yourdomain.com/webservices">
<GetNewsResul t>
<NewsItem>
<Headline>strin g</Headline>
<Posted>dateTim e</Posted>
<URL>string</URL>
</NewsItem>
<NewsItem>
<Headline>strin g</Headline>
<Posted>dateTim e</Posted>
<URL>string</URL>
</NewsItem>
</GetNewsResult>
</GetNewsResponse >
</soap:Body>
</soap:Envelope>
*************** *************** *************** ************

The HTTP Post is:
*************** *************** *************** **************
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfNewsIte m xmlns="http://yourdomain.com/webservices">
<NewsItem>
<Headline>strin g</Headline>
<Posted>dateTim e</Posted>
<URL>string</URL>
</NewsItem>
<NewsItem>
<Headline>strin g</Headline>
<Posted>dateTim e</Posted>
<URL>string</URL>
</NewsItem>
</ArrayOfNewsItem >
*************** *************** *************** ***************

Now if I added into the asmx file something like:

arrNews( 0 ).Line(1)(1) = "a test"

I get an error saying that there is no Line in the Class?????

What happened to it?

Thanks,

Tom


Mar 29 '06 #1
0 1240

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

Similar topics

2
3334
by: Cantor | last post by:
Hello everyone :) I am writing some dotNET code to "consume" a web service written in PHP. So far I have been getting some error messages and PHP seems to place HTML text in front of the XML message. dotNET doesn't expect the XML and then it chokes. This is what I get. The <br> tag from namespace is not expected. Line 1, position 2. I was able to capture the data going through the network and I've got
0
2427
by: Doug Farrell | last post by:
Hi everyone, I'm trying to build a program to interface to a SOAP/XML interface provided by one of our vendors. This interface is built with MS SOAP Toolkit 3.0, so I'm guessig they are running a .NET server. I'm trying to build my program with Python as I've got to deploy on both Linux and Sun/Solaris platforms. I'm developing on RedHat Linux 8.0 using Python 2.2.1 and SOAPpy 0.10.2. My experimental program almost works, but it isn't...
7
3063
by: Eric Osman | last post by:
If my question sounds ill-formed, please cut me some slack as I'm just getting started with this part of the code. We're trying to do an axis soap interface, that is, talk to a site that already has a defined "dtd" . I've already seen some java examples that use SOAP and AXIS to do the communication. However, we'd like to communicate from client-side javascript instead of
0
2326
by: Hans Kesting | last post by:
Hi, I'm trying to create a client for some webservice. BUT I have only limited information: * no WSDL available ("expected Q1-06") (it seems to be written in Java) * I don't have access (yet) to the real webservice * I *do* have example SOAP messages What I'm trying to do is to build a dummy webservice, which should accept (and respond with) the same SOAP messages. Then I can build my code
0
5608
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE SERVER================ <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
6771
by: furrypop | last post by:
Hi, I'm trying to get the Perl SOAP::Lite examples to work on a Windows PC, running Apache 2.2.4. Apache is definitely serving CGI scripts, as I've tested a dummy Hello World thing. I'm also definitely getting a hit when I use a browser to get to my hibye.cgi server (well, a blank page rather than a 404). However, when I run my hibye.pl client, I receive a 503 Service Unavailable at H:\scripts\hibye.pl line 25. It works when I...
3
6397
by: Joshua Beall | last post by:
Hi All, I've got the following PHP code: $service = new SoapClient("http://www.webservicex.net/length.asmx? wsdl"); $result = $service->ChangeLengthUnit(10,"Inches","Centimeters"); var_dump($result);
2
2362
by: monsalvo | last post by:
What's so wrong with my code? This line is part of a VBScript soap client part of a DTS wich is functional in a 90 percent. strText = .responseXML.selectSingleNode("//" login "loginReturn") Produces the following error Char: 46 Error: Expeted )
0
2251
by: vigneshrao | last post by:
Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data. The problem I have is the first record gets processed fine where as the second record always; reason being the EAI expects it to be a seperate call Though I am creating/reseting a new service everytime within the foreach loop the data seems to be...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
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
10103
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
7460
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
6713
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
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
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
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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.