In the meantime I have looked further into this. When my hello world web service is hosted in .NET (version 1.1), the xml tags of the answer are assigned to the target namespace.
When the same service is run from JBoss, the answer tags are not part of the namespace. This latter version is parsed correctly by the jboss client, while the first one is not. My question now: is .NET using the wrong syntax, or are both versions valid and the client should handle both? Here is the two versions of the answer: from .NET, does not work correctly: <?xml version="1.0" encoding="utf-8"?> | <soap:Envelope | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | <soap:Body> | <HelloWorldResponse xmlns="http://tempuri.org/"> | <HelloWorldResult>Hello , here is assist</HelloWorldResult> | </HelloWorldResponse> | </soap:Body> | </soap:Envelope> and here from JBoss server, which works: <?xml version="1.0" encoding="utf-8"?> | <soap:Envelope | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | <soap:Body> | <ns1:HelloWorldResponse xmlns:ns1="http://tempuri.org/"> | <HelloWorldResult>Hello , here is assist</HelloWorldResult> | </ns1:HelloWorldResponse> | </soap:Body> | </soap:Envelope> And you see that in this latter version the namespace of the HelloWorldResponse tag is named ns1, this namespace is however not prefixed to the HelloWorldResult tag, while in the first example the namespace is globally added to the HelloWorldResponse tag. Hope someone can clarify this Thanks Manfred View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882343#3882343 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882343 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
