Please I need people assistance in resolving this:
I'm try to send Some parameters to a remote web service and get parameters as response.
I'm just getting nothing in return below is my code:
'I Added the web service through Add Web Refrence on VS2005 and named it RemoteSite
Dim RequestNewCont(0) As RemoteSite.NewContributor
Dim AnswerValue As RemoteSite.ResponseNewSON
Dim CallService As New RemoteSite.wsReceptionResquestDeal()
'I use below to send the parameters
' In debug mode it crashes at the next line
RequestNewCont(0).ID = "222"
RequestNewCont(0).MEMBERFIRSTNAME = "Adewale"
RequestNewCont(0).MEMBERTITLE = "Mr"
RequestNewCont(0).PRESENTADDRESS = "4, Samson Street"
CallService.wmReceptionResquestNEW(RequestNewCont, "MyUs", "MyFun")
' I use below variables to get the response
Dim IDDE As String = AnswerValue.IDD
Dim NameE As String = AnswerValue.Name
Dim ClassE As String = AnswerValue.Class
'*****************************************************
'Below is the Webservice being called
<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:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://localhost/wsDealsystem/wsDeal/wsReceptionResquestDeal" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://localhost/wsDealsystem/wsDeal/wsReceptionResquestDeal" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://localhost/wsDealsystem/wsDeal/wsReceptionResquestDeal">
- <s:element name="wmReceptionResquestNEW">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="data" type="tns:ArrayOfNewContributor" />
<s:element minOccurs="0" maxOccurs="1" name="usu" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="fun" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="ArrayOfNewContributor">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="NewContributor" nillable="true" type="tns:NewContributor" />
</s:sequence>
</s:complexType>
- <s:complexType name="NewContributor">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="MEMBERFIRSTNAME" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PRESENTADDRESS" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="MEMBERTITLE" type="s:string" />
</s:sequence>
</s:complexType>
- <s:element name="wmReceptionResquestNEWResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="wmReceptionResquestNEWResult" type="tns:ArrayOfResponseNewSON" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="ArrayOfResponseNewSON">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="ResponseNewSON" nillable="true" type="tns:ResponseNewSON" />
</s:sequence>
</s:complexType>
- <s:complexType name="ResponseNewSON">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="IDD" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Class" type="s:string" />
</s:sequence>
</s:complexType>
- </wsdl:types>
- <wsdl:message name="wmReceptionResquestNEWSoapIn">
<wsdl:part name="parameters" element="tns:wmReceptionResquestNEW" />
</wsdl:message>
- <wsdl:message name="wmReceptionResquestNEWSoapOut">
<wsdl:part name="parameters" element="tns:wmReceptionResquestNEWResponse" />
</wsdl:message>
-
- <wsdl:portType name="wsReceptionResquestDealSoap">
- <wsdl:operation name="wmReceptionResquestNEW">
<wsdl:input message="tns:wmReceptionResquestNEWSoapIn" />
<wsdl:output message="tns:wmReceptionResquestNEWSoapOut" />
</wsdl:operation>
-
</wsdl:portType>
- <wsdl:binding name="wsReceptionResquestDealSoap" type="tns:wsReceptionResquestDealSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <wsdl:operation name="wmReceptionResquestNEW">
<soap:operation soapAction="http://localhost/wsDealsystem/wsDeal/wsReceptionResquestDeal/wmReceptionResquestNEW" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="wmReceptionResquestUPDATE">
<soap:operation soapAction="http://localhost/wsDealsystem/wsDeal/wsReceptionResquestDeal/wmReceptionResquestUPDATE" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="wmTest">
<soap:operation soapAction="http://localhost/wsDealsystem/wsDeal/wsReceptionResquestDeal/wmTest" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="wsReceptionResquestDeal">
- <wsdl:port name="wsReceptionResquestDealSoap" binding="tns:wsReceptionResquestDealSoap">
<soap:address location="https://RemoteSite/wsDealsystem/wsDeal/wsReceptionResquestDeal.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Any help will be highly appreciated