How to Consume D2WS via .NET
How to Consume D2WS via .NET
- Subject: How to Consume D2WS via .NET
- From: email@hidden
- Date: Fri, 15 Jun 2007 19:26:02 -0400
For some reason the WSDL from D2WS isn't as well done as .NET users
need. For this reason I've made this little How-To for them and it may
help others on this list to know. Here it is in short:
.NET INSTRUCTIONS FOR CONSUMING WO D2WS...
To more easily consume these services with .NET, you need to make a few
minor modifications:
• try using the WS client tool inside the VS.Net IDE, do "Add Web
Reference", and give it the URL
• manually change all of the references to the name "Class" to
"[Class]"
• manually change the inconsistent namespace references from "default"
to "http://WOserveraddress/"
Here is the simple method:
Figure out that you manually edit the code generated by the parser.
That's normally hidden from view. Specifically, in the IDE, highlight
the project name, and select "Project...Show All Files" from the top
menu. Then expand the "Web References" tree, then the specific
service, then the Reference Map, then edit the Reference.vb (or .cs if
using C#) file.
After you point it to the URL for the WSDL, it grabs the WSDL file,
parses it and spews all the code needed to connect. The resulting
classes then just become available to your project, same as any other.
IF STILL TROUBLESOME, ALSO TRY
After pulling the xml down and editing it locally (changing Class to
[Class] and default to the ip) and adding the reference, remove-
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://lang.java/">
<xsd:complexType name="[Class]">
<xsd:sequence />
</xsd:complexType>
</xsd:schema>
from each of the wsdl’s.
Hope this proves helpful.
--Mat
________________________________________________________________________
AOL now offers free email to everyone. Find out more about what's free
from AOL at AOL.com.
=0
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden