Ask a Question related to ASP.NET Web Services, Design and Development.
-
Colin #1
[WebMethod] passing, receving XmlNode Without a Namespace
Hi all,
For some reasons I sometimes use the following interface for xml passing:
[WebMethod]
public XmlNode getSomeOutputXml(XmlNode someInputXml)
{
}
Normally I return a domdocument. If I return it, a default namespace is
inserted:
<soap:Body>
- <getSomeOutputXmlResponse xmlns="http://www.uwv.nl/webservices/">
- <getSomeOutputXmlResult>
- <SomeXml xmlns=""> <!-- Here is the problem ! -->
- <Response>
- etc....
I do not want that. I want the namespace to be the same as
getSomeOutputXmlResponse (without inserting it another time), is that
possible ?
When I change the WSDL by hand so that it reflects the precise interface
(including the things that are normally in the XmlNode), the .Net generated
code of the client application will not pick up the return message (input is
ok), I think because of the inserted namespace (the object says <invalid
value> in the quick watch). Is that possible ? Or is it likely that there
was another error. Is there any tracing possible to see what the generated
code does so I can see where things go wrong ?
To solve this: Can I maybe create Xml Elements or Nodes without the help of
a document ?
To solve this: Can I change the WSDL so that it reflects the empty namespace
?
A lot of questions... If anybody could clear some of these things up, I
would be very glad.
Kind regards,
Colin.
Colin Guest
-
sending and receving data to php
Hi, I want to send a integer from flash to php. There it is used in a function and the result of the function should be send back to flash. I... -
Passing a derived class to a WebMethod
I am writing a client that consumes a web service and extends the functionality of one of the web service's classes. The definition is something... -
IPTables namespace - how to commandeer namespace
I have a Perl module, IPTables::IPv4, that I've been developing for some time, and that is in the CPAN repository. I've expanded the module to... -
Receving variable from Flash
I have used some vareables and have passed it from flash with fscommand . What way through lingo I can recive the variables passed. -
Adding an XmlNode parameter to the HelloWorld WebMethod
I've added an XmlNode as a parameter to the HelloWorld WebMethod. The automaticall generated WSDL would leave one to believe that any well-formed...



Reply With Quote

