[英]Convert WSDL to C# classes
I have problem with integration with my courier (www.raben.com). 我在与快递公司(www.raben.com)集成时遇到问题。 I've got WSDL schema http://integrator.raben-group.com/pl/?soap=itginterface.wsdl
我有WSDL模式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. 我正在使用VS2012 .NET 4.0,项目类型是更大的解决方案中使用的类库。 I've added References > Add Service Reference -> http://integrator.raben-group.com/pl/?soap=itginterface.wsdl > Go > Ok
我添加了参考>添加服务参考-> http://integrator.raben-group.com/pl/?soap=itginterface.wsdl >转到>确定
VS add new sys folder Service Refences and put my new "IntegratorRabenServiceReference" VS添加新的sys文件夹Service Refences并放入新的“ IntegratorRabenServiceReference”
I created XML with XDocument and how can i sent i to them? 我使用XDocument创建了XML,如何将其发送给他们?
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. 您创建的是使用Web服务的代理类。 You should be able to create something akin to a
IntegratorRabenService
in which you have all the necessary methods. 您应该能够创建类似于
IntegratorRabenService
东西,在其中您具有所有必要的方法。 It's a proxy for the webservice if you will. 如果愿意,它是Web服务的代理。
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 :) 如果您需要一个完整的示例,由于Web服务似乎是公共的,那么我也可以为您提供帮助,但是您需要告诉我:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.