c# interface

Hi gurus

I am new to c# or dot net

i am having n xi interface which sends a soap msg to the webservice ( genrated by dot net ) .

this soap message has a "ab1:" which is not accepted by the webservice and the receiption is failed . i would like to eliminate the "ab1:" from the soapmessage

"ab1:acknowledgementsbase xmlns:ab1 = "urn:xxxxx.com/xi/utils.acknowledgements"

Please advice on this its a burning issue right in my company

thanks




Re: .NET Framework Data Access and Storage colon

William_Ryan MVP

What is an N xi interface AB1 is the namespace here, where is that being specified




Re: .NET Framework Data Access and Storage colon

c# interface

Sorry typo it is an XI interface which is sending the soap and would like to eliminate the "ab1:" from the line

"ab1:acknowledgementsbase xmlns:ab1 = "urn:xxxxx.com/xi/utils.acknowledgements"

only the bold one

yes i understand its the namespace sent by the XI but according to the company standards i dont want to change the xi interface namespace .

while i want to do some modification at the csharp or dotnet end to eliminate the "ab1:"

please suggest

thanks






Re: .NET Framework Data Access and Storage colon

William_Ryan MVP

What I'm saying though is that ab1 is the namespace. I'm not sure what an XI interface is, is that what's calling the web method If I understand you correctly though, you're wsdl is probably in need of updating - they should be using the same one.




Re: .NET Framework Data Access and Storage colon

c# interface

Hi

first lemme appreciate the patience u r trying to help me and understand the problem.

forget about XI interface, I have a soap that is sent to csharp or dotnet which is having a "ab1:" from the namespace .

i need to eliminate the ab1: and yes what u are thinking is right the webservice is accepting the soap which has the ab1: and resulting an error .

while the webservice is developed in dot net .

thanks

hope u r clear onthis






Re: .NET Framework Data Access and Storage colon

William_Ryan MVP

Thanks,

Ok, so the real question here is "Why are the namespaces different" Your best bet is finding out why and fixing it. What does the calling code look like, the one calling the [WebMethod] There are a few things you can do but that will depend on what the calling code is actually doing.






Re: .NET Framework Data Access and Storage colon

c# interface

/// <remarks/>

[System.Web.Services.Protocols.SoapHeaderAttribute("AcknowledgementMessageValue")]

[System.Web.Services.WebMethodAttribute()]

[System.Web.Services.Protocols.SoapDocumentMethodAttribute("www.XXXX.com/Shipping:receiveAckIn", OneWay = true, Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Bare, Binding = "InterfaceService")]

public virtual void ReceiveAck([System.Xml.Serialization.XmlElementAttribute()] object acknowledgementMessage)

{

Log.writeToLog("received a message " + DateTime.Now + Environment.NewLine);

try

{

Log.writeToLog(acknowledgementMessage.ToString() + Environment.NewLine);

}

catch (Exception ex)

{

Log.writeToLog("problem with message " + ex.ToString() + Environment.NewLine);

}

}

THIS IS THE CODE USED TO ACCEPT THE SOAP

thanks