ppcdev, I checked smIn and it seems to be the same as what you are sending.
Kevin, Could you send us the stack trace or the exact error what you are getting out there.
regards,
James
Main Topics
Browse All TopicsI have a c# windows form. I have added a web reference to a web service running on another server on my network.
I have verified that the web service is responding by using VisualWebServiceClient (VWSC)(http://digitforge.c
VWSC shows me the request that it sends to the web service as being -
==========================
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas
<soap:Body
soap:encodingStyle="http:/
<execute>
<smIn
xsi:type="xsd:string"><
context="clientinfo" action="mailings">
<mailing>
<status code="3">Active</sta
</mailing>
</strongmail-client>
</execute>
</soap:Body>
</soap:Envelope>
==========================
My questinon is how do I call the same web service and pass it the same info from inside a C# windows app?
I have the following lines of code -
==========================
using System;
using System.Collections.Generic
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using StrongMailWebServicesTest1
using System.Xml;
namespace StrongMailWebServicesTest1
{
public partial class Form1 : Form
{
strongmail sm = new strongmail();
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
smIn = "<strongmail-client username="admin"
string smOut = "";
smOut = sm.execute(smIn);
}
}
}
==========================
But I get a response back (smOut) telling me that there was an error parsing the input.
Thanks,
Kevin.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Amazing, just for the heck of it I tried passing un-encoded string to the web service.
I simply did this -
==========================
string smIn = "<strongmail-client username='admin' password='admin' context='clientinfo' action='mailings'> <mailing> <status code='3'>Active</status> </mailing> </strongmail-client>";
string smOut = "";
smOut = sm.execute(smIn);
==========================
and it worked perfectly!.
Any idea why this web service doesn't require encoding the string?
It is because I'm calling it from a windows .net app as opposed to an asp.net app ?
Thanks for your help.
Kevin.
Business Accounts
Answer for Membership
by: ppcdevPosted on 2008-10-07 at 00:49:00ID: 22657224
If smOut gets a value, then its value has been set by a process inside the webservice.
I think then that smln has a wrong format.