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.
Read the question carefully.
Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or
edit the question
and fix the problem. Insults are not welcome.
Don't tell someone to read the manual. Chances are they have and don't get it.
Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.