简体   繁体   中英

Convert WSDL to C# classes

I have problem with integration with my courier (www.raben.com). I've got WSDL schema http://integrator.raben-group.com/pl/?soap=itginterface.wsdl

I'm using VS2012 .NET 4.0, project type is Class Library used in bigger Solution. I've added References > Add Service Reference -> http://integrator.raben-group.com/pl/?soap=itginterface.wsdl > Go > Ok

VS add new sys folder Service Refences and put my new "IntegratorRabenServiceReference"

I created XML with XDocument and how can i sent i to them?

Edited:

Sample XML data http://jelux.pl/Integrator/sample_data.xml
XSD file http://jelux.pl/Integrator/transport-order-information.xsd
and instruction to XML file http://jelux.pl/Integrator/Import.pdf

In a sense your question is telling us that you don't really know what you are doing. "How do I fix the carburetor on my carrot?". In it's current format it is not really fit, but I'll try to help you anyhow :)

What you have created are proxy classes for using the webservice. You should be able to create something akin to a IntegratorRabenService in which you have all the necessary methods. It's a proxy for the webservice if you will.

var service = new IntegratorRabenService(); // Using default endpoint
var data = .... // Whatever your method needs
var result = service.ProxyMethodCall(data);
// Do something with result.

Hope that helps some :)

If you need a full example I can help you with that as well since the webservice seems to be public, but you need to tell me so :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM