•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 391,666 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,892 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 634 | Replies: 1
![]() |
•
•
Join Date: May 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hi all,
I'm trying to consume a Service called GetMemberPointsAvailable using VB.NET. Here is the wsdl: http://sp-s3g-uat.iclp.com.au/ws/ega...egapi.cfc?wsdl
This service is written in coldfusion - axis engine.
The steps:
I'm using VB.net on Visual Studio 2005. I created a new windows application project.
Then I added a web reference with URL http://sp-s3g-uat.iclp.com.au/ws/ega...egapi.cfc?wsdl and named the reference as webserviceICLP
Then i added a button on my form and put the following code on the button click event:
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:
and the result I get is :
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:
Any help would be much appreciated!
All the best,
BS
I'm trying to consume a Service called GetMemberPointsAvailable using VB.NET. Here is the wsdl: http://sp-s3g-uat.iclp.com.au/ws/ega...egapi.cfc?wsdl
This service is written in coldfusion - axis engine.
The steps:
I'm using VB.net on Visual Studio 2005. I created a new windows application project.
Then I added a web reference with URL http://sp-s3g-uat.iclp.com.au/ws/ega...egapi.cfc?wsdl and named the reference as webserviceICLP
Then i added a button on my form and put the following code on the button click event:
VB.NET Syntax (Toggle Plain Text)
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) Next
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:
VB.NET Syntax (Toggle Plain Text)
Dim wsICLP As New webserviceICLP.SportingWS Dim MyParams() As webserviceICLP.mapItem = {New webserviceICLP.mapItem} MyParams = wsICLP.getMemberPointsAvailable("xxxxx", "yyyy", "123456789") MsgBox(SerializeToXML(MyParams)) 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 Syntax (Toggle Plain Text)
<?xml version="1.0" encoding="utf-16"?><ArrayOfMapItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
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 Syntax (Toggle Plain Text)
<?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <soapenv:Body> <getMemberPointsAvailableResponse xmlns='http://v10.egapi.ws'> <getMemberPointsAvailableReturn xsi:type='ns1:Map' xmlns:ns1='http://xml.apache.org/xml-soap'> <item xmlns=''> <key xsi:type='xsd:string'> RESPONSEERRORS </key> <value xsi:type='ns2:ArrayOf_xsd_anyType' xmlns:ns2='http://rpc.xml.coldfusion'/> </item> <item xmlns=''> <key xsi:type='xsd:string'> RESPONSESUCCESS </key> <value xsi:type='xsd:string'> true </value> </item> <item xmlns=''> <key xsi:type='xsd:string'> RESPONSEDATA </key> <value xsi:type='ns1:Map'> <item> <key xsi:type='xsd:string'> POINTS_AVAILABLE </key> <value xsi:type='xsd:int'> 106 </value> </item> </value> </item> </getMemberPointsAvailableReturn> </getMemberPointsAvailableResponse> </soapenv:Body> </soapenv:Envelope>
Any help would be much appreciated!
All the best,
BS
Last edited by peter_budo : May 31st, 2008 at 7:03 am. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Jul 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
Did you get any solution for this problem.actually i am also facing same problem in consuming CF webservice in .NET.I have tried in different ways like creating proxy.Direct Http request and deserialzing.nothing worked for me.The custom type MAP and MapItem are creating problem
If you are able to find a solution please let me.
Thanks In advance
Sai
Did you get any solution for this problem.actually i am also facing same problem in consuming CF webservice in .NET.I have tried in different ways like creating proxy.Direct Http request and deserialzing.nothing worked for me.The custom type MAP and MapItem are creating problem
If you are able to find a solution please let me.
Thanks In advance
Sai
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
advertising article blog browser browsers community dani web daniweb data design development domains firefox forensic google help html internet legal linux marketing math michael knight microsoft mobile monetization mozilla multimedia navigation news opera php privacy registration report research revenue search security seo software survey video w3c web web development webmaster xml yahoo youtube
- Previous Thread: Web Service Access Problem
- Next Thread: ASP.net For dummies


Linear Mode