SoapDocumentMethodAttribute("urn: urn:WebService",
RequestNamespace = "urn: urn:WebService ",
ResponseNamespace = "urn: urn:WebService ",
Use = System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string Method (string Parameter)
{
NetworkCredential credentials = new NetworkCredential(wsUser, wsPassWord);
XmlSerializerNamespaces xsn = new XmlSerializerNamespaces();
xsn.Add("ns0", "urn:Method");
this.Url = this.Url = "http://";
this.Credentials = credentials;
object[] results = this.Invoke("Method", new object[] { Parameter });
return ((string)(results[0]));
}
Hello guys, i have a problem with a SOAP Communication, I can access to the web services and everything seems to be working fine, but the client needs a prefix in the XML parameter, so I try
Add these lines:
XmlSerializerNamespaces xsn = new XmlSerializerNamespaces();
xsn.Add("ns0", "urn:Method");
And hers my first question, how can I see the XML out request I sent to the webservice?
And the second question will be, it’s there a way to add prefix to the send of the web service?
I hope you guys can help me, I am very frustrated with this
Thank you guys.