We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!



Last Modified: 2008-01-09
How can CXML be relevant and used in developing .NET Web Service using VS2005? Thanks.
Watch Question

CXML is a standard that defines a schema for business transactions. A lot of B2B business use CXML for interoperability between their heterogeneous systems.

If you wanted to build a web service for the same you will have to design the WSDL of your web service requests and responses based on these schema definitions. There is a schema definition for each business entity like Order, Receipt, Add User, Buyer , Supplier Location, UnitPrice etc


On the code level, we wil have the below?
How can that be done with VS2005 and SQLServer? How does a schema come out?
Bottomline is,  the webservice you are making generates a XML request or gets a XML response, these xml requests and response should conform to the XSD definition of the CXML entity.

You should be able to achieve <cxml></cxml> enclosures using SOAP headers to your webmethod, soap headers can be used to manipulate the generated XML to have a CXML envelope.

I havent personally done this but i am sure you should be able to achive what you want using SOAP headers.


How can said CXML validation be enforced by .NET 2?
yes in my theoritical opinion, one should be able to validate a request/ response against a CXML DTD/ Schema definition using .net 1.1 or .net 2.0 web services + SOAP headers


Now this question:
Say soapheader is used to start a WS. It contains userid and password. How can the userid and password be stored securely and passed to the host, not as visible string parameters? Thanks.
Unlock this solution and get a sample of our free trial.
(No credit card required)
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.