bsousa 0 Newbie Poster

Hi all,

I'm trying to consume a Service called GetMemberPointsAvailable using VB.NET. Here is the wsdl:

This service is written in coldfusion - axis engine.

The steps:
I'm using on Visual Studio 2005. I created a new windows application project.

Then I added a web reference with URL and named the reference as webserviceICLP

Then I added a button on my form and put the following code on the button click event:

Dim client As New webserviceICLP.SportingWS '(or egapiClient in VB2008)
For Each item As webserviceICLP.mapItem In client.getMemberPointsAvailable("xxxxx", "yyyy", "123456789")
MsgBox(item.key & vbNewLine & item.value)

It does nothing because (i think) there are no item created by the response of the webservice.
Also i tried to serialize the returning webservice message object using the following code:
Dim wsICLP As New webserviceICLP.SportingWS
Dim MyParams() As webserviceICLP.mapItem = {New webserviceICLP.mapItem}
MyParams = wsICLP.getMemberPointsAvailable("xxxxx", "yyyy", "123456789")
Public Shared Function SerializeToXML(Of T)(ByVal obj As T) As String
Dim returnXML As String = String.Empty
Dim serializer As New Serialization.XmlSerializer(GetType(T))
Using writer As New IO.StringWriter
serializer.Serialize(New XmlTextWriter(writer), obj)
returnXML = writer.ToString()
End Using
Return returnXML
End Function

and the result I get is :
<?xml version="1.0" encoding="utf-16"?><ArrayOfMapItem xmlns:xsi="" xmlns:xsd="" />

I know that the webservice is running because i tried to test it with the Soap UI tool and it did Ok. Here's the reponse of the WS:
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv='' xmlns:xsd='' xmlns:xsi=''>
<getMemberPointsAvailableResponse xmlns=''>
<getMemberPointsAvailableReturn xsi:type='ns1:Map' xmlns:ns1=''>
<item xmlns=''>
<key xsi:type='xsd:string'>
<value xsi:type='ns2:ArrayOf_xsd_anyType' xmlns:ns2='http://rpc.xml.coldfusion'/>
<item xmlns=''>
<key xsi:type='xsd:string'>
<value xsi:type='xsd:string'>
<item xmlns=''>
<key xsi:type='xsd:string'>
<value xsi:type='ns1:Map'>
<key xsi:type='xsd:string'>
<value xsi:type='xsd:int'>

Any help would be much appreciated!

All the best,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.