Is that even possible?
I am creating a web service in .NET to expose some already created .NET
programs to other groups. One group is writing the client in PERL, and thus
wishes the wsdl schema to not be sequenced. (PERL hashes do not retain order
information) First, the w3 specs don't mention the sequence in any detail -
its just there in the examples, which makes me wonder if removing the
sequence tag is even supportable. Second, I can find nothing in the .NET
documentation that suggests how I would remove the sequence information, and
nothing in DefaultWsdlHelp Generator.aspx that even mentions sequence.
I suppose I could try generating the .asmx?WSDL, manually removing the
sequence tags, then having people point to it, but I am not sure that would
work.
Anyone have any ideas? 3 4737
Hi,
Can i rephrase this question and post if back to you?
"Can you guys change the XSD spec so I can write a webservice which is
used by a perl implementation, which uses hashes and therefore cannot
maintain a sequence?"
The "sequence" is a composer. One of three possible;
- sequence
- choice
- all
It makes no sense removing the composer. If you do, the only thing
that might happen is that 'a default' is used. Which again would be
one of the three mentioned above.
My advise would be;
Get the "Perl" implementation to adhere to standards, not the other
way around.
Hope this helps,
Marvin Smit.
On Tue, 13 Sep 2005 06:56:03 -0700, "kevin"
<ke***@discussi ons.microsoft.c om> wrote: Is that even possible?
I am creating a web service in .NET to expose some already created .NET programs to other groups. One group is writing the client in PERL, and thus wishes the wsdl schema to not be sequenced. (PERL hashes do not retain order information) First, the w3 specs don't mention the sequence in any detail - its just there in the examples, which makes me wonder if removing the sequence tag is even supportable. Second, I can find nothing in the .NET documentatio n that suggests how I would remove the sequence information, and nothing in DefaultWsdlHelp Generator.aspx that even mentions sequence.
I suppose I could try generating the .asmx?WSDL, manually removing the sequence tags, then having people point to it, but I am not sure that would work.
Anyone have any ideas?
"Marvin Smit" wrote: Hi,
Can i rephrase this question and post if back to you?
"Can you guys change the XSD spec so I can write a webservice which is used by a perl implementation, which uses hashes and therefore cannot maintain a sequence?"
The "sequence" is a composer. One of three possible; - sequence - choice - all
It makes no sense removing the composer. If you do, the only thing that might happen is that 'a default' is used. Which again would be one of the three mentioned above.
My advise would be;
Get the "Perl" implementation to adhere to standards, not the other way around.
Hope this helps,
Marvin Smit.
On Tue, 13 Sep 2005 06:56:03 -0700, "kevin" <ke***@discussi ons.microsoft.c om> wrote:
Is that even possible?
I am creating a web service in .NET to expose some already created .NET programs to other groups. One group is writing the client in PERL, and thus wishes the wsdl schema to not be sequenced. (PERL hashes do not retain order information) First, the w3 specs don't mention the sequence in any detail - its just there in the examples, which makes me wonder if removing the sequence tag is even supportable. Second, I can find nothing in the .NET documentatio n that suggests how I would remove the sequence information, and nothing in DefaultWsdlHelp Generator.aspx that even mentions sequence.
I suppose I could try generating the .asmx?WSDL, manually removing the sequence tags, then having people point to it, but I am not sure that would work.
Anyone have any ideas?
Marvin
I am going to assume that my last line is the problem here. I suppose that
last line could be read as asking for a way to remove the entire tag and not
just change the sequence information. The problem is that the .NET API for
creating web services does not seem to allow me to change that information
from the default of "sequence" to "all".
Having said that, the implementation on the PERL side does adhere to the
service standard. Hashes are just data constructs -- the output can be
massaged however we see fit. Since it’s a hash, however, it doesn't retain
information about order or structure and thus allowing the web service to use
the "all" option would make the PERL implementation faster and cleaner.
If the .NET API doesn't provide for a means of changing the value of the
sequence tag, then I would have to say that it’s the .NET implementation with
the problem adhering to standards. I doubt that, though -- I am sure there
is a way to do this, I just haven't found it.
I don't know if it'll help you, but I ran into a similar issue with
generating XML (non web-services) from a C++ client, using the MSXML
components. The schema we had to adhere to demanded proper sequence, but
without hard-coding cardinality information ("b" follows "a", "d1" must come
before "d2.2", etc), it was extremely difficult to keep everything in
sequence.
What I wound up doing was to assign each element an ordinal attribute. As
the element was inserted into the document, the code would walk the tree and
ensure that proper sequence was maintained.
This produced proper sequence, but caused a side effect: the ordinal
attributes were rejected on the receiving end because they weren't in the
schema. The solution was to build all the XML, then feed it through an XSL
transform that stripped out the cardinality data. It was easy, clean, and
fast.
Whether this can be done from your perl client, I don't know, but it's worth
a try.
Erik J Sawyer
Appro Systems
"kevin" wrote:
"Marvin Smit" wrote:
Hi,
Can i rephrase this question and post if back to you?
"Can you guys change the XSD spec so I can write a webservice which is used by a perl implementation, which uses hashes and therefore cannot maintain a sequence?"
The "sequence" is a composer. One of three possible; - sequence - choice - all
It makes no sense removing the composer. If you do, the only thing that might happen is that 'a default' is used. Which again would be one of the three mentioned above.
My advise would be;
Get the "Perl" implementation to adhere to standards, not the other way around.
Hope this helps,
Marvin Smit.
On Tue, 13 Sep 2005 06:56:03 -0700, "kevin" <ke***@discussi ons.microsoft.c om> wrote:
Is that even possible?
I am creating a web service in .NET to expose some already created .NET programs to other groups. One group is writing the client in PERL, and thus wishes the wsdl schema to not be sequenced. (PERL hashes do not retain order information) First, the w3 specs don't mention the sequence in any detail - its just there in the examples, which makes me wonder if removing the sequence tag is even supportable. Second, I can find nothing in the .NET documentatio n that suggests how I would remove the sequence information, and nothing in DefaultWsdlHelp Generator.aspx that even mentions sequence.
I suppose I could try generating the .asmx?WSDL, manually removing the sequence tags, then having people point to it, but I am not sure that would work.
Anyone have any ideas?
Marvin
I am going to assume that my last line is the problem here. I suppose that last line could be read as asking for a way to remove the entire tag and not just change the sequence information. The problem is that the .NET API for creating web services does not seem to allow me to change that information from the default of "sequence" to "all".
Having said that, the implementation on the PERL side does adhere to the service standard. Hashes are just data constructs -- the output can be massaged however we see fit. Since it’s a hash, however, it doesn't retain information about order or structure and thus allowing the web service to use the "all" option would make the PERL implementation faster and cleaner.
If the .NET API doesn't provide for a means of changing the value of the sequence tag, then I would have to say that it’s the .NET implementation with the problem adhering to standards. I doubt that, though -- I am sure there is a way to do this, I just haven't found it. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: burdeen |
last post by:
I've been trying to return an array with PHP5 soap. Is this not
supported? or am i doing it wrong? Seems to return on the last element
in the array. In my WSDL i've defined my return type as a complex
type:
<s:complexContent><s:restriction base="SOAP-ENC:Array"><s:attribute
ref="SOAP-ENC:arrayType"
wsdl:arrayType="xsd:string"/></s:complexContent>
Actual Output :
|
by: David |
last post by:
Hi everyone,
I wonder how is it possible to make PHP SOAP extension convert the
returned complex type to an instance of one of my classes.
Here I give you a short example:
complexTest.wsdl:
<?xml version="1.0" encoding="UTF-8"?>
|
by: MR |
last post by:
i need to develop a SOAP client, Since I have never personally done one I
would like to make sure that I am going about it correctly.
The client is a Windows (probably 2k3) application that communicates over
HTTPS SOAP. The remote server is Unix based and implements Axis, which I
know nothing about
What are the steps I need to create this client? I will be developing in C#
and I have the XML schema of the SOAP messages.
How do I get...
|
by: parrot toes |
last post by:
Summary:
I have been trying to make requests of a web service provided by Axis using
a dotnet client with code generated by wsdl.exe and have
been getting exceptions when trying to process the response.
As a result of seraching news groups I guessed that the SOAP response
defines an array element in a way that causes the dotnet deserialization
routines to put the content in a generic object array (object) BUT the
content is supposed to...
|
by: Jigar.Patel |
last post by:
I have simple remoting server exposing following simple method. When I try to
add webreference to this server in another project by serveraddresss?wsdl,
it gives me following error:
Custom tool error: Unable to import WebService/Schema. Unable to import
binding 'MyRemoteObjectBinding' from namespace...
| |
by: Jigar.Patel |
last post by:
I have simple remoting server exposing following simple method. When I try to
add webreference to this server in another project,
it gives me following error:
Custom tool error: Unable to import WebService/Schema. Unable to import
binding 'MyRemoteObjectBinding' from namespace
'http://schemas.microsoft.com/clr/nsassem/RemoteServer/RemoteServer%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'.
Unable to import...
|
by: Jon Davis |
last post by:
When people discuss XML Web Services in the context of .NET, and they talk
about their WSDL file and the like, does this infer SOAP? Or are there other
XML-based web protocols besides SOAP that depend on WSDL files?
WSDL aside, on the .NET platform, when people discuss XML Web Services, is
SOAP typically inferred?
Just asking about everyday industry conversation here. I seem to be on
another page with some people, as I assume SOAP (and...
|
by: beachdog |
last post by:
I'm using Visual Studio 2005/C# to build a web client. The web server
is something I've written in a different framework, which does not
support generating wsdl, so I have hand-built a wsdl file, then
created my proxy class by running wsdl.exe. The problem is that the
SOAP message that the client generates contains an empty namespace for
the parameters in my message, instead of the namespace I intended it
to have. I am guessing it is...
|
by: akumar8k |
last post by:
when i am excusing the below code i am getting the error.
Error 1
−
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
−
<SOAP-ENV:Body>
−
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |