Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
![enter image description here][1]i'm new to soap, i used wsdl tool to download the .cs file of the web service buh i two issues:

1. i received this error most of the time i tried to make call to the service
that: " Unable to automatically step into the server. Connecting to the server
machine 'stageserv.interswitchng.com' failed. The Microsoft Visual
Studio Remote Debugging Monitor (MSVSMON.EXE) does not appear
to be running on the remote computer. This may be because a firewall
is preventing communication to the remote computer. Please see Help
for assistance on configuring remote debugging."

2nd question: there is a method that i need to use that has parameter of :

C#
public string GetItems([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string xmlParams) {
        object[] results = this.Invoke("GetItems", new object[] {
                    xmlParams});
        return ((string)(results[0]));
    }

(code from the downloaded web service file(.cs))

When i used SoupUi software to send request to this method:

XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:quic="http://services.subhub.com/myservice/">
   <soapenv:Header/>
   <soapenv:Body>
      <quic:GetItems>
         <!--Optional:-->
         <quic:xmlParams>
         <![CDATA[<SearchCriteria> <Id>1</Id></SearchCriteria>]]></quic:xmlParams>
      </quic:GetItems>
   </soapenv:Body>
</soapenv:Envelope>

it gives a normal xml result buh when i'm using C# to make the call in my code:
C#
string o = "<Id>1</Id>";
var response1 = soapClient.GetItems(o);
var response2 = soapClient.GetItems(@"<![CDATA[<SearchCriteria>    <BillerId>1</BillerId></SearchCriteria>]]>");


trying to know the exact form of parameter the method takes that is what i tested in the two variables, the first one gives a respone" invalide:1 "

the second one gives "invalid xml parameters"
Posted
Updated 8-Jul-15 13:31pm
v2
Comments
PIEBALDconsult 8-Jul-15 19:28pm    
42

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900