when I use the XmlWebSerivce to response the xmlelement to Web Service client.
the ASP.net plumbing work ( the XmlSerializer in WebServices ) will serialize the XML
if we can control the wrapper class , I can set the XmlSchemaForm.N one or Qualified so that there will no be a 'xmlns=""' in the following namespace, but I don't know how to do that in WebService plumbing.
this null namespace will makes my web service wrapper class complains.
we need to fix it.
xmlns="http://www.cedar.com.t w/bluestar/">
- <BlueStar MsgName="Bank19 80" Status="9502" xmlns="">
<StatusCode>950 2</StatusCode>
<Severity>Error </Severity>
<StatusDesc>Sub mitXML - GetXMLTagName Failed!</StatusDesc>
</BlueStar>
Anyone can provide some help on this?
thanks in adv.
Jim
///<soapBox>it seems there are too many plumbing work in XML WebServices that is not configurable for developers, especially for us that pass XML, instead of .net Class. , SoapExtension seems to be the only solution....</soapBox> 3 3331
Hello Jim!
The WS I'm working on right now is also returning XmlElement, but my WS-client is reading response
soap-xml directly without any proxy. In your case, what happens if your client treats the response
as an XmlElement, converts it to a string/stream, replaces xmlns="" with whatever You want it to be
and then creates a new XmlElement? I know it's just a workaround, but anyway.
I'm not exactly an expert but the impression I've got is that when you use soap extensions you are
working outside the .NET-WS infrastructure. For example what happens with Your automatic
asmx?WSDL-file and what about web service enhancements and the security infrastructure it's
promising?
/Regards Björn
there might be various ways the client of the WS is,
in fact, msxml parser and string might not experience significant issues,
but in System.net and XmlSerializer, default namespace and xmlns='' makes a
lot differnece.
my solution is now is with the XmlNoNamespaceW riter.
but that's a workaround.
thanks
-Jim
"BjörnHolmb erg" <bj************ *************** **@sulitelma.co m> wrote in
message news:40******** *******@sulitel ma.com... Hello Jim!
The WS I'm working on right now is also returning XmlElement, but my
WS-client is reading response soap-xml directly without any proxy. In your case, what happens if your
client treats the response as an XmlElement, converts it to a string/stream, replaces xmlns="" with
whatever You want it to be and then creates a new XmlElement? I know it's just a workaround, but
anyway. I'm not exactly an expert but the impression I've got is that when you use
soap extensions you are working outside the .NET-WS infrastructure. For example what happens with
Your automatic asmx?WSDL-file and what about web service enhancements and the security
infrastructure it's promising?
/Regards Björn
Hello Jim! I made a google-search on XmlNoNamespaceW riter and found it on Kirk Allens blog. Seems to
be a good idea. But how can You plug in XmlNoNamespaceW riter into WS-plumbing?
By the way, here is a third workaround (fourth if we count soap extensions):
Instead of sending xml, it's possible to play by Microsoft rules and send objects instead of xml.
What You have to do then to get at xml is to use XmlSerializer on the object. This will decrease
performance since we will have first have deserialization (in plumbing) and then ask for
serialization again. But both seems to be fast in dotnet. I guess this will be ok for folks like me
that want to create xhtml from xml and xslt. But I don't know how it works for people that create
complicated web services by first designing their own xml-schemas...
Regards
Björn
Jim Hsu wrote: there might be various ways the client of the WS is, in fact, msxml parser and string might not experience significant issues, but in System.net and XmlSerializer, default namespace and xmlns='' makes a lot differnece. my solution is now is with the XmlNoNamespaceW riter. but that's a workaround.
thanks
-Jim
"BjörnHolmb erg" <bj************ *************** **@sulitelma.co m> wrote in message news:40******** *******@sulitel ma.com... Hello Jim!
The WS I'm working on right now is also returning XmlElement, but my WS-client is reading response soap-xml directly without any proxy. In your case, what happens if your client treats the response as an XmlElement, converts it to a string/stream, replaces xmlns="" with whatever You want it to be and then creates a new XmlElement? I know it's just a workaround, but anyway. I'm not exactly an expert but the impression I've got is that when you use
soap extensions you are working outside the .NET-WS infrastructure. For example what happens with Your automatic asmx?WSDL-file and what about web service enhancements and the security infrastructure it's promising?
/Regards Björn This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike Dickens |
last post by:
hi,
i'm sure this has come up before but havn't managed to find an answer.
if i have the following xslt
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet method="xml" version="1.0" xmlns:ns1="abc"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" media-type="text/xml" standalone="yes"
version="1.0"/>
<xsl:template match="/">
|
by: cyclops |
last post by:
I'm trying to do XML + XSLT -> Another XML. The source XML contains
multiple namespaces and XSLT will handle all possible tags under each
name space.
----source----
<document xmlns="..." xmlns:a="..." xmlns:b="">
....
----XSLT----
....
|
by: Keith Hill |
last post by:
I am creating an XmlDocument in code and then using XmlTextWriter via
doc.WriteTo(xwriter) to output the result to a text box. I have a root
element that defines a default namespace. However, the sub-elements are
created without any namespaces like so:
XmlElement elem = doc.CreateElement("Foo");
root.AppendChild(elem);
but in the output I get this:
|
by: NeilL |
last post by:
In the XML document I'm trying to create I do the following
elem = _doc.CreateElement("Author");
elem.InnerText = "something";
parentElem.AppendChild(elem);
Thiw works properly however the resulting XML file has the following
<Author xmlns="">something</Author>
|
by: ano |
last post by:
Hi,
Anyone knows how to get "xmlns" value from XML file?
For example, how to check that this xml file has a xmlns or not?
Or how to read the xmlns value?
<bookstore xmlns:bk="http://www.lucernepublishing.com">
<book>
<title>Pride And Prejudice</title>
</book>
| |
by: R. Ian Lee |
last post by:
I've built an XSLT file that transforms data to SpreadsheetML format. The
XSLT uses a <xsl:call-template/to build each worksheet. For some reason,
when I transform the file, it is inserting xmlns="" attributes into my
<Worksheetelements which causes the worksheet not to work with Excel. I'm
using the System.Xml.Xsl.XslTransform class to perform the transform. Here's
a snippet of the XSLT template that is called:
<xsl:template...
|
by: SolaFide |
last post by:
I have an XML doc that looks something like this:
<?xml version="1.0" encoding="utf-8"?>
<elem1>
<elem2 xmlns="http://someurl.com">
<elem3>
<item>some stuff here</item>
<item>some more stuff here</item>
<item>even more stuff here</item>
</elem3>
|
by: Lee |
last post by:
Hello guys, I am new to XML and working on a XSLT to transforn yahoo
shopping search result to html. my problem is the return XML contain
xmlns in root element, here is the sample xml:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="aproductsearch.xslt"?>
<ProductSearch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:yahoo:aprods" xsi:schemaLocation="urn:yahoo:aprods...
|
by: BorisBoshond |
last post by:
Hi all,
Hope someone is able and willing to help me with following problem.
I received a xsd file from another company, our company i supposed to return xml based on that xsd.
Problem is that I don't really understand how these namespace work in xml.
(I am however aware of what problems namespaces solve)
I'm not even sure if the provided xsd is 'common' practice, although it validates correctly.
So I'll describe exactly what I've...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |