英文:
getting NULL in @RequestPayload
问题
我正在使用Spring WS,我有一个已经生成的WSDL。
我的WSDL:
...
<xs:complexType name="invokeBoarding_Opera">
<xs:sequence>
<xs:element minOccurs="0" name="BoardingRequest" type="tns:BoardingRequest"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="BoardingRequest">
<xs:sequence>
....
</xs:sequence>
</xs:complexType>
....
InvokelBoarding_Opera.java
@XmlRootElement(name = "invokelBoarding_Opera",namespace="http://boardingImpl.webservices.com/")
public class InvokeBoarding_Opera {
private BoardingRequest BoardingRequest;
我尝试使用SOAP UI,但是我得到了NULL值。
英文:
I am using Spring WS and I have one WSDL,that was already generated.
My WSDL:
....
<xs:complexType name="invokeBoarding_Opera">
<xs:sequence>
<xs:element minOccurs="0" name="BoardingRequest" type="tns:BoardingRequest"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="BoardingRequest">
<xs:sequence>
....
</xs:sequence>
</xs:complexType>
....
InvokelBoarding_Opera.java
@XmlRootElement(name = "invokelBoarding_Opera",namespace="http://boardingImpl.webservices.com/")
public class InvokeBoarding_Opera {
private BoardingRequest BoardingRequest;
I was tried to from SOAP UI, but i am getting NULL values
答案1
得分: 1
我已将 Spring WS 更改为 Apache CXF。现在它运行良好。
英文:
I have changed spring ws to apache cxf. Now its working fine
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论