简体   繁体   English

无法访问wsdl的部分类

[英]cannot access partial class of a wsdl

I am trying to call a web service method from a wsdl which contains a partial class, I am having problem while accessing this partial class of wsdl in Java. 我试图从包含部分类的wsdl调用Web服务方法,但在Java中访问该wsdl的部分类时遇到问题。 I could not access partial class. 我无法访问部分课程。 After creating web service from this Wsdl in C# and SOAPUI, request and response of any method from this wsdl runs successfully in both C# and SOAPUI. 在C#和SOAPUI中从此Wsdl创建Web服务之后,来自此wsdl的任何方法的请求和响应都可以在C#和SOAPUI中成功运行。 I did not have a problem while sending parameter of partial class because I was able to access them. 发送局部类的参数时我没有问题,因为我能够访问它们。 But in Java I could not access this partial class. 但是在Java中,我无法访问此局部类。 Is there a solution for this problem? 有解决这个问题的方法吗?

Thanks. 谢谢。

Thank you for your advice. 感谢您的意见。 I send request like this: 我发送这样的请求:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:service="www.xxxxx.xx"><soapenv:Header>
  <service:SessionInfo>
     <service:UserPassword>?</service:UserPassword>
  </service:SessionInfo></soapenv:Header> <soapenv:Body>
  <service:Method1>
     <!--Optional:-->
     <service:Arguments>
        <service:Parameter1>?</service:Parameter1>
        <service:Parameter2>?</service:Parameter2>
        <!--Optional:-->
        <service:Parameter3>?</service:Parameter3>
        <!--Optional:-->
        <service:Parameter4>?</service:Parameter4>
     </service:Arguments>
  </service:Method1></soapenv:Body></soapenv:Envelope>

Thanks. 谢谢。

Adding header info by using library axis2 is suggested, for this problem. 对于此问题,建议使用库axis2添加标头信息。 Is there another solution for this problem without using library axis2? 如果不使用库axis2,是否还有其他解决方案?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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