We help IT Professionals succeed at work.
Get Started

Pass parameter to webservice through c#

Last Modified: 2012-05-11
i want to pass parameters & use a third party webservice

i will pass parameters to it using c#

however, i don't know how to do it since i don't know much about the webservice that is created

i only know how many and which parameters to pass to it... but don't know how to interface it

can someone with knowledge about the same please help me?

attaching the link to the webservice as well as the xml code when i open it in a webbrowser:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://webservice.smsc.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="EODSMSBroadcastService" targetNamespace="http://webservice.smsc.com/">
<xs:schema xmlns:tns="http://webservice.smsc.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://webservice.smsc.com/" version="1.0">
<xs:element name="eodbroadcast" type="tns:eodbroadcast"/>
<xs:element name="eodbroadcastResponse" type="tns:eodbroadcastResponse"/>
<xs:complexType name="eodbroadcast">
<xs:element minOccurs="0" name="username" type="xs:string"/>
<xs:element minOccurs="0" name="password" type="xs:string"/>
<xs:element minOccurs="0" name="senderid" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="mobilenos" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="message" type="xs:string"/>
<xs:element name="validatenos" type="xs:boolean"/>
<xs:element minOccurs="0" name="messagetype" type="xs:string"/>
<xs:complexType name="eodbroadcastResponse">
<xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="xs:string"/>
<message name="EODSMSBroadcast_eodbroadcastResponse">
<part element="tns:eodbroadcastResponse" name="eodbroadcastResponse"/>
<message name="EODSMSBroadcast_eodbroadcast">
<part element="tns:eodbroadcast" name="eodbroadcast"/>
<portType name="EODSMSBroadcast">
<operation name="eodbroadcast" parameterOrder="eodbroadcast">
<input message="tns:EODSMSBroadcast_eodbroadcast"/>
<output message="tns:EODSMSBroadcast_eodbroadcastResponse"/>
<binding name="EODSMSBroadcastBinding" type="tns:EODSMSBroadcast">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="eodbroadcast">
<soap:operation soapAction=""/>
<soap:body use="literal"/>
<soap:body use="literal"/>
<service name="EODSMSBroadcastService">
<port binding="tns:EODSMSBroadcastBinding" name="EODSMSBroadcastPort">
<soap:address location=""/>

Open in new window

Watch Question
.Net Full Stack Developer
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE